@jonit-dev/night-watch-cli 1.7.8 → 1.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/board/providers/github-projects.d.ts +9 -1
  2. package/dist/board/providers/github-projects.d.ts.map +1 -1
  3. package/dist/board/providers/github-projects.js +199 -60
  4. package/dist/board/providers/github-projects.js.map +1 -1
  5. package/dist/cli.js +3 -0
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/board.d.ts.map +1 -1
  8. package/dist/commands/board.js +47 -7
  9. package/dist/commands/board.js.map +1 -1
  10. package/dist/commands/dashboard/tab-config.d.ts.map +1 -1
  11. package/dist/commands/dashboard/tab-config.js +1 -0
  12. package/dist/commands/dashboard/tab-config.js.map +1 -1
  13. package/dist/commands/init.d.ts.map +1 -1
  14. package/dist/commands/init.js +131 -19
  15. package/dist/commands/init.js.map +1 -1
  16. package/dist/commands/install.d.ts +4 -0
  17. package/dist/commands/install.d.ts.map +1 -1
  18. package/dist/commands/install.js +24 -0
  19. package/dist/commands/install.js.map +1 -1
  20. package/dist/commands/qa.d.ts +30 -0
  21. package/dist/commands/qa.d.ts.map +1 -0
  22. package/dist/commands/qa.js +159 -0
  23. package/dist/commands/qa.js.map +1 -0
  24. package/dist/commands/review.d.ts +1 -0
  25. package/dist/commands/review.d.ts.map +1 -1
  26. package/dist/commands/review.js +10 -0
  27. package/dist/commands/review.js.map +1 -1
  28. package/dist/commands/run.d.ts.map +1 -1
  29. package/dist/commands/run.js +73 -28
  30. package/dist/commands/run.js.map +1 -1
  31. package/dist/commands/status.d.ts.map +1 -1
  32. package/dist/commands/status.js +3 -0
  33. package/dist/commands/status.js.map +1 -1
  34. package/dist/config.d.ts.map +1 -1
  35. package/dist/config.js +155 -1
  36. package/dist/config.js.map +1 -1
  37. package/dist/constants.d.ts +20 -1
  38. package/dist/constants.d.ts.map +1 -1
  39. package/dist/constants.js +40 -0
  40. package/dist/constants.js.map +1 -1
  41. package/dist/server/index.d.ts.map +1 -1
  42. package/dist/server/index.js +4 -2
  43. package/dist/server/index.js.map +1 -1
  44. package/dist/types.d.ts +43 -1
  45. package/dist/types.d.ts.map +1 -1
  46. package/dist/utils/notify.d.ts.map +1 -1
  47. package/dist/utils/notify.js +18 -0
  48. package/dist/utils/notify.js.map +1 -1
  49. package/dist/utils/status-data.d.ts +4 -0
  50. package/dist/utils/status-data.d.ts.map +1 -1
  51. package/dist/utils/status-data.js +13 -3
  52. package/dist/utils/status-data.js.map +1 -1
  53. package/package.json +1 -1
  54. package/scripts/night-watch-cron.sh +52 -2
  55. package/scripts/night-watch-helpers.sh +30 -2
  56. package/scripts/night-watch-pr-reviewer-cron.sh +70 -0
  57. package/scripts/night-watch-qa-cron.sh +269 -0
  58. package/templates/night-watch-qa.md +157 -0
  59. package/templates/night-watch.config.json +14 -1
  60. package/web/dist/assets/index-BPW-7_1C.js +380 -0
  61. package/web/dist/assets/index-DVqjjJEO.css +1 -0
  62. package/web/dist/index.html +2 -2
  63. package/web/dist/assets/index-C64sy08d.js +0 -360
  64. package/web/dist/assets/index-DzoZeo_Y.css +0 -1
@@ -1,360 +0,0 @@
1
- (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function f(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(m){if(m.ep)return;m.ep=!0;const h=f(m);fetch(m.href,h)}})();function ur(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Xc={exports:{}},Xn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var C0;function iv(){if(C0)return Xn;C0=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,m,h){var v=null;if(h!==void 0&&(v=""+h),m.key!==void 0&&(v=""+m.key),"key"in m){h={};for(var y in m)y!=="key"&&(h[y]=m[y])}else h=m;return m=h.ref,{$$typeof:u,type:r,key:v,ref:m!==void 0?m:null,props:h}}return Xn.Fragment=o,Xn.jsx=f,Xn.jsxs=f,Xn}var T0;function uv(){return T0||(T0=1,Xc.exports=iv()),Xc.exports}var i=uv(),Qc={exports:{}},ie={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var _0;function cv(){if(_0)return ie;_0=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),z=Symbol.iterator;function M(j){return j===null||typeof j!="object"?null:(j=z&&j[z]||j["@@iterator"],typeof j=="function"?j:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,k={};function G(j,L,K){this.props=j,this.context=L,this.refs=k,this.updater=K||Q}G.prototype.isReactComponent={},G.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,L,"setState")},G.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function Y(){}Y.prototype=G.prototype;function q(j,L,K){this.props=j,this.context=L,this.refs=k,this.updater=K||Q}var Z=q.prototype=new Y;Z.constructor=q,H(Z,G.prototype),Z.isPureReactComponent=!0;var ne=Array.isArray;function P(){}var J={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function le(j,L,K){var W=K.ref;return{$$typeof:u,type:j,key:L,ref:W!==void 0?W:null,props:K}}function ge(j,L){return le(j.type,L,j.props)}function $(j){return typeof j=="object"&&j!==null&&j.$$typeof===u}function U(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(K){return L[K]})}var te=/\/+/g;function ye(j,L){return typeof j=="object"&&j!==null&&j.key!=null?U(""+j.key):L.toString(36)}function ze(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(P,P):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function D(j,L,K,W,ce){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var Se=!1;if(j===null)Se=!0;else switch(fe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(j.$$typeof){case u:case o:Se=!0;break;case w:return Se=j._init,D(Se(j._payload),L,K,W,ce)}}if(Se)return ce=ce(j),Se=W===""?"."+ye(j,0):W,ne(ce)?(K="",Se!=null&&(K=Se.replace(te,"$&/")+"/"),D(ce,L,K,"",function($a){return $a})):ce!=null&&($(ce)&&(ce=ge(ce,K+(ce.key==null||j&&j.key===ce.key?"":(""+ce.key).replace(te,"$&/")+"/")+Se)),L.push(ce)),1;Se=0;var nt=W===""?".":W+":";if(ne(j))for(var ke=0;ke<j.length;ke++)W=j[ke],fe=nt+ye(W,ke),Se+=D(W,L,K,fe,ce);else if(ke=M(j),typeof ke=="function")for(j=ke.call(j),ke=0;!(W=j.next()).done;)W=W.value,fe=nt+ye(W,ke++),Se+=D(W,L,K,fe,ce);else if(fe==="object"){if(typeof j.then=="function")return D(ze(j),L,K,W,ce);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Se}function V(j,L,K){if(j==null)return j;var W=[],ce=0;return D(j,W,"","",function(fe){return L.call(K,fe,ce++)}),W}function se(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(K){(j._status===0||j._status===-1)&&(j._status=1,j._result=K)},function(K){(j._status===0||j._status===-1)&&(j._status=2,j._result=K)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var Re=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},Me={map:V,forEach:function(j,L,K){V(j,function(){L.apply(this,arguments)},K)},count:function(j){var L=0;return V(j,function(){L++}),L},toArray:function(j){return V(j,function(L){return L})||[]},only:function(j){if(!$(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ie.Activity=S,ie.Children=Me,ie.Component=G,ie.Fragment=f,ie.Profiler=m,ie.PureComponent=q,ie.StrictMode=r,ie.Suspense=g,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,ie.__COMPILER_RUNTIME={__proto__:null,c:function(j){return J.H.useMemoCache(j)}},ie.cache=function(j){return function(){return j.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(j,L,K){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var W=H({},j.props),ce=j.key;if(L!=null)for(fe in L.key!==void 0&&(ce=""+L.key),L)!X.call(L,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&L.ref===void 0||(W[fe]=L[fe]);var fe=arguments.length-2;if(fe===1)W.children=K;else if(1<fe){for(var Se=Array(fe),nt=0;nt<fe;nt++)Se[nt]=arguments[nt+2];W.children=Se}return le(j.type,ce,W)},ie.createContext=function(j){return j={$$typeof:v,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:h,_context:j},j},ie.createElement=function(j,L,K){var W,ce={},fe=null;if(L!=null)for(W in L.key!==void 0&&(fe=""+L.key),L)X.call(L,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ce[W]=L[W]);var Se=arguments.length-2;if(Se===1)ce.children=K;else if(1<Se){for(var nt=Array(Se),ke=0;ke<Se;ke++)nt[ke]=arguments[ke+2];ce.children=nt}if(j&&j.defaultProps)for(W in Se=j.defaultProps,Se)ce[W]===void 0&&(ce[W]=Se[W]);return le(j,fe,ce)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(j){return{$$typeof:y,render:j}},ie.isValidElement=$,ie.lazy=function(j){return{$$typeof:w,_payload:{_status:-1,_result:j},_init:se}},ie.memo=function(j,L){return{$$typeof:x,type:j,compare:L===void 0?null:L}},ie.startTransition=function(j){var L=J.T,K={};J.T=K;try{var W=j(),ce=J.S;ce!==null&&ce(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(P,Re)}catch(fe){Re(fe)}finally{L!==null&&K.types!==null&&(L.types=K.types),J.T=L}},ie.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},ie.use=function(j){return J.H.use(j)},ie.useActionState=function(j,L,K){return J.H.useActionState(j,L,K)},ie.useCallback=function(j,L){return J.H.useCallback(j,L)},ie.useContext=function(j){return J.H.useContext(j)},ie.useDebugValue=function(){},ie.useDeferredValue=function(j,L){return J.H.useDeferredValue(j,L)},ie.useEffect=function(j,L){return J.H.useEffect(j,L)},ie.useEffectEvent=function(j){return J.H.useEffectEvent(j)},ie.useId=function(){return J.H.useId()},ie.useImperativeHandle=function(j,L,K){return J.H.useImperativeHandle(j,L,K)},ie.useInsertionEffect=function(j,L){return J.H.useInsertionEffect(j,L)},ie.useLayoutEffect=function(j,L){return J.H.useLayoutEffect(j,L)},ie.useMemo=function(j,L){return J.H.useMemo(j,L)},ie.useOptimistic=function(j,L){return J.H.useOptimistic(j,L)},ie.useReducer=function(j,L,K){return J.H.useReducer(j,L,K)},ie.useRef=function(j){return J.H.useRef(j)},ie.useState=function(j){return J.H.useState(j)},ie.useSyncExternalStore=function(j,L,K){return J.H.useSyncExternalStore(j,L,K)},ie.useTransition=function(){return J.H.useTransition()},ie.version="19.2.4",ie}var z0;function cr(){return z0||(z0=1,Qc.exports=cv()),Qc.exports}var N=cr();const Ht=ur(N);var Zc={exports:{}},Qn={},Vc={exports:{}},Kc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var M0;function rv(){return M0||(M0=1,(function(u){function o(D,V){var se=D.length;D.push(V);e:for(;0<se;){var Re=se-1>>>1,Me=D[Re];if(0<m(Me,V))D[Re]=V,D[se]=Me,se=Re;else break e}}function f(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],se=D.pop();if(se!==V){D[0]=se;e:for(var Re=0,Me=D.length,j=Me>>>1;Re<j;){var L=2*(Re+1)-1,K=D[L],W=L+1,ce=D[W];if(0>m(K,se))W<Me&&0>m(ce,K)?(D[Re]=ce,D[W]=se,Re=W):(D[Re]=K,D[L]=se,Re=L);else if(W<Me&&0>m(ce,se))D[Re]=ce,D[W]=se,Re=W;else break e}}return V}function m(D,V){var se=D.sortIndex-V.sortIndex;return se!==0?se:D.id-V.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var v=Date,y=v.now();u.unstable_now=function(){return v.now()-y}}var g=[],x=[],w=1,S=null,z=3,M=!1,Q=!1,H=!1,k=!1,G=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Z(D){for(var V=f(x);V!==null;){if(V.callback===null)r(x);else if(V.startTime<=D)r(x),V.sortIndex=V.expirationTime,o(g,V);else break;V=f(x)}}function ne(D){if(H=!1,Z(D),!Q)if(f(g)!==null)Q=!0,P||(P=!0,U());else{var V=f(x);V!==null&&ze(ne,V.startTime-D)}}var P=!1,J=-1,X=5,le=-1;function ge(){return k?!0:!(u.unstable_now()-le<X)}function $(){if(k=!1,P){var D=u.unstable_now();le=D;var V=!0;try{e:{Q=!1,H&&(H=!1,Y(J),J=-1),M=!0;var se=z;try{t:{for(Z(D),S=f(g);S!==null&&!(S.expirationTime>D&&ge());){var Re=S.callback;if(typeof Re=="function"){S.callback=null,z=S.priorityLevel;var Me=Re(S.expirationTime<=D);if(D=u.unstable_now(),typeof Me=="function"){S.callback=Me,Z(D),V=!0;break t}S===f(g)&&r(g),Z(D)}else r(g);S=f(g)}if(S!==null)V=!0;else{var j=f(x);j!==null&&ze(ne,j.startTime-D),V=!1}}break e}finally{S=null,z=se,M=!1}V=void 0}}finally{V?U():P=!1}}}var U;if(typeof q=="function")U=function(){q($)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ye=te.port2;te.port1.onmessage=$,U=function(){ye.postMessage(null)}}else U=function(){G($,0)};function ze(D,V){J=G(function(){D(u.unstable_now())},V)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return z},u.unstable_next=function(D){switch(z){case 1:case 2:case 3:var V=3;break;default:V=z}var se=z;z=V;try{return D()}finally{z=se}},u.unstable_requestPaint=function(){k=!0},u.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var se=z;z=D;try{return V()}finally{z=se}},u.unstable_scheduleCallback=function(D,V,se){var Re=u.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Re+se:Re):se=Re,D){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=se+Me,D={id:w++,callback:V,priorityLevel:D,startTime:se,expirationTime:Me,sortIndex:-1},se>Re?(D.sortIndex=se,o(x,D),f(g)===null&&D===f(x)&&(H?(Y(J),J=-1):H=!0,ze(ne,se-Re))):(D.sortIndex=Me,o(g,D),Q||M||(Q=!0,P||(P=!0,U()))),D},u.unstable_shouldYield=ge,u.unstable_wrapCallback=function(D){var V=z;return function(){var se=z;z=V;try{return D.apply(this,arguments)}finally{z=se}}}})(Kc)),Kc}var A0;function ov(){return A0||(A0=1,Vc.exports=rv()),Vc.exports}var Jc={exports:{}},at={};/**
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 D0;function fv(){if(D0)return at;D0=1;var u=cr();function o(g){var x="https://react.dev/errors/"+g;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)x+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(g,x,w){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:S==null?null:""+S,children:g,containerInfo:x,implementation:w}}var v=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,x){if(g==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,at.createPortal=function(g,x){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return h(g,x,null,w)},at.flushSync=function(g){var x=v.T,w=r.p;try{if(v.T=null,r.p=2,g)return g()}finally{v.T=x,r.p=w,r.d.f()}},at.preconnect=function(g,x){typeof g=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(g,x))},at.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},at.preinit=function(g,x){if(typeof g=="string"&&x&&typeof x.as=="string"){var w=x.as,S=y(w,x.crossOrigin),z=typeof x.integrity=="string"?x.integrity:void 0,M=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;w==="style"?r.d.S(g,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:S,integrity:z,fetchPriority:M}):w==="script"&&r.d.X(g,{crossOrigin:S,integrity:z,fetchPriority:M,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},at.preinitModule=function(g,x){if(typeof g=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var w=y(x.as,x.crossOrigin);r.d.M(g,{crossOrigin:w,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(g)},at.preload=function(g,x){if(typeof g=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var w=x.as,S=y(w,x.crossOrigin);r.d.L(g,w,{crossOrigin:S,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},at.preloadModule=function(g,x){if(typeof g=="string")if(x){var w=y(x.as,x.crossOrigin);r.d.m(g,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:w,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(g)},at.requestFormReset=function(g){r.d.r(g)},at.unstable_batchedUpdates=function(g,x){return g(x)},at.useFormState=function(g,x,w){return v.H.useFormState(g,x,w)},at.useFormStatus=function(){return v.H.useHostTransitionStatus()},at.version="19.2.4",at}var O0;function P0(){if(O0)return Jc.exports;O0=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),Jc.exports=fv(),Jc.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 U0;function dv(){if(U0)return Qn;U0=1;var u=ov(),o=cr(),f=P0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function v(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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(h(e)!==e)throw Error(r(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return g(n),e;if(s===a)return g(n),t;s=s.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=s;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=s;break}if(d===a){c=!0,a=n,l=s;break}d=d.sibling}if(!c){for(d=s.child;d;){if(d===l){c=!0,l=s,a=n;break}if(d===a){c=!0,a=s,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,z=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function U(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case G:return"Profiler";case k:return"StrictMode";case ne:return"Suspense";case P:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case q:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var ze=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Re=[],Me=-1;function j(e){return{current:e}}function L(e){0>Me||(e.current=Re[Me],Re[Me]=null,Me--)}function K(e,t){Me++,Re[Me]=e.current,e.current=t}var W=j(null),ce=j(null),fe=j(null),Se=j(null);function nt(e,t){switch(K(fe,t),K(ce,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fd(t),e=Wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(W),K(W,e)}function ke(){L(W),L(ce),L(fe)}function $a(e){e.memoizedState!==null&&K(Se,e);var t=W.current,l=Wd(t,e.type);t!==l&&(K(ce,e),K(W,l))}function Wn(e){ce.current===e&&(L(W),L(ce)),Se.current===e&&(L(Se),qn._currentValue=se)}var wi,Er;function kl(e){if(wi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);wi=t&&t[1]||"",Er=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+wi+e+Er}var Ri=!1;function Ci(e,t){if(!e||Ri)return"";Ri=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(_){var T=_}Reflect.construct(e,[],B)}else{try{B.call()}catch(_){T=_}e.call(B.prototype)}}else{try{throw Error()}catch(_){T=_}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(_){if(_&&T&&typeof _.stack=="string")return[_.stack,T.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 s=a.DetermineComponentFrameRoot(),c=s[0],d=s[1];if(c&&d){var p=c.split(`
44
- `),C=d.split(`
45
- `);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===C.length)for(a=p.length-1,n=C.length-1;1<=a&&0<=n&&p[a]!==C[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==C[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==C[n]){var A=`
46
- `+p[a].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=a&&0<=n);break}}}finally{Ri=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?kl(l):""}function Bm(e,t){switch(e.tag){case 26:case 27:case 5:return kl(e.type);case 16:return kl("Lazy");case 13:return e.child!==t&&t!==null?kl("Suspense Fallback"):kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return Ci(e.type,!1);case 11:return Ci(e.type.render,!1);case 1:return Ci(e.type,!0);case 31:return kl("Activity");default:return""}}function wr(e){try{var t="",l=null;do t+=Bm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Ti=Object.prototype.hasOwnProperty,_i=u.unstable_scheduleCallback,zi=u.unstable_cancelCallback,Lm=u.unstable_shouldYield,qm=u.unstable_requestPaint,xt=u.unstable_now,Ym=u.unstable_getCurrentPriorityLevel,Rr=u.unstable_ImmediatePriority,Cr=u.unstable_UserBlockingPriority,In=u.unstable_NormalPriority,Gm=u.unstable_LowPriority,Tr=u.unstable_IdlePriority,km=u.log,Xm=u.unstable_setDisableYieldValue,Fa=null,vt=null;function hl(e){if(typeof km=="function"&&Xm(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Fa,e)}catch{}}var gt=Math.clz32?Math.clz32:Vm,Qm=Math.log,Zm=Math.LN2;function Vm(e){return e>>>=0,e===0?32:31-(Qm(e)/Zm|0)|0}var Pn=256,es=262144,ts=4194304;function Xl(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 ls(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?n=Xl(a):(c&=d,c!==0?n=Xl(c):l||(l=d&~e,l!==0&&(n=Xl(l))))):(d=a&~s,d!==0?n=Xl(d):c!==0?n=Xl(c):l||(l=a&~e,l!==0&&(n=Xl(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Km(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 _r(){var e=ts;return ts<<=1,(ts&62914560)===0&&(ts=4194304),e}function Mi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ia(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jm(e,t,l,a,n,s){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,C=e.hiddenUpdates;for(l=c&~l;0<l;){var A=31-gt(l),B=1<<A;d[A]=0,p[A]=-1;var T=C[A];if(T!==null)for(C[A]=null,A=0;A<T.length;A++){var _=T[A];_!==null&&(_.lane&=-536870913)}l&=~B}a!==0&&zr(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function zr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Mr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-gt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ar(e,t){var l=t&-t;return l=(l&42)!==0?1:Ai(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ai(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 Di(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:b0(e.type))}function Or(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var xl=Math.random().toString(36).slice(2),Ie="__reactFiber$"+xl,it="__reactProps$"+xl,ra="__reactContainer$"+xl,Oi="__reactEvents$"+xl,$m="__reactListeners$"+xl,Fm="__reactHandles$"+xl,Ur="__reactResources$"+xl,Pa="__reactMarker$"+xl;function Ui(e){delete e[Ie],delete e[it],delete e[Oi],delete e[$m],delete e[Fm]}function oa(e){var t=e[Ie];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ra]||l[Ie]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=n0(e);e!==null;){if(l=e[Ie])return l;e=n0(e)}return t}e=l,l=e.parentNode}return null}function fa(e){if(e=e[Ie]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function en(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function da(e){var t=e[Ur];return t||(t=e[Ur]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Pa]=!0}var Hr=new Set,Br={};function Ql(e,t){ma(e,t),ma(e+"Capture",t)}function ma(e,t){for(Br[e]=t,e=0;e<t.length;e++)Hr.add(t[e])}var Wm=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]*$"),Lr={},qr={};function Im(e){return Ti.call(qr,e)?!0:Ti.call(Lr,e)?!1:Wm.test(e)?qr[e]=!0:(Lr[e]=!0,!1)}function as(e,t,l){if(Im(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 ns(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 Jt(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 Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pm(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,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){if(!e._valueTracker){var t=Yr(e)?"checked":"value";e._valueTracker=Pm(e,t,""+e[t])}}function Gr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Yr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ss(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 eh=/[\n"\\]/g;function Ct(e){return e.replace(eh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Bi(e,t,l,a,n,s,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Li(e,c,Rt(t)):l!=null?Li(e,c,Rt(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Rt(d):e.removeAttribute("name")}function kr(e,t,l,a,n,s,c,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Hi(e);return}l=l!=null?""+Rt(l):"",t=t!=null?""+Rt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Hi(e)}function Li(e,t,l){t==="number"&&ss(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ha(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Rt(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 Xr(e,t,l){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Rt(l):""}function Qr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(ze(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Rt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Hi(e)}function xa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var th=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 Zr(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||th.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Vr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(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&&Zr(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&Zr(e,s,t[s])}function qi(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 lh=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"]]),ah=/^[\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 is(e){return ah.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Yi=null;function Gi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var va=null,ga=null;function Kr(e){var t=fa(e);if(t&&(e=t.stateNode)){var l=e[it]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bi(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="'+Ct(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[it]||null;if(!n)throw Error(r(90));Bi(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&&Gr(a)}break e;case"textarea":Xr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ha(e,!!l.multiple,t,!1)}}}var ki=!1;function Jr(e,t,l){if(ki)return e(t,l);ki=!0;try{var a=e(t);return a}finally{if(ki=!1,(va!==null||ga!==null)&&(Ks(),va&&(t=va,e=ga,ga=va=null,Kr(t),e)))for(t=0;t<e.length;t++)Kr(e[t])}}function tn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[it]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xi=!1;if(Ft)try{var ln={};Object.defineProperty(ln,"passive",{get:function(){Xi=!0}}),window.addEventListener("test",ln,ln),window.removeEventListener("test",ln,ln)}catch{Xi=!1}var vl=null,Qi=null,us=null;function $r(){if(us)return us;var e,t=Qi,l=t.length,a,n="value"in vl?vl.value:vl.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[s-a];a++);return us=n.slice(e,1<a?1-a:void 0)}function cs(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 rs(){return!0}function Fr(){return!1}function ut(e){function t(l,a,n,s,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?rs:Fr,this.isPropagationStopped=Fr,this}return S(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=rs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=rs)},persist:function(){},isPersistent:rs}),t}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},os=ut(Zl),an=S({},Zl,{view:0,detail:0}),nh=ut(an),Zi,Vi,nn,fs=S({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ji,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&e.type==="mousemove"?(Zi=e.screenX-nn.screenX,Vi=e.screenY-nn.screenY):Vi=Zi=0,nn=e),Zi)},movementY:function(e){return"movementY"in e?e.movementY:Vi}}),Wr=ut(fs),sh=S({},fs,{dataTransfer:0}),ih=ut(sh),uh=S({},an,{relatedTarget:0}),Ki=ut(uh),ch=S({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),rh=ut(ch),oh=S({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fh=ut(oh),dh=S({},Zl,{data:0}),Ir=ut(dh),mh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hh={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"},xh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xh[e])?!!t[e]:!1}function Ji(){return vh}var gh=S({},an,{key:function(e){if(e.key){var t=mh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ji,charCode:function(e){return e.type==="keypress"?cs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ph=ut(gh),yh=S({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=ut(yh),bh=S({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ji}),jh=ut(bh),Nh=S({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sh=ut(Nh),Eh=S({},fs,{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}),wh=ut(Eh),Rh=S({},Zl,{newState:0,oldState:0}),Ch=ut(Rh),Th=[9,13,27,32],$i=Ft&&"CompositionEvent"in window,sn=null;Ft&&"documentMode"in document&&(sn=document.documentMode);var _h=Ft&&"TextEvent"in window&&!sn,eo=Ft&&(!$i||sn&&8<sn&&11>=sn),to=" ",lo=!1;function ao(e,t){switch(e){case"keyup":return Th.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function no(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function zh(e,t){switch(e){case"compositionend":return no(t);case"keypress":return t.which!==32?null:(lo=!0,to);case"textInput":return e=t.data,e===to&&lo?null:e;default:return null}}function Mh(e,t){if(pa)return e==="compositionend"||!$i&&ao(e,t)?(e=$r(),us=Qi=vl=null,pa=!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 eo&&t.locale!=="ko"?null:t.data;default:return null}}var Ah={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 so(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ah[e.type]:t==="textarea"}function io(e,t,l,a){va?ga?ga.push(a):ga=[a]:va=a,t=ei(t,"onChange"),0<t.length&&(l=new os("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,cn=null;function Dh(e){Qd(e,0)}function ds(e){var t=en(e);if(Gr(t))return e}function uo(e,t){if(e==="change")return t}var co=!1;if(Ft){var Fi;if(Ft){var Wi="oninput"in document;if(!Wi){var ro=document.createElement("div");ro.setAttribute("oninput","return;"),Wi=typeof ro.oninput=="function"}Fi=Wi}else Fi=!1;co=Fi&&(!document.documentMode||9<document.documentMode)}function oo(){un&&(un.detachEvent("onpropertychange",fo),cn=un=null)}function fo(e){if(e.propertyName==="value"&&ds(cn)){var t=[];io(t,cn,e,Gi(e)),Jr(Dh,t)}}function Oh(e,t,l){e==="focusin"?(oo(),un=t,cn=l,un.attachEvent("onpropertychange",fo)):e==="focusout"&&oo()}function Uh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ds(cn)}function Hh(e,t){if(e==="click")return ds(t)}function Bh(e,t){if(e==="input"||e==="change")return ds(t)}function Lh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Lh;function rn(e,t){if(pt(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(!Ti.call(t,n)||!pt(e[n],t[n]))return!1}return!0}function mo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ho(e,t){var l=mo(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=mo(l)}}function xo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ss(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=ss(e.document)}return t}function Ii(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 qh=Ft&&"documentMode"in document&&11>=document.documentMode,ya=null,Pi=null,on=null,eu=!1;function go(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;eu||ya==null||ya!==ss(a)||(a=ya,"selectionStart"in a&&Ii(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),on&&rn(on,a)||(on=a,a=ei(Pi,"onSelect"),0<a.length&&(t=new os("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ya)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ba={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},tu={},po={};Ft&&(po=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Kl(e){if(tu[e])return tu[e];if(!ba[e])return e;var t=ba[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in po)return tu[e]=t[l];return e}var yo=Kl("animationend"),bo=Kl("animationiteration"),jo=Kl("animationstart"),Yh=Kl("transitionrun"),Gh=Kl("transitionstart"),kh=Kl("transitioncancel"),No=Kl("transitionend"),So=new Map,lu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lu.push("scrollEnd");function Lt(e,t){So.set(e,t),Ql(t,[e])}var ms=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Tt=[],ja=0,au=0;function hs(){for(var e=ja,t=au=ja=0;t<e;){var l=Tt[t];Tt[t++]=null;var a=Tt[t];Tt[t++]=null;var n=Tt[t];Tt[t++]=null;var s=Tt[t];if(Tt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}s!==0&&Eo(l,n,s)}}function xs(e,t,l,a){Tt[ja++]=e,Tt[ja++]=t,Tt[ja++]=l,Tt[ja++]=a,au|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function nu(e,t,l,a){return xs(e,t,l,a),vs(e)}function Jl(e,t){return xs(e,null,null,t),vs(e)}function Eo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-gt(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function vs(e){if(50<An)throw An=0,mc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Na={};function Xh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,l,a){return new Xh(e,t,l,a)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var l=e.alternate;return l===null?(l=yt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function wo(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 gs(e,t,l,a,n,s){var c=0;if(a=e,typeof e=="function")su(e)&&(c=1);else if(typeof e=="string")c=Jx(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=yt(31,l,t,n),e.elementType=le,e.lanes=s,e;case H:return $l(l.children,n,s,t);case k:c=8,n|=24;break;case G:return e=yt(12,l,t,n|2),e.elementType=G,e.lanes=s,e;case ne:return e=yt(13,l,t,n),e.elementType=ne,e.lanes=s,e;case P:return e=yt(19,l,t,n),e.elementType=P,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:c=10;break e;case Y:c=9;break e;case Z:c=11;break e;case J:c=14;break e;case X:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=yt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function $l(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function iu(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function Ro(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function uu(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Co=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var l=Co.get(e);return l!==void 0?l:(t={value:e,source:t,stack:wr(t)},Co.set(e,t),t)}return{value:e,source:t,stack:wr(t)}}var Sa=[],Ea=0,ps=null,fn=0,zt=[],Mt=0,gl=null,Gt=1,kt="";function It(e,t){Sa[Ea++]=fn,Sa[Ea++]=ps,ps=e,fn=t}function To(e,t,l){zt[Mt++]=Gt,zt[Mt++]=kt,zt[Mt++]=gl,gl=e;var a=Gt;e=kt;var n=32-gt(a)-1;a&=~(1<<n),l+=1;var s=32-gt(t)+n;if(30<s){var c=n-n%5;s=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Gt=1<<32-gt(t)+n|l<<n|a,kt=s+e}else Gt=1<<s|l<<n|a,kt=e}function cu(e){e.return!==null&&(It(e,1),To(e,1,0))}function ru(e){for(;e===ps;)ps=Sa[--Ea],Sa[Ea]=null,fn=Sa[--Ea],Sa[Ea]=null;for(;e===gl;)gl=zt[--Mt],zt[Mt]=null,kt=zt[--Mt],zt[Mt]=null,Gt=zt[--Mt],zt[Mt]=null}function _o(e,t){zt[Mt++]=Gt,zt[Mt++]=kt,zt[Mt++]=gl,Gt=t.id,kt=t.overflow,gl=e}var Pe=null,De=null,ve=!1,pl=null,At=!1,ou=Error(r(519));function yl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dn(_t(t,e)),ou}function zo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ie]=e,t[it]=a,l){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(l=0;l<On.length;l++)me(On[l],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),kr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Qr(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||Jd(t.textContent,l)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||yl(e,!0)}function Mo(e){for(Pe=e.return;Pe;)switch(Pe.tag){case 5:case 31:case 13:At=!1;return;case 27:case 3:At=!0;return;default:Pe=Pe.return}}function wa(e){if(e!==Pe)return!1;if(!ve)return Mo(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Tc(e.type,e.memoizedProps)),l=!l),l&&De&&yl(e),Mo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=a0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=a0(e)}else t===27?(t=De,Dl(e.type)?(e=Dc,Dc=null,De=e):De=t):De=Pe?Ot(e.stateNode.nextSibling):null;return!0}function Fl(){De=Pe=null,ve=!1}function fu(){var e=pl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),pl=null),e}function dn(e){pl===null?pl=[e]:pl.push(e)}var du=j(null),Wl=null,Pt=null;function bl(e,t,l){K(du,t._currentValue),t._currentValue=l}function el(e){e._currentValue=du.current,L(du)}function mu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function hu(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var c=n.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=n;for(var p=0;p<t.length;p++)if(d.context===t[p]){s.lanes|=l,d=s.alternate,d!==null&&(d.lanes|=l),mu(s.return,l,e),a||(c=null);break e}s=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,s=c.alternate,s!==null&&(s.lanes|=l),mu(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Ra(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;pt(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===Se.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(qn):e=[qn])}n=n.return}e!==null&&hu(t,e,l,a),t.flags|=262144}function ys(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Il(e){Wl=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function et(e){return Ao(Wl,e)}function bs(e,t){return Wl===null&&Il(e),Ao(e,t)}function Ao(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return l}var Qh=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()})}},Zh=u.unstable_scheduleCallback,Vh=u.unstable_NormalPriority,Ze={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xu(){return{controller:new Qh,data:new Map,refCount:0}}function mn(e){e.refCount--,e.refCount===0&&Zh(Vh,function(){e.controller.abort()})}var hn=null,vu=0,Ca=0,Ta=null;function Kh(e,t){if(hn===null){var l=hn=[];vu=0,Ca=yc(),Ta={status:"pending",value:void 0,then:function(a){l.push(a)}}}return vu++,t.then(Do,Do),t}function Do(){if(--vu===0&&hn!==null){Ta!==null&&(Ta.status="fulfilled");var e=hn;hn=null,Ca=0,Ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jh(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 Oo=D.S;D.S=function(e,t){pd=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kh(e,t),Oo!==null&&Oo(e,t)};var Pl=j(null);function gu(){var e=Pl.current;return e!==null?e:Ae.pooledCache}function js(e,t){t===null?K(Pl,Pl.current):K(Pl,t.pool)}function Uo(){var e=gu();return e===null?null:{parent:Ze._currentValue,pool:e}}var _a=Error(r(460)),pu=Error(r(474)),Ns=Error(r(542)),Ss={then:function(){}};function Ho(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,qo(e),e}throw ta=t,_a}}function ea(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ta=l,_a):l}}var ta=null;function Lo(){if(ta===null)throw Error(r(459));var e=ta;return ta=null,e}function qo(e){if(e===_a||e===Ns)throw Error(r(483))}var za=null,xn=0;function Es(e){var t=xn;return xn+=1,za===null&&(za=[]),Bo(za,e,t)}function vn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ws(e,t){throw t.$$typeof===z?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yo(e){function t(E,b){if(e){var R=E.deletions;R===null?(E.deletions=[b],E.flags|=16):R.push(b)}}function l(E,b){if(!e)return null;for(;b!==null;)t(E,b),b=b.sibling;return null}function a(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function n(E,b){return E=Wt(E,b),E.index=0,E.sibling=null,E}function s(E,b,R){return E.index=R,e?(R=E.alternate,R!==null?(R=R.index,R<b?(E.flags|=67108866,b):R):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function d(E,b,R,O){return b===null||b.tag!==6?(b=iu(R,E.mode,O),b.return=E,b):(b=n(b,R),b.return=E,b)}function p(E,b,R,O){var ee=R.type;return ee===H?A(E,b,R.props.children,O,R.key):b!==null&&(b.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===X&&ea(ee)===b.type)?(b=n(b,R.props),vn(b,R),b.return=E,b):(b=gs(R.type,R.key,R.props,null,E.mode,O),vn(b,R),b.return=E,b)}function C(E,b,R,O){return b===null||b.tag!==4||b.stateNode.containerInfo!==R.containerInfo||b.stateNode.implementation!==R.implementation?(b=uu(R,E.mode,O),b.return=E,b):(b=n(b,R.children||[]),b.return=E,b)}function A(E,b,R,O,ee){return b===null||b.tag!==7?(b=$l(R,E.mode,O,ee),b.return=E,b):(b=n(b,R),b.return=E,b)}function B(E,b,R){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=iu(""+b,E.mode,R),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case M:return R=gs(b.type,b.key,b.props,null,E.mode,R),vn(R,b),R.return=E,R;case Q:return b=uu(b,E.mode,R),b.return=E,b;case X:return b=ea(b),B(E,b,R)}if(ze(b)||U(b))return b=$l(b,E.mode,R,null),b.return=E,b;if(typeof b.then=="function")return B(E,Es(b),R);if(b.$$typeof===q)return B(E,bs(E,b),R);ws(E,b)}return null}function T(E,b,R,O){var ee=b!==null?b.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ee!==null?null:d(E,b,""+R,O);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return R.key===ee?p(E,b,R,O):null;case Q:return R.key===ee?C(E,b,R,O):null;case X:return R=ea(R),T(E,b,R,O)}if(ze(R)||U(R))return ee!==null?null:A(E,b,R,O,null);if(typeof R.then=="function")return T(E,b,Es(R),O);if(R.$$typeof===q)return T(E,b,bs(E,R),O);ws(E,R)}return null}function _(E,b,R,O,ee){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return E=E.get(R)||null,d(b,E,""+O,ee);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case M:return E=E.get(O.key===null?R:O.key)||null,p(b,E,O,ee);case Q:return E=E.get(O.key===null?R:O.key)||null,C(b,E,O,ee);case X:return O=ea(O),_(E,b,R,O,ee)}if(ze(O)||U(O))return E=E.get(R)||null,A(b,E,O,ee,null);if(typeof O.then=="function")return _(E,b,R,Es(O),ee);if(O.$$typeof===q)return _(E,b,R,bs(b,O),ee);ws(b,O)}return null}function F(E,b,R,O){for(var ee=null,be=null,I=b,oe=b=0,xe=null;I!==null&&oe<R.length;oe++){I.index>oe?(xe=I,I=null):xe=I.sibling;var je=T(E,I,R[oe],O);if(je===null){I===null&&(I=xe);break}e&&I&&je.alternate===null&&t(E,I),b=s(je,b,oe),be===null?ee=je:be.sibling=je,be=je,I=xe}if(oe===R.length)return l(E,I),ve&&It(E,oe),ee;if(I===null){for(;oe<R.length;oe++)I=B(E,R[oe],O),I!==null&&(b=s(I,b,oe),be===null?ee=I:be.sibling=I,be=I);return ve&&It(E,oe),ee}for(I=a(I);oe<R.length;oe++)xe=_(I,E,oe,R[oe],O),xe!==null&&(e&&xe.alternate!==null&&I.delete(xe.key===null?oe:xe.key),b=s(xe,b,oe),be===null?ee=xe:be.sibling=xe,be=xe);return e&&I.forEach(function(Ll){return t(E,Ll)}),ve&&It(E,oe),ee}function ae(E,b,R,O){if(R==null)throw Error(r(151));for(var ee=null,be=null,I=b,oe=b=0,xe=null,je=R.next();I!==null&&!je.done;oe++,je=R.next()){I.index>oe?(xe=I,I=null):xe=I.sibling;var Ll=T(E,I,je.value,O);if(Ll===null){I===null&&(I=xe);break}e&&I&&Ll.alternate===null&&t(E,I),b=s(Ll,b,oe),be===null?ee=Ll:be.sibling=Ll,be=Ll,I=xe}if(je.done)return l(E,I),ve&&It(E,oe),ee;if(I===null){for(;!je.done;oe++,je=R.next())je=B(E,je.value,O),je!==null&&(b=s(je,b,oe),be===null?ee=je:be.sibling=je,be=je);return ve&&It(E,oe),ee}for(I=a(I);!je.done;oe++,je=R.next())je=_(I,E,oe,je.value,O),je!==null&&(e&&je.alternate!==null&&I.delete(je.key===null?oe:je.key),b=s(je,b,oe),be===null?ee=je:be.sibling=je,be=je);return e&&I.forEach(function(sv){return t(E,sv)}),ve&&It(E,oe),ee}function _e(E,b,R,O){if(typeof R=="object"&&R!==null&&R.type===H&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case M:e:{for(var ee=R.key;b!==null;){if(b.key===ee){if(ee=R.type,ee===H){if(b.tag===7){l(E,b.sibling),O=n(b,R.props.children),O.return=E,E=O;break e}}else if(b.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===X&&ea(ee)===b.type){l(E,b.sibling),O=n(b,R.props),vn(O,R),O.return=E,E=O;break e}l(E,b);break}else t(E,b);b=b.sibling}R.type===H?(O=$l(R.props.children,E.mode,O,R.key),O.return=E,E=O):(O=gs(R.type,R.key,R.props,null,E.mode,O),vn(O,R),O.return=E,E=O)}return c(E);case Q:e:{for(ee=R.key;b!==null;){if(b.key===ee)if(b.tag===4&&b.stateNode.containerInfo===R.containerInfo&&b.stateNode.implementation===R.implementation){l(E,b.sibling),O=n(b,R.children||[]),O.return=E,E=O;break e}else{l(E,b);break}else t(E,b);b=b.sibling}O=uu(R,E.mode,O),O.return=E,E=O}return c(E);case X:return R=ea(R),_e(E,b,R,O)}if(ze(R))return F(E,b,R,O);if(U(R)){if(ee=U(R),typeof ee!="function")throw Error(r(150));return R=ee.call(R),ae(E,b,R,O)}if(typeof R.then=="function")return _e(E,b,Es(R),O);if(R.$$typeof===q)return _e(E,b,bs(E,R),O);ws(E,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,b!==null&&b.tag===6?(l(E,b.sibling),O=n(b,R),O.return=E,E=O):(l(E,b),O=iu(R,E.mode,O),O.return=E,E=O),c(E)):l(E,b)}return function(E,b,R,O){try{xn=0;var ee=_e(E,b,R,O);return za=null,ee}catch(I){if(I===_a||I===Ns)throw I;var be=yt(29,I,null,E.mode);return be.lanes=O,be.return=E,be}finally{}}}var la=Yo(!0),Go=Yo(!1),jl=!1;function yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Nl(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,(Ne&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=vs(e),Eo(e,null,l),t}return xs(e,a,t,l),vs(e)}function gn(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,Mr(e,l)}}function ju(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=c:s=s.next=c,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,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 Nu=!1;function pn(){if(Nu){var e=Ta;if(e!==null)throw e}}function yn(e,t,l,a){Nu=!1;var n=e.updateQueue;jl=!1;var s=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,C=p.next;p.next=null,c===null?s=C:c.next=C,c=p;var A=e.alternate;A!==null&&(A=A.updateQueue,d=A.lastBaseUpdate,d!==c&&(d===null?A.firstBaseUpdate=C:d.next=C,A.lastBaseUpdate=p))}if(s!==null){var B=n.baseState;c=0,A=C=p=null,d=s;do{var T=d.lane&-536870913,_=T!==d.lane;if(_?(he&T)===T:(a&T)===T){T!==0&&T===Ca&&(Nu=!0),A!==null&&(A=A.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var F=e,ae=d;T=t;var _e=l;switch(ae.tag){case 1:if(F=ae.payload,typeof F=="function"){B=F.call(_e,B,T);break e}B=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ae.payload,T=typeof F=="function"?F.call(_e,B,T):F,T==null)break e;B=S({},B,T);break e;case 2:jl=!0}}T=d.callback,T!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[T]:_.push(T))}else _={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},A===null?(C=A=_,p=B):A=A.next=_,c|=T;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;_=d,d=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);A===null&&(p=B),n.baseState=p,n.firstBaseUpdate=C,n.lastBaseUpdate=A,s===null&&(n.shared.lanes=0),Tl|=c,e.lanes=c,e.memoizedState=B}}function ko(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Xo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ko(l[e],t)}var Ma=j(null),Rs=j(0);function Qo(e,t){e=rl,K(Rs,e),K(Ma,t),rl=e|t.baseLanes}function Su(){K(Rs,rl),K(Ma,Ma.current)}function Eu(){rl=Rs.current,L(Ma),L(Rs)}var bt=j(null),Dt=null;function El(e){var t=e.alternate;K(Xe,Xe.current&1),K(bt,e),Dt===null&&(t===null||Ma.current!==null||t.memoizedState!==null)&&(Dt=e)}function wu(e){K(Xe,Xe.current),K(bt,e),Dt===null&&(Dt=e)}function Zo(e){e.tag===22?(K(Xe,Xe.current),K(bt,e),Dt===null&&(Dt=e)):wl()}function wl(){K(Xe,Xe.current),K(bt,bt.current)}function jt(e){L(bt),Dt===e&&(Dt=null),L(Xe)}var Xe=j(0);function Cs(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Mc(l)||Ac(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 tl=0,re=null,Ce=null,Ve=null,Ts=!1,Aa=!1,aa=!1,_s=0,bn=0,Da=null,$h=0;function Ye(){throw Error(r(321))}function Ru(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function Cu(e,t,l,a,n,s){return tl=s,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?_f:ku,aa=!1,s=l(a,n),aa=!1,Aa&&(s=Ko(t,l,a,n)),Vo(e),s}function Vo(e){D.H=Sn;var t=Ce!==null&&Ce.next!==null;if(tl=0,Ve=Ce=re=null,Ts=!1,bn=0,Da=null,t)throw Error(r(300));e===null||Ke||(e=e.dependencies,e!==null&&ys(e)&&(Ke=!0))}function Ko(e,t,l,a){re=e;var n=0;do{if(Aa&&(Da=null),bn=0,Aa=!1,25<=n)throw Error(r(301));if(n+=1,Ve=Ce=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}D.H=zf,s=t(l,a)}while(Aa);return s}function Fh(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?jn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(re.flags|=1024),t}function Tu(){var e=_s!==0;return _s=0,e}function _u(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function zu(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}tl=0,Ve=Ce=re=null,Aa=!1,bn=_s=0,Da=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Qe(){if(Ce===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ve===null?re.memoizedState:Ve.next;if(t!==null)Ve=t,Ce=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function zs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jn(e){var t=bn;return bn+=1,Da===null&&(Da=[]),e=Bo(Da,e,t),t=re,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?_f:ku),e}function Ms(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return jn(e);if(e.$$typeof===q)return et(e)}throw Error(r(438,String(e)))}function Mu(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.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=zs(),re.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]=ge;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function As(e){var t=Qe();return Au(t,Ce,e)}function Au(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var c=n.next;n.next=s.next,s.next=c}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var d=c=null,p=null,C=t,A=!1;do{var B=C.lane&-536870913;if(B!==C.lane?(he&B)===B:(tl&B)===B){var T=C.revertLane;if(T===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),B===Ca&&(A=!0);else if((tl&T)===T){C=C.next,T===Ca&&(A=!0);continue}else B={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},p===null?(d=p=B,c=s):p=p.next=B,re.lanes|=T,Tl|=T;B=C.action,aa&&l(s,B),s=C.hasEagerState?C.eagerState:l(s,B)}else T={lane:B,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},p===null?(d=p=T,c=s):p=p.next=T,re.lanes|=B,Tl|=B;C=C.next}while(C!==null&&C!==t);if(p===null?c=s:p.next=d,!pt(s,e.memoizedState)&&(Ke=!0,A&&(l=Ta,l!==null)))throw l;e.memoizedState=s,e.baseState=c,e.baseQueue=p,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Du(e){var t=Qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do s=e(s,c.action),c=c.next;while(c!==n);pt(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function Jo(e,t,l){var a=re,n=Qe(),s=ve;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!pt((Ce||n).memoizedState,l);if(c&&(n.memoizedState=l,Ke=!0),n=n.queue,Hu(Wo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ve!==null&&Ve.memoizedState.tag&1){if(a.flags|=2048,Oa(9,{destroy:void 0},Fo.bind(null,a,n,l,t),null),Ae===null)throw Error(r(349));s||(tl&127)!==0||$o(a,t,l)}return l}function $o(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=zs(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Fo(e,t,l,a){t.value=l,t.getSnapshot=a,Io(t)&&Po(e)}function Wo(e,t,l){return l(function(){Io(t)&&Po(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function Po(e){var t=Jl(e,2);t!==null&&dt(t,e,2)}function Ou(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),aa){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function ef(e,t,l,a){return e.baseState=l,Au(e,Ce,typeof a=="function"?a:ll)}function Wh(e,t,l,a,n){if(Us(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};D.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,tf(t,s)):(s.next=l.next,t.pending=l.next=s)}}function tf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=D.T,c={};D.T=c;try{var d=l(n,a),p=D.S;p!==null&&p(c,d),lf(e,t,d)}catch(C){Uu(e,t,C)}finally{s!==null&&c.types!==null&&(s.types=c.types),D.T=s}}else try{s=l(n,a),lf(e,t,s)}catch(C){Uu(e,t,C)}}function lf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){af(e,t,a)},function(a){return Uu(e,t,a)}):af(e,t,l)}function af(e,t,l){t.status="fulfilled",t.value=l,nf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,tf(e,l)))}function Uu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,nf(t),t=t.next;while(t!==a)}e.action=null}function nf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sf(e,t){return t}function uf(e,t){if(ve){var l=Ae.formState;if(l!==null){e:{var a=re;if(ve){if(De){t:{for(var n=De,s=At;n.nodeType!==8;){if(!s){n=null;break t}if(n=Ot(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){De=Ot(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sf,lastRenderedState:t},l.queue=a,l=Rf.bind(null,re,a),a.dispatch=l,a=Ou(!1),s=Gu.bind(null,re,!1,a.queue),a=st(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Wh.bind(null,re,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function cf(e){var t=Qe();return rf(t,Ce,e)}function rf(e,t,l){if(t=Au(e,t,sf)[0],e=As(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=jn(t)}catch(c){throw c===_a?Ns:c}else a=t;t=Qe();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&(re.flags|=2048,Oa(9,{destroy:void 0},Ih.bind(null,n,l),null)),[a,s,e]}function Ih(e,t){e.action=t}function of(e){var t=Qe(),l=Ce;if(l!==null)return rf(t,l,e);Qe(),t=t.memoizedState,l=Qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Oa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=zs(),re.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 ff(){return Qe().memoizedState}function Ds(e,t,l,a){var n=st();re.flags|=e,n.memoizedState=Oa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Os(e,t,l,a){var n=Qe();a=a===void 0?null:a;var s=n.memoizedState.inst;Ce!==null&&a!==null&&Ru(a,Ce.memoizedState.deps)?n.memoizedState=Oa(t,s,l,a):(re.flags|=e,n.memoizedState=Oa(1|t,s,l,a))}function df(e,t){Ds(8390656,8,e,t)}function Hu(e,t){Os(2048,8,e,t)}function Ph(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=zs(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function mf(e){var t=Qe().memoizedState;return Ph({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function hf(e,t){return Os(4,2,e,t)}function xf(e,t){return Os(4,4,e,t)}function vf(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 gf(e,t,l){l=l!=null?l.concat([e]):null,Os(4,4,vf.bind(null,t,e),l)}function Bu(){}function pf(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ru(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function yf(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ru(t,a[1]))return a[0];if(a=e(),aa){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Lu(e,t,l){return l===void 0||(tl&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=bd(),re.lanes|=e,Tl|=e,l)}function bf(e,t,l,a){return pt(l,t)?l:Ma.current!==null?(e=Lu(e,l,a),pt(e,t)||(Ke=!0),e):(tl&42)===0||(tl&1073741824)!==0&&(he&261930)===0?(Ke=!0,e.memoizedState=l):(e=bd(),re.lanes|=e,Tl|=e,t)}function jf(e,t,l,a,n){var s=V.p;V.p=s!==0&&8>s?s:8;var c=D.T,d={};D.T=d,Gu(e,!1,t,l);try{var p=n(),C=D.S;if(C!==null&&C(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var A=Jh(p,a);Nn(e,t,A,Et(e))}else Nn(e,t,a,Et(e))}catch(B){Nn(e,t,{then:function(){},status:"rejected",reason:B},Et())}finally{V.p=s,c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}function ex(){}function qu(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Nf(e).queue;jf(e,n,t,se,l===null?ex:function(){return Sf(e),l(a)})}function Nf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:se},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sf(e){var t=Nf(e);t.next===null&&(t=e.alternate.memoizedState),Nn(e,t.next.queue,{},Et())}function Yu(){return et(qn)}function Ef(){return Qe().memoizedState}function wf(){return Qe().memoizedState}function tx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Et();e=Nl(l);var a=Sl(t,e,l);a!==null&&(dt(a,t,l),gn(a,t,l)),t={cache:xu()},e.payload=t;return}t=t.return}}function lx(e,t,l){var a=Et();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Us(e)?Cf(t,l):(l=nu(e,t,l,a),l!==null&&(dt(l,e,a),Tf(l,t,a)))}function Rf(e,t,l){var a=Et();Nn(e,t,l,a)}function Nn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Us(e))Cf(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,d=s(c,l);if(n.hasEagerState=!0,n.eagerState=d,pt(d,c))return xs(e,t,n,0),Ae===null&&hs(),!1}catch{}finally{}if(l=nu(e,t,n,a),l!==null)return dt(l,e,a),Tf(l,t,a),!0}return!1}function Gu(e,t,l,a){if(a={lane:2,revertLane:yc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Us(e)){if(t)throw Error(r(479))}else t=nu(e,l,a,2),t!==null&&dt(t,e,2)}function Us(e){var t=e.alternate;return e===re||t!==null&&t===re}function Cf(e,t){Aa=Ts=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Tf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mr(e,l)}}var Sn={readContext:et,use:Ms,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Sn.useEffectEvent=Ye;var _f={readContext:et,use:Ms,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:df,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ds(4194308,4,vf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ds(4194308,4,e,t)},useInsertionEffect:function(e,t){Ds(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(aa){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var n=l(t);if(aa){hl(!0);try{l(t)}finally{hl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=lx.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Ou(e);var t=e.queue,l=Rf.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Bu,useDeferredValue:function(e,t){var l=st();return Lu(l,e,t)},useTransition:function(){var e=Ou(!1);return e=jf.bind(null,re,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,n=st();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ae===null)throw Error(r(349));(he&127)!==0||$o(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,df(Wo.bind(null,a,s,e),[e]),a.flags|=2048,Oa(9,{destroy:void 0},Fo.bind(null,a,s,l,t),null),l},useId:function(){var e=st(),t=Ae.identifierPrefix;if(ve){var l=kt,a=Gt;l=(a&~(1<<32-gt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=_s++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=$h++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Yu,useFormState:uf,useActionState:uf,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Gu.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Mu,useCacheRefresh:function(){return st().memoizedState=tx.bind(null,re)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ku={readContext:et,use:Ms,useCallback:pf,useContext:et,useEffect:Hu,useImperativeHandle:gf,useInsertionEffect:hf,useLayoutEffect:xf,useMemo:yf,useReducer:As,useRef:ff,useState:function(){return As(ll)},useDebugValue:Bu,useDeferredValue:function(e,t){var l=Qe();return bf(l,Ce.memoizedState,e,t)},useTransition:function(){var e=As(ll)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:jn(e),t]},useSyncExternalStore:Jo,useId:Ef,useHostTransitionStatus:Yu,useFormState:cf,useActionState:cf,useOptimistic:function(e,t){var l=Qe();return ef(l,Ce,e,t)},useMemoCache:Mu,useCacheRefresh:wf};ku.useEffectEvent=mf;var zf={readContext:et,use:Ms,useCallback:pf,useContext:et,useEffect:Hu,useImperativeHandle:gf,useInsertionEffect:hf,useLayoutEffect:xf,useMemo:yf,useReducer:Du,useRef:ff,useState:function(){return Du(ll)},useDebugValue:Bu,useDeferredValue:function(e,t){var l=Qe();return Ce===null?Lu(l,e,t):bf(l,Ce.memoizedState,e,t)},useTransition:function(){var e=Du(ll)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:jn(e),t]},useSyncExternalStore:Jo,useId:Ef,useHostTransitionStatus:Yu,useFormState:of,useActionState:of,useOptimistic:function(e,t){var l=Qe();return Ce!==null?ef(l,Ce,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Mu,useCacheRefresh:wf};zf.useEffectEvent=mf;function Xu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:S({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Qu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Et(),n=Nl(a);n.payload=t,l!=null&&(n.callback=l),t=Sl(e,n,a),t!==null&&(dt(t,e,a),gn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Et(),n=Nl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Sl(e,n,a),t!==null&&(dt(t,e,a),gn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Et(),a=Nl(l);a.tag=2,t!=null&&(a.callback=t),t=Sl(e,a,l),t!==null&&(dt(t,e,l),gn(t,e,l))}};function Mf(e,t,l,a,n,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,c):t.prototype&&t.prototype.isPureReactComponent?!rn(l,a)||!rn(n,s):!0}function Af(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Qu.enqueueReplaceState(t,t.state,null)}function na(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=S({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Df(e){ms(e)}function Of(e){console.error(e)}function Uf(e){ms(e)}function Hs(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Zu(e,t,l){return l=Nl(l),l.tag=3,l.payload={element:null},l.callback=function(){Hs(e,t)},l}function Bf(e){return e=Nl(e),e.tag=3,e}function Lf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){Hf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Hf(t,l,a),typeof n!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function ax(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ra(t,l,n,!0),l=bt.current,l!==null){switch(l.tag){case 31:case 13:return Dt===null?Js():l.alternate===null&&Ge===0&&(Ge=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ss?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),vc(e,a,n)),!1;case 22:return l.flags|=65536,a===Ss?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)),vc(e,a,n)),!1}throw Error(r(435,l.tag))}return vc(e,a,n),Js(),!1}if(ve)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ou&&(e=Error(r(422),{cause:a}),dn(_t(e,l)))):(a!==ou&&(t=Error(r(423),{cause:a}),dn(_t(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=_t(a,l),n=Zu(e.stateNode,a,n),ju(e,n),Ge!==4&&(Ge=2)),!1;var s=Error(r(520),{cause:a});if(s=_t(s,l),Mn===null?Mn=[s]:Mn.push(s),Ge!==4&&(Ge=2),t===null)return!0;a=_t(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Zu(l.stateNode,a,e),ju(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(_l===null||!_l.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Bf(n),Lf(n,e,l,a),ju(l,n),!1}l=l.return}while(l!==null);return!1}var Vu=Error(r(461)),Ke=!1;function tt(e,t,l,a){t.child=e===null?Go(t,null,l,a):la(t,e.child,l,a)}function qf(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Il(t),a=Cu(e,t,l,c,s,n),d=Tu(),e!==null&&!Ke?(_u(e,t,n),al(e,t,n)):(ve&&d&&cu(t),t.flags|=1,tt(e,t,a,n),t.child)}function Yf(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!su(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,Gf(e,t,s,a,n)):(e=gs(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!ec(e,n)){var c=s.memoizedProps;if(l=l.compare,l=l!==null?l:rn,l(c,a)&&e.ref===t.ref)return al(e,t,n)}return t.flags|=1,e=Wt(s,a),e.ref=t.ref,e.return=t,t.child=e}function Gf(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(rn(s,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=s,ec(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,al(e,t,n)}return Ku(e,t,l,a,n)}function kf(e,t,l,a){var n=a.children,s=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(s=s!==null?s.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&~s}else a=0,t.child=null;return Xf(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&js(t,s!==null?s.cachePool:null),s!==null?Qo(t,s):Su(),Zo(t);else return a=t.lanes=536870912,Xf(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(js(t,s.cachePool),Qo(t,s),wl(),t.memoizedState=null):(e!==null&&js(t,null),Su(),wl());return tt(e,t,n,l),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xf(e,t,l,a,n){var s=gu();return s=s===null?null:{parent:Ze._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&js(t,null),Su(),Zo(t),e!==null&&Ra(e,t,a,!0),t.childLanes=n,null}function Bs(e,t){return t=qs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qf(e,t,l){return la(t,e.child,null,l),e=Bs(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function nx(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Bs(t,a),t.lanes=536870912,En(null,e);if(wu(t),(e=De)?(e=l0(e,At),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Gt,overflow:kt}:null,retryLane:536870912,hydrationErrors:null},l=Ro(e),l.return=t,t.child=l,Pe=t,De=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Bs(t,a)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(wu(t),n)if(t.flags&256)t.flags&=-257,t=Qf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ke||Ra(e,t,l,!1),n=(l&e.childLanes)!==0,Ke||n){if(a=Ae,a!==null&&(c=Ar(a,l),c!==0&&c!==s.retryLane))throw s.retryLane=c,Jl(e,c),dt(a,e,c),Vu;Js(),t=Qf(e,t,l)}else e=s.treeContext,De=Ot(c.nextSibling),Pe=t,ve=!0,pl=null,At=!1,e!==null&&_o(t,e),t=Bs(t,a),t.flags|=4096;return t}return e=Wt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ls(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(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ku(e,t,l,a,n){return Il(t),l=Cu(e,t,l,a,void 0,n),a=Tu(),e!==null&&!Ke?(_u(e,t,n),al(e,t,n)):(ve&&a&&cu(t),t.flags|=1,tt(e,t,l,n),t.child)}function Zf(e,t,l,a,n,s){return Il(t),t.updateQueue=null,l=Ko(t,a,l,n),Vo(e),a=Tu(),e!==null&&!Ke?(_u(e,t,s),al(e,t,s)):(ve&&a&&cu(t),t.flags|=1,tt(e,t,l,s),t.child)}function Vf(e,t,l,a,n){if(Il(t),t.stateNode===null){var s=Na,c=l.contextType;typeof c=="object"&&c!==null&&(s=et(c)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Qu,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},yu(t),c=l.contextType,s.context=typeof c=="object"&&c!==null?et(c):Na,s.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Xu(t,l,c,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&Qu.enqueueReplaceState(s,s.state,null),yn(t,a,s,n),pn(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,p=na(l,d);s.props=p;var C=s.context,A=l.contextType;c=Na,typeof A=="object"&&A!==null&&(c=et(A));var B=l.getDerivedStateFromProps;A=typeof B=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,A||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||C!==c)&&Af(t,s,a,c),jl=!1;var T=t.memoizedState;s.state=T,yn(t,a,s,n),pn(),C=t.memoizedState,d||T!==C||jl?(typeof B=="function"&&(Xu(t,l,B,a),C=t.memoizedState),(p=jl||Mf(t,l,p,a,T,C,c))?(A||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),s.props=a,s.state=C,s.context=c,a=p):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,bu(e,t),c=t.memoizedProps,A=na(l,c),s.props=A,B=t.pendingProps,T=s.context,C=l.contextType,p=Na,typeof C=="object"&&C!==null&&(p=et(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==B||T!==p)&&Af(t,s,a,p),jl=!1,T=t.memoizedState,s.state=T,yn(t,a,s,n),pn();var _=t.memoizedState;c!==B||T!==_||jl||e!==null&&e.dependencies!==null&&ys(e.dependencies)?(typeof d=="function"&&(Xu(t,l,d,a),_=t.memoizedState),(A=jl||Mf(t,l,A,a,T,_,p)||e!==null&&e.dependencies!==null&&ys(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,_,p),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,_,p)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),s.props=a,s.state=_,s.context=p,a=A):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Ls(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=la(t,e.child,null,n),t.child=la(t,null,l,n)):tt(e,t,l,n),t.memoizedState=s.state,e=t.child):e=al(e,t,n),e}function Kf(e,t,l,a){return Fl(),t.flags|=256,tt(e,t,l,a),t.child}var Ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $u(e){return{baseLanes:e,cachePool:Uo()}}function Fu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Jf(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?El(t):wl(),(e=De)?(e=l0(e,At),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Gt,overflow:kt}:null,retryLane:536870912,hydrationErrors:null},l=Ro(e),l.return=t,t.child=l,Pe=t,De=null)):e=null,e===null)throw yl(t);return Ac(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(wl(),n=t.mode,d=qs({mode:"hidden",children:d},n),a=$l(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=$u(l),a.childLanes=Fu(e,c,l),t.memoizedState=Ju,En(null,a)):(El(t),Wu(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(s)t.flags&256?(El(t),t.flags&=-257,t=Iu(e,t,l)):t.memoizedState!==null?(wl(),t.child=e.child,t.flags|=128,t=null):(wl(),d=a.fallback,n=t.mode,a=qs({mode:"visible",children:a.children},n),d=$l(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,la(t,e.child,null,l),a=t.child,a.memoizedState=$u(l),a.childLanes=Fu(e,c,l),t.memoizedState=Ju,t=En(null,a));else if(El(t),Ac(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var C=c.dgst;c=C,a=Error(r(419)),a.stack="",a.digest=c,dn({value:a,source:null,stack:null}),t=Iu(e,t,l)}else if(Ke||Ra(e,t,l,!1),c=(l&e.childLanes)!==0,Ke||c){if(c=Ae,c!==null&&(a=Ar(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Jl(e,a),dt(c,e,a),Vu;Mc(d)||Js(),t=Iu(e,t,l)}else Mc(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,De=Ot(d.nextSibling),Pe=t,ve=!0,pl=null,At=!1,e!==null&&_o(t,e),t=Wu(t,a.children),t.flags|=4096);return t}return n?(wl(),d=a.fallback,n=t.mode,p=e.child,C=p.sibling,a=Wt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,C!==null?d=Wt(C,d):(d=$l(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,En(null,a),a=t.child,d=e.child.memoizedState,d===null?d=$u(l):(n=d.cachePool,n!==null?(p=Ze._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=Uo(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Fu(e,c,l),t.memoizedState=Ju,En(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Wt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Wu(e,t){return t=qs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function qs(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function Iu(e,t,l){return la(t,e.child,null,l),e=Wu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $f(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mu(e.return,t,l)}function Pu(e,t,l,a,n,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=s)}function Ff(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var c=Xe.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,K(Xe,c),tt(e,t,a,l),a=ve?fn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$f(e,l,t);else if(e.tag===19)$f(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&&Cs(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Pu(t,!1,n,l,s,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&&Cs(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Pu(t,!0,l,null,s,a);break;case"together":Pu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function al(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ys(e)))}function sx(e,t,l){switch(t.tag){case 3:nt(t,t.stateNode.containerInfo),bl(t,Ze,e.memoizedState.cache),Fl();break;case 27:case 5:$a(t);break;case 4:nt(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Jf(e,t,l):(El(t),e=al(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ra(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ff(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,kf(e,t,l,t.pendingProps);case 24:bl(t,Ze,e.memoizedState.cache)}return al(e,t,l)}function Wf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!ec(e,l)&&(t.flags&128)===0)return Ke=!1,sx(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,ve&&(t.flags&1048576)!==0&&To(t,fn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ea(t.elementType),t.type=e,typeof e=="function")su(e)?(a=na(e,a),t.tag=1,t=Vf(null,t,e,a,l)):(t.tag=0,t=Ku(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Z){t.tag=11,t=qf(null,t,e,a,l);break e}else if(n===J){t.tag=14,t=Yf(null,t,e,a,l);break e}}throw t=ye(e)||e,Error(r(306,t,""))}}return t;case 0:return Ku(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=na(a,t.pendingProps),Vf(e,t,a,n,l);case 3:e:{if(nt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,bu(e,t),yn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,bl(t,Ze,a),a!==s.cache&&hu(t,[Ze],l,!0),pn(),a=c.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Kf(e,t,a,l);break e}else if(a!==n){n=_t(Error(r(424)),t),dn(n),t=Kf(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(De=Ot(e.firstChild),Pe=t,ve=!0,pl=null,At=!0,l=Go(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Fl(),a===n){t=al(e,t,l);break e}tt(e,t,a,l)}t=t.child}return t;case 26:return Ls(e,t),e===null?(l=c0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=ti(fe.current).createElement(l),a[Ie]=t,a[it]=e,lt(a,l,e),Fe(a),t.stateNode=a):t.memoizedState=c0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $a(t),e===null&&ve&&(a=t.stateNode=s0(t.type,t.pendingProps,fe.current),Pe=t,At=!0,n=De,Dl(t.type)?(Dc=n,De=Ot(a.firstChild)):De=n),tt(e,t,t.pendingProps.children,l),Ls(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=De)&&(a=Ux(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Pe=t,De=Ot(a.firstChild),At=!1,n=!0):n=!1),n||yl(t)),$a(t),n=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,a=s.children,Tc(n,s)?a=null:c!==null&&Tc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Cu(e,t,Fh,null,null,l),qn._currentValue=n),Ls(e,t),tt(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=De)&&(l=Hx(l,t.pendingProps,At),l!==null?(t.stateNode=l,Pe=t,De=null,e=!0):e=!1),e||yl(t)),null;case 13:return Jf(e,t,l);case 4:return nt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=la(t,null,a,l):tt(e,t,a,l),t.child;case 11:return qf(e,t,t.type,t.pendingProps,l);case 7:return tt(e,t,t.pendingProps,l),t.child;case 8:return tt(e,t,t.pendingProps.children,l),t.child;case 12:return tt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),tt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Il(t),n=et(n),a=a(n),t.flags|=1,tt(e,t,a,l),t.child;case 14:return Yf(e,t,t.type,t.pendingProps,l);case 15:return Gf(e,t,t.type,t.pendingProps,l);case 19:return Ff(e,t,l);case 31:return nx(e,t,l);case 22:return kf(e,t,l,t.pendingProps);case 24:return Il(t),a=et(Ze),e===null?(n=gu(),n===null&&(n=Ae,s=xu(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},yu(t),bl(t,Ze,n)):((e.lanes&l)!==0&&(bu(e,t),yn(t,null,null,l),pn()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Ze,a)):(a=s.cache,bl(t,Ze,a),a!==n.cache&&hu(t,[Ze],l,!0))),tt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nl(e){e.flags|=4}function tc(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(Ed())e.flags|=8192;else throw ta=Ss,pu}else e.flags&=-16777217}function If(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!m0(t))if(Ed())e.flags|=8192;else throw ta=Ss,pu}function Ys(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_r():536870912,e.lanes|=t,La|=t)}function wn(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function ix(e,t,l){var a=t.pendingProps;switch(ru(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),el(Ze),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(wa(t)?nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fu())),Oe(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(nl(t),s!==null?(Oe(t),If(t,s)):(Oe(t),tc(t,n,null,a,l))):s?s!==e.memoizedState?(nl(t),Oe(t),If(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&nl(t),Oe(t),tc(t,n,e,a,l)),null;case 27:if(Wn(t),l=fe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}e=W.current,wa(t)?zo(t):(e=s0(n,a,l),t.stateNode=e,nl(t))}return Oe(t),null;case 5:if(Wn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}if(s=W.current,wa(t))zo(t);else{var c=ti(fe.current);switch(s){case 1:s=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=c.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}s[Ie]=t,s[it]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=s;e:switch(lt(s,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&&nl(t)}}return Oe(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,wa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Pe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ie]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Jd(e.nodeValue,l)),e||yl(t,!0)}else e=ti(e).createTextNode(a),e[Ie]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=wa(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ie]=t}else Fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=wa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Ie]=t}else Fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(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),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ys(t,t.updateQueue),Oe(t),null);case 4:return ke(),e===null&&Sc(t.stateNode.containerInfo),Oe(t),null;case 10:return el(t.type),Oe(t),null;case 19:if(L(Xe),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)wn(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Cs(e),s!==null){for(t.flags|=128,wn(a,!1),e=s.updateQueue,t.updateQueue=e,Ys(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)wo(l,e),l=l.sibling;return K(Xe,Xe.current&1|2),ve&&It(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&xt()>Zs&&(t.flags|=128,n=!0,wn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Cs(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ys(t,e),wn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ve)return Oe(t),null}else 2*xt()-a.renderingStartTime>Zs&&l!==536870912&&(t.flags|=128,n=!0,wn(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=xt(),e.sibling=null,l=Xe.current,K(Xe,n?l&1|2:l&1),ve&&It(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return jt(t),Eu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&Ys(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&&L(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),el(Ze),Oe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ux(e,t){switch(ru(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return el(Ze),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wn(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(r(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Xe),null;case 4:return ke(),null;case 10:return el(t.type),null;case 22:case 23:return jt(t),Eu(),e!==null&&L(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return el(Ze),null;case 25:return null;default:return null}}function Pf(e,t){switch(ru(t),t.tag){case 3:el(Ze),ke();break;case 26:case 27:case 5:Wn(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:L(Xe);break;case 10:el(t.type);break;case 22:case 23:jt(t),Eu(),e!==null&&L(Pl);break;case 24:el(Ze)}}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 s=l.create,c=l.inst;a=s(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){we(t,t.return,d)}}function Rl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var p=l,C=d;try{C()}catch(A){we(n,p,A)}}}a=a.next}while(a!==s)}}catch(A){we(t,t.return,A)}}function ed(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Xo(t,l)}catch(a){we(e,e.return,a)}}}function td(e,t,l){l.props=na(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){we(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){we(e,t,n)}}function Xt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){we(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){we(e,t,n)}else l.current=null}function ld(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){we(e,e.return,n)}}function lc(e,t,l){try{var a=e.stateNode;_x(a,e.type,l,t),a[it]=t}catch(n){we(e,e.return,n)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(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&&Dl(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 nc(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=$t));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,l),e=e.sibling;e!==null;)nc(e,t,l),e=e.sibling}function Gs(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&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Gs(e,t,l),e=e.sibling;e!==null;)Gs(e,t,l),e=e.sibling}function nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t,a,l),t[Ie]=e,t[it]=l}catch(s){we(e,e.return,s)}}var sl=!1,Je=!1,sc=!1,sd=typeof WeakSet=="function"?WeakSet:Set,We=null;function cx(e,t){if(e=e.containerInfo,Rc=ci,e=vo(e),Ii(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,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var c=0,d=-1,p=-1,C=0,A=0,B=e,T=null;t:for(;;){for(var _;B!==l||n!==0&&B.nodeType!==3||(d=c+n),B!==s||a!==0&&B.nodeType!==3||(p=c+a),B.nodeType===3&&(c+=B.nodeValue.length),(_=B.firstChild)!==null;)T=B,B=_;for(;;){if(B===e)break t;if(T===l&&++C===n&&(d=c),T===s&&++A===a&&(p=c),(_=B.nextSibling)!==null)break;B=T,T=B.parentNode}B=_}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cc={focusedElem:e,selectionRange:l},ci=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,s=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&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var F=na(l.type,n);e=a.getSnapshotBeforeUpdate(F,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){we(l,l.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)zc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zc(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function id(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),a&4&&Rn(5,l);break;case 1:if(ul(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){we(l,l.return,c)}else{var n=na(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){we(l,l.return,c)}}a&64&&ed(l),a&512&&Cn(l,l.return);break;case 3:if(ul(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{Xo(e,t)}catch(c){we(l,l.return,c)}}break;case 27:t===null&&a&4&&nd(l);case 26:case 5:ul(e,l),t===null&&a&4&&ld(l),a&512&&Cn(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&rd(e,l);break;case 13:ul(e,l),a&4&&od(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gx.bind(null,l),Bx(e,l))));break;case 22:if(a=l.memoizedState!==null||sl,!a){t=t!==null&&t.memoizedState!==null||Je,n=sl;var s=Je;sl=a,(Je=t)&&!s?cl(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),sl=n,Je=s}break;case 30:break;default:ul(e,l)}}function ud(e){var t=e.alternate;t!==null&&(e.alternate=null,ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ui(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 Ue=null,ct=!1;function il(e,t,l){for(l=l.child;l!==null;)cd(e,t,l),l=l.sibling}function cd(e,t,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Fa,l)}catch{}switch(l.tag){case 26:Je||Xt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Je||Xt(l,t);var a=Ue,n=ct;Dl(l.type)&&(Ue=l.stateNode,ct=!1),il(e,t,l),Hn(l.stateNode),Ue=a,ct=n;break;case 5:Je||Xt(l,t);case 6:if(a=Ue,n=ct,Ue=null,il(e,t,l),Ue=a,ct=n,Ue!==null)if(ct)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(s){we(l,t,s)}else try{Ue.removeChild(l.stateNode)}catch(s){we(l,t,s)}break;case 18:Ue!==null&&(ct?(e=Ue,e0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Va(e)):e0(Ue,l.stateNode));break;case 4:a=Ue,n=ct,Ue=l.stateNode.containerInfo,ct=!0,il(e,t,l),Ue=a,ct=n;break;case 0:case 11:case 14:case 15:Rl(2,l,t),Je||Rl(4,l,t),il(e,t,l);break;case 1:Je||(Xt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&td(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Je=(a=Je)||l.memoizedState!==null,il(e,t,l),Je=a;break;default:il(e,t,l)}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Va(e)}catch(l){we(t,t.return,l)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Va(e)}catch(l){we(t,t.return,l)}}function rx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sd),t;default:throw Error(r(435,e.tag))}}function ks(e,t){var l=rx(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=px.bind(null,e,a);a.then(n,n)}})}function rt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Ue=d.stateNode,ct=!1;break e}break;case 5:Ue=d.stateNode,ct=!1;break e;case 3:case 4:Ue=d.stateNode.containerInfo,ct=!0;break e}d=d.return}if(Ue===null)throw Error(r(160));cd(s,c,n),Ue=null,ct=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}var qt=null;function fd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),ot(e),a&4&&(Rl(3,e,e.return),Rn(3,e),Rl(5,e,e.return));break;case 1:rt(t,e),ot(e),a&512&&(Je||l===null||Xt(l,l.return)),a&64&&sl&&(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=qt;if(rt(t,e),ot(e),a&512&&(Je||l===null||Xt(l,l.return)),a&4){var s=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":s=n.getElementsByTagName("title")[0],(!s||s[Pa]||s[Ie]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),lt(s,a,l),s[Ie]=e,Fe(s),a=s;break e;case"link":var c=f0("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(s=c[d],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}s=n.createElement(a),lt(s,a,l),n.head.appendChild(s);break;case"meta":if(c=f0("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(s=c[d],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}s=n.createElement(a),lt(s,a,l),n.head.appendChild(s);break;default:throw Error(r(468,a))}s[Ie]=e,Fe(s),a=s}e.stateNode=a}else d0(n,e.type,e.stateNode);else e.stateNode=o0(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?d0(n,e.type,e.stateNode):o0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&lc(e,e.memoizedProps,l.memoizedProps)}break;case 27:rt(t,e),ot(e),a&512&&(Je||l===null||Xt(l,l.return)),l!==null&&a&4&&lc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rt(t,e),ot(e),a&512&&(Je||l===null||Xt(l,l.return)),e.flags&32){n=e.stateNode;try{xa(n,"")}catch(F){we(e,e.return,F)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,lc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(sc=!0);break;case 6:if(rt(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(F){we(e,e.return,F)}}break;case 3:if(ni=null,n=qt,qt=li(t.containerInfo),rt(t,e),qt=n,ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Va(t.containerInfo)}catch(F){we(e,e.return,F)}sc&&(sc=!1,dd(e));break;case 4:a=qt,qt=li(e.stateNode.containerInfo),rt(t,e),ot(e),qt=a;break;case 12:rt(t,e),ot(e);break;case 31:rt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ks(e,a)));break;case 13:rt(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qs=xt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ks(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,C=sl,A=Je;if(sl=C||n,Je=A||p,rt(t,e),Je=A,sl=C,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||sl||Je||sa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(s=p.stateNode,n)c=s.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=p.stateNode;var B=p.memoizedProps.style,T=B!=null&&B.hasOwnProperty("display")?B.display:null;d.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(F){we(p,p.return,F)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(F){we(p,p.return,F)}}}else if(t.tag===18){if(l===null){p=t;try{var _=p.stateNode;n?t0(_,!0):t0(p.stateNode,!1)}catch(F){we(p,p.return,F)}}}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,ks(e,l))));break;case 19:rt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ks(e,a)));break;case 30:break;case 21:break;default:rt(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ad(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,s=ac(e);Gs(e,s,n);break;case 5:var c=l.stateNode;l.flags&32&&(xa(c,""),l.flags&=-33);var d=ac(e);Gs(e,d,c);break;case 3:case 4:var p=l.stateNode.containerInfo,C=ac(e);nc(e,C,p);break;default:throw Error(r(161))}}catch(A){we(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)id(e,t.alternate,t),t=t.sibling}function sa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rl(4,t,t.return),sa(t);break;case 1:Xt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&td(t,t.return,l),sa(t);break;case 27:Hn(t.stateNode);case 26:case 5:Xt(t,t.return),sa(t);break;case 22:t.memoizedState===null&&sa(t);break;case 30:sa(t);break;default:sa(t)}e=e.sibling}}function cl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,c=s.flags;switch(s.tag){case 0:case 11:case 15:cl(n,s,l),Rn(4,s);break;case 1:if(cl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){we(a,a.return,C)}if(a=s,n=a.updateQueue,n!==null){var d=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)ko(p[n],d)}catch(C){we(a,a.return,C)}}l&&c&64&&ed(s),Cn(s,s.return);break;case 27:nd(s);case 26:case 5:cl(n,s,l),l&&a===null&&c&4&&ld(s),Cn(s,s.return);break;case 12:cl(n,s,l);break;case 31:cl(n,s,l),l&&c&4&&rd(n,s);break;case 13:cl(n,s,l),l&&c&4&&od(n,s);break;case 22:s.memoizedState===null&&cl(n,s,l),Cn(s,s.return);break;case 30:break;default:cl(n,s,l)}t=t.sibling}}function ic(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&mn(l))}function uc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mn(e))}function Yt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)md(e,t,l,a),t=t.sibling}function md(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,l,a),n&2048&&Rn(9,t);break;case 1:Yt(e,t,l,a);break;case 3:Yt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mn(e)));break;case 12:if(n&2048){Yt(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,c=s.id,d=s.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){we(t,t.return,p)}}else Yt(e,t,l,a);break;case 31:Yt(e,t,l,a);break;case 13:Yt(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,c=t.alternate,t.memoizedState!==null?s._visibility&2?Yt(e,t,l,a):Tn(e,t):s._visibility&2?Yt(e,t,l,a):(s._visibility|=2,Ua(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ic(c,t);break;case 24:Yt(e,t,l,a),n&2048&&uc(t.alternate,t);break;default:Yt(e,t,l,a)}}function Ua(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,c=t,d=l,p=a,C=c.flags;switch(c.tag){case 0:case 11:case 15:Ua(s,c,d,p,n),Rn(8,c);break;case 23:break;case 22:var A=c.stateNode;c.memoizedState!==null?A._visibility&2?Ua(s,c,d,p,n):Tn(s,c):(A._visibility|=2,Ua(s,c,d,p,n)),n&&C&2048&&ic(c.alternate,c);break;case 24:Ua(s,c,d,p,n),n&&C&2048&&uc(c.alternate,c);break;default:Ua(s,c,d,p,n)}t=t.sibling}}function Tn(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:Tn(l,a),n&2048&&ic(a.alternate,a);break;case 24:Tn(l,a),n&2048&&uc(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var _n=8192;function Ha(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)hd(e,t,l),e=e.sibling}function hd(e,t,l){switch(e.tag){case 26:Ha(e,t,l),e.flags&_n&&e.memoizedState!==null&&$x(l,qt,e.memoizedState,e.memoizedProps);break;case 5:Ha(e,t,l);break;case 3:case 4:var a=qt;qt=li(e.stateNode.containerInfo),Ha(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,Ha(e,t,l),_n=a):Ha(e,t,l));break;default:Ha(e,t,l)}}function xd(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 zn(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];We=a,gd(a,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vd(e),e=e.sibling}function vd(e){switch(e.tag){case 0:case 11:case 15:zn(e),e.flags&2048&&Rl(9,e,e.return);break;case 3:zn(e);break;case 12:zn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xs(e)):zn(e);break;default:zn(e)}}function Xs(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];We=a,gd(a,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rl(8,t,t.return),Xs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xs(t));break;default:Xs(t)}e=e.sibling}}function gd(e,t){for(;We!==null;){var l=We;switch(l.tag){case 0:case 11:case 15:Rl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,We=a;else e:for(l=e;We!==null;){a=We;var n=a.sibling,s=a.return;if(ud(a),a===l){We=null;break e}if(n!==null){n.return=s,We=n;break e}We=s}}}var ox={getCacheForType:function(e){var t=et(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return et(Ze).controller.signal}},fx=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ae=null,de=null,he=0,Ee=0,Nt=null,Cl=!1,Ba=!1,cc=!1,rl=0,Ge=0,Tl=0,ia=0,rc=0,St=0,La=0,Mn=null,ft=null,oc=!1,Qs=0,pd=0,Zs=1/0,Vs=null,_l=null,$e=0,zl=null,qa=null,ol=0,fc=0,dc=null,yd=null,An=0,mc=null;function Et(){return(Ne&2)!==0&&he!==0?he&-he:D.T!==null?yc():Dr()}function bd(){if(St===0)if((he&536870912)===0||ve){var e=es;es<<=1,(es&3932160)===0&&(es=262144),St=e}else St=536870912;return e=bt.current,e!==null&&(e.flags|=32),St}function dt(e,t,l){(e===Ae&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Ya(e,0),Ml(e,he,St,!1)),Ia(e,l),((Ne&2)===0||e!==Ae)&&(e===Ae&&((Ne&2)===0&&(ia|=l),Ge===4&&Ml(e,he,St,!1)),Qt(e))}function jd(e,t,l){if((Ne&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?hx(e,t):xc(e,t,!0),s=a;do{if(n===0){Ba&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!dx(l)){n=xc(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Mn;var p=d.current.memoizedState.isDehydrated;if(p&&(Ya(d,c).flags|=256),c=xc(d,c,!1),c!==2){if(cc&&!p){d.errorRecoveryDisabledLanes|=s,ia|=s,n=4;break e}s=ft,ft=n,s!==null&&(ft===null?ft=s:ft.push.apply(ft,s))}n=c}if(s=!1,n!==2)continue}}if(n===1){Ya(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,St,!Cl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Qs+300-xt(),10<n)){if(Ml(a,t,St,!Cl),ls(a,0,!0)!==0)break e;ol=t,a.timeoutHandle=Id(Nd.bind(null,a,l,ft,Vs,oc,t,St,ia,La,Cl,s,"Throttled",-0,0),n);break e}Nd(a,l,ft,Vs,oc,t,St,ia,La,Cl,s,null,-0,0)}}break}while(!0);Qt(e)}function Nd(e,t,l,a,n,s,c,d,p,C,A,B,T,_){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},hd(t,s,B);var F=(s&62914560)===s?Qs-xt():(s&4194048)===s?pd-xt():0;if(F=Fx(B,F),F!==null){ol=s,e.cancelPendingCommit=F(zd.bind(null,e,t,s,l,a,n,c,d,p,A,B,null,T,_)),Ml(e,s,c,!C);return}}zd(e,t,s,l,a,n,c,d,p)}function dx(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],s=n.getSnapshot;n=n.value;try{if(!pt(s(),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 Ml(e,t,l,a){t&=~rc,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-gt(n),c=1<<s;a[s]=-1,n&=~c}l!==0&&zr(e,l,t)}function Ks(){return(Ne&6)===0?(Dn(0),!1):!0}function hc(){if(de!==null){if(Ee===0)var e=de.return;else e=de,Pt=Wl=null,zu(e),za=null,xn=0,e=de;for(;e!==null;)Pf(e.alternate,e),e=e.return;de=null}}function Ya(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Ax(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ol=0,hc(),Ae=e,de=l=Wt(e.current,null),he=t,Ee=0,Nt=null,Cl=!1,Ba=Wa(e,t),cc=!1,La=St=rc=ia=Tl=Ge=0,ft=Mn=null,oc=!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-gt(a),s=1<<n;t|=e[n],a&=~s}return rl=t,hs(),l}function Sd(e,t){re=null,D.H=Sn,t===_a||t===Ns?(t=Lo(),Ee=3):t===pu?(t=Lo(),Ee=4):Ee=t===Vu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nt=t,de===null&&(Ge=1,Hs(e,_t(t,e.current)))}function Ed(){var e=bt.current;return e===null?!0:(he&4194048)===he?Dt===null:(he&62914560)===he||(he&536870912)!==0?e===Dt:!1}function wd(){var e=D.H;return D.H=Sn,e===null?Sn:e}function Rd(){var e=D.A;return D.A=ox,e}function Js(){Ge=4,Cl||(he&4194048)!==he&&bt.current!==null||(Ba=!0),(Tl&134217727)===0&&(ia&134217727)===0||Ae===null||Ml(Ae,he,St,!1)}function xc(e,t,l){var a=Ne;Ne|=2;var n=wd(),s=Rd();(Ae!==e||he!==t)&&(Vs=null,Ya(e,t)),t=!1;var c=Ge;e:do try{if(Ee!==0&&de!==null){var d=de,p=Nt;switch(Ee){case 8:hc(),c=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var C=Ee;if(Ee=0,Nt=null,Ga(e,d,p,C),l&&Ba){c=0;break e}break;default:C=Ee,Ee=0,Nt=null,Ga(e,d,p,C)}}mx(),c=Ge;break}catch(A){Sd(e,A)}while(!0);return t&&e.shellSuspendCounter++,Pt=Wl=null,Ne=a,D.H=n,D.A=s,de===null&&(Ae=null,he=0,hs()),c}function mx(){for(;de!==null;)Cd(de)}function hx(e,t){var l=Ne;Ne|=2;var a=wd(),n=Rd();Ae!==e||he!==t?(Vs=null,Zs=xt()+500,Ya(e,t)):Ba=Wa(e,t);e:do try{if(Ee!==0&&de!==null){t=de;var s=Nt;t:switch(Ee){case 1:Ee=0,Nt=null,Ga(e,t,s,1);break;case 2:case 9:if(Ho(s)){Ee=0,Nt=null,Td(t);break}t=function(){Ee!==2&&Ee!==9||Ae!==e||(Ee=7),Qt(e)},s.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Ho(s)?(Ee=0,Nt=null,Td(t)):(Ee=0,Nt=null,Ga(e,t,s,7));break;case 5:var c=null;switch(de.tag){case 26:c=de.memoizedState;case 5:case 27:var d=de;if(c?m0(c):d.stateNode.complete){Ee=0,Nt=null;var p=d.sibling;if(p!==null)de=p;else{var C=d.return;C!==null?(de=C,$s(C)):de=null}break t}}Ee=0,Nt=null,Ga(e,t,s,5);break;case 6:Ee=0,Nt=null,Ga(e,t,s,6);break;case 8:hc(),Ge=6;break e;default:throw Error(r(462))}}xx();break}catch(A){Sd(e,A)}while(!0);return Pt=Wl=null,D.H=a,D.A=n,Ne=l,de!==null?0:(Ae=null,he=0,hs(),Ge)}function xx(){for(;de!==null&&!Lm();)Cd(de)}function Cd(e){var t=Wf(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?$s(e):de=t}function Td(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Zf(l,t,t.pendingProps,t.type,void 0,he);break;case 11:t=Zf(l,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:zu(t);default:Pf(l,t),t=de=wo(t,rl),t=Wf(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?$s(e):de=t}function Ga(e,t,l,a){Pt=Wl=null,zu(t),za=null,xn=0;var n=t.return;try{if(ax(e,n,t,l,he)){Ge=1,Hs(e,_t(l,e.current)),de=null;return}}catch(s){if(n!==null)throw de=n,s;Ge=1,Hs(e,_t(l,e.current)),de=null;return}t.flags&32768?(ve||a===1?e=!0:Ba||(he&536870912)!==0?e=!1:(Cl=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),_d(t,e)):$s(t)}function $s(e){var t=e;do{if((t.flags&32768)!==0){_d(t,Cl);return}e=t.return;var l=ix(t.alternate,t,rl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Ge===0&&(Ge=5)}function _d(e,t){do{var l=ux(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);Ge=6,de=null}function zd(e,t,l,a,n,s,c,d,p){e.cancelPendingCommit=null;do Fs();while($e!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=au,Jm(e,l,s,c,d,p),e===Ae&&(de=Ae=null,he=0),qa=t,zl=e,ol=l,fc=s,dc=n,yd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yx(In,function(){return Ud(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,c=Ne,Ne|=4;try{cx(e,t,l)}finally{Ne=c,V.p=n,D.T=a}}$e=1,Md(),Ad(),Dd()}}function Md(){if($e===1){$e=0;var e=zl,t=qa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Ne;Ne|=4;try{fd(t,e);var s=Cc,c=vo(e.containerInfo),d=s.focusedElem,p=s.selectionRange;if(c!==d&&d&&d.ownerDocument&&xo(d.ownerDocument.documentElement,d)){if(p!==null&&Ii(d)){var C=p.start,A=p.end;if(A===void 0&&(A=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(A,d.value.length);else{var B=d.ownerDocument||document,T=B&&B.defaultView||window;if(T.getSelection){var _=T.getSelection(),F=d.textContent.length,ae=Math.min(p.start,F),_e=p.end===void 0?ae:Math.min(p.end,F);!_.extend&&ae>_e&&(c=_e,_e=ae,ae=c);var E=ho(d,ae),b=ho(d,_e);if(E&&b&&(_.rangeCount!==1||_.anchorNode!==E.node||_.anchorOffset!==E.offset||_.focusNode!==b.node||_.focusOffset!==b.offset)){var R=B.createRange();R.setStart(E.node,E.offset),_.removeAllRanges(),ae>_e?(_.addRange(R),_.extend(b.node,b.offset)):(R.setEnd(b.node,b.offset),_.addRange(R))}}}}for(B=[],_=d;_=_.parentNode;)_.nodeType===1&&B.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<B.length;d++){var O=B[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}ci=!!Rc,Cc=Rc=null}finally{Ne=n,V.p=a,D.T=l}}e.current=t,$e=2}}function Ad(){if($e===2){$e=0;var e=zl,t=qa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Ne;Ne|=4;try{id(e,t.alternate,t)}finally{Ne=n,V.p=a,D.T=l}}$e=3}}function Dd(){if($e===4||$e===3){$e=0,qm();var e=zl,t=qa,l=ol,a=yd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,qa=zl=null,Od(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(_l=null),Di(l),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Fa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var s=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];s(d.value,{componentStack:d.stack})}}finally{D.T=t,V.p=n}}(ol&3)!==0&&Fs(),Qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===mc?An++:(An=0,mc=e):An=0,Dn(0)}}function Od(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,mn(t)))}function Fs(){return Md(),Ad(),Dd(),Ud()}function Ud(){if($e!==5)return!1;var e=zl,t=fc;fc=0;var l=Di(ol),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=dc,dc=null;var s=zl,c=ol;if($e=0,qa=zl=null,ol=0,(Ne&6)!==0)throw Error(r(331));var d=Ne;if(Ne|=4,vd(s.current),md(s,s.current,c,l),Ne=d,Dn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Fa,s)}catch{}return!0}finally{V.p=n,D.T=a,Od(e,t)}}function Hd(e,t,l){t=_t(l,t),t=Zu(e.stateNode,t,2),e=Sl(e,t,2),e!==null&&(Ia(e,2),Qt(e))}function we(e,t,l){if(e.tag===3)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(_l===null||!_l.has(a))){e=_t(l,e),l=Bf(2),a=Sl(t,l,2),a!==null&&(Lf(l,a,t,e),Ia(a,2),Qt(a));break}}t=t.return}}function vc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new fx;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)||(cc=!0,n.add(l),e=vx.bind(null,e,t,l),t.then(e,e))}function vx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(he&l)===l&&(Ge===4||Ge===3&&(he&62914560)===he&&300>xt()-Qs?(Ne&2)===0&&Ya(e,0):rc|=l,La===he&&(La=0)),Qt(e)}function Bd(e,t){t===0&&(t=_r()),e=Jl(e,t),e!==null&&(Ia(e,t),Qt(e))}function gx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Bd(e,l)}function px(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(r(314))}a!==null&&a.delete(t),Bd(e,l)}function yx(e,t){return _i(e,t)}var Ws=null,ka=null,gc=!1,Is=!1,pc=!1,Al=0;function Qt(e){e!==ka&&e.next===null&&(ka===null?Ws=ka=e:ka=ka.next=e),Is=!0,gc||(gc=!0,jx())}function Dn(e,t){if(!pc&&Is){pc=!0;do for(var l=!1,a=Ws;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var c=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-gt(42|e)+1)-1,s&=n&~(c&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,Gd(a,s))}else s=he,s=ls(a,a===Ae?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Wa(a,s)||(l=!0,Gd(a,s));a=a.next}while(l);pc=!1}}function bx(){Ld()}function Ld(){Is=gc=!1;var e=0;Al!==0&&Mx()&&(e=Al);for(var t=xt(),l=null,a=Ws;a!==null;){var n=a.next,s=qd(a,t);s===0?(a.next=null,l===null?Ws=n:l.next=n,n===null&&(ka=l)):(l=a,(e!==0||(s&3)!==0)&&(Is=!0)),a=n}$e!==0&&$e!==5||Dn(e),Al!==0&&(Al=0)}function qd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var c=31-gt(s),d=1<<c,p=n[c];p===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Km(d,t)):p<=t&&(e.expiredLanes|=d),s&=~d}if(t=Ae,l=he,l=ls(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&zi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&zi(a),Di(l)){case 2:case 8:l=Cr;break;case 32:l=In;break;case 268435456:l=Tr;break;default:l=In}return a=Yd.bind(null,e),l=_i(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&zi(a),e.callbackPriority=2,e.callbackNode=null,2}function Yd(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fs()&&e.callbackNode!==l)return null;var a=he;return a=ls(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jd(e,a,t),qd(e,xt()),e.callbackNode!=null&&e.callbackNode===l?Yd.bind(null,e):null)}function Gd(e,t){if(Fs())return null;jd(e,t,!0)}function jx(){Dx(function(){(Ne&6)!==0?_i(Rr,bx):Ld()})}function yc(){if(Al===0){var e=Ca;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Al=e}return Al}function kd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:is(""+e)}function Xd(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 Nx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=kd((n[it]||null).action),c=a.submitter;c&&(t=(t=c[it]||null)?kd(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var d=new os("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var p=c?Xd(n,c):new FormData(n);qu(l,{pending:!0,data:p,method:n.method,action:s},null,p)}}else typeof s=="function"&&(d.preventDefault(),p=c?Xd(n,c):new FormData(n),qu(l,{pending:!0,data:p,method:n.method,action:s},s,p))},currentTarget:n}]})}}for(var bc=0;bc<lu.length;bc++){var jc=lu[bc],Sx=jc.toLowerCase(),Ex=jc[0].toUpperCase()+jc.slice(1);Lt(Sx,"on"+Ex)}Lt(yo,"onAnimationEnd"),Lt(bo,"onAnimationIteration"),Lt(jo,"onAnimationStart"),Lt("dblclick","onDoubleClick"),Lt("focusin","onFocus"),Lt("focusout","onBlur"),Lt(Yh,"onTransitionRun"),Lt(Gh,"onTransitionStart"),Lt(kh,"onTransitionCancel"),Lt(No,"onTransitionEnd"),ma("onMouseEnter",["mouseout","mouseover"]),ma("onMouseLeave",["mouseout","mouseover"]),ma("onPointerEnter",["pointerout","pointerover"]),ma("onPointerLeave",["pointerout","pointerover"]),Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var On="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(" "),wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(On));function Qd(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 s=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],p=d.instance,C=d.currentTarget;if(d=d.listener,p!==s&&n.isPropagationStopped())break e;s=d,n.currentTarget=C;try{s(n)}catch(A){ms(A)}n.currentTarget=null,s=p}else for(c=0;c<a.length;c++){if(d=a[c],p=d.instance,C=d.currentTarget,d=d.listener,p!==s&&n.isPropagationStopped())break e;s=d,n.currentTarget=C;try{s(n)}catch(A){ms(A)}n.currentTarget=null,s=p}}}}function me(e,t){var l=t[Oi];l===void 0&&(l=t[Oi]=new Set);var a=e+"__bubble";l.has(a)||(Zd(t,e,2,!1),l.add(a))}function Nc(e,t,l){var a=0;t&&(a|=4),Zd(l,e,a,t)}var Ps="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[Ps]){e[Ps]=!0,Hr.forEach(function(l){l!=="selectionchange"&&(wx.has(l)||Nc(l,!1,e),Nc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ps]||(t[Ps]=!0,Nc("selectionchange",!1,t))}}function Zd(e,t,l,a){switch(b0(t)){case 2:var n=Px;break;case 8:n=ev;break;default:n=Lc}l=n.bind(null,t,l,e),n=void 0,!Xi||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 Ec(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=oa(d),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=s=c;continue e}d=d.parentNode}}a=a.return}Jr(function(){var C=s,A=Gi(l),B=[];e:{var T=So.get(e);if(T!==void 0){var _=os,F=e;switch(e){case"keypress":if(cs(l)===0)break e;case"keydown":case"keyup":_=ph;break;case"focusin":F="focus",_=Ki;break;case"focusout":F="blur",_=Ki;break;case"beforeblur":case"afterblur":_=Ki;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":_=Wr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=ih;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=jh;break;case yo:case bo:case jo:_=rh;break;case No:_=Sh;break;case"scroll":case"scrollend":_=nh;break;case"wheel":_=wh;break;case"copy":case"cut":case"paste":_=fh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Pr;break;case"toggle":case"beforetoggle":_=Ch}var ae=(t&4)!==0,_e=!ae&&(e==="scroll"||e==="scrollend"),E=ae?T!==null?T+"Capture":null:T;ae=[];for(var b=C,R;b!==null;){var O=b;if(R=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||R===null||E===null||(O=tn(b,E),O!=null&&ae.push(Un(b,O,R))),_e)break;b=b.return}0<ae.length&&(T=new _(T,F,null,l,A),B.push({event:T,listeners:ae}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",T&&l!==Yi&&(F=l.relatedTarget||l.fromElement)&&(oa(F)||F[ra]))break e;if((_||T)&&(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,_?(F=l.relatedTarget||l.toElement,_=C,F=F?oa(F):null,F!==null&&(_e=h(F),ae=F.tag,F!==_e||ae!==5&&ae!==27&&ae!==6)&&(F=null)):(_=null,F=C),_!==F)){if(ae=Wr,O="onMouseLeave",E="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Pr,O="onPointerLeave",E="onPointerEnter",b="pointer"),_e=_==null?T:en(_),R=F==null?T:en(F),T=new ae(O,b+"leave",_,l,A),T.target=_e,T.relatedTarget=R,O=null,oa(A)===C&&(ae=new ae(E,b+"enter",F,l,A),ae.target=R,ae.relatedTarget=_e,O=ae),_e=O,_&&F)t:{for(ae=Rx,E=_,b=F,R=0,O=E;O;O=ae(O))R++;O=0;for(var ee=b;ee;ee=ae(ee))O++;for(;0<R-O;)E=ae(E),R--;for(;0<O-R;)b=ae(b),O--;for(;R--;){if(E===b||b!==null&&E===b.alternate){ae=E;break t}E=ae(E),b=ae(b)}ae=null}else ae=null;_!==null&&Vd(B,T,_,ae,!1),F!==null&&_e!==null&&Vd(B,_e,F,ae,!0)}}e:{if(T=C?en(C):window,_=T.nodeName&&T.nodeName.toLowerCase(),_==="select"||_==="input"&&T.type==="file")var be=uo;else if(so(T))if(co)be=Bh;else{be=Uh;var I=Oh}else _=T.nodeName,!_||_.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?C&&qi(C.elementType)&&(be=uo):be=Hh;if(be&&(be=be(e,C))){io(B,be,l,A);break e}I&&I(e,T,C),e==="focusout"&&C&&T.type==="number"&&C.memoizedProps.value!=null&&Li(T,"number",T.value)}switch(I=C?en(C):window,e){case"focusin":(so(I)||I.contentEditable==="true")&&(ya=I,Pi=C,on=null);break;case"focusout":on=Pi=ya=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,go(B,l,A);break;case"selectionchange":if(qh)break;case"keydown":case"keyup":go(B,l,A)}var oe;if($i)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else pa?ao(e,l)&&(xe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(xe="onCompositionStart");xe&&(eo&&l.locale!=="ko"&&(pa||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&pa&&(oe=$r()):(vl=A,Qi="value"in vl?vl.value:vl.textContent,pa=!0)),I=ei(C,xe),0<I.length&&(xe=new Ir(xe,e,null,l,A),B.push({event:xe,listeners:I}),oe?xe.data=oe:(oe=no(l),oe!==null&&(xe.data=oe)))),(oe=_h?zh(e,l):Mh(e,l))&&(xe=ei(C,"onBeforeInput"),0<xe.length&&(I=new Ir("onBeforeInput","beforeinput",null,l,A),B.push({event:I,listeners:xe}),I.data=oe)),Nx(B,e,C,l,A)}Qd(B,t)})}function Un(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ei(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=tn(e,l),n!=null&&a.unshift(Un(e,n,s)),n=tn(e,t),n!=null&&a.push(Un(e,n,s))),e.tag===3)return a;e=e.return}return[]}function Rx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,l,a,n){for(var s=t._reactName,c=[];l!==null&&l!==a;){var d=l,p=d.alternate,C=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||C===null||(p=C,n?(C=tn(l,s),C!=null&&c.unshift(Un(l,C,p))):n||(C=tn(l,s),C!=null&&c.push(Un(l,C,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Cx=/\r\n?/g,Tx=/\u0000|\uFFFD/g;function Kd(e){return(typeof e=="string"?e:""+e).replace(Cx,`
49
- `).replace(Tx,"")}function Jd(e,t){return t=Kd(t),Kd(e)===t}function Te(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||xa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&xa(e,""+a);break;case"className":ns(e,"class",a);break;case"tabIndex":ns(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ns(e,l,a);break;case"style":Vr(e,a,s);break;case"data":if(t!=="object"){ns(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=is(""+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 s=="function"&&(l==="formAction"?(t!=="input"&&Te(e,t,"name",n.name,n,null),Te(e,t,"formEncType",n.formEncType,n,null),Te(e,t,"formMethod",n.formMethod,n,null),Te(e,t,"formTarget",n.formTarget,n,null)):(Te(e,t,"encType",n.encType,n,null),Te(e,t,"method",n.method,n,null),Te(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=is(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(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=is(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":me("beforetoggle",e),me("toggle",e),as(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":as(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=lh.get(l)||l,as(e,l,a))}}function wc(e,t,l,a,n,s){switch(l){case"style":Vr(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?xa(e,a):(typeof a=="number"||typeof a=="bigint")&&xa(e,""+a);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Br.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[it]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==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,""):as(e,l,a)}}}function lt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];if(c!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,s,c,l,null)}}n&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":me("invalid",e);var d=s=c=n=null,p=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];if(A!=null)switch(a){case"name":n=A;break;case"type":c=A;break;case"checked":p=A;break;case"defaultChecked":C=A;break;case"value":s=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:Te(e,t,a,A,l,null)}}kr(e,s,d,p,C,c,n,!1);return;case"select":me("invalid",e),a=c=s=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":s=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Te(e,t,n,d,l,null)}t=s,l=c,e.multiple=!!a,t!=null?ha(e,!!a,t,!1):l!=null&&ha(e,!!a,l,!0);return;case"textarea":me("invalid",e),s=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Te(e,t,c,d,l,null)}Qr(e,a,n,s);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,p,a,l,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<On.length;a++)me(On[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,C,a,l,null)}return;default:if(qi(t)){for(A in l)l.hasOwnProperty(A)&&(a=l[A],a!==void 0&&wc(e,t,A,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Te(e,t,d,a,l,null))}function _x(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,s=null,c=null,d=null,p=null,C=null,A=null;for(_ in l){var B=l[_];if(l.hasOwnProperty(_)&&B!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":p=B;default:a.hasOwnProperty(_)||Te(e,t,_,null,a,B)}}for(var T in a){var _=a[T];if(B=l[T],a.hasOwnProperty(T)&&(_!=null||B!=null))switch(T){case"type":s=_;break;case"name":n=_;break;case"checked":C=_;break;case"defaultChecked":A=_;break;case"value":c=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==B&&Te(e,t,T,_,a,B)}}Bi(e,c,d,p,C,A,s,n);return;case"select":_=c=d=T=null;for(s in l)if(p=l[s],l.hasOwnProperty(s)&&p!=null)switch(s){case"value":break;case"multiple":_=p;default:a.hasOwnProperty(s)||Te(e,t,s,null,a,p)}for(n in a)if(s=a[n],p=l[n],a.hasOwnProperty(n)&&(s!=null||p!=null))switch(n){case"value":T=s;break;case"defaultValue":d=s;break;case"multiple":c=s;default:s!==p&&Te(e,t,n,s,a,p)}t=d,l=c,a=_,T!=null?ha(e,!!l,T,!1):!!a!=!!l&&(t!=null?ha(e,!!l,t,!0):ha(e,!!l,l?[]:"",!1));return;case"textarea":_=T=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Te(e,t,d,null,a,n)}for(c in a)if(n=a[c],s=l[c],a.hasOwnProperty(c)&&(n!=null||s!=null))switch(c){case"value":T=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==s&&Te(e,t,c,n,a,s)}Xr(e,T,_);return;case"option":for(var F in l)if(T=l[F],l.hasOwnProperty(F)&&T!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Te(e,t,F,null,a,T)}for(p in a)if(T=a[p],_=l[p],a.hasOwnProperty(p)&&T!==_&&(T!=null||_!=null))switch(p){case"selected":e.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:Te(e,t,p,T,a,_)}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 ae in l)T=l[ae],l.hasOwnProperty(ae)&&T!=null&&!a.hasOwnProperty(ae)&&Te(e,t,ae,null,a,T);for(C in a)if(T=a[C],_=l[C],a.hasOwnProperty(C)&&T!==_&&(T!=null||_!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:Te(e,t,C,T,a,_)}return;default:if(qi(t)){for(var _e in l)T=l[_e],l.hasOwnProperty(_e)&&T!==void 0&&!a.hasOwnProperty(_e)&&wc(e,t,_e,void 0,a,T);for(A in a)T=a[A],_=l[A],!a.hasOwnProperty(A)||T===_||T===void 0&&_===void 0||wc(e,t,A,T,a,_);return}}for(var E in l)T=l[E],l.hasOwnProperty(E)&&T!=null&&!a.hasOwnProperty(E)&&Te(e,t,E,null,a,T);for(B in a)T=a[B],_=l[B],!a.hasOwnProperty(B)||T===_||T==null&&_==null||Te(e,t,B,T,a,_)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zx(){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],s=n.transferSize,c=n.initiatorType,d=n.duration;if(s&&d&&$d(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],C=p.startTime;if(C>d)break;var A=p.transferSize,B=p.initiatorType;A&&$d(B)&&(p=p.responseEnd,c+=A*(p<d?1:(d-C)/(p-C)))}if(--a,t+=8*(s+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Cc=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function Fd(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 Wd(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 Tc(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 _c=null;function Mx(){var e=window.event;return e&&e.type==="popstate"?e===_c?!1:(_c=e,!0):(_c=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,Ax=typeof clearTimeout=="function"?clearTimeout:void 0,Pd=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof Pd<"u"?function(e){return Pd.resolve(null).then(e).catch(Ox)}:Id;function Ox(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function e0(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Va(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Hn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Hn(l);for(var s=l.firstChild;s;){var c=s.nextSibling,d=s.nodeName;s[Pa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=c}}else l==="body"&&Hn(e.ownerDocument.body);l=n}while(l);Va(t)}function t0(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 zc(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":zc(l),Ui(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ux(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Pa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ot(e.nextSibling),e===null)break}return null}function Hx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ot(e.nextSibling),e===null))return null;return e}function l0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ot(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$?"||e.data==="$~"}function Ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Bx(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 Ot(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 Dc=null;function a0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ot(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function n0(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 s0(e,t,l){switch(t=ti(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Hn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ui(e)}var Ut=new Map,i0=new Set;function li(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fl=V.d;V.d={f:Lx,r:qx,D:Yx,C:Gx,L:kx,m:Xx,X:Zx,S:Qx,M:Vx};function Lx(){var e=fl.f(),t=Ks();return e||t}function qx(e){var t=fa(e);t!==null&&t.tag===5&&t.type==="form"?Sf(t):fl.r(e)}var Xa=typeof document>"u"?null:document;function u0(e,t,l){var a=Xa;if(a&&typeof t=="string"&&t){var n=Ct(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),i0.has(n)||(i0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),lt(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Yx(e){fl.D(e),u0("dns-prefetch",e,null)}function Gx(e,t){fl.C(e,t),u0("preconnect",e,t)}function kx(e,t,l){fl.L(e,t,l);var a=Xa;if(a&&e&&t){var n='link[rel="preload"][as="'+Ct(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ct(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ct(l.imageSizes)+'"]')):n+='[href="'+Ct(e)+'"]';var s=n;switch(t){case"style":s=Qa(e);break;case"script":s=Za(e)}Ut.has(s)||(e=S({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Bn(s))||t==="script"&&a.querySelector(Ln(s))||(t=a.createElement("link"),lt(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Xx(e,t){fl.m(e,t);var l=Xa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ct(a)+'"][href="'+Ct(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Za(e)}if(!Ut.has(s)&&(e=S({rel:"modulepreload",href:e},t),Ut.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ln(s)))return}a=l.createElement("link"),lt(a,"link",e),Fe(a),l.head.appendChild(a)}}}function Qx(e,t,l){fl.S(e,t,l);var a=Xa;if(a&&e){var n=da(a).hoistableStyles,s=Qa(e);t=t||"default";var c=n.get(s);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Bn(s)))d.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(s))&&Oc(e,l);var p=c=a.createElement("link");Fe(p),lt(p,"link",e),p._p=new Promise(function(C,A){p.onload=C,p.onerror=A}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,ai(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(s,c)}}}function Zx(e,t){fl.X(e,t);var l=Xa;if(l&&e){var a=da(l).hoistableScripts,n=Za(e),s=a.get(n);s||(s=l.querySelector(Ln(n)),s||(e=S({src:e,async:!0},t),(t=Ut.get(n))&&Uc(e,t),s=l.createElement("script"),Fe(s),lt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function Vx(e,t){fl.M(e,t);var l=Xa;if(l&&e){var a=da(l).hoistableScripts,n=Za(e),s=a.get(n);s||(s=l.querySelector(Ln(n)),s||(e=S({src:e,async:!0,type:"module"},t),(t=Ut.get(n))&&Uc(e,t),s=l.createElement("script"),Fe(s),lt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function c0(e,t,l,a){var n=(n=fe.current)?li(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Qa(l.href),l=da(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Qa(l.href);var s=da(n).hoistableStyles,c=s.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,c),(s=n.querySelector(Bn(e)))&&!s._p&&(c.instance=s,c.state.loading=5),Ut.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},Ut.set(e,l),s||Kx(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Za(l),l=da(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Qa(e){return'href="'+Ct(e)+'"'}function Bn(e){return'link[rel="stylesheet"]['+e+"]"}function r0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Kx(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}),lt(t,"link",l),Fe(t),e.head.appendChild(t))}function Za(e){return'[src="'+Ct(e)+'"]'}function Ln(e){return"script[async]"+e}function o0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ct(l.href)+'"]');if(a)return t.instance=a,Fe(a),a;var n=S({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),lt(a,"style",n),ai(a,l.precedence,e),t.instance=a;case"stylesheet":n=Qa(l.href);var s=e.querySelector(Bn(n));if(s)return t.state.loading|=4,t.instance=s,Fe(s),s;a=r0(l),(n=Ut.get(n))&&Oc(a,n),s=(e.ownerDocument||e).createElement("link"),Fe(s);var c=s;return c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),lt(s,"link",a),t.state.loading|=4,ai(s,l.precedence,e),t.instance=s;case"script":return s=Za(l.src),(n=e.querySelector(Ln(s)))?(t.instance=n,Fe(n),n):(a=l,(n=Ut.get(s))&&(a=S({},l),Uc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Fe(n),lt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ai(a,l.precedence,e));return t.instance}function ai(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)s=d;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uc(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 f0(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 s=l[n];if(!(s[Pa]||s[Ie]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var c=s.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(s):a.set(c,[s])}}return a}function d0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Jx(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 m0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $x(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Qa(a.href),s=t.querySelector(Bn(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=si.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Fe(s);return}s=t.ownerDocument||t,a=r0(a),(n=Ut.get(n))&&Oc(a,n),s=s.createElement("link"),Fe(s);var c=s;c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),lt(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=si.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Hc=0;function Fx(e,t){return e.stylesheets&&e.count===0&&ui(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Hc===0&&(Hc=62500*zx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Hc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function si(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ii=null;function ui(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ii=new Map,t.forEach(Wx,e),ii=null,si.call(e))}function Wx(e,t){if(!(t.state.loading&4)){var l=ii.get(e);if(l)var a=l.get(null);else{l=new Map,ii.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var c=n[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),s=l.get(c)||a,s===a&&l.set(null,n),l.set(c,n),this.count++,a=si.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var qn={$$typeof:q,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Ix(e,t,l,a,n,s,c,d,p){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=Mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.hiddenUpdates=Mi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function h0(e,t,l,a,n,s,c,d,p,C,A,B){return e=new Ix(e,t,l,c,p,C,A,B,d),t=1,s===!0&&(t|=24),s=yt(3,null,null,t),e.current=s,s.stateNode=e,t=xu(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},yu(s),e}function x0(e){return e?(e=Na,e):Na}function v0(e,t,l,a,n,s){n=x0(n),a.context===null?a.context=n:a.pendingContext=n,a=Nl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=Sl(e,a,t),l!==null&&(dt(l,e,t),gn(l,e,t))}function g0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Bc(e,t){g0(e,t),(e=e.alternate)&&g0(e,t)}function p0(e){if(e.tag===13||e.tag===31){var t=Jl(e,67108864);t!==null&&dt(t,e,67108864),Bc(e,67108864)}}function y0(e){if(e.tag===13||e.tag===31){var t=Et();t=Ai(t);var l=Jl(e,t);l!==null&&dt(l,e,t),Bc(e,t)}}var ci=!0;function Px(e,t,l,a){var n=D.T;D.T=null;var s=V.p;try{V.p=2,Lc(e,t,l,a)}finally{V.p=s,D.T=n}}function ev(e,t,l,a){var n=D.T;D.T=null;var s=V.p;try{V.p=8,Lc(e,t,l,a)}finally{V.p=s,D.T=n}}function Lc(e,t,l,a){if(ci){var n=qc(a);if(n===null)Ec(e,t,a,ri,l),j0(e,a);else if(lv(n,e,t,l,a))a.stopPropagation();else if(j0(e,a),t&4&&-1<tv.indexOf(e)){for(;n!==null;){var s=fa(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=Xl(s.pendingLanes);if(c!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var p=1<<31-gt(c);d.entanglements[1]|=p,c&=~p}Qt(s),(Ne&6)===0&&(Zs=xt()+500,Dn(0))}}break;case 31:case 13:d=Jl(s,2),d!==null&&dt(d,s,2),Ks(),Bc(s,2)}if(s=qc(a),s===null&&Ec(e,t,a,ri,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Ec(e,t,a,null,l)}}function qc(e){return e=Gi(e),Yc(e)}var ri=null;function Yc(e){if(ri=null,e=oa(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 ri=e,null}function b0(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(Ym()){case Rr:return 2;case Cr:return 8;case In:case Gm:return 32;case Tr:return 268435456;default:return 32}default:return 32}}var Gc=!1,Ol=null,Ul=null,Hl=null,Yn=new Map,Gn=new Map,Bl=[],tv="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 j0(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":Yn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gn.delete(t.pointerId)}}function kn(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=fa(t),t!==null&&p0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function lv(e,t,l,a,n){switch(t){case"focusin":return Ol=kn(Ol,e,t,l,a,n),!0;case"dragenter":return Ul=kn(Ul,e,t,l,a,n),!0;case"mouseover":return Hl=kn(Hl,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return Yn.set(s,kn(Yn.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Gn.set(s,kn(Gn.get(s)||null,e,t,l,a,n)),!0}return!1}function N0(e){var t=oa(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,Or(e.priority,function(){y0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Or(e.priority,function(){y0(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 oi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=qc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Yi=a,l.target.dispatchEvent(a),Yi=null}else return t=fa(l),t!==null&&p0(t),e.blockedOn=l,!1;t.shift()}return!0}function S0(e,t,l){oi(e)&&l.delete(t)}function av(){Gc=!1,Ol!==null&&oi(Ol)&&(Ol=null),Ul!==null&&oi(Ul)&&(Ul=null),Hl!==null&&oi(Hl)&&(Hl=null),Yn.forEach(S0),Gn.forEach(S0)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Gc||(Gc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,av)))}var di=null;function E0(e){di!==e&&(di=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){di===e&&(di=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(Yc(a||l)===null)continue;break}var s=fa(l);s!==null&&(e.splice(t,3),t-=3,qu(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Va(e){function t(p){return fi(p,e)}Ol!==null&&fi(Ol,e),Ul!==null&&fi(Ul,e),Hl!==null&&fi(Hl,e),Yn.forEach(t),Gn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)N0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],c=n[it]||null;if(typeof s=="function")c||E0(l);else if(c){var d=null;if(s&&s.hasAttribute("formAction")){if(n=s,c=s[it]||null)d=c.formAction;else if(Yc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),E0(l)}}}function w0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 kc(e){this._internalRoot=e}mi.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Et();v0(l,a,e,t,null,null)},mi.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;v0(e.current,2,null,e,null,null),Ks(),t[ra]=null}};function mi(e){this._internalRoot=e}mi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&N0(e)}};var R0=o.version;if(R0!=="19.2.4")throw Error(r(527,R0,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=x(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var nv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hi.isDisabled&&hi.supportsFiber)try{Fa=hi.inject(nv),vt=hi}catch{}}return Qn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=Df,s=Of,c=Uf;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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=h0(e,1,!1,null,null,l,a,null,n,s,c,w0),e[ra]=t.current,Sc(e),new kc(t)},Qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",s=Df,c=Of,d=Uf,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=h0(e,1,!0,t,l??null,a,n,p,s,c,d,w0),t.context=x0(null),l=t.current,a=Et(),a=Ai(a),n=Nl(a),n.callback=null,Sl(l,n,a),l=a,t.current.lanes=l,Ia(t,l),Qt(t),e[ra]=t.current,Sc(e),new mi(t)},Qn.version="19.2.4",Qn}var H0;function mv(){if(H0)return Zc.exports;H0=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),Zc.exports=dv(),Zc.exports}var hv=mv();const xv=ur(hv);/**
50
- * react-router v7.13.0
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var B0="popstate";function vv(u={}){function o(m,h){let{pathname:v="/",search:y="",hash:g=""}=ca(m.location.hash.substring(1));return!v.startsWith("/")&&!v.startsWith(".")&&(v="/"+v),ar("",{pathname:v,search:y,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(m,h){let v=m.document.querySelector("base"),y="";if(v&&v.getAttribute("href")){let g=m.location.href,x=g.indexOf("#");y=x===-1?g:g.slice(0,x)}return y+"#"+(typeof h=="string"?h:Vn(h))}function r(m,h){Bt(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return pv(o,f,r,u)}function Be(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Bt(u,o){if(!u){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function gv(){return Math.random().toString(36).substring(2,10)}function L0(u,o){return{usr:u.state,key:u.key,idx:o}}function ar(u,o,f=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof o=="string"?ca(o):o,state:f,key:o&&o.key||r||gv()}}function Vn({pathname:u="/",search:o="",hash:f=""}){return o&&o!=="?"&&(u+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(u+=f.charAt(0)==="#"?f:"#"+f),u}function ca(u){let o={};if(u){let f=u.indexOf("#");f>=0&&(o.hash=u.substring(f),u=u.substring(0,f));let r=u.indexOf("?");r>=0&&(o.search=u.substring(r),u=u.substring(0,r)),u&&(o.pathname=u)}return o}function pv(u,o,f,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,v=m.history,y="POP",g=null,x=w();x==null&&(x=0,v.replaceState({...v.state,idx:x},""));function w(){return(v.state||{idx:null}).idx}function S(){y="POP";let k=w(),G=k==null?null:k-x;x=k,g&&g({action:y,location:H.location,delta:G})}function z(k,G){y="PUSH";let Y=ar(H.location,k,G);f&&f(Y,k),x=w()+1;let q=L0(Y,x),Z=H.createHref(Y);try{v.pushState(q,"",Z)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;m.location.assign(Z)}h&&g&&g({action:y,location:H.location,delta:1})}function M(k,G){y="REPLACE";let Y=ar(H.location,k,G);f&&f(Y,k),x=w();let q=L0(Y,x),Z=H.createHref(Y);v.replaceState(q,"",Z),h&&g&&g({action:y,location:H.location,delta:0})}function Q(k){return yv(k)}let H={get action(){return y},get location(){return u(m,v)},listen(k){if(g)throw new Error("A history only accepts one active listener");return m.addEventListener(B0,S),g=k,()=>{m.removeEventListener(B0,S),g=null}},createHref(k){return o(m,k)},createURL:Q,encodeLocation(k){let G=Q(k);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:z,replace:M,go(k){return v.go(k)}};return H}function yv(u,o=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Be(f,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:Vn(u);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function em(u,o,f="/"){return bv(u,o,f,!1)}function bv(u,o,f,r){let m=typeof o=="string"?ca(o):o,h=ml(m.pathname||"/",f);if(h==null)return null;let v=tm(u);jv(v);let y=null;for(let g=0;y==null&&g<v.length;++g){let x=Av(h);y=zv(v[g],x,r)}return y}function tm(u,o=[],f=[],r="",m=!1){let h=(v,y,g=m,x)=>{let w={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:y,route:v};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(r)&&g)return;Be(w.relativePath.startsWith(r),`Absolute route path "${w.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(r.length)}let S=dl([r,w.relativePath]),z=f.concat(w);v.children&&v.children.length>0&&(Be(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),tm(v.children,o,z,S,g)),!(v.path==null&&!v.index)&&o.push({path:S,score:Tv(S,v.index),routesMeta:z})};return u.forEach((v,y)=>{var g;if(v.path===""||!((g=v.path)!=null&&g.includes("?")))h(v,y);else for(let x of lm(v.path))h(v,y,!0,x)}),o}function lm(u){let o=u.split("/");if(o.length===0)return[];let[f,...r]=o,m=f.endsWith("?"),h=f.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let v=lm(r.join("/")),y=[];return y.push(...v.map(g=>g===""?h:[h,g].join("/"))),m&&y.push(...v),y.map(g=>u.startsWith("/")&&g===""?"/":g)}function jv(u){u.sort((o,f)=>o.score!==f.score?f.score-o.score:_v(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var Nv=/^:[\w-]+$/,Sv=3,Ev=2,wv=1,Rv=10,Cv=-2,q0=u=>u==="*";function Tv(u,o){let f=u.split("/"),r=f.length;return f.some(q0)&&(r+=Cv),o&&(r+=Ev),f.filter(m=>!q0(m)).reduce((m,h)=>m+(Nv.test(h)?Sv:h===""?wv:Rv),r)}function _v(u,o){return u.length===o.length&&u.slice(0,-1).every((r,m)=>r===o[m])?u[u.length-1]-o[o.length-1]:0}function zv(u,o,f=!1){let{routesMeta:r}=u,m={},h="/",v=[];for(let y=0;y<r.length;++y){let g=r[y],x=y===r.length-1,w=h==="/"?o:o.slice(h.length)||"/",S=yi({path:g.relativePath,caseSensitive:g.caseSensitive,end:x},w),z=g.route;if(!S&&x&&f&&!r[r.length-1].route.index&&(S=yi({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},w)),!S)return null;Object.assign(m,S.params),v.push({params:m,pathname:dl([h,S.pathname]),pathnameBase:Hv(dl([h,S.pathnameBase])),route:z}),S.pathnameBase!=="/"&&(h=dl([h,S.pathnameBase]))}return v}function yi(u,o){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[f,r]=Mv(u.path,u.caseSensitive,u.end),m=o.match(f);if(!m)return null;let h=m[0],v=h.replace(/(.)\/+$/,"$1"),y=m.slice(1);return{params:r.reduce((x,{paramName:w,isOptional:S},z)=>{if(w==="*"){let Q=y[z]||"";v=h.slice(0,h.length-Q.length).replace(/(.)\/+$/,"$1")}const M=y[z];return S&&!M?x[w]=void 0:x[w]=(M||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:v,pattern:u}}function Mv(u,o=!1,f=!0){Bt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],m="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,y,g)=>(r.push({paramName:y,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),m+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":u!==""&&u!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,o?void 0:"i"),r]}function Av(u){try{return u.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Bt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),u}}function ml(u,o){if(o==="/")return u;if(!u.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,r=u.charAt(f);return r&&r!=="/"?null:u.slice(f)||"/"}var Dv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ov(u,o="/"){let{pathname:f,search:r="",hash:m=""}=typeof u=="string"?ca(u):u,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=Y0(f.substring(1),"/"):h=Y0(f,o)):h=o,{pathname:h,search:Bv(r),hash:Lv(m)}}function Y0(u,o){let f=o.replace(/\/+$/,"").split("/");return u.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function $c(u,o,f,r){return`Cannot include a '${u}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Uv(u){return u.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function rr(u){let o=Uv(u);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function or(u,o,f,r=!1){let m;typeof u=="string"?m=ca(u):(m={...u},Be(!m.pathname||!m.pathname.includes("?"),$c("?","pathname","search",m)),Be(!m.pathname||!m.pathname.includes("#"),$c("#","pathname","hash",m)),Be(!m.search||!m.search.includes("#"),$c("#","search","hash",m)));let h=u===""||m.pathname==="",v=h?"/":m.pathname,y;if(v==null)y=f;else{let S=o.length-1;if(!r&&v.startsWith("..")){let z=v.split("/");for(;z[0]==="..";)z.shift(),S-=1;m.pathname=z.join("/")}y=S>=0?o[S]:"/"}let g=Ov(m,y),x=v&&v!=="/"&&v.endsWith("/"),w=(h||v===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(x||w)&&(g.pathname+="/"),g}var dl=u=>u.join("/").replace(/\/\/+/g,"/"),Hv=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Bv=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Lv=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,qv=class{constructor(u,o,f,r=!1){this.status=u,this.statusText=o||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Yv(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Gv(u){return u.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var am=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function nm(u,o){let f=u;if(typeof f!="string"||!Dv.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(am)try{let h=new URL(window.location.href),v=f.startsWith("//")?new URL(h.protocol+f):new URL(f),y=ml(v.pathname,o);v.origin===h.origin&&y!=null?f=y+v.search+v.hash:m=!0}catch{Bt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sm=["POST","PUT","PATCH","DELETE"];new Set(sm);var kv=["GET",...sm];new Set(kv);var Ka=N.createContext(null);Ka.displayName="DataRouter";var Ni=N.createContext(null);Ni.displayName="DataRouterState";var Xv=N.createContext(!1),im=N.createContext({isTransitioning:!1});im.displayName="ViewTransition";var Qv=N.createContext(new Map);Qv.displayName="Fetchers";var Zv=N.createContext(null);Zv.displayName="Await";var wt=N.createContext(null);wt.displayName="Navigation";var Kn=N.createContext(null);Kn.displayName="Location";var Kt=N.createContext({outlet:null,matches:[],isDataRoute:!1});Kt.displayName="Route";var fr=N.createContext(null);fr.displayName="RouteError";var um="REACT_ROUTER_ERROR",Vv="REDIRECT",Kv="ROUTE_ERROR_RESPONSE";function Jv(u){if(u.startsWith(`${um}:${Vv}:{`))try{let o=JSON.parse(u.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function $v(u){if(u.startsWith(`${um}:${Kv}:{`))try{let o=JSON.parse(u.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new qv(o.status,o.statusText,o.data)}catch{}}function Fv(u,{relative:o}={}){Be(Ja(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=N.useContext(wt),{hash:m,pathname:h,search:v}=Jn(u,{relative:o}),y=h;return f!=="/"&&(y=h==="/"?f:dl([f,h])),r.createHref({pathname:y,search:v,hash:m})}function Ja(){return N.useContext(Kn)!=null}function Gl(){return Be(Ja(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Kn).location}var cm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rm(u){N.useContext(wt).static||N.useLayoutEffect(u)}function dr(){let{isDataRoute:u}=N.useContext(Kt);return u?rg():Wv()}function Wv(){Be(Ja(),"useNavigate() may be used only in the context of a <Router> component.");let u=N.useContext(Ka),{basename:o,navigator:f}=N.useContext(wt),{matches:r}=N.useContext(Kt),{pathname:m}=Gl(),h=JSON.stringify(rr(r)),v=N.useRef(!1);return rm(()=>{v.current=!0}),N.useCallback((g,x={})=>{if(Bt(v.current,cm),!v.current)return;if(typeof g=="number"){f.go(g);return}let w=or(g,JSON.parse(h),m,x.relative==="path");u==null&&o!=="/"&&(w.pathname=w.pathname==="/"?o:dl([o,w.pathname])),(x.replace?f.replace:f.push)(w,x.state,x)},[o,f,h,m,u])}N.createContext(null);function Jn(u,{relative:o}={}){let{matches:f}=N.useContext(Kt),{pathname:r}=Gl(),m=JSON.stringify(rr(f));return N.useMemo(()=>or(u,JSON.parse(m),r,o==="path"),[u,m,r,o])}function Iv(u,o){return om(u,o)}function om(u,o,f,r,m){var Y;Be(Ja(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=N.useContext(wt),{matches:v}=N.useContext(Kt),y=v[v.length-1],g=y?y.params:{},x=y?y.pathname:"/",w=y?y.pathnameBase:"/",S=y&&y.route;{let q=S&&S.path||"";dm(x,!S||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let z=Gl(),M;if(o){let q=typeof o=="string"?ca(o):o;Be(w==="/"||((Y=q.pathname)==null?void 0:Y.startsWith(w)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${w}" but pathname "${q.pathname}" was given in the \`location\` prop.`),M=q}else M=z;let Q=M.pathname||"/",H=Q;if(w!=="/"){let q=w.replace(/^\//,"").split("/");H="/"+Q.replace(/^\//,"").split("/").slice(q.length).join("/")}let k=em(u,{pathname:H});Bt(S||k!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Bt(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=ag(k&&k.map(q=>Object.assign({},q,{params:Object.assign({},g,q.params),pathname:dl([w,h.encodeLocation?h.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?w:dl([w,h.encodeLocation?h.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),v,f,r,m);return o&&G?N.createElement(Kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},G):G}function Pv(){let u=cg(),o=Yv(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),f=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",u),v=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:h},"ErrorBoundary")," or"," ",N.createElement("code",{style:h},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},o),f?N.createElement("pre",{style:m},f):null,v)}var eg=N.createElement(Pv,null),fm=class extends N.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,o){return o.location!==u.location||o.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:o.error,location:o.location,revalidation:u.revalidation||o.revalidation}}componentDidCatch(u,o){this.props.onError?this.props.onError(u,o):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const f=$v(u.digest);f&&(u=f)}let o=u!==void 0?N.createElement(Kt.Provider,{value:this.props.routeContext},N.createElement(fr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?N.createElement(tg,{error:u},o):o}};fm.contextType=Xv;var Fc=new WeakMap;function tg({children:u,error:o}){let{basename:f}=N.useContext(wt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=Jv(o.digest);if(r){let m=Fc.get(o);if(m)throw m;let h=nm(r.location,f);if(am&&!Fc.get(o))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw Fc.set(o,v),v}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return u}function lg({routeContext:u,match:o,children:f}){let r=N.useContext(Ka);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),N.createElement(Kt.Provider,{value:u},f)}function ag(u,o=[],f=null,r=null,m=null){if(u==null){if(!f)return null;if(f.errors)u=f.matches;else if(o.length===0&&!f.initialized&&f.matches.length>0)u=f.matches;else return null}let h=u,v=f==null?void 0:f.errors;if(v!=null){let w=h.findIndex(S=>S.route.id&&(v==null?void 0:v[S.route.id])!==void 0);Be(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),h=h.slice(0,Math.min(h.length,w+1))}let y=!1,g=-1;if(f)for(let w=0;w<h.length;w++){let S=h[w];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(g=w),S.route.id){let{loaderData:z,errors:M}=f,Q=S.route.loader&&!z.hasOwnProperty(S.route.id)&&(!M||M[S.route.id]===void 0);if(S.route.lazy||Q){y=!0,g>=0?h=h.slice(0,g+1):h=[h[0]];break}}}let x=f&&r?(w,S)=>{var z,M;r(w,{location:f.location,params:((M=(z=f.matches)==null?void 0:z[0])==null?void 0:M.params)??{},unstable_pattern:Gv(f.matches),errorInfo:S})}:void 0;return h.reduceRight((w,S,z)=>{let M,Q=!1,H=null,k=null;f&&(M=v&&S.route.id?v[S.route.id]:void 0,H=S.route.errorElement||eg,y&&(g<0&&z===0?(dm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Q=!0,k=null):g===z&&(Q=!0,k=S.route.hydrateFallbackElement||null)));let G=o.concat(h.slice(0,z+1)),Y=()=>{let q;return M?q=H:Q?q=k:S.route.Component?q=N.createElement(S.route.Component,null):S.route.element?q=S.route.element:q=w,N.createElement(lg,{match:S,routeContext:{outlet:w,matches:G,isDataRoute:f!=null},children:q})};return f&&(S.route.ErrorBoundary||S.route.errorElement||z===0)?N.createElement(fm,{location:f.location,revalidation:f.revalidation,component:H,error:M,children:Y(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:x}):Y()},null)}function mr(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ng(u){let o=N.useContext(Ka);return Be(o,mr(u)),o}function sg(u){let o=N.useContext(Ni);return Be(o,mr(u)),o}function ig(u){let o=N.useContext(Kt);return Be(o,mr(u)),o}function hr(u){let o=ig(u),f=o.matches[o.matches.length-1];return Be(f.route.id,`${u} can only be used on routes that contain a unique "id"`),f.route.id}function ug(){return hr("useRouteId")}function cg(){var r;let u=N.useContext(fr),o=sg("useRouteError"),f=hr("useRouteError");return u!==void 0?u:(r=o.errors)==null?void 0:r[f]}function rg(){let{router:u}=ng("useNavigate"),o=hr("useNavigate"),f=N.useRef(!1);return rm(()=>{f.current=!0}),N.useCallback(async(m,h={})=>{Bt(f.current,cm),f.current&&(typeof m=="number"?await u.navigate(m):await u.navigate(m,{fromRouteId:o,...h}))},[u,o])}var G0={};function dm(u,o,f){!o&&!G0[u]&&(G0[u]=!0,Bt(!1,f))}N.memo(og);function og({routes:u,future:o,state:f,onError:r}){return om(u,void 0,f,r,o)}function fg({to:u,replace:o,state:f,relative:r}){Be(Ja(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=N.useContext(wt);Bt(!m,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=N.useContext(Kt),{pathname:v}=Gl(),y=dr(),g=or(u,rr(h),v,r==="path"),x=JSON.stringify(g);return N.useEffect(()=>{y(JSON.parse(x),{replace:o,state:f,relative:r})},[y,x,r,o,f]),null}function Zt(u){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function dg({basename:u="/",children:o=null,location:f,navigationType:r="POP",navigator:m,static:h=!1,unstable_useTransitions:v}){Be(!Ja(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=u.replace(/^\/*/,"/"),g=N.useMemo(()=>({basename:y,navigator:m,static:h,unstable_useTransitions:v,future:{}}),[y,m,h,v]);typeof f=="string"&&(f=ca(f));let{pathname:x="/",search:w="",hash:S="",state:z=null,key:M="default"}=f,Q=N.useMemo(()=>{let H=ml(x,y);return H==null?null:{location:{pathname:H,search:w,hash:S,state:z,key:M},navigationType:r}},[y,x,w,S,z,M,r]);return Bt(Q!=null,`<Router basename="${y}"> is not able to match the URL "${x}${w}${S}" because it does not start with the basename, so the <Router> won't render anything.`),Q==null?null:N.createElement(wt.Provider,{value:g},N.createElement(Kn.Provider,{children:o,value:Q}))}function mg({children:u,location:o}){return Iv(nr(u),o)}function nr(u,o=[]){let f=[];return N.Children.forEach(u,(r,m)=>{if(!N.isValidElement(r))return;let h=[...o,m];if(r.type===N.Fragment){f.push.apply(f,nr(r.props.children,h));return}Be(r.type===Zt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||h.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(v.children=nr(r.props.children,h)),f.push(v)}),f}var gi="get",pi="application/x-www-form-urlencoded";function Si(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function hg(u){return Si(u)&&u.tagName.toLowerCase()==="button"}function xg(u){return Si(u)&&u.tagName.toLowerCase()==="form"}function vg(u){return Si(u)&&u.tagName.toLowerCase()==="input"}function gg(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function pg(u,o){return u.button===0&&(!o||o==="_self")&&!gg(u)}var xi=null;function yg(){if(xi===null)try{new FormData(document.createElement("form"),0),xi=!1}catch{xi=!0}return xi}var bg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wc(u){return u!=null&&!bg.has(u)?(Bt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pi}"`),null):u}function jg(u,o){let f,r,m,h,v;if(xg(u)){let y=u.getAttribute("action");r=y?ml(y,o):null,f=u.getAttribute("method")||gi,m=Wc(u.getAttribute("enctype"))||pi,h=new FormData(u)}else if(hg(u)||vg(u)&&(u.type==="submit"||u.type==="image")){let y=u.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=u.getAttribute("formaction")||y.getAttribute("action");if(r=g?ml(g,o):null,f=u.getAttribute("formmethod")||y.getAttribute("method")||gi,m=Wc(u.getAttribute("formenctype"))||Wc(y.getAttribute("enctype"))||pi,h=new FormData(y,u),!yg()){let{name:x,type:w,value:S}=u;if(w==="image"){let z=x?`${x}.`:"";h.append(`${z}x`,"0"),h.append(`${z}y`,"0")}else x&&h.append(x,S)}}else{if(Si(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=gi,r=null,m=pi,v=u}return h&&m==="text/plain"&&(v=h,h=void 0),{action:r,method:f.toLowerCase(),encType:m,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xr(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Ng(u,o,f,r){let m=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:o&&ml(m.pathname,o)==="/"?m.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Sg(u,o){if(u.id in o)return o[u.id];try{let f=await import(u.module);return o[u.id]=f,f}catch(f){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Eg(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function wg(u,o,f){let r=await Promise.all(u.map(async m=>{let h=o.routes[m.route.id];if(h){let v=await Sg(h,f);return v.links?v.links():[]}return[]}));return _g(r.flat(1).filter(Eg).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function k0(u,o,f,r,m,h){let v=(g,x)=>f[x]?g.route.id!==f[x].route.id:!0,y=(g,x)=>{var w;return f[x].pathname!==g.pathname||((w=f[x].route.path)==null?void 0:w.endsWith("*"))&&f[x].params["*"]!==g.params["*"]};return h==="assets"?o.filter((g,x)=>v(g,x)||y(g,x)):h==="data"?o.filter((g,x)=>{var S;let w=r.routes[g.route.id];if(!w||!w.hasLoader)return!1;if(v(g,x)||y(g,x))return!0;if(g.route.shouldRevalidate){let z=g.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((S=f[0])==null?void 0:S.params)||{},nextUrl:new URL(u,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function Rg(u,o,{includeHydrateFallback:f}={}){return Cg(u.map(r=>{let m=o.routes[r.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function Cg(u){return[...new Set(u)]}function Tg(u){let o={},f=Object.keys(u).sort();for(let r of f)o[r]=u[r];return o}function _g(u,o){let f=new Set;return new Set(o),u.reduce((r,m)=>{let h=JSON.stringify(Tg(m));return f.has(h)||(f.add(h),r.push({key:h,link:m})),r},[])}function mm(){let u=N.useContext(Ka);return xr(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function zg(){let u=N.useContext(Ni);return xr(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var vr=N.createContext(void 0);vr.displayName="FrameworkContext";function hm(){let u=N.useContext(vr);return xr(u,"You must render this element inside a <HydratedRouter> element"),u}function Mg(u,o){let f=N.useContext(vr),[r,m]=N.useState(!1),[h,v]=N.useState(!1),{onFocus:y,onBlur:g,onMouseEnter:x,onMouseLeave:w,onTouchStart:S}=o,z=N.useRef(null);N.useEffect(()=>{if(u==="render"&&v(!0),u==="viewport"){let H=G=>{G.forEach(Y=>{v(Y.isIntersecting)})},k=new IntersectionObserver(H,{threshold:.5});return z.current&&k.observe(z.current),()=>{k.disconnect()}}},[u]),N.useEffect(()=>{if(r){let H=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(H)}}},[r]);let M=()=>{m(!0)},Q=()=>{m(!1),v(!1)};return f?u!=="intent"?[h,z,{}]:[h,z,{onFocus:Zn(y,M),onBlur:Zn(g,Q),onMouseEnter:Zn(x,M),onMouseLeave:Zn(w,Q),onTouchStart:Zn(S,M)}]:[!1,z,{}]}function Zn(u,o){return f=>{u&&u(f),f.defaultPrevented||o(f)}}function Ag({page:u,...o}){let{router:f}=mm(),r=N.useMemo(()=>em(f.routes,u,f.basename),[f.routes,u,f.basename]);return r?N.createElement(Og,{page:u,matches:r,...o}):null}function Dg(u){let{manifest:o,routeModules:f}=hm(),[r,m]=N.useState([]);return N.useEffect(()=>{let h=!1;return wg(u,o,f).then(v=>{h||m(v)}),()=>{h=!0}},[u,o,f]),r}function Og({page:u,matches:o,...f}){let r=Gl(),{future:m,manifest:h,routeModules:v}=hm(),{basename:y}=mm(),{loaderData:g,matches:x}=zg(),w=N.useMemo(()=>k0(u,o,x,h,r,"data"),[u,o,x,h,r]),S=N.useMemo(()=>k0(u,o,x,h,r,"assets"),[u,o,x,h,r]),z=N.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let H=new Set,k=!1;if(o.forEach(Y=>{var Z;let q=h.routes[Y.route.id];!q||!q.hasLoader||(!w.some(ne=>ne.route.id===Y.route.id)&&Y.route.id in g&&((Z=v[Y.route.id])!=null&&Z.shouldRevalidate)||q.hasClientLoader?k=!0:H.add(Y.route.id))}),H.size===0)return[];let G=Ng(u,y,m.unstable_trailingSlashAwareDataRequests,"data");return k&&H.size>0&&G.searchParams.set("_routes",o.filter(Y=>H.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[G.pathname+G.search]},[y,m.unstable_trailingSlashAwareDataRequests,g,r,h,w,o,u,v]),M=N.useMemo(()=>Rg(S,h),[S,h]),Q=Dg(S);return N.createElement(N.Fragment,null,z.map(H=>N.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...f})),M.map(H=>N.createElement("link",{key:H,rel:"modulepreload",href:H,...f})),Q.map(({key:H,link:k})=>N.createElement("link",{key:H,nonce:f.nonce,...k,crossOrigin:k.crossOrigin??f.crossOrigin})))}function Ug(...u){return o=>{u.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Hg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hg&&(window.__reactRouterVersion="7.13.0")}catch{}function Bg({basename:u,children:o,unstable_useTransitions:f,window:r}){let m=N.useRef();m.current==null&&(m.current=vv({window:r,v5Compat:!0}));let h=m.current,[v,y]=N.useState({action:h.action,location:h.location}),g=N.useCallback(x=>{f===!1?y(x):N.startTransition(()=>y(x))},[f]);return N.useLayoutEffect(()=>h.listen(g),[h,g]),N.createElement(dg,{basename:u,children:o,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:f})}var xm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vm=N.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:h,replace:v,state:y,target:g,to:x,preventScrollReset:w,viewTransition:S,unstable_defaultShouldRevalidate:z,...M},Q){let{basename:H,unstable_useTransitions:k}=N.useContext(wt),G=typeof x=="string"&&xm.test(x),Y=nm(x,H);x=Y.to;let q=Fv(x,{relative:m}),[Z,ne,P]=Mg(r,M),J=Yg(x,{replace:v,state:y,target:g,preventScrollReset:w,relative:m,viewTransition:S,unstable_defaultShouldRevalidate:z,unstable_useTransitions:k});function X(ge){o&&o(ge),ge.defaultPrevented||J(ge)}let le=N.createElement("a",{...M,...P,href:Y.absoluteURL||q,onClick:Y.isExternal||h?o:X,ref:Ug(Q,ne),target:g,"data-discover":!G&&f==="render"?"true":void 0});return Z&&!G?N.createElement(N.Fragment,null,le,N.createElement(Ag,{page:q})):le});vm.displayName="Link";var gm=N.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:h,to:v,viewTransition:y,children:g,...x},w){let S=Jn(v,{relative:x.relative}),z=Gl(),M=N.useContext(Ni),{navigator:Q,basename:H}=N.useContext(wt),k=M!=null&&Zg(S)&&y===!0,G=Q.encodeLocation?Q.encodeLocation(S).pathname:S.pathname,Y=z.pathname,q=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;f||(Y=Y.toLowerCase(),q=q?q.toLowerCase():null,G=G.toLowerCase()),q&&H&&(q=ml(q,H)||q);const Z=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ne=Y===G||!m&&Y.startsWith(G)&&Y.charAt(Z)==="/",P=q!=null&&(q===G||!m&&q.startsWith(G)&&q.charAt(G.length)==="/"),J={isActive:ne,isPending:P,isTransitioning:k},X=ne?o:void 0,le;typeof r=="function"?le=r(J):le=[r,ne?"active":null,P?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let ge=typeof h=="function"?h(J):h;return N.createElement(vm,{...x,"aria-current":X,className:le,ref:w,style:ge,to:v,viewTransition:y},typeof g=="function"?g(J):g)});gm.displayName="NavLink";var Lg=N.forwardRef(({discover:u="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:h,method:v=gi,action:y,onSubmit:g,relative:x,preventScrollReset:w,viewTransition:S,unstable_defaultShouldRevalidate:z,...M},Q)=>{let{unstable_useTransitions:H}=N.useContext(wt),k=Xg(),G=Qg(y,{relative:x}),Y=v.toLowerCase()==="get"?"get":"post",q=typeof y=="string"&&xm.test(y),Z=ne=>{if(g&&g(ne),ne.defaultPrevented)return;ne.preventDefault();let P=ne.nativeEvent.submitter,J=(P==null?void 0:P.getAttribute("formmethod"))||v,X=()=>k(P||ne.currentTarget,{fetcherKey:o,method:J,navigate:f,replace:m,state:h,relative:x,preventScrollReset:w,viewTransition:S,unstable_defaultShouldRevalidate:z});H&&f!==!1?N.startTransition(()=>X()):X()};return N.createElement("form",{ref:Q,method:Y,action:G,onSubmit:r?g:Z,...M,"data-discover":!q&&u==="render"?"true":void 0})});Lg.displayName="Form";function qg(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pm(u){let o=N.useContext(Ka);return Be(o,qg(u)),o}function Yg(u,{target:o,replace:f,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:y,unstable_useTransitions:g}={}){let x=dr(),w=Gl(),S=Jn(u,{relative:h});return N.useCallback(z=>{if(pg(z,o)){z.preventDefault();let M=f!==void 0?f:Vn(w)===Vn(S),Q=()=>x(u,{replace:M,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:y});g?N.startTransition(()=>Q()):Q()}},[w,x,S,f,r,o,u,m,h,v,y,g])}var Gg=0,kg=()=>`__${String(++Gg)}__`;function Xg(){let{router:u}=pm("useSubmit"),{basename:o}=N.useContext(wt),f=ug(),r=u.fetch,m=u.navigate;return N.useCallback(async(h,v={})=>{let{action:y,method:g,encType:x,formData:w,body:S}=jg(h,o);if(v.navigate===!1){let z=v.fetcherKey||kg();await r(z,f,v.action||y,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:w,body:S,formMethod:v.method||g,formEncType:v.encType||x,flushSync:v.flushSync})}else await m(v.action||y,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:w,body:S,formMethod:v.method||g,formEncType:v.encType||x,replace:v.replace,state:v.state,fromRouteId:f,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,m,o,f])}function Qg(u,{relative:o}={}){let{basename:f}=N.useContext(wt),r=N.useContext(Kt);Be(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...Jn(u||".",{relative:o})},v=Gl();if(u==null){h.search=v.search;let y=new URLSearchParams(h.search),g=y.getAll("index");if(g.some(w=>w==="")){y.delete("index"),g.filter(S=>S).forEach(S=>y.append("index",S));let w=y.toString();h.search=w?`?${w}`:""}}return(!u||u===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:dl([f,h.pathname])),Vn(h)}function Zg(u,{relative:o}={}){let f=N.useContext(im);Be(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=pm("useViewTransitionState"),m=Jn(u,{relative:o});if(!f.isTransitioning)return!1;let h=ml(f.currentLocation.pathname,r)||f.currentLocation.pathname,v=ml(f.nextLocation.pathname,r)||f.nextLocation.pathname;return yi(m.pathname,v)!=null||yi(m.pathname,h)!=null}var Vg=P0();const Kg=ur(Vg);/**
61
- * @license lucide-react v0.564.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const ym=(...u)=>u.filter((o,f,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===f).join(" ").trim();/**
66
- * @license lucide-react v0.564.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const Jg=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
71
- * @license lucide-react v0.564.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const $g=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,f,r)=>r?r.toUpperCase():f.toLowerCase());/**
76
- * @license lucide-react v0.564.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const X0=u=>{const o=$g(u);return o.charAt(0).toUpperCase()+o.slice(1)};/**
81
- * @license lucide-react v0.564.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */var Fg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
86
- * @license lucide-react v0.564.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Wg=u=>{for(const o in u)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};/**
91
- * @license lucide-react v0.564.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const Ig=N.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:m="",children:h,iconNode:v,...y},g)=>N.createElement("svg",{ref:g,...Fg,width:o,height:o,stroke:u,strokeWidth:r?Number(f)*24/Number(o):f,className:ym("lucide",m),...!h&&!Wg(y)&&{"aria-hidden":"true"},...y},[...v.map(([x,w])=>N.createElement(x,w)),...Array.isArray(h)?h:[h]]));/**
96
- * @license lucide-react v0.564.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const ue=(u,o)=>{const f=N.forwardRef(({className:r,...m},h)=>N.createElement(Ig,{ref:h,iconNode:o,className:ym(`lucide-${Jg(X0(u))}`,`lucide-${u}`,r),...m}));return f.displayName=X0(u),f};/**
101
- * @license lucide-react v0.564.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const Pg=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],bm=ue("activity",Pg);/**
106
- * @license lucide-react v0.564.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const ep=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],tp=ue("arrow-down",ep);/**
111
- * @license lucide-react v0.564.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const lp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ic=ue("arrow-right",lp);/**
116
- * @license lucide-react v0.564.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const ap=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],np=ue("arrow-up-down",ap);/**
121
- * @license lucide-react v0.564.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const sp=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],ip=ue("arrow-up-narrow-wide",sp);/**
126
- * @license lucide-react v0.564.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const up=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],cp=ue("arrow-up",up);/**
131
- * @license lucide-react v0.564.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const rp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],op=ue("bell",rp);/**
136
- * @license lucide-react v0.564.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const fp=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Q0=ue("briefcase",fp);/**
141
- * @license lucide-react v0.564.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const dp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],bi=ue("calendar",dp);/**
146
- * @license lucide-react v0.564.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const mp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Pc=ue("check",mp);/**
151
- * @license lucide-react v0.564.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const hp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],jm=ue("chevron-down",hp);/**
156
- * @license lucide-react v0.564.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const xp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vp=ue("chevron-left",xp);/**
161
- * @license lucide-react v0.564.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const gp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pp=ue("chevron-right",gp);/**
166
- * @license lucide-react v0.564.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const yp=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],bp=ue("chevrons-up-down",yp);/**
171
- * @license lucide-react v0.564.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const jp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Vt=ue("circle-alert",jp);/**
176
- * @license lucide-react v0.564.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const Np=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],Z0=ue("circle-arrow-down",Np);/**
181
- * @license lucide-react v0.564.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const Sp=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],$n=ue("circle-check-big",Sp);/**
186
- * @license lucide-react v0.564.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const Ep=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wp=ue("circle-question-mark",Ep);/**
191
- * @license lucide-react v0.564.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const Rp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],sr=ue("circle-x",Rp);/**
196
- * @license lucide-react v0.564.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const Cp=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ji=ue("clock",Cp);/**
201
- * @license lucide-react v0.564.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const Tp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],_p=ue("ellipsis-vertical",Tp);/**
206
- * @license lucide-react v0.564.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const zp=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Nm=ue("external-link",zp);/**
211
- * @license lucide-react v0.564.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const Mp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Sm=ue("file-text",Mp);/**
216
- * @license lucide-react v0.564.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const Ap=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Dp=ue("git-pull-request",Ap);/**
221
- * @license lucide-react v0.564.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const Op=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Up=ue("house",Op);/**
226
- * @license lucide-react v0.564.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const Hp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Bp=ue("info",Hp);/**
231
- * @license lucide-react v0.564.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const Lp=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],qp=ue("kanban",Lp);/**
236
- * @license lucide-react v0.564.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const Yp=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Gp=ue("layout-grid",Yp);/**
241
- * @license lucide-react v0.564.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const kp=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],V0=ue("layout-list",kp);/**
246
- * @license lucide-react v0.564.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const Xp=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Em=ue("loader-circle",Xp);/**
251
- * @license lucide-react v0.564.0 - ISC
252
- *
253
- * This source code is licensed under the ISC license.
254
- * See the LICENSE file in the root directory of this source tree.
255
- */const Qp=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],wm=ue("map",Qp);/**
256
- * @license lucide-react v0.564.0 - ISC
257
- *
258
- * This source code is licensed under the ISC license.
259
- * See the LICENSE file in the root directory of this source tree.
260
- */const Zp=[["path",{d:"M5 12h14",key:"1ays0h"}]],Vp=ue("minus",Zp);/**
261
- * @license lucide-react v0.564.0 - ISC
262
- *
263
- * This source code is licensed under the ISC license.
264
- * See the LICENSE file in the root directory of this source tree.
265
- */const Kp=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Rm=ue("pause",Kp);/**
266
- * @license lucide-react v0.564.0 - ISC
267
- *
268
- * This source code is licensed under the ISC license.
269
- * See the LICENSE file in the root directory of this source tree.
270
- */const Jp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Fn=ue("play",Jp);/**
271
- * @license lucide-react v0.564.0 - ISC
272
- *
273
- * This source code is licensed under the ISC license.
274
- * See the LICENSE file in the root directory of this source tree.
275
- */const $p=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gr=ue("plus",$p);/**
276
- * @license lucide-react v0.564.0 - ISC
277
- *
278
- * This source code is licensed under the ISC license.
279
- * See the LICENSE file in the root directory of this source tree.
280
- */const Fp=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Cm=ue("rotate-ccw",Fp);/**
281
- * @license lucide-react v0.564.0 - ISC
282
- *
283
- * This source code is licensed under the ISC license.
284
- * See the LICENSE file in the root directory of this source tree.
285
- */const Wp=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Ip=ue("save",Wp);/**
286
- * @license lucide-react v0.564.0 - ISC
287
- *
288
- * This source code is licensed under the ISC license.
289
- * See the LICENSE file in the root directory of this source tree.
290
- */const Pp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pr=ue("search",Pp);/**
291
- * @license lucide-react v0.564.0 - ISC
292
- *
293
- * This source code is licensed under the ISC license.
294
- * See the LICENSE file in the root directory of this source tree.
295
- */const ey=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Tm=ue("settings",ey);/**
296
- * @license lucide-react v0.564.0 - ISC
297
- *
298
- * This source code is licensed under the ISC license.
299
- * See the LICENSE file in the root directory of this source tree.
300
- */const ty=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],ly=ue("square-pen",ty);/**
301
- * @license lucide-react v0.564.0 - ISC
302
- *
303
- * This source code is licensed under the ISC license.
304
- * See the LICENSE file in the root directory of this source tree.
305
- */const ay=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ny=ue("terminal",ay);/**
306
- * @license lucide-react v0.564.0 - ISC
307
- *
308
- * This source code is licensed under the ISC license.
309
- * See the LICENSE file in the root directory of this source tree.
310
- */const sy=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],iy=ue("triangle-alert",sy);/**
311
- * @license lucide-react v0.564.0 - ISC
312
- *
313
- * This source code is licensed under the ISC license.
314
- * See the LICENSE file in the root directory of this source tree.
315
- */const uy=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],cy=ue("wifi",uy);/**
316
- * @license lucide-react v0.564.0 - ISC
317
- *
318
- * This source code is licensed under the ISC license.
319
- * See the LICENSE file in the root directory of this source tree.
320
- */const ry=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ei=ue("x",ry),K0=u=>{let o;const f=new Set,r=(x,w)=>{const S=typeof x=="function"?x(o):x;if(!Object.is(S,o)){const z=o;o=w??(typeof S!="object"||S===null)?S:Object.assign({},o,S),f.forEach(M=>M(o,z))}},m=()=>o,y={setState:r,getState:m,getInitialState:()=>g,subscribe:x=>(f.add(x),()=>f.delete(x))},g=o=u(r,m,y);return y},oy=u=>u?K0(u):K0,fy=u=>u;function dy(u,o=fy){const f=Ht.useSyncExternalStore(u.subscribe,()=>o(u.getState()),()=>o(u.getInitialState()));return Ht.useDebugValue(f),f}const J0=u=>{const o=oy(u),f=r=>dy(o,r);return Object.assign(f,o),f},my=u=>u?J0(u):J0,hy="";let _m=!1,ir=null;function xy(u){_m=u}function vy(u){ir=u}function gy(u){return encodeURIComponent(u.replace(/\//g,"~"))}function Le(u){return _m&&ir?u.replace("/api/",`/api/projects/${gy(ir)}/`):u}function py(){return qe("/api/projects")}async function qe(u,o){const f=`${hy}${u}`,r=await fetch(f,{headers:{"Content-Type":"application/json",...o==null?void 0:o.headers},...o});if(!r.ok){const m=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(m.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function zm(){return qe(Le("/api/status"))}function yy(){return qe(Le("/api/prds"))}function by(){return qe(Le("/api/prs"))}function jy(u,o){const f=`?lines=${encodeURIComponent(o)}`;return qe(Le(`/api/logs/${encodeURIComponent(u)}${f}`))}function Mm(){return qe(Le("/api/config"))}function Am(u){return qe(Le("/api/config"),{method:"PUT",body:JSON.stringify(u)})}function Ny(){return qe(Le("/api/doctor"))}function Dm(){return qe(Le("/api/schedule-info"))}function Sy(u){return qe(Le("/api/actions/run"),{method:"POST",headers:u?{"Content-Type":"application/json"}:void 0,body:u?JSON.stringify({prdName:u}):void 0})}function Ey(){return qe(Le("/api/actions/review"),{method:"POST"})}function $0(){return qe(Le("/api/actions/install-cron"),{method:"POST"})}function wy(){return qe(Le("/api/actions/uninstall-cron"),{method:"POST"})}function Ry(u="all"){return qe(Le("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:u})})}function Cy(u){return qe(Le("/api/actions/retry"),{method:"POST",body:JSON.stringify({prdName:u})})}function Ty(){return qe(Le("/api/actions/clear-lock"),{method:"POST"})}const Yl=["Draft","Ready","In Progress","Review","Done"];function yr(){return qe(Le("/api/board/status"))}function _y(u){return qe(Le("/api/board/issues"),{method:"POST",body:JSON.stringify(u)})}function Om(u,o){return qe(Le(`/api/board/issues/${u}/move`),{method:"PATCH",body:JSON.stringify({column:o})})}function zy(u){return qe(Le(`/api/board/issues/${u}`),{method:"DELETE"})}function My(){return qe(Le("/api/roadmap"))}function Ay(){return qe(Le("/api/roadmap/scan"),{method:"POST"})}function Dy(u){return qe(Le("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:u})})}function mt(u,o=[],f){const r=(f==null?void 0:f.enabled)??!0,[m,h]=N.useState(null),[v,y]=N.useState(!0),[g,x]=N.useState(null),w=N.useRef(u);w.current=u;const S=N.useRef(()=>{(async()=>{x(null);try{const M=await w.current();h(M)}catch(M){x(M instanceof Error?M:new Error("Unknown error"))}})()});return S.current=S.current.bind(S),N.useEffect(()=>{if(!r)return;let z=!1;return y(!0),x(null),(async()=>{try{const Q=await w.current();z||h(Q)}catch(Q){z||x(Q instanceof Error?Q:new Error("Unknown error"))}finally{z||y(!1)}})(),()=>{z=!0}},[...o,r]),{data:m,loading:v,error:g,refetch:S.current}}function Um(u,o=[]){N.useEffect(()=>{const f=Le("/api/status/events"),r=new EventSource(f);return r.addEventListener("status_changed",m=>{try{const h=JSON.parse(m.data);u(h)}catch{}}),r.addEventListener("executor_started",m=>{try{const h=JSON.parse(m.data);console.log("Executor started with PID:",h.pid)}catch{}}),r.onerror=()=>{},()=>{r.close()}},o)}const Oy=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,ht=my(u=>({projectName:"Night Watch",setProjectName:o=>u({projectName:o}),toasts:[],addToast:o=>{const f=Math.random().toString(36).substring(7);u(r=>({toasts:[...r.toasts,{...o,id:f}]})),setTimeout(()=>{u(r=>({toasts:r.toasts.filter(m=>m.id!==f)}))},5e3)},removeToast:o=>u(f=>({toasts:f.toasts.filter(r=>r.id!==o)})),globalModeLoading:!0,setGlobalModeLoading:o=>u({globalModeLoading:o}),isGlobalMode:!1,setGlobalMode:o=>{xy(o),u({isGlobalMode:o})},projects:[],setProjects:o=>u({projects:o}),selectedProjectId:Oy,selectProject:o=>{vy(o),o?localStorage.setItem("nw-selected-project",o):localStorage.removeItem("nw-selected-project"),u(f=>{const r=f.projects.find(m=>m.name===o);return{selectedProjectId:o,...r?{projectName:r.name}:{}}})}})),Uy=()=>{const[u,o]=N.useState(!1),{projectName:f,isGlobalMode:r,projects:m,selectedProjectId:h,selectProject:v}=ht(),y=[{icon:Up,label:"Dashboard",path:"/"},{icon:qp,label:"Board",path:"/board"},{icon:Sm,label:"PRDs",path:"/prds",badge:3},{icon:Dp,label:"Pull Requests",path:"/prs",badge:1},{icon:wm,label:"Roadmap",path:"/roadmap"},{icon:bi,label:"Scheduling",path:"/scheduling"},{icon:ny,label:"Logs",path:"/logs"},{icon:Tm,label:"Settings",path:"/settings"}];return i.jsxs("aside",{className:`
321
- relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
322
- ${u?"w-20":"w-72"} h-screen flex-shrink-0 z-50
323
- bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
324
- `,children:[i.jsx("div",{className:`p-6 border-b border-white/5 ${u?"items-center justify-center flex":""}`,children:u?i.jsx("div",{className:"relative group",children:i.jsx("div",{className:"h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white font-bold cursor-pointer shadow-lg shadow-indigo-500/20 group-hover:bg-indigo-500 transition-colors bg-gradient-to-br from-indigo-500 to-indigo-700",title:"Switch Project",children:"NW"})}):i.jsxs("div",{className:"relative w-full",children:[i.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?i.jsxs("div",{className:"relative",children:[i.jsx(Q0,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),i.jsx("select",{value:h||"",onChange:g=>v(g.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:m.filter(g=>g.valid).map(g=>i.jsx("option",{value:g.name,children:g.name},g.name))}),i.jsx(bp,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):i.jsxs("div",{className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 px-3.5 text-sm font-medium shadow-sm flex items-center",children:[i.jsx(Q0,{className:"h-4 w-4 text-indigo-400 mr-3"}),i.jsx("span",{className:"truncate",children:f})]})]})}),i.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:i.jsx("ul",{className:"space-y-1.5 px-4",children:y.map(g=>i.jsx("li",{children:i.jsx(gm,{to:g.path,className:({isActive:x})=>`
325
- flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
326
- ${x?"bg-indigo-500/10 text-indigo-300 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.05)]":"text-slate-400 hover:bg-white/5 hover:text-slate-200"}
327
- ${u?"justify-center":""}
328
- `,children:({isActive:x})=>i.jsxs(i.Fragment,{children:[i.jsx(g.icon,{className:`h-5 w-5 transition-colors ${x?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${u?"":"mr-3.5"}`}),!u&&i.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:g.label}),g.badge&&(u?i.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):i.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${x?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:g.badge})),x&&!u&&i.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-indigo-500 rounded-r-full shadow-[0_0_10px_rgba(99,102,241,0.4)]"}),u&&i.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:g.label})]})})},g.path))})}),i.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:i.jsx("button",{onClick:()=>o(!u),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:u?i.jsx(pp,{className:"h-5 w-5"}):i.jsx(vp,{className:"h-5 w-5"})})})]})},Hy=()=>{const{projectName:u}=ht();return i.jsxs("header",{className:"h-20 flex items-center justify-between px-8 z-40 sticky top-0 bg-[#030712]/80 backdrop-blur-md border-b border-white/5",children:[i.jsxs("div",{className:"flex items-center space-x-6",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),i.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:u})]}),i.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),i.jsxs("div",{className:"flex items-center space-x-2 text-xs font-medium px-3 py-1.5 rounded-full border transition-colors bg-emerald-500/5 text-emerald-400 border-emerald-500/20 shadow-[0_0_10px_-4px_rgba(16,185,129,0.3)]",children:[i.jsx(cy,{className:"h-3.5 w-3.5"}),i.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),i.jsxs("div",{className:"flex items-center space-x-5",children:[i.jsxs("div",{className:"relative hidden md:block group",children:[i.jsx("input",{type:"text",placeholder:"Search ( / )",className:"w-72 pl-10 pr-4 py-2 rounded-lg border border-white/5 bg-white/5 text-sm text-slate-200 focus:outline-none focus:ring-1 focus:ring-indigo-500/50 focus:border-indigo-500/50 transition-all placeholder:text-slate-600 focus:bg-[#0b101b]"}),i.jsx(pr,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[i.jsx(op,{className:"h-5 w-5"}),i.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),i.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:i.jsx(Tm,{className:"h-5 w-5"})})]}),i.jsx("div",{className:"h-9 w-9 rounded-full bg-gradient-to-tr from-indigo-600 to-purple-600 ring-2 ring-white/10 flex items-center justify-center text-white font-bold text-xs shadow-lg",children:"AD"})]})]})},He=({children:u,className:o="",onClick:f})=>i.jsxs("div",{className:`
329
- relative bg-[#0b101b] rounded-xl border border-white/5
330
- shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
331
- transition-all duration-300
332
- ${f?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
333
- ${o}
334
- `,onClick:f,children:[f&&i.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),i.jsx("div",{className:"relative z-10",children:u})]}),pe=({children:u,variant:o="primary",size:f="md",loading:r=!1,className:m="",disabled:h,...v})=>{const y="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-offset-[#030712] disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98]",g={primary:"bg-indigo-600 text-white hover:bg-indigo-500 focus:ring-indigo-500 shadow-[0_0_15px_-3px_rgba(79,70,229,0.4)] border border-indigo-500/50 hover:shadow-[0_0_20px_-3px_rgba(79,70,229,0.5)]",secondary:"bg-[#1f2937] text-slate-200 hover:bg-[#374151] focus:ring-slate-500 border border-white/5",danger:"bg-red-600/10 text-red-400 hover:bg-red-600/20 focus:ring-red-500 border border-red-900/50 hover:border-red-500/50",ghost:"bg-transparent text-slate-400 hover:bg-white/5 hover:text-slate-200 focus:ring-slate-400",outline:"border border-slate-700/50 bg-transparent text-slate-300 hover:bg-white/5 hover:border-slate-500 focus:ring-slate-400"},x={sm:"h-8 px-3 text-xs tracking-wide",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 text-base",icon:"h-9 w-9"};return i.jsxs("button",{className:`${y} ${g[o]} ${x[f]} ${m}`,disabled:h||r,...v,children:[r&&i.jsx(Em,{className:"mr-2 h-4 w-4 animate-spin"}),u]})},By={Draft:"text-slate-400 bg-slate-500/10 ring-slate-500/20",Ready:"text-green-400 bg-green-500/10 ring-green-500/20","In Progress":"text-blue-400 bg-blue-500/10 ring-blue-500/20",Review:"text-amber-400 bg-amber-500/10 ring-amber-500/20",Done:"text-slate-500 bg-slate-600/10 ring-slate-600/20"},Ly={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},qy=()=>{const u=dr(),[o,f]=N.useState(null),[r,m]=N.useState(!1),[h,v]=N.useState(null),{setProjectName:y,addToast:g,selectedProjectId:x,globalModeLoading:w}=ht(),{data:S,loading:z,error:M,refetch:Q}=mt(zm,[x],{enabled:!w}),{data:H}=mt(Dm,[x],{enabled:!w}),{data:k}=mt(()=>yr().catch(()=>null),[x],{enabled:!w});Um($=>{v($)},[x]);const G=h||S;if(Ht.useEffect(()=>{G!=null&&G.projectName&&y(G.projectName)},[G,y]),N.useEffect(()=>{const $=setInterval(()=>{Q()},3e4);return()=>clearInterval($)},[Q]),N.useEffect(()=>{const $=()=>Q();return window.addEventListener("focus",$),()=>window.removeEventListener("focus",$)},[Q]),w||z)return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(M)return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),i.jsx("div",{className:"text-sm text-slate-500",children:M.message}),i.jsx(pe,{onClick:()=>Q(),children:"Retry"})]});if(!G)return null;const Y=G.prds.filter($=>$.status==="ready").length,q=G.prds.filter($=>$.status==="in-progress"),Z=G.prs.length,ne=G.prs.filter($=>$.reviewScore!==null&&$.reviewScore<70).length,P=G.processes.find($=>$.name==="executor"),J=G.processes.find($=>$.name==="reviewer"),X=async $=>{f($);try{const U=await Ry($),te=U.results.every(ye=>ye.success);g({title:te?"Process Cancelled":"Cancel Failed",message:U.results.map(ye=>ye.message).join("; "),type:te?"success":"error"})}catch(U){g({title:"Cancel Failed",message:U instanceof Error?U.message:"Failed to cancel process",type:"error"})}finally{f(null),Q()}},le=async()=>{m(!0);try{await Ty(),g({title:"Lock Cleared",message:"Stale executor state removed",type:"success"}),Q()}catch($){g({title:"Clear Failed",message:$ instanceof Error?$.message:"Failed to clear lock",type:"error"})}finally{m(!1)}},ge=$=>{if(!$)return"Not scheduled";try{const U=new Date($),te=new Date,ye=U.getTime()-te.getTime(),ze=Math.floor(ye/6e4);return ze<0?"Running now...":ze<60?`In ${ze} min`:ze<1440?`In ${Math.floor(ze/60)} hr${ze>=120?"s":""}`:`In ${Math.floor(ze/1440)} day${ze>=2880?"s":""}`}catch{return"Unknown"}};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[i.jsxs(He,{className:"p-5",onClick:()=>u("/prds"),children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-slate-500",children:"PRDs Ready"}),i.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:Y})]}),i.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:i.jsx($n,{className:"h-5 w-5"})})]}),i.jsxs("p",{className:"text-xs text-slate-500 mt-4",children:["of ",G.prds.length," total"]})]}),i.jsxs(He,{className:"p-5",onClick:()=>u("/prds"),children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),i.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:q.length})]}),i.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:i.jsx(bm,{className:"h-5 w-5"})})]}),i.jsx("p",{className:"text-xs text-slate-500 mt-4 truncate",children:q.length===1?q[0].name:`${q.length} active`})]}),i.jsxs(He,{className:"p-5",onClick:()=>u("/prs"),children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),i.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:Z})]}),i.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:i.jsx(ji,{className:"h-5 w-5"})})]}),i.jsx("p",{className:`text-xs mt-4 ${ne>0?"text-red-400 font-medium":"text-slate-500"}`,children:ne>0?`${ne} need work`:"All passing"})]}),i.jsxs(He,{className:"p-5",children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Cron Status"}),i.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:G.crontab.installed?"Active":"Inactive"})]}),i.jsx("div",{className:`p-2 rounded-lg ${G.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:i.jsx(bi,{className:"h-5 w-5"})})]}),i.jsx("p",{className:"text-xs text-slate-500 mt-4",children:G.crontab.installed?`${G.crontab.entries.length} entr${G.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[i.jsxs("div",{className:"lg:col-span-2",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"PRD Pipeline"}),i.jsxs("button",{onClick:()=>u("/prds"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View all ",i.jsx(Ic,{className:"ml-1 h-3 w-3"})]})]}),i.jsx("div",{className:"bg-slate-900 rounded-xl p-4 grid grid-cols-5 gap-3 h-64 overflow-hidden border border-slate-800",children:["blocked","ready","in-progress","pending-review","done"].map($=>i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"text-xs font-semibold text-slate-500 uppercase mb-3 flex items-center",children:[i.jsx("span",{className:`w-2 h-2 rounded-full mr-2 flex-shrink-0 ${$==="ready"?"bg-green-500":$==="in-progress"?"bg-blue-500":$==="pending-review"?"bg-yellow-500":$==="blocked"?"bg-red-500":"bg-slate-600"}`}),i.jsx("span",{className:"truncate",children:Ly[$]})]}),i.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto scrollbar-hide",children:[G.prds.filter(U=>U.status===$).map(U=>i.jsxs(He,{className:"p-3 shadow-none bg-slate-800 border-slate-700 hover:border-slate-600 hover:shadow-md cursor-pointer transition-all active:scale-95",onClick:()=>u("/prds"),children:[i.jsx("div",{className:"text-xs font-medium text-slate-200 line-clamp-2",children:U.name}),U.unmetDependencies.length>0&&i.jsxs("div",{className:"mt-2 text-[10px] text-amber-400",children:["Blocked by: ",U.unmetDependencies.join(", ")]}),U.status==="in-progress"&&i.jsx("div",{className:"h-1.5 w-1.5 bg-blue-500 rounded-full animate-pulse mt-2"}),U.status==="pending-review"&&i.jsx("div",{className:"h-1.5 w-1.5 bg-yellow-500 rounded-full animate-pulse mt-2"})]},U.name)),G.prds.filter(U=>U.status===$).length===0&&i.jsx("div",{className:"h-full border-2 border-dashed border-slate-800 rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-xs text-slate-600",children:"Empty"})})]})]},$))})]}),i.jsxs("div",{className:"lg:col-span-1",children:[i.jsx("h2",{className:"text-lg font-semibold text-slate-200 mb-4",children:"System Status"}),i.jsx(He,{className:"h-64 overflow-y-auto",children:i.jsxs("div",{className:"p-4 space-y-4",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),i.jsx("p",{className:"text-sm text-slate-200",children:G.projectName})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Provider"}),i.jsx("p",{className:"text-sm text-slate-200 capitalize",children:G.config.provider})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"PRD Directory"}),i.jsx("p",{className:"text-sm text-slate-200",children:G.config.prdDir})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),i.jsx("p",{className:"text-sm text-slate-200",children:new Date(G.timestamp).toLocaleString()})]})]})})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs(He,{className:"p-6",children:[i.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Process Status"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${P!=null&&P.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),i.jsxs("div",{children:[i.jsx("div",{className:`font-medium ${P!=null&&P.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),i.jsx("div",{className:"text-xs text-slate-500",children:P!=null&&P.running?`PID: ${P.pid} • ${G.activePrd??"Running"}`:"Idle"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[(P==null?void 0:P.running)&&i.jsxs(pe,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>X("run"),disabled:o==="run",children:[i.jsx(sr,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),!(P!=null&&P.running)&&q.length>0&&i.jsx(pe,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300",onClick:le,disabled:r,children:r?"Clearing...":"Force Clear"}),i.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})]})]}),i.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${J!=null&&J.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),i.jsxs("div",{children:[i.jsx("div",{className:`font-medium ${J!=null&&J.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),i.jsx("div",{className:"text-xs text-slate-500",children:J!=null&&J.running?`PID: ${J.pid} • Running`:"Idle"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[(J==null?void 0:J.running)&&i.jsxs(pe,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>X("review"),disabled:o==="review",children:[i.jsx(sr,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),i.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),disabled:!(J!=null&&J.running),children:"View Log"})]})]})]})]}),i.jsxs(He,{className:"p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),i.jsxs("button",{onClick:()=>u("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",i.jsx(Ic,{className:"ml-1 h-3 w-3"})]})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:`p-1.5 rounded-md ${H!=null&&H.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:i.jsx(bi,{className:"h-4 w-4"})}),i.jsxs("div",{children:[i.jsx("div",{className:`text-sm font-medium ${H!=null&&H.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),i.jsx("div",{className:"text-xs text-slate-500",children:H!=null&&H.paused?"Paused":ge(H==null?void 0:H.executor.nextRun)})]})]})}),i.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:`p-1.5 rounded-md ${H!=null&&H.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:i.jsx(ji,{className:"h-4 w-4"})}),i.jsxs("div",{children:[i.jsx("div",{className:`text-sm font-medium ${H!=null&&H.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),i.jsx("div",{className:"text-xs text-slate-500",children:H!=null&&H.paused?"Paused":ge(H==null?void 0:H.reviewer.nextRun)})]})]})})]})]})]}),i.jsxs("div",{className:"mt-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"GitHub Board"}),i.jsxs("button",{onClick:()=>u("/board"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View board ",i.jsx(Ic,{className:"ml-1 h-3 w-3"})]})]}),i.jsx(He,{className:"p-4",children:k?i.jsx("div",{className:"flex flex-wrap gap-3",children:Yl.map($=>{var te;const U=((te=k.columns[$])==null?void 0:te.length)??0;return i.jsxs("button",{onClick:()=>u("/board"),className:`inline-flex items-center space-x-2 px-3 py-2 rounded-lg ring-1 ring-inset transition-colors hover:opacity-80 ${By[$]}`,children:[i.jsx("span",{className:"text-xs font-medium",children:$}),i.jsx("span",{className:"text-xs font-bold",children:U})]},$)})}):i.jsxs("p",{className:"text-sm text-slate-500 italic",children:["Board not configured — run ",i.jsx("code",{className:"font-mono bg-slate-800 px-1.5 py-0.5 rounded text-indigo-300 text-xs",children:"night-watch board setup"})," to enable."]})})]})]})},ua=({children:u,variant:o="default",className:f=""})=>{const r={default:"bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20",success:"bg-emerald-500/10 text-emerald-400 ring-1 ring-inset ring-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 ring-1 ring-inset ring-amber-500/20",error:"bg-red-500/10 text-red-400 ring-1 ring-inset ring-red-500/20",neutral:"bg-slate-500/10 text-slate-400 ring-1 ring-inset ring-slate-500/20",info:"bg-blue-500/10 text-blue-400 ring-1 ring-inset ring-blue-500/20"};return i.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${f}`,children:u})},Yy=({isOpen:u,onClose:o,title:f,children:r})=>(N.useEffect(()=>{const m=h=>{h.key==="Escape"&&o()};return u&&(document.addEventListener("keydown",m),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",m),document.body.style.overflow="unset"}},[u,o]),u?Kg.createPortal(i.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6",children:[i.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:o,"aria-hidden":"true"}),i.jsxs("div",{className:"relative w-full max-w-2xl transform rounded-xl bg-slate-900 border border-slate-800 shadow-2xl transition-all flex flex-col max-h-[90vh]",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 px-6 py-4",children:[i.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:f}),i.jsx("button",{onClick:o,className:"rounded-full p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:i.jsx(Ei,{className:"h-5 w-5"})})]}),i.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6 text-slate-300",children:r})]})]}),document.body):null),er={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},tr={ready:"success","in-progress":"info",blocked:"error","pending-review":"warning",done:"neutral"},Gy=()=>{const[u,o]=N.useState("list"),[f,r]=N.useState(!1),[m,h]=N.useState(null),[v,y]=N.useState(!1),[g,x]=N.useState(!1),[w,S]=N.useState({}),{addToast:z,selectedProjectId:M,globalModeLoading:Q}=ht(),{data:H,loading:k,error:G,refetch:Y}=mt(yy,[M],{enabled:!Q}),q=H??[],{data:Z}=mt(()=>yr().catch(()=>null),[M],{enabled:!Q}),ne=Ht.useMemo(()=>{const U=new Map;if(!Z)return U;for(const te of Object.values(Z.columns))for(const ye of te)U.set(ye.title.toLowerCase().trim(),ye);return U},[Z]),P=U=>{if(!U.content)return U.name;const te=U.content.match(/^#\s+(.+)$/m);return te?te[1].trim():U.name},J=U=>{const te=P(U).toLowerCase().trim();return ne.get(te)??null},X=q.map(U=>w[U.name]?{...U,status:w[U.name]}:U);N.useEffect(()=>{if(Object.keys(w).length>0){const U=Object.keys(w).filter(te=>q.some(ye=>ye.name===te&&ye.status!=="ready"));U.length>0&&S(te=>{const ye={...te};for(const ze of U)delete ye[ze];return ye})}},[q,w]),Um(()=>{Y()},[M]);const le=async()=>{if(m){x(!0);try{const U=await Cy(m.name);z({title:"PRD Queued",message:U.message,type:"success"}),h(null),Y()}catch(U){z({title:"Retry Failed",message:U instanceof Error?U.message:"Failed to retry PRD",type:"error"})}finally{x(!1)}}},ge=U=>{U.preventDefault(),r(!1)},$=async()=>{if(m){y(!0),S(U=>({...U,[m.name]:"in-progress"}));try{const U=await Sy(m.name);z({title:"Executor Started",message:U.pid?`Started with PID ${U.pid}`:"Executor started",type:"success"}),Y()}catch(U){S(te=>{const ye={...te};return delete ye[m.name],ye}),z({title:"Executor Failed",message:U instanceof Error?U.message:"Failed to start executor",type:"error"})}finally{y(!1)}}};return N.useEffect(()=>{const U=setInterval(()=>Y(),3e4);return()=>clearInterval(U)},[Y]),N.useEffect(()=>{const U=()=>Y();return window.addEventListener("focus",U),()=>window.removeEventListener("focus",U)},[Y]),N.useEffect(()=>{if(m){const U=X.find(te=>te.name===m.name);U&&h(U)}},[X,m]),k?i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading PRDs..."})}):G?i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load PRDs"}),i.jsx("div",{className:"text-sm text-slate-500",children:G.message}),i.jsx(pe,{onClick:()=>Y(),children:"Retry"})]}):i.jsxs("div",{className:"space-y-6 h-[calc(100vh-8rem)] flex flex-col",children:[i.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(pe,{variant:u==="list"?"secondary":"ghost",size:"icon",onClick:()=>o("list"),children:i.jsx(V0,{className:"h-4 w-4"})}),i.jsx(pe,{variant:u==="card"?"secondary":"ghost",size:"icon",onClick:()=>o("card"),children:i.jsx(Gp,{className:"h-4 w-4"})}),i.jsx("div",{className:"h-6 w-px bg-slate-800 mx-2"}),i.jsxs("div",{className:"flex space-x-1",children:[i.jsx("span",{className:"px-3 py-1 bg-slate-800 text-slate-200 rounded-full text-xs font-medium cursor-pointer border border-slate-700",children:"All"}),i.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"Ready"}),i.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"In Progress"})]})]}),i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsxs(pe,{variant:"outline",size:"sm",children:[i.jsx(ip,{className:"h-4 w-4 mr-2"}),"Sort"]}),i.jsxs(pe,{onClick:()=>r(!0),size:"sm",children:[i.jsx(gr,{className:"h-4 w-4 mr-2"}),"New PRD"]})]})]}),i.jsx("div",{className:"flex-1 overflow-y-auto pr-1 pb-10",children:u==="list"?i.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:i.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[i.jsx("thead",{className:"bg-slate-950/50",children:i.jsxs("tr",{children:[i.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Name"}),i.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Status"}),i.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Dependencies"}),i.jsx("th",{scope:"col",className:"relative px-6 py-3",children:i.jsx("span",{className:"sr-only",children:"Actions"})})]})}),i.jsxs("tbody",{className:"divide-y divide-slate-800",children:[X.map(U=>i.jsxs("tr",{className:"hover:bg-slate-800/50 group cursor-pointer transition-colors",onClick:()=>h(U),children:[i.jsxs("td",{className:"px-6 py-4",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"text-sm font-medium text-slate-200",children:U.name}),(()=>{const te=J(U);return te?i.jsxs("a",{href:te.url,target:"_blank",rel:"noopener noreferrer",onClick:ye=>ye.stopPropagation(),className:"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-medium bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20 hover:bg-indigo-500/20 transition-colors",title:`Board: #${te.number} — ${te.column}`,children:["#",te.number," · ",te.column]}):null})()]}),U.unmetDependencies.length>0&&i.jsxs("div",{className:"text-xs text-amber-400 mt-1",children:["Blocked by: ",U.unmetDependencies.join(", ")]})]}),i.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:i.jsx(ua,{variant:tr[U.status],children:er[U.status]})}),i.jsx("td",{className:"px-6 py-4",children:U.dependencies.length>0?i.jsx("div",{className:"flex flex-wrap gap-1",children:U.dependencies.map(te=>i.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:te},te))}):i.jsx("span",{className:"text-sm text-slate-600",children:"None"})}),i.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium",children:i.jsx("button",{className:"text-slate-500 hover:text-slate-300 opacity-0 group-hover:opacity-100 transition-opacity",children:i.jsx(_p,{className:"h-4 w-4"})})})]},U.name)),X.length===0&&i.jsx("tr",{children:i.jsx("td",{colSpan:4,className:"px-6 py-12 text-center text-slate-500",children:"No PRDs found. Create your first PRD to get started."})})]})]})}):i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[X.map(U=>i.jsxs(He,{className:"p-5 flex flex-col h-full hover:border-indigo-500/50 transition-colors",onClick:()=>h(U),children:[i.jsxs("div",{className:"flex justify-between items-start mb-4",children:[i.jsx(ua,{variant:tr[U.status],children:er[U.status]}),U.status==="in-progress"&&i.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full animate-pulse"}),U.status==="pending-review"&&i.jsx("div",{className:"h-2 w-2 bg-yellow-500 rounded-full animate-pulse"})]}),i.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[i.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:U.name}),(()=>{const te=J(U);return te?i.jsxs("a",{href:te.url,target:"_blank",rel:"noopener noreferrer",onClick:ye=>ye.stopPropagation(),className:"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-medium bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20 hover:bg-indigo-500/20 transition-colors flex-shrink-0",children:["#",te.number," · ",te.column]}):null})()]}),U.content&&i.jsx("p",{className:"text-sm text-slate-400 flex-1 line-clamp-3",children:U.content.replace(/^#.*\n/,"")}),i.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-800",children:[U.dependencies.length>0&&i.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:U.dependencies.map(te=>i.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:te},te))}),U.unmetDependencies.length>0&&i.jsxs("div",{className:"text-xs text-amber-400",children:["Blocked by: ",U.unmetDependencies.join(", ")]})]})]},U.name)),X.length===0&&i.jsx("div",{className:"col-span-full text-center py-12 text-slate-500",children:"No PRDs found. Create your first PRD to get started."})]})}),i.jsx(Yy,{isOpen:f,onClose:()=>r(!1),title:"Create New PRD",children:i.jsxs("form",{onSubmit:ge,className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Name"}),i.jsx("input",{type:"text",className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 placeholder:text-slate-600",placeholder:"e.g. User Authentication"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Complexity"}),i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("input",{type:"range",min:"1",max:"10",className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),i.jsx("span",{className:"text-sm font-bold text-slate-300 w-16 text-center",children:"MED"})]})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Phases"}),i.jsx("input",{type:"number",defaultValue:3,min:1,max:10,className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Template"}),i.jsxs("select",{className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[i.jsx("option",{children:"Default"}),i.jsx("option",{children:"Feature"}),i.jsx("option",{children:"Bugfix"})]})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Dependencies"}),i.jsxs("div",{className:"bg-slate-950/30 p-3 rounded-md border border-slate-800 max-h-32 overflow-y-auto space-y-2",children:[X.map(U=>i.jsxs("label",{className:"flex items-center space-x-2 text-sm text-slate-300 cursor-pointer",children:[i.jsx("input",{type:"checkbox",className:"rounded border-slate-600 bg-slate-800 text-indigo-500 focus:ring-indigo-500/50 focus:ring-offset-slate-900"}),i.jsx("span",{children:U.name})]},U.name)),X.length===0&&i.jsx("p",{className:"text-sm text-slate-600 italic",children:"No existing PRDs"})]})]}),i.jsxs("div",{className:"flex justify-end pt-4 space-x-3",children:[i.jsx(pe,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),i.jsx(pe,{type:"submit",children:"Create PRD"})]})]})}),m&&i.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[i.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:()=>h(null)}),i.jsxs("div",{className:"relative w-full max-w-xl bg-slate-900 h-full shadow-2xl flex flex-col transform transition-transform animate-in slide-in-from-right duration-300 border-l border-slate-800",children:[i.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800",children:[i.jsx("h2",{className:"text-lg font-bold text-slate-100 line-clamp-1",children:m.name}),i.jsx("button",{onClick:()=>h(null),className:"p-2 hover:bg-slate-800 rounded-full",children:i.jsx(V0,{className:"h-5 w-5 text-slate-500"})})]}),i.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6 space-y-6",children:[i.jsx("div",{className:"flex items-center space-x-4",children:i.jsx(ua,{variant:tr[m.status],className:"text-sm px-3 py-1",children:er[m.status]})}),m.content&&i.jsxs("div",{className:"prose prose-sm prose-invert max-w-none",children:[i.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider mb-2",children:"Description"}),i.jsx("div",{className:"whitespace-pre-wrap text-slate-300 bg-slate-950/50 p-4 rounded-lg border border-slate-800 font-mono text-sm",children:m.content})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider",children:"Dependencies"}),m.dependencies.length?i.jsx("div",{className:"flex flex-wrap gap-2",children:m.dependencies.map(U=>i.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-300 text-xs rounded border border-slate-700",children:U},U))}):i.jsx("p",{className:"text-sm text-slate-500 italic",children:"No dependencies."}),m.unmetDependencies.length>0&&i.jsx("div",{className:"mt-2",children:i.jsxs("p",{className:"text-sm text-amber-400",children:["Unmet dependencies: ",m.unmetDependencies.join(", ")]})})]})]}),i.jsx("div",{className:"p-4 border-t border-slate-800 bg-slate-900 flex space-x-3",children:m.status==="done"?i.jsxs(pe,{className:"flex-1",onClick:le,disabled:g,children:[i.jsx(Cm,{className:"h-4 w-4 mr-2"}),g?"Moving...":"Retry"]}):i.jsxs(pe,{className:"flex-1",onClick:$,disabled:v||m.status==="in-progress",children:[i.jsx(Fn,{className:"h-4 w-4 mr-2"}),v?"Executing...":"Execute Now"]})})]})]})]})},F0=u=>{switch(u){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available or CI not configured"}},vi=u=>u===null?"No review yet or review not required":u===100?"PR has been approved":u===0?"Changes have been requested":`Review score: ${u}`,ky=()=>{const[u,o]=N.useState(null),[f,r]=N.useState(!1),[m,h]=N.useState("all"),[v,y]=N.useState("number"),[g,x]=N.useState("desc"),{addToast:w,selectedProjectId:S,globalModeLoading:z}=ht(),{data:M,loading:Q,error:H,refetch:k}=mt(by,[S],{enabled:!z}),G=M??[],Y=X=>{switch(X){case"pass":return i.jsx($n,{className:"h-4 w-4 text-green-500"});case"fail":return i.jsx(sr,{className:"h-4 w-4 text-red-500"});case"pending":return i.jsx(Em,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return i.jsx(wp,{className:"h-4 w-4 text-slate-500"})}},q=N.useMemo(()=>G.filter(X=>{switch(m){case"needs-work":return X.ciStatus==="fail"||X.reviewScore===0;case"pending":return X.ciStatus==="pending"||X.ciStatus==="unknown"||X.reviewScore===null;case"passed":return X.ciStatus==="pass"&&X.reviewScore===100;case"all":default:return!0}}),[G,m]),Z=N.useMemo(()=>[...q].sort((le,ge)=>{let $=0;switch(v){case"number":$=le.number-ge.number;break;case"title":$=le.title.localeCompare(ge.title);break;case"branch":$=le.branch.localeCompare(ge.branch);break;case"ciStatus":{const U={fail:0,pending:1,unknown:2,pass:3};$=(U[le.ciStatus]??2)-(U[ge.ciStatus]??2);break}case"reviewScore":{const U=le.reviewScore??-1,te=ge.reviewScore??-1;$=U-te;break}}return g==="asc"?$:-$}),[q,v,g]),ne=X=>{v===X?x(g==="asc"?"desc":"asc"):(y(X),x("desc"))},P=X=>v!==X?i.jsx(np,{className:"h-3 w-3 text-slate-600"}):g==="asc"?i.jsx(cp,{className:"h-3 w-3 text-indigo-400"}):i.jsx(tp,{className:"h-3 w-3 text-indigo-400"});if(Q)return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(H)return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),i.jsx("div",{className:"text-sm text-slate-500",children:H.message}),i.jsx(pe,{onClick:()=>k(),children:"Retry"})]});const J=async()=>{r(!0);try{const X=await Ey();w({title:"Reviewer Started",message:X.pid?`Started with PID ${X.pid}`:"Reviewer started",type:"success"})}catch(X){w({title:"Reviewer Failed",message:X instanceof Error?X.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex space-x-1",children:[i.jsx("button",{onClick:()=>h("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="all"?"bg-slate-800 text-slate-200 border-slate-700":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"All"}),i.jsx("button",{onClick:()=>h("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="needs-work"?"bg-red-900/50 text-red-300 border-red-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Needs Work"}),i.jsx("button",{onClick:()=>h("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="pending"?"bg-amber-900/50 text-amber-300 border-amber-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Pending"}),i.jsx("button",{onClick:()=>h("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="passed"?"bg-green-900/50 text-green-300 border-green-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Passed"})]}),i.jsxs(pe,{size:"sm",onClick:J,disabled:f,children:[i.jsx(pr,{className:"h-4 w-4 mr-2"}),f?"Starting...":"Run Reviewer Now"]})]}),i.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:i.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[i.jsx("thead",{className:"bg-slate-950/50",children:i.jsxs("tr",{children:[i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>ne("number"),children:i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx("span",{children:"Title"}),P("number")]})}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>ne("branch"),children:i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx("span",{children:"Branch"}),P("branch")]})}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>ne("ciStatus"),children:i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx("span",{children:"CI Status"}),P("ciStatus")]})}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>ne("reviewScore"),children:i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx("span",{children:"Review Score"}),P("reviewScore")]})}),i.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),i.jsxs("tbody",{className:"divide-y divide-slate-800",children:[Z.map(X=>i.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>o(u===X.number?null:X.number),children:[i.jsx("td",{className:"px-6 py-4",children:i.jsxs("div",{className:"flex items-center",children:[i.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",X.number]}),i.jsx("span",{className:"font-medium text-slate-200",children:X.title})]})}),i.jsx("td",{className:"px-6 py-4",children:i.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:X.branch})}),i.jsx("td",{className:"px-6 py-4",children:i.jsxs("div",{className:"flex items-center space-x-2",title:F0(X.ciStatus),children:[Y(X.ciStatus),i.jsx("span",{className:"text-sm capitalize text-slate-400",children:X.ciStatus})]})}),i.jsx("td",{className:"px-6 py-4",children:X.reviewScore!==null?i.jsxs("div",{className:"flex items-center space-x-2",title:vi(X.reviewScore),children:[i.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:i.jsx("div",{className:`h-full ${X.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${X.reviewScore}%`}})}),i.jsx("span",{className:`text-sm font-bold ${X.reviewScore>=70?"text-green-500":"text-red-500"}`,children:X.reviewScore})]}):i.jsx("span",{className:"text-slate-600 text-sm",title:vi(null),children:"—"})}),i.jsx("td",{className:"px-6 py-4 text-right",children:i.jsx("a",{href:X.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:le=>le.stopPropagation(),children:i.jsx(Nm,{className:"h-4 w-4"})})})]},X.number)),Z.length===0&&i.jsx("tr",{children:i.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:G.length===0?"No open PRs found.":`No PRs match the "${m}" filter.`})})]})]})}),u&&i.jsx(He,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const X=G.find(le=>le.number===u);return X?i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-bold text-slate-200",children:X.title}),i.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",i.jsx("span",{className:"font-mono",children:X.branch})]})]}),i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("div",{className:"text-center",title:F0(X.ciStatus),children:[i.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),i.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[Y(X.ciStatus),i.jsx("span",{className:"text-sm capitalize text-slate-300",children:X.ciStatus})]})]}),X.reviewScore!==null?i.jsxs("div",{className:"text-center",title:vi(X.reviewScore),children:[i.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),i.jsx("div",{className:`text-xl font-bold mt-1 ${X.reviewScore>=70?"text-green-500":"text-red-500"}`,children:X.reviewScore})]}):i.jsxs("div",{className:"text-center",title:vi(null),children:[i.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),i.jsx("div",{className:"text-xl font-bold mt-1 text-slate-500",children:"—"})]})]})]}):null})()})]})},br={Draft:{dot:"bg-slate-500",badge:"neutral"},Ready:{dot:"bg-green-500",badge:"success"},"In Progress":{dot:"bg-blue-500",badge:"info"},Review:{dot:"bg-amber-500",badge:"warning"},Done:{dot:"bg-slate-600",badge:"neutral"}},Xy=({defaultColumn:u,onClose:o,onCreated:f})=>{const[r,m]=N.useState(""),[h,v]=N.useState(""),[y,g]=N.useState(u),[x,w]=N.useState(!1),[S,z]=N.useState(null),{addToast:M}=ht(),Q=async H=>{if(H.preventDefault(),!!r.trim()){w(!0),z(null);try{await _y({title:r.trim(),body:h,column:y}),M({title:"Issue created",message:`"${r.trim()}" added to ${y}`,type:"success"}),f(),o()}catch(k){z(k instanceof Error?k.message:"Failed to create issue")}finally{w(!1)}}};return i.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[i.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:o}),i.jsxs("div",{className:"relative bg-[#0f172a] border border-white/10 rounded-2xl shadow-2xl w-full max-w-lg",children:[i.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[i.jsx("h2",{className:"text-lg font-semibold text-slate-100",children:"New Board Issue"}),i.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:i.jsx(Ei,{className:"h-5 w-5"})})]}),i.jsxs("form",{onSubmit:Q,className:"p-6 space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Title"}),i.jsx("input",{type:"text",value:r,onChange:H=>m(H.target.value),placeholder:"Issue title...",required:!0,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Column"}),i.jsx("select",{value:y,onChange:H=>g(H.target.value),className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:border-indigo-500/50 appearance-none cursor-pointer",children:Yl.map(H=>i.jsx("option",{value:H,children:H},H))})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Body (optional)"}),i.jsx("textarea",{value:h,onChange:H=>v(H.target.value),placeholder:"Issue description...",rows:5,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20 resize-none font-mono"})]}),S&&i.jsx("p",{className:"text-sm text-red-400",children:S}),i.jsxs("div",{className:"flex justify-end space-x-3 pt-2",children:[i.jsx(pe,{variant:"ghost",type:"button",onClick:o,children:"Cancel"}),i.jsx(pe,{type:"submit",disabled:x||!r.trim(),children:x?"Creating...":"Create Issue"})]})]})]})]})},Qy=({issue:u,onClose:o,onMoved:f,onClosed:r})=>{const[m,h]=N.useState(!1),[v,y]=N.useState(!1),{addToast:g}=ht(),x=async z=>{if(z!==u.column){h(!0);try{await Om(u.number,z),g({title:"Issue moved",message:`#${u.number} moved to ${z}`,type:"success"}),f(),o()}catch(M){g({title:"Move failed",message:M instanceof Error?M.message:"Failed to move issue",type:"error"})}finally{h(!1)}}},w=async()=>{if(confirm(`Close issue #${u.number}: "${u.title}"?`)){y(!0);try{await zy(u.number),g({title:"Issue closed",message:`#${u.number} closed on GitHub`,type:"success"}),r(),o()}catch(z){g({title:"Close failed",message:z instanceof Error?z.message:"Failed to close issue",type:"error"})}finally{y(!1)}}},S=u.column??"Draft";return i.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[i.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:o}),i.jsxs("div",{className:"relative bg-[#0a0f1e] border-l border-white/10 w-full max-w-xl flex flex-col shadow-2xl overflow-hidden",children:[i.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-white/5 flex-shrink-0",children:[i.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[i.jsxs("span",{className:"text-slate-500 text-sm font-mono",children:["#",u.number]}),i.jsx(ua,{variant:br[S].badge,children:S})]}),i.jsx("h2",{className:"text-lg font-semibold text-slate-100 leading-snug",children:u.title}),u.assignees.length>0&&i.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Assigned to: ",u.assignees.join(", ")]})]}),i.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",children:i.jsx(Ei,{className:"h-5 w-5"})})]}),i.jsxs("div",{className:"flex items-center space-x-3 px-6 py-3 border-b border-white/5 flex-shrink-0 flex-wrap gap-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"text-xs text-slate-500",children:"Move to:"}),Yl.filter(z=>z!==u.column).map(z=>i.jsx("button",{onClick:()=>x(z),disabled:m,className:"text-xs px-2.5 py-1 rounded-md bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-slate-100 border border-slate-700 transition-colors disabled:opacity-50",children:z},z))]}),i.jsxs("div",{className:"flex items-center space-x-2 ml-auto",children:[i.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1 text-xs text-indigo-400 hover:text-indigo-300 transition-colors",children:[i.jsx(Nm,{className:"h-3.5 w-3.5"}),i.jsx("span",{children:"GitHub"})]}),i.jsx("button",{onClick:w,disabled:v,className:"text-xs px-2.5 py-1 rounded-md bg-red-500/10 text-red-400 hover:bg-red-500/20 border border-red-500/20 transition-colors disabled:opacity-50",children:v?"Closing...":"Close Issue"})]})]}),i.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:u.body?i.jsx("pre",{className:"text-sm text-slate-300 whitespace-pre-wrap font-mono leading-relaxed break-words",children:u.body}):i.jsx("p",{className:"text-slate-500 text-sm italic",children:"No description provided."})})]})]})},Zy=({issue:u,onClick:o,onMoveRequest:f})=>{const[r,m]=N.useState(!1),h=u.column??"Draft";return i.jsxs("div",{className:"relative group",children:[i.jsx(He,{className:"p-3 cursor-pointer hover:border-indigo-500/30 transition-all active:scale-[0.99] select-none",onClick:o,children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("span",{className:"text-[10px] font-mono text-slate-600",children:["#",u.number]}),i.jsx("p",{className:"text-xs font-medium text-slate-200 line-clamp-2 mt-0.5 leading-snug",children:u.title}),u.assignees.length>0&&i.jsx("p",{className:"text-[10px] text-slate-500 mt-1.5 truncate",children:u.assignees.join(", ")})]}),i.jsx("button",{onClick:v=>{v.stopPropagation(),m(y=>!y)},className:"ml-2 p-1 rounded hover:bg-white/10 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",title:"Move issue",children:i.jsx(jm,{className:"h-3.5 w-3.5"})})]})}),r&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-30",onClick:()=>m(!1)}),i.jsx("div",{className:"absolute right-0 top-full mt-1 z-40 bg-[#0f172a] border border-white/10 rounded-xl shadow-2xl py-1 min-w-[140px]",children:Yl.filter(v=>v!==h).map(v=>i.jsxs("button",{onClick:()=>{f(u,v),m(!1)},className:"w-full text-left text-xs px-4 py-2 text-slate-300 hover:bg-white/5 hover:text-slate-100 transition-colors flex items-center space-x-2",children:[i.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${br[v].dot}`}),i.jsx("span",{children:v})]},v))})]})]})},Vy=({name:u,issues:o,onIssueClick:f,onNewIssue:r,onMoveIssue:m})=>{const h=br[u];return i.jsxs("div",{className:"flex flex-col min-w-[220px] max-w-[220px] h-full",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${h.dot}`}),i.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider",children:u}),i.jsx("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-800 rounded-full px-1.5 py-0.5",children:o.length})]}),i.jsx("button",{onClick:()=>r(u),className:"p-1 rounded-md hover:bg-white/5 text-slate-600 hover:text-slate-400 transition-colors",title:`Add issue to ${u}`,children:i.jsx(gr,{className:"h-3.5 w-3.5"})})]}),i.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide min-h-0",children:o.length===0?i.jsx("div",{className:"border-2 border-dashed border-slate-800 rounded-xl h-24 flex items-center justify-center",children:i.jsx("span",{className:"text-xs text-slate-700",children:"No issues"})}):o.map(v=>i.jsx(Zy,{issue:v,onClick:()=>f(v),onMoveRequest:m},v.id))})]})},Ky=()=>{const[u,o]=N.useState(null),[f,r]=N.useState(null),{addToast:m,selectedProjectId:h,globalModeLoading:v}=ht(),{data:y,loading:g,error:x,refetch:w}=mt(yr,[h],{enabled:!v});N.useEffect(()=>{const M=setInterval(()=>w(),3e4);return()=>clearInterval(M)},[w]);const S=N.useCallback(async(M,Q)=>{try{await Om(M.number,Q),m({title:"Issue moved",message:`#${M.number} moved to ${Q}`,type:"success"}),w()}catch(H){m({title:"Move failed",message:H instanceof Error?H.message:"Failed to move issue",type:"error"})}},[m,w]);if(v||g)return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading board..."})});if(x&&x.message.includes("Board not configured"))return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx("div",{className:"text-4xl",children:"📋"}),i.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"Board not configured"}),i.jsxs("p",{className:"text-slate-500 text-sm max-w-sm text-center",children:["Run ",i.jsx("code",{className:"font-mono bg-slate-800 px-2 py-0.5 rounded text-indigo-300",children:"night-watch board setup"})," in your project to create a GitHub Projects board."]})]});if(x)return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx("div",{className:"text-slate-300",children:"Failed to load board"}),i.jsx("div",{className:"text-sm text-slate-500",children:x.message}),i.jsx(pe,{onClick:()=>w(),children:"Retry"})]});if(!y)return null;const z=y.columns;return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Board"}),i.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[Yl.reduce((M,Q)=>{var H;return M+(((H=z[Q])==null?void 0:H.length)??0)},0)," issues across ",Yl.length," columns"]})]}),i.jsxs(pe,{onClick:()=>r("Ready"),children:[i.jsx(gr,{className:"h-4 w-4 mr-2"}),"New Issue"]})]}),i.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden",children:i.jsx("div",{className:"flex space-x-4 h-full pb-4",style:{minWidth:`${Yl.length*236}px`},children:Yl.map(M=>i.jsx(Vy,{name:M,issues:z[M]??[],onIssueClick:o,onNewIssue:r,onMoveIssue:S},M))})}),u&&i.jsx(Qy,{issue:u,onClose:()=>o(null),onMoved:()=>w(),onClosed:()=>w()}),f&&i.jsx(Xy,{defaultColumn:f,onClose:()=>r(null),onCreated:()=>w()})]})},ql=Ht.forwardRef(({className:u="",label:o,error:f,helperText:r,rightIcon:m,...h},v)=>i.jsxs("div",{className:"w-full",children:[o&&i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{ref:v,className:`
335
- w-full rounded-lg bg-slate-950 border border-slate-800
336
- px-3 py-2 text-sm text-slate-200
337
- placeholder:text-slate-600
338
- focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
339
- disabled:opacity-50 disabled:cursor-not-allowed
340
- transition-all duration-200
341
- ${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
342
- ${m?"pr-10":""}
343
- ${u}
344
- `,...h}),m&&i.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:m})]}),f?i.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?i.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));ql.displayName="Input";const jr=Ht.forwardRef(({className:u="",label:o,error:f,helperText:r,options:m,value:h,onChange:v,children:y,...g},x)=>{const w=S=>{v&&v(S.target.value)};return i.jsxs("div",{className:"w-full",children:[o&&i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),i.jsxs("div",{className:"relative",children:[i.jsx("select",{ref:x,className:`
345
- w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
346
- px-3 py-2 pr-10 text-sm text-slate-200
347
- focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
348
- disabled:opacity-50 disabled:cursor-not-allowed
349
- transition-all duration-200
350
- ${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
351
- ${u}
352
- `,value:h,onChange:w,...g,children:m?m.map(S=>i.jsx("option",{value:S.value,children:S.label},S.value)):y}),i.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:i.jsx(jm,{className:"h-4 w-4"})})]}),f?i.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?i.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});jr.displayName="Select";const Nr=[{label:"Every 30 minutes",value:"*/30 * * * *"},{label:"Every hour",value:"0 * * * *"},{label:"Every 3 hours",value:"0 */3 * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Every 12 hours",value:"0 */12 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Daily at 9 AM",value:"0 9 * * *"},{label:"Weekdays at 9 AM",value:"0 9 * * 1-5"},{label:"Custom",value:"__custom__"}];function lr(u){const o=u.trim().split(/\s+/);if(o.length!==5)return u;const[f,r,m,h,v]=o,y=Nr.find(g=>g.value===u);return y?y.label:f==="*/30"&&r==="*"?"Every 30 minutes":f==="0"&&r==="*"?"Every hour":f.startsWith("*/")?`Every ${parseInt(f.replace("*/",""),10)} minutes`:f==="0"&&r.startsWith("*/")?`Every ${parseInt(r.replace("*/",""),10)} hours`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="*"?`Daily at ${W0(r)}`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="1-5"?`Weekdays at ${W0(r)}`:u}function W0(u){const o=parseInt(u,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function Jy(u){const o=Nr.find(f=>f.value===u);return(o==null?void 0:o.value)??"__custom__"}function $y(u){const o=new Date,f=u.getTime()-o.getTime(),r=Math.floor(f/6e4),m=Math.floor(r/60),h=Math.floor(m/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:m<24?`in ${m} hour${m>1?"s":""}`:`in ${h} day${h>1?"s":""}`}function Fy(u){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return u.toLocaleDateString("en-US",o)}function Wy(u){const o=new Date,f=u.getTime()-o.getTime(),r=Math.floor(f/6e4);return r>=0&&r<30}const Iy=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:f}=ht(),[r,m]=N.useState(!1),[h,v]=N.useState(!1),[y,g]=N.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:x,loading:w,error:S,refetch:z}=mt(Dm,[o],{enabled:!f}),{data:M,loading:Q,refetch:H}=mt(Mm,[o],{enabled:!f});N.useEffect(()=>{const le=setInterval(()=>{z()},3e4);return()=>clearInterval(le)},[z]),N.useEffect(()=>{M&&!y.isEditing&&g({executorSchedule:M.cronSchedule,reviewerSchedule:M.reviewerSchedule,isEditing:!1})},[M,y.isEditing]);const k=async()=>{if(x){m(!0);try{x.paused?(await $0(),u({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await wy(),u({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),z()}catch(le){u({title:"Action Failed",message:le instanceof Error?le.message:"Failed to toggle schedule state",type:"error"})}finally{m(!1)}}},G=()=>{M&&g({executorSchedule:M.cronSchedule,reviewerSchedule:M.reviewerSchedule,isEditing:!0})},Y=()=>{M&&g({executorSchedule:M.cronSchedule,reviewerSchedule:M.reviewerSchedule,isEditing:!1})},q=async()=>{if(M){v(!0);try{await Am({cronSchedule:y.executorSchedule,reviewerSchedule:y.reviewerSchedule}),await $0(),u({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),g(le=>({...le,isEditing:!1})),H(),z()}catch(le){u({title:"Save Failed",message:le instanceof Error?le.message:"Failed to save schedules",type:"error"})}finally{v(!1)}}},Z=(le,ge)=>{if(!le)return i.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const $=new Date(le),U=Wy($);return i.jsxs("div",{className:"flex items-center space-x-2",children:[U&&i.jsxs("span",{className:"relative flex h-3 w-3",children:[i.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),i.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),i.jsxs("div",{className:"text-sm",children:[i.jsx("span",{className:"text-slate-200 font-medium",children:$y($)}),i.jsxs("span",{className:"text-slate-500 ml-2",children:["(",Fy($),")"]})]})]})},ne=(le,ge,$,U)=>{const te=Jy(ge),ye=te==="__custom__";return i.jsxs("div",{className:`space-y-3 ${U?"opacity-50 pointer-events-none":""}`,children:[i.jsx("div",{className:"flex items-center space-x-3",children:i.jsx(jr,{label:`${le} Preset`,options:Nr,value:te,onChange:ze=>{ze!=="__custom__"&&$(ze)},className:"flex-1"})}),ye&&i.jsx(ql,{label:"Custom Cron Expression",value:ge,onChange:ze=>$(ze.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),i.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",i.jsx("span",{className:"text-slate-200",children:lr(ge)})]})]})};if(w||Q)return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(S||!x||!M)return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),i.jsx("div",{className:"text-sm text-slate-500",children:(S==null?void 0:S.message)||"Unknown error"}),i.jsx(pe,{onClick:()=>{z(),H()},children:"Retry"})]});const P=x.paused,J=P?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",X=P?"Paused":"Active";return i.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[i.jsx("div",{className:"flex items-center justify-between",children:i.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"})}),i.jsx(He,{className:`p-6 border-2 ${J}`,children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(ji,{className:"h-8 w-8"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),i.jsx("div",{className:"text-2xl font-bold",children:X})]})]}),i.jsx(pe,{variant:P?"primary":"outline",size:"lg",onClick:k,loading:r,children:P?i.jsxs(i.Fragment,{children:[i.jsx(Fn,{className:"h-5 w-5 mr-2"}),"Resume"]}):i.jsxs(i.Fragment,{children:[i.jsx(Rm,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs(He,{className:"p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),!y.isEditing&&i.jsxs(pe,{variant:"ghost",size:"sm",onClick:G,children:[i.jsx(ly,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),y.isEditing?ne("Executor",y.executorSchedule,le=>g(ge=>({...ge,executorSchedule:le}))):i.jsx(i.Fragment,{children:i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),i.jsx("div",{className:"text-lg text-slate-200 font-medium",children:lr(M.cronSchedule)}),i.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:M.cronSchedule})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),Z(x.executor.nextRun,M.cronSchedule)]}),i.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.executor.installed?"text-green-400":"text-amber-400"}`,children:[i.jsx(Pc,{className:"h-4 w-4"}),i.jsx("span",{children:x.executor.installed?"Installed":"Not installed"})]})]})})]}),i.jsxs(He,{className:`p-6 ${M.reviewerEnabled?"":"opacity-50"}`,children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!M.reviewerEnabled&&i.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),y.isEditing?ne("Reviewer",y.reviewerSchedule,le=>g(ge=>({...ge,reviewerSchedule:le})),!M.reviewerEnabled):i.jsx(i.Fragment,{children:i.jsx("div",{className:"space-y-4",children:M.reviewerEnabled?i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),i.jsx("div",{className:"text-lg text-slate-200 font-medium",children:lr(M.reviewerSchedule)}),i.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:M.reviewerSchedule})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),Z(x.reviewer.nextRun,M.reviewerSchedule)]}),i.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[i.jsx(Pc,{className:"h-4 w-4"}),i.jsx("span",{children:x.reviewer.installed?"Installed":"Not installed"})]})]}):i.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),i.jsxs(He,{className:"p-6",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[i.jsx(bi,{className:"h-5 w-5 text-slate-400"}),i.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),x.entries.length===0?i.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):i.jsx("div",{className:"space-y-2",children:x.entries.map((le,ge)=>i.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:le},ge))})]}),y.isEditing&&i.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[i.jsx(pe,{variant:"ghost",onClick:Y,children:"Cancel"}),i.jsxs(pe,{onClick:q,loading:h,children:[i.jsx(Pc,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},Py=()=>{const[u,o]=N.useState(!0),[f,r]=N.useState(""),[m,h]=N.useState("executor"),v=N.useRef(null),{selectedProjectId:y,globalModeLoading:g}=ht(),{data:x,loading:w,error:S,refetch:z}=mt(()=>jy(m,500),[m,y],{enabled:!g}),{data:M}=mt(zm,[y],{enabled:!g}),Q=(x==null?void 0:x.lines)||[];N.useEffect(()=>{u&&v.current&&(v.current.scrollTop=v.current.scrollHeight)},[Q,u]),N.useEffect(()=>{if(!u)return;const Y=window.setInterval(()=>{z()},3e3);return()=>window.clearInterval(Y)},[u,m,z]);const H=Q.filter(Y=>Y.toLowerCase().includes(f.toLowerCase())),k=Y=>{h(Y),r("")},G=Y=>{if(!(M!=null&&M.processes))return!1;const q=M.processes.find(Z=>Z.name===Y);return(q==null?void 0:q.running)??!1};return S?i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),i.jsx("div",{className:"text-sm text-slate-500",children:S.message}),i.jsx(pe,{onClick:()=>z(),children:"Retry"})]}):i.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsxs("div",{className:"relative group",children:[i.jsx("input",{type:"text",placeholder:"Filter logs...",className:"pl-9 pr-4 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent w-64 placeholder:text-slate-600",value:f,onChange:Y=>r(Y.target.value)}),i.jsx(pr,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),i.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),i.jsxs("div",{className:"flex space-x-1",children:[i.jsx("button",{onClick:()=>k("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="executor"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{children:"Executor"}),G("executor")&&i.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),i.jsx("button",{onClick:()=>k("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="reviewer"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{children:"Reviewer"}),G("reviewer")&&i.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsxs(pe,{size:"sm",variant:"ghost",onClick:()=>z(),children:[i.jsx(Z0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),i.jsxs(pe,{size:"sm",variant:"ghost",onClick:()=>o(!u),children:[u?i.jsx(Rm,{className:"h-4 w-4 mr-2"}):i.jsx(Fn,{className:"h-4 w-4 mr-2"}),u?"Pause":"Resume"]})]})]}),i.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[i.jsxs("div",{className:"bg-slate-950/50 backdrop-blur text-xs text-slate-500 px-4 py-1.5 flex justify-between border-b border-slate-800",children:[i.jsxs("span",{children:["File: ",m,".log"]}),i.jsxs("span",{children:[H.length," lines"]})]}),i.jsxs("div",{ref:v,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[w?i.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):H.length===0?i.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:f?"No logs match your filter":"No logs yet — logs will appear after the first run"}):H.map((Y,q)=>{const Z=Y.includes("[ERROR]"),ne=Y.includes("[WARN]");return i.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${Z?"text-red-400":ne?"text-amber-400":"text-slate-300"}`,children:[i.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:q+1}),Y]},q)}),u&&i.jsx("div",{className:"h-4"})," "]}),!u&&i.jsxs("div",{className:"absolute bottom-4 right-4 bg-indigo-600 text-white px-3 py-1.5 rounded-full shadow-lg shadow-indigo-900/40 text-xs font-medium flex items-center cursor-pointer hover:bg-indigo-500 transition-colors",onClick:()=>o(!0),children:[i.jsx(Z0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},e1=({tabs:u,activeTab:o,onChange:f,className:r=""})=>{var g,x;const[m,h]=Ht.useState((g=u[0])==null?void 0:g.id),v=o||m,y=w=>{f?f(w):h(w)};return i.jsxs("div",{className:`flex flex-col ${r}`,children:[i.jsx("div",{className:"border-b border-slate-800 mb-6",children:i.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:u.map(w=>i.jsx("button",{onClick:()=>y(w.id),className:`
353
- whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
354
- ${v===w.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
355
- `,children:w.label},w.id))})}),i.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(x=u.find(w=>w.id===v))==null?void 0:x.content})]})},Sr=Ht.forwardRef(({className:u="",label:o,checked:f,onChange:r,...m},h)=>{const v=y=>{r&&r(y.target.checked)};return i.jsxs("label",{className:`inline-flex items-center cursor-pointer ${u}`,children:[i.jsxs("div",{className:"relative",children:[i.jsx("input",{type:"checkbox",className:"sr-only peer",ref:h,checked:f,onChange:v,...m}),i.jsx("div",{className:"w-11 h-6 bg-slate-800 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-indigo-500/50 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-slate-400 after:border-slate-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600 peer-checked:after:bg-white peer-disabled:opacity-50 peer-disabled:cursor-not-allowed"})]}),o&&i.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});Sr.displayName="Switch";const I0=u=>({provider:u.provider,defaultBranch:u.defaultBranch,branchPrefix:u.branchPrefix,reviewerEnabled:u.reviewerEnabled,minReviewScore:u.minReviewScore,maxRuntime:u.maxRuntime,reviewerMaxRuntime:u.reviewerMaxRuntime,maxLogSize:u.maxLogSize}),t1=()=>{const{addToast:u,projectName:o,selectedProjectId:f,globalModeLoading:r}=ht(),[m,h]=Ht.useState(!1),[v,y]=Ht.useState(null),{data:g,loading:x,error:w,refetch:S}=mt(Mm,[f],{enabled:!r}),{data:z,loading:M,refetch:Q}=mt(Ny,[f],{enabled:!r}),H=z??[];Ht.useEffect(()=>{g&&y(I0(g))},[g]);const k=(Z,ne)=>{y(P=>P&&{...P,[Z]:ne})},G=async()=>{if(v){h(!0);try{await Am({provider:v.provider,defaultBranch:v.defaultBranch,branchPrefix:v.branchPrefix,reviewerEnabled:v.reviewerEnabled,minReviewScore:v.minReviewScore,maxRuntime:v.maxRuntime,reviewerMaxRuntime:v.reviewerMaxRuntime,maxLogSize:v.maxLogSize}),u({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),S(),Q()}catch(Z){u({title:"Save Failed",message:Z instanceof Error?Z.message:"Failed to save configuration",type:"error"})}finally{h(!1)}}},Y=()=>{g&&(y(I0(g)),u({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))};if(x||!v)return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(w)return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),i.jsx("div",{className:"text-sm text-slate-500",children:w.message}),i.jsx(pe,{onClick:()=>S(),children:"Retry"})]});const q=[{id:"general",label:"General",content:i.jsxs(He,{className:"p-6 space-y-4",children:[i.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsx(ql,{label:"Project Name",value:o,disabled:!0}),i.jsx(jr,{label:"Provider",value:v.provider,onChange:Z=>k("provider",Z),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),i.jsx(ql,{label:"Default Branch",value:v.defaultBranch,onChange:Z=>k("defaultBranch",Z.target.value)}),i.jsx(ql,{label:"Branch Prefix",value:v.branchPrefix,onChange:Z=>k("branchPrefix",Z.target.value)}),i.jsx("div",{className:"md:col-span-2",children:i.jsx(Sr,{label:"Enable Automated Reviews",checked:v.reviewerEnabled,onChange:Z=>k("reviewerEnabled",Z)})})]})]})},{id:"runtime",label:"Runtime",content:i.jsxs(He,{className:"p-6 space-y-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("input",{type:"range",min:"0",max:"100",value:v.minReviewScore,onChange:Z=>k("minReviewScore",Number(Z.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),i.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:v.minReviewScore})]}),i.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsx(ql,{label:"Max Runtime (Executor)",type:"number",value:String(v.maxRuntime),onChange:Z=>k("maxRuntime",Number(Z.target.value||0)),rightIcon:i.jsx("span",{className:"text-xs",children:"sec"})}),i.jsx(ql,{label:"Max Runtime (Reviewer)",type:"number",value:String(v.reviewerMaxRuntime),onChange:Z=>k("reviewerMaxRuntime",Number(Z.target.value||0)),rightIcon:i.jsx("span",{className:"text-xs",children:"sec"})}),i.jsx(ql,{label:"Max Log Size",type:"number",value:String(v.maxLogSize),onChange:Z=>k("maxLogSize",Number(Z.target.value||0)),rightIcon:i.jsx("span",{className:"text-xs",children:"bytes"})})]})]})},{id:"env",label:"Provider Env",content:i.jsx(He,{className:"p-6",children:i.jsx("div",{className:"space-y-2",children:Object.entries(g.providerEnv).length===0?i.jsx("p",{className:"text-slate-400 text-sm",children:"No provider environment variables configured."}):Object.entries(g.providerEnv).map(([Z,ne])=>i.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[i.jsx("span",{className:"text-sm font-mono text-slate-300",children:Z}),i.jsx("span",{className:"text-sm text-slate-500",children:ne})]},Z))})})}];return i.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),i.jsx(e1,{tabs:q}),i.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[i.jsxs(pe,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:Y,children:[i.jsx(Cm,{className:"h-4 w-4 mr-2"}),"Reset"]}),i.jsxs(pe,{onClick:G,loading:m,children:[i.jsx(Ip,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),i.jsxs("div",{className:"mt-12",children:[i.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[i.jsx(bm,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),i.jsx(He,{className:"divide-y divide-slate-800",children:M?i.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):H.map((Z,ne)=>{const P=Z.status==="pass",J=Z.status==="warn",X=P?"bg-green-500/10 text-green-400 border-green-500/20":J?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return i.jsxs("div",{className:"p-4 flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-slate-200",children:Z.name}),i.jsx("p",{className:"text-xs text-slate-500",children:Z.detail})]}),i.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${X}`,children:Z.status.toUpperCase()})]},`${Z.name}-${ne}`)})})]})]})},l1=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:f}=ht(),[r,m]=N.useState(!1),[h,v]=N.useState(!1),{data:y,loading:g,error:x,refetch:w}=mt(My,[o],{enabled:!f});N.useEffect(()=>{if(!(y!=null&&y.enabled))return;const Y=setInterval(()=>{w()},1e4);return()=>clearInterval(Y)},[y==null?void 0:y.enabled,w]);const S=async Y=>{v(!0);try{await Dy(Y),u({title:Y?"Scanner Enabled":"Scanner Disabled",message:Y?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:Y?"success":"info"}),w()}catch(q){u({title:"Toggle Failed",message:q instanceof Error?q.message:"Failed to toggle scanner",type:"error"})}finally{v(!1)}},z=async()=>{m(!0);try{const Y=await Ay();Y.created.length>0?u({title:"Scan Complete",message:`Created ${Y.created.length} PRD(s): ${Y.created.join(", ")}`,type:"success"}):u({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),Y.errors.length>0&&u({title:"Scan Errors",message:Y.errors.join("; "),type:"warning"}),w()}catch(Y){u({title:"Scan Failed",message:Y instanceof Error?Y.message:"Failed to scan roadmap",type:"error"})}finally{m(!1)}};if(g)return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(x)return i.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[i.jsx(Vt,{className:"h-12 w-12 text-red-400"}),i.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),i.jsx("div",{className:"text-sm text-slate-500",children:x.message}),i.jsx(pe,{onClick:()=>w(),children:"Retry"})]});if(!y)return null;if(y.status==="no-roadmap")return i.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[i.jsx("div",{className:"flex items-center justify-between",children:i.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),i.jsx(He,{className:"p-12",children:i.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[i.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:i.jsx(wm,{className:"h-10 w-10 text-slate-500"})}),i.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),i.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",i.jsx("code",{className:"text-indigo-400 bg-indigo-500/10 px-1.5 py-0.5 rounded text-sm",children:"ROADMAP.md"})," in your project root with checklist items (",i.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",i.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const M=y.totalItems>0?Math.round(y.processedItems/y.totalItems*100):0,Q=n1(y.status),H=s1(y.items),k=y.lastScan?i1(y.lastScan):"Never",G=y.autoScanInterval?Math.round(y.autoScanInterval/60):5;return i.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(Sr,{label:y.enabled?"Enabled":"Disabled",checked:y.enabled,onChange:S,disabled:h}),i.jsxs(pe,{onClick:z,loading:r,disabled:!y.enabled||y.status==="complete",children:[i.jsx(Fn,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),i.jsx(He,{className:`p-6 border-2 ${Q.borderColor}`,children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(Q.icon,{className:`h-8 w-8 ${Q.textColor}`}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),i.jsx("div",{className:`text-2xl font-bold ${Q.textColor}`,children:Q.label})]})]}),i.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[i.jsxs("div",{children:["Last scan: ",i.jsx("span",{className:"text-slate-300",children:k})]}),y.enabled&&y.status!=="complete"&&i.jsxs("div",{children:["Auto-scan: ",i.jsxs("span",{className:"text-slate-300",children:["every ",G," min"]})]}),y.enabled&&y.status==="complete"&&i.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),i.jsxs(He,{className:"p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),i.jsxs("span",{className:"text-sm text-slate-400",children:[y.processedItems," / ",y.totalItems," items (",M,"%)"]})]}),i.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:i.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${M===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${M}%`}})})]}),Object.entries(H).map(([Y,q])=>i.jsxs(He,{className:"p-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:Y}),i.jsx("div",{className:"space-y-2",children:q.map(Z=>i.jsx(a1,{item:Z},Z.hash))})]},Y))]})};function a1({item:u}){const o=u.checked,f=u.processed;return i.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${o?"bg-slate-950/30 border-slate-800/50":f?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[i.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?i.jsx(Vp,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):f?i.jsx($n,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):i.jsx(Sm,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:`text-sm font-medium truncate ${o?"line-through text-slate-600":"text-slate-200"}`,children:u.title}),u.description&&i.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:u.description})]})]}),i.jsx("div",{className:"flex-shrink-0 ml-3",children:o?i.jsx(ua,{variant:"neutral",children:"Skipped"}):f?i.jsx(ua,{variant:"success",children:u.prdFile||"Processed"}):i.jsx(ua,{variant:"warning",children:"Pending"})})]})}function n1(u){switch(u){case"complete":return{label:"Complete",icon:$n,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:ji,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:Fn,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:Vt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:Vt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function s1(u){const o={};for(const f of u){const r=f.section||"General";o[r]||(o[r]=[]),o[r].push(f)}return o}function i1(u){try{const o=new Date(u),r=new Date().getTime()-o.getTime(),m=Math.floor(r/6e4);if(m<1)return"Just now";if(m<60)return`${m} min ago`;const h=Math.floor(m/60);return h<24?`${h} hr ago`:`${Math.floor(h/24)} day(s) ago`}catch{return"Unknown"}}const u1=({toast:u,onDismiss:o})=>{const f={success:i.jsx($n,{className:"h-5 w-5 text-green-400"}),error:i.jsx(Vt,{className:"h-5 w-5 text-red-400"}),info:i.jsx(Bp,{className:"h-5 w-5 text-blue-400"}),warning:i.jsx(iy,{className:"h-5 w-5 text-amber-400"})},r={success:"border-l-green-500",error:"border-l-red-500",info:"border-l-blue-500",warning:"border-l-amber-500"};return i.jsx("div",{className:`
356
- pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
357
- bg-slate-900 border border-slate-800 border-l-4 ${r[u.type]}
358
- shadow-lg ring-1 ring-black ring-opacity-5 transition-all
359
- animate-in slide-in-from-right-full fade-in duration-300
360
- `,children:i.jsx("div",{className:"p-4",children:i.jsxs("div",{className:"flex items-start",children:[i.jsx("div",{className:"flex-shrink-0",children:f[u.type]}),i.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[i.jsx("p",{className:"text-sm font-medium text-slate-200",children:u.title}),u.message&&i.jsx("p",{className:"mt-1 text-sm text-slate-400",children:u.message})]}),i.jsx("div",{className:"ml-4 flex flex-shrink-0",children:i.jsxs("button",{type:"button",className:"inline-flex rounded-md text-slate-400 hover:text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",onClick:()=>o(u.id),children:[i.jsx("span",{className:"sr-only",children:"Close"}),i.jsx(Ei,{className:"h-5 w-5"})]})})]})})})},c1=()=>{const{toasts:u,removeToast:o}=ht();return i.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex flex-col items-end px-4 py-6 sm:items-end sm:p-6 z-[100] gap-4",children:u.map(f=>i.jsx(u1,{toast:f,onDismiss:o},f.id))})};function r1(){const{setGlobalMode:u,setGlobalModeLoading:o,setProjects:f,selectProject:r,selectedProjectId:m}=ht();N.useEffect(()=>{o(!0),py().then(h=>{u(!0),f(h);const v=h.filter(y=>y.valid);m&&v.some(y=>y.name===m)?r(m):v.length>0&&r(v[0].name)}).catch(()=>{u(!1)}).finally(()=>{o(!1)})},[])}const o1=()=>(r1(),i.jsx(Bg,{children:i.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[i.jsx("div",{className:"absolute top-0 left-0 w-full h-96 bg-indigo-900/10 rounded-full blur-[120px] -translate-y-1/2 pointer-events-none z-0"}),i.jsx(Uy,{}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[i.jsx(Hy,{}),i.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:i.jsx("div",{className:"max-w-7xl mx-auto w-full",children:i.jsxs(mg,{children:[i.jsx(Zt,{path:"/",element:i.jsx(qy,{})}),i.jsx(Zt,{path:"/prds",element:i.jsx(Gy,{})}),i.jsx(Zt,{path:"/prs",element:i.jsx(ky,{})}),i.jsx(Zt,{path:"/board",element:i.jsx(Ky,{})}),i.jsx(Zt,{path:"/scheduling",element:i.jsx(Iy,{})}),i.jsx(Zt,{path:"/logs",element:i.jsx(Py,{})}),i.jsx(Zt,{path:"/roadmap",element:i.jsx(l1,{})}),i.jsx(Zt,{path:"/settings",element:i.jsx(t1,{})}),i.jsx(Zt,{path:"*",element:i.jsx(fg,{to:"/",replace:!0})})]})})})]}),i.jsx(c1,{})]})})),Hm=document.getElementById("root");if(!Hm)throw new Error("Could not find root element to mount to");const f1=xv.createRoot(Hm);f1.render(i.jsx(Ht.StrictMode,{children:i.jsx(o1,{})}));