tlc-claude-code 1.8.0 → 1.8.1
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.
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
var qm=Object.defineProperty;var Xm=(l,i,o)=>i in l?qm(l,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[i]=o;var is=(l,i,o)=>Xm(l,typeof i!="symbol"?i+"":i,o);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function o(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(f){if(f.ep)return;f.ep=!0;const m=o(f);fetch(f.href,m)}})();function fd(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var pi={exports:{}},Br={},hi={exports:{}},le={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Dc;function Jm(){if(Dc)return le;Dc=1;var l=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),p=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),y=Symbol.iterator;function T(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,_={};function C(N,F,re){this.props=N,this.context=F,this.refs=_,this.updater=re||b}C.prototype.isReactComponent={},C.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,F,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function D(){}D.prototype=C.prototype;function M(N,F,re){this.props=N,this.context=F,this.refs=_,this.updater=re||b}var R=M.prototype=new D;R.constructor=M,$(R,C.prototype),R.isPureReactComponent=!0;var U=Array.isArray,Y=Object.prototype.hasOwnProperty,J={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function ne(N,F,re){var se,oe={},ue=null,he=null;if(F!=null)for(se in F.ref!==void 0&&(he=F.ref),F.key!==void 0&&(ue=""+F.key),F)Y.call(F,se)&&!ae.hasOwnProperty(se)&&(oe[se]=F[se]);var de=arguments.length-2;if(de===1)oe.children=re;else if(1<de){for(var ye=Array(de),tt=0;tt<de;tt++)ye[tt]=arguments[tt+2];oe.children=ye}if(N&&N.defaultProps)for(se in de=N.defaultProps,de)oe[se]===void 0&&(oe[se]=de[se]);return{$$typeof:l,type:N,key:ue,ref:he,props:oe,_owner:J.current}}function Ee(N,F){return{$$typeof:l,type:N.type,key:F,ref:N.ref,props:N.props,_owner:N._owner}}function be(N){return typeof N=="object"&&N!==null&&N.$$typeof===l}function pt(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(re){return F[re]})}var at=/\/+/g;function Ve(N,F){return typeof N=="object"&&N!==null&&N.key!=null?pt(""+N.key):F.toString(36)}function et(N,F,re,se,oe){var ue=typeof N;(ue==="undefined"||ue==="boolean")&&(N=null);var he=!1;if(N===null)he=!0;else switch(ue){case"string":case"number":he=!0;break;case"object":switch(N.$$typeof){case l:case i:he=!0}}if(he)return he=N,oe=oe(he),N=se===""?"."+Ve(he,0):se,U(oe)?(re="",N!=null&&(re=N.replace(at,"$&/")+"/"),et(oe,F,re,"",function(tt){return tt})):oe!=null&&(be(oe)&&(oe=Ee(oe,re+(!oe.key||he&&he.key===oe.key?"":(""+oe.key).replace(at,"$&/")+"/")+N)),F.push(oe)),1;if(he=0,se=se===""?".":se+":",U(N))for(var de=0;de<N.length;de++){ue=N[de];var ye=se+Ve(ue,de);he+=et(ue,F,re,ye,oe)}else if(ye=T(N),typeof ye=="function")for(N=ye.call(N),de=0;!(ue=N.next()).done;)ue=ue.value,ye=se+Ve(ue,de++),he+=et(ue,F,re,ye,oe);else if(ue==="object")throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return he}function je(N,F,re){if(N==null)return N;var se=[],oe=0;return et(N,se,"","",function(ue){return F.call(re,ue,oe++)}),se}function $e(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(re){(N._status===0||N._status===-1)&&(N._status=1,N._result=re)},function(re){(N._status===0||N._status===-1)&&(N._status=2,N._result=re)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var me={current:null},B={transition:null},Z={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:B,ReactCurrentOwner:J};function W(){throw Error("act(...) is not supported in production builds of React.")}return le.Children={map:je,forEach:function(N,F,re){je(N,function(){F.apply(this,arguments)},re)},count:function(N){var F=0;return je(N,function(){F++}),F},toArray:function(N){return je(N,function(F){return F})||[]},only:function(N){if(!be(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},le.Component=C,le.Fragment=o,le.Profiler=f,le.PureComponent=M,le.StrictMode=c,le.Suspense=v,le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,le.act=W,le.cloneElement=function(N,F,re){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var se=$({},N.props),oe=N.key,ue=N.ref,he=N._owner;if(F!=null){if(F.ref!==void 0&&(ue=F.ref,he=J.current),F.key!==void 0&&(oe=""+F.key),N.type&&N.type.defaultProps)var de=N.type.defaultProps;for(ye in F)Y.call(F,ye)&&!ae.hasOwnProperty(ye)&&(se[ye]=F[ye]===void 0&&de!==void 0?de[ye]:F[ye])}var ye=arguments.length-2;if(ye===1)se.children=re;else if(1<ye){de=Array(ye);for(var tt=0;tt<ye;tt++)de[tt]=arguments[tt+2];se.children=de}return{$$typeof:l,type:N.type,key:oe,ref:ue,props:se,_owner:he}},le.createContext=function(N){return N={$$typeof:p,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:m,_context:N},N.Consumer=N},le.createElement=ne,le.createFactory=function(N){var F=ne.bind(null,N);return F.type=N,F},le.createRef=function(){return{current:null}},le.forwardRef=function(N){return{$$typeof:x,render:N}},le.isValidElement=be,le.lazy=function(N){return{$$typeof:k,_payload:{_status:-1,_result:N},_init:$e}},le.memo=function(N,F){return{$$typeof:w,type:N,compare:F===void 0?null:F}},le.startTransition=function(N){var F=B.transition;B.transition={};try{N()}finally{B.transition=F}},le.unstable_act=W,le.useCallback=function(N,F){return me.current.useCallback(N,F)},le.useContext=function(N){return me.current.useContext(N)},le.useDebugValue=function(){},le.useDeferredValue=function(N){return me.current.useDeferredValue(N)},le.useEffect=function(N,F){return me.current.useEffect(N,F)},le.useId=function(){return me.current.useId()},le.useImperativeHandle=function(N,F,re){return me.current.useImperativeHandle(N,F,re)},le.useInsertionEffect=function(N,F){return me.current.useInsertionEffect(N,F)},le.useLayoutEffect=function(N,F){return me.current.useLayoutEffect(N,F)},le.useMemo=function(N,F){return me.current.useMemo(N,F)},le.useReducer=function(N,F,re){return me.current.useReducer(N,F,re)},le.useRef=function(N){return me.current.useRef(N)},le.useState=function(N){return me.current.useState(N)},le.useSyncExternalStore=function(N,F,re){return me.current.useSyncExternalStore(N,F,re)},le.useTransition=function(){return me.current.useTransition()},le.version="18.3.1",le}var zc;function Ti(){return zc||(zc=1,hi.exports=Jm()),hi.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 Fc;function Zm(){if(Fc)return Br;Fc=1;var l=Ti(),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(x,v,w){var k,y={},T=null,b=null;w!==void 0&&(T=""+w),v.key!==void 0&&(T=""+v.key),v.ref!==void 0&&(b=v.ref);for(k in v)c.call(v,k)&&!m.hasOwnProperty(k)&&(y[k]=v[k]);if(x&&x.defaultProps)for(k in v=x.defaultProps,v)y[k]===void 0&&(y[k]=v[k]);return{$$typeof:i,type:x,key:T,ref:b,props:y,_owner:f.current}}return Br.Fragment=o,Br.jsx=p,Br.jsxs=p,Br}var Ic;function ep(){return Ic||(Ic=1,pi.exports=Zm()),pi.exports}var a=ep(),h=Ti();const Vr=fd(h);var os={},gi={exports:{}},Ze={},xi={exports:{}},vi={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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 Oc;function tp(){return Oc||(Oc=1,(function(l){function i(B,Z){var W=B.length;B.push(Z);e:for(;0<W;){var N=W-1>>>1,F=B[N];if(0<f(F,Z))B[N]=Z,B[W]=F,W=N;else break e}}function o(B){return B.length===0?null:B[0]}function c(B){if(B.length===0)return null;var Z=B[0],W=B.pop();if(W!==Z){B[0]=W;e:for(var N=0,F=B.length,re=F>>>1;N<re;){var se=2*(N+1)-1,oe=B[se],ue=se+1,he=B[ue];if(0>f(oe,W))ue<F&&0>f(he,oe)?(B[N]=he,B[ue]=W,N=ue):(B[N]=oe,B[se]=W,N=se);else if(ue<F&&0>f(he,W))B[N]=he,B[ue]=W,N=ue;else break e}}return Z}function f(B,Z){var W=B.sortIndex-Z.sortIndex;return W!==0?W:B.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var p=Date,x=p.now();l.unstable_now=function(){return p.now()-x}}var v=[],w=[],k=1,y=null,T=3,b=!1,$=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(B){for(var Z=o(w);Z!==null;){if(Z.callback===null)c(w);else if(Z.startTime<=B)c(w),Z.sortIndex=Z.expirationTime,i(v,Z);else break;Z=o(w)}}function U(B){if(_=!1,R(B),!$)if(o(v)!==null)$=!0,$e(Y);else{var Z=o(w);Z!==null&&me(U,Z.startTime-B)}}function Y(B,Z){$=!1,_&&(_=!1,D(ne),ne=-1),b=!0;var W=T;try{for(R(Z),y=o(v);y!==null&&(!(y.expirationTime>Z)||B&&!pt());){var N=y.callback;if(typeof N=="function"){y.callback=null,T=y.priorityLevel;var F=N(y.expirationTime<=Z);Z=l.unstable_now(),typeof F=="function"?y.callback=F:y===o(v)&&c(v),R(Z)}else c(v);y=o(v)}if(y!==null)var re=!0;else{var se=o(w);se!==null&&me(U,se.startTime-Z),re=!1}return re}finally{y=null,T=W,b=!1}}var J=!1,ae=null,ne=-1,Ee=5,be=-1;function pt(){return!(l.unstable_now()-be<Ee)}function at(){if(ae!==null){var B=l.unstable_now();be=B;var Z=!0;try{Z=ae(!0,B)}finally{Z?Ve():(J=!1,ae=null)}}else J=!1}var Ve;if(typeof M=="function")Ve=function(){M(at)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,je=et.port2;et.port1.onmessage=at,Ve=function(){je.postMessage(null)}}else Ve=function(){C(at,0)};function $e(B){ae=B,J||(J=!0,Ve())}function me(B,Z){ne=C(function(){B(l.unstable_now())},Z)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(B){B.callback=null},l.unstable_continueExecution=function(){$||b||($=!0,$e(Y))},l.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<B?Math.floor(1e3/B):5},l.unstable_getCurrentPriorityLevel=function(){return T},l.unstable_getFirstCallbackNode=function(){return o(v)},l.unstable_next=function(B){switch(T){case 1:case 2:case 3:var Z=3;break;default:Z=T}var W=T;T=Z;try{return B()}finally{T=W}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(B,Z){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var W=T;T=B;try{return Z()}finally{T=W}},l.unstable_scheduleCallback=function(B,Z,W){var N=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?N+W:N):W=N,B){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=W+F,B={id:k++,callback:Z,priorityLevel:B,startTime:W,expirationTime:F,sortIndex:-1},W>N?(B.sortIndex=W,i(w,B),o(v)===null&&B===o(w)&&(_?(D(ne),ne=-1):_=!0,me(U,W-N))):(B.sortIndex=F,i(v,B),$||b||($=!0,$e(Y))),B},l.unstable_shouldYield=pt,l.unstable_wrapCallback=function(B){var Z=T;return function(){var W=T;T=Z;try{return B.apply(this,arguments)}finally{T=W}}}})(vi)),vi}var $c;function np(){return $c||($c=1,xi.exports=tp()),xi.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 Ac;function rp(){if(Ac)return Ze;Ac=1;var l=Ti(),i=np();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var c=new Set,f={};function m(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var x=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,w=/^[: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]*$/,k={},y={};function T(e){return v.call(y,e)?!0:v.call(k,e)?!1:w.test(e)?y[e]=!0:(k[e]=!0,!1)}function b(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $(e,t,n,r){if(t===null||typeof t>"u"||b(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,r,s,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new _(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new _(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function M(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(D,M);C[t]=new _(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D,M);C[t]=new _(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D,M);C[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,t,n,r){var s=C.hasOwnProperty(t)?C[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($(t,n,s,r)&&(n=null),r||s===null?T(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var U=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=Symbol.for("react.element"),J=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),pt=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),me=Symbol.for("react.offscreen"),B=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,N;function F(e){if(N===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return`
|
|
34
|
+
`+N+e}var re=!1;function se(e,t){if(!e||re)return"";re=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(L){var r=L}Reflect.construct(e,[],t)}else{try{t.call()}catch(L){r=L}e.call(t.prototype)}else{try{throw Error()}catch(L){r=L}e()}}catch(L){if(L&&r&&typeof L.stack=="string"){for(var s=L.stack.split(`
|
|
35
|
+
`),u=r.stack.split(`
|
|
36
|
+
`),d=s.length-1,g=u.length-1;1<=d&&0<=g&&s[d]!==u[g];)g--;for(;1<=d&&0<=g;d--,g--)if(s[d]!==u[g]){if(d!==1||g!==1)do if(d--,g--,0>g||s[d]!==u[g]){var j=`
|
|
37
|
+
`+s[d].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=d&&0<=g);break}}}finally{re=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function oe(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return""}}function ue(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ae:return"Fragment";case J:return"Portal";case Ee:return"Profiler";case ne:return"StrictMode";case Ve:return"Suspense";case et:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pt:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case at:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case je:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case $e:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ue(t);case 8:return t===ne?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function de(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tt(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){r=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(d){r=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xr(e){e._valueTracker||(e._valueTracker=tt(e))}function $i(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(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}}function js(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ai(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=de(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ui(e,t){t=t.checked,t!=null&&R(e,"checked",t,!1)}function ks(e,t){Ui(e,t);var n=de(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ss(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ss(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bi(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ss(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rr=Array.isArray;function Nn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+de(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ns(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(rr(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:de(n)}}function Vi(e,t){var n=de(t.value),r=de(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Wi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Cs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qi(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zr,Ki=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zr=Zr||document.createElement("div"),Zr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zd=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(e){Zd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sr[t]=sr[e]})});function Gi(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||sr.hasOwnProperty(e)&&sr[e]?(""+t).trim():t+"px"}function Yi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gi(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var ef=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Es(e,t){if(t){if(ef[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Rs=null;function Ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bs=null,Cn=null,En=null;function qi(e){if(e=Tr(e)){if(typeof bs!="function")throw Error(o(280));var t=e.stateNode;t&&(t=kl(t),bs(e.stateNode,e.type,t))}}function Xi(e){Cn?En?En.push(e):En=[e]:Cn=e}function Ji(){if(Cn){var e=Cn,t=En;if(En=Cn=null,qi(e),t)for(e=0;e<t.length;e++)qi(t[e])}}function Zi(e,t){return e(t)}function eo(){}var Ls=!1;function to(e,t,n){if(Ls)return e(t,n);Ls=!0;try{return Zi(e,t,n)}finally{Ls=!1,(Cn!==null||En!==null)&&(eo(),Ji())}}function ar(e,t){var n=e.stateNode;if(n===null)return null;var r=kl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var _s=!1;if(x)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){_s=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{_s=!1}function tf(e,t,n,r,s,u,d,g,j){var L=Array.prototype.slice.call(arguments,3);try{t.apply(n,L)}catch(I){this.onError(I)}}var or=!1,el=null,tl=!1,Ms=null,nf={onError:function(e){or=!0,el=e}};function rf(e,t,n,r,s,u,d,g,j){or=!1,el=null,tf.apply(nf,arguments)}function lf(e,t,n,r,s,u,d,g,j){if(rf.apply(this,arguments),or){if(or){var L=el;or=!1,el=null}else throw Error(o(198));tl||(tl=!0,Ms=L)}}function un(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function no(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 ro(e){if(un(e)!==e)throw Error(o(188))}function sf(e){var t=e.alternate;if(!t){if(t=un(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return ro(s),e;if(u===r)return ro(s),t;u=u.sibling}throw Error(o(188))}if(n.return!==r.return)n=s,r=u;else{for(var d=!1,g=s.child;g;){if(g===n){d=!0,n=s,r=u;break}if(g===r){d=!0,r=s,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,r=s;break}if(g===r){d=!0,r=u,n=s;break}g=g.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function lo(e){return e=sf(e),e!==null?so(e):null}function so(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=so(e);if(t!==null)return t;e=e.sibling}return null}var ao=i.unstable_scheduleCallback,io=i.unstable_cancelCallback,af=i.unstable_shouldYield,of=i.unstable_requestPaint,Te=i.unstable_now,uf=i.unstable_getCurrentPriorityLevel,Ds=i.unstable_ImmediatePriority,oo=i.unstable_UserBlockingPriority,nl=i.unstable_NormalPriority,cf=i.unstable_LowPriority,uo=i.unstable_IdlePriority,rl=null,Nt=null;function df(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(rl,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:pf,ff=Math.log,mf=Math.LN2;function pf(e){return e>>>=0,e===0?32:31-(ff(e)/mf|0)|0}var ll=64,sl=4194304;function ur(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var g=d&~s;g!==0?r=ur(g):(u&=d,u!==0&&(r=ur(u)))}else d=n&~s,d!==0?r=ur(d):u!==0&&(r=ur(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&s)===0&&(s=r&-r,u=t&-t,s>=u||s===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ht(t),s=1<<n,r|=e[n],t&=~s;return r}function hf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-ht(u),g=1<<d,j=s[d];j===-1?((g&n)===0||(g&r)!==0)&&(s[d]=hf(g,t)):j<=t&&(e.expiredLanes|=g),u&=~g}}function zs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function co(){var e=ll;return ll<<=1,(ll&4194240)===0&&(ll=64),e}function Fs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function xf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-ht(n),u=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~u}}function Is(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ht(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var fe=0;function fo(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var mo,Os,po,ho,go,$s=!1,il=[],Ht=null,Vt=null,Wt=null,dr=new Map,fr=new Map,Qt=[],vf="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 submit".split(" ");function xo(e,t){switch(e){case"focusin":case"focusout":Ht=null;break;case"dragenter":case"dragleave":Vt=null;break;case"mouseover":case"mouseout":Wt=null;break;case"pointerover":case"pointerout":dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fr.delete(t.pointerId)}}function mr(e,t,n,r,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Tr(t),t!==null&&Os(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function yf(e,t,n,r,s){switch(t){case"focusin":return Ht=mr(Ht,e,t,n,r,s),!0;case"dragenter":return Vt=mr(Vt,e,t,n,r,s),!0;case"mouseover":return Wt=mr(Wt,e,t,n,r,s),!0;case"pointerover":var u=s.pointerId;return dr.set(u,mr(dr.get(u)||null,e,t,n,r,s)),!0;case"gotpointercapture":return u=s.pointerId,fr.set(u,mr(fr.get(u)||null,e,t,n,r,s)),!0}return!1}function vo(e){var t=cn(e.target);if(t!==null){var n=un(t);if(n!==null){if(t=n.tag,t===13){if(t=no(n),t!==null){e.blockedOn=t,go(e.priority,function(){po(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ol(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Us(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Rs=r,n.target.dispatchEvent(r),Rs=null}else return t=Tr(n),t!==null&&Os(t),e.blockedOn=n,!1;t.shift()}return!0}function yo(e,t,n){ol(e)&&n.delete(t)}function wf(){$s=!1,Ht!==null&&ol(Ht)&&(Ht=null),Vt!==null&&ol(Vt)&&(Vt=null),Wt!==null&&ol(Wt)&&(Wt=null),dr.forEach(yo),fr.forEach(yo)}function pr(e,t){e.blockedOn===t&&(e.blockedOn=null,$s||($s=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wf)))}function hr(e){function t(s){return pr(s,e)}if(0<il.length){pr(il[0],e);for(var n=1;n<il.length;n++){var r=il[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ht!==null&&pr(Ht,e),Vt!==null&&pr(Vt,e),Wt!==null&&pr(Wt,e),dr.forEach(t),fr.forEach(t),n=0;n<Qt.length;n++)r=Qt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Qt.length&&(n=Qt[0],n.blockedOn===null);)vo(n),n.blockedOn===null&&Qt.shift()}var Tn=U.ReactCurrentBatchConfig,ul=!0;function jf(e,t,n,r){var s=fe,u=Tn.transition;Tn.transition=null;try{fe=1,As(e,t,n,r)}finally{fe=s,Tn.transition=u}}function kf(e,t,n,r){var s=fe,u=Tn.transition;Tn.transition=null;try{fe=4,As(e,t,n,r)}finally{fe=s,Tn.transition=u}}function As(e,t,n,r){if(ul){var s=Us(e,t,n,r);if(s===null)la(e,t,r,cl,n),xo(e,r);else if(yf(s,e,t,n,r))r.stopPropagation();else if(xo(e,r),t&4&&-1<vf.indexOf(e)){for(;s!==null;){var u=Tr(s);if(u!==null&&mo(u),u=Us(e,t,n,r),u===null&&la(e,t,r,cl,n),u===s)break;s=u}s!==null&&r.stopPropagation()}else la(e,t,r,null,n)}}var cl=null;function Us(e,t,n,r){if(cl=null,e=Ps(r),e=cn(e),e!==null)if(t=un(e),t===null)e=null;else if(n=t.tag,n===13){if(e=no(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return cl=e,null}function wo(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(uf()){case Ds:return 1;case oo:return 4;case nl:case cf:return 16;case uo:return 536870912;default:return 16}default:return 16}}var Kt=null,Bs=null,dl=null;function jo(){if(dl)return dl;var e,t=Bs,n=t.length,r,s="value"in Kt?Kt.value:Kt.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(r=1;r<=d&&t[n-r]===s[u-r];r++);return dl=s.slice(e,1<r?1-r:void 0)}function fl(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 ml(){return!0}function ko(){return!1}function nt(e){function t(n,r,s,u,d){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ml:ko,this.isPropagationStopped=ko,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ml)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hs=nt(Rn),gr=W({},Rn,{view:0,detail:0}),Sf=nt(gr),Vs,Ws,xr,pl=W({},gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,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!==xr&&(xr&&e.type==="mousemove"?(Vs=e.screenX-xr.screenX,Ws=e.screenY-xr.screenY):Ws=Vs=0,xr=e),Vs)},movementY:function(e){return"movementY"in e?e.movementY:Ws}}),So=nt(pl),Nf=W({},pl,{dataTransfer:0}),Cf=nt(Nf),Ef=W({},gr,{relatedTarget:0}),Qs=nt(Ef),Tf=W({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=nt(Tf),Pf=W({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bf=nt(Pf),Lf=W({},Rn,{data:0}),No=nt(Lf),_f={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mf={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"},Df={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Df[e])?!!t[e]:!1}function Ks(){return zf}var Ff=W({},gr,{key:function(e){if(e.key){var t=_f[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),If=nt(Ff),Of=W({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Co=nt(Of),$f=W({},gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),Af=nt($f),Uf=W({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bf=nt(Uf),Hf=W({},pl,{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}),Vf=nt(Hf),Wf=[9,13,27,32],Gs=x&&"CompositionEvent"in window,vr=null;x&&"documentMode"in document&&(vr=document.documentMode);var Qf=x&&"TextEvent"in window&&!vr,Eo=x&&(!Gs||vr&&8<vr&&11>=vr),To=" ",Ro=!1;function Po(e,t){switch(e){case"keyup":return Wf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pn=!1;function Kf(e,t){switch(e){case"compositionend":return bo(t);case"keypress":return t.which!==32?null:(Ro=!0,To);case"textInput":return e=t.data,e===To&&Ro?null:e;default:return null}}function Gf(e,t){if(Pn)return e==="compositionend"||!Gs&&Po(e,t)?(e=jo(),dl=Bs=Kt=null,Pn=!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 Yf={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 Lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Yf[e.type]:t==="textarea"}function _o(e,t,n,r){Xi(r),t=yl(t,"onChange"),0<t.length&&(n=new Hs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yr=null,wr=null;function qf(e){qo(e,0)}function hl(e){var t=Dn(e);if($i(t))return e}function Xf(e,t){if(e==="change")return t}var Mo=!1;if(x){var Ys;if(x){var qs="oninput"in document;if(!qs){var Do=document.createElement("div");Do.setAttribute("oninput","return;"),qs=typeof Do.oninput=="function"}Ys=qs}else Ys=!1;Mo=Ys&&(!document.documentMode||9<document.documentMode)}function zo(){yr&&(yr.detachEvent("onpropertychange",Fo),wr=yr=null)}function Fo(e){if(e.propertyName==="value"&&hl(wr)){var t=[];_o(t,wr,e,Ps(e)),to(qf,t)}}function Jf(e,t,n){e==="focusin"?(zo(),yr=t,wr=n,yr.attachEvent("onpropertychange",Fo)):e==="focusout"&&zo()}function Zf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hl(wr)}function em(e,t){if(e==="click")return hl(t)}function tm(e,t){if(e==="input"||e==="change")return hl(t)}function nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:nm;function jr(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!v.call(t,s)||!gt(e[s],t[s]))return!1}return!0}function Io(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oo(e,t){var n=Io(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Io(n)}}function $o(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$o(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ao(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function Xs(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")}function rm(e){var t=Ao(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$o(n.ownerDocument.documentElement,n)){if(r!==null&&Xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,u=Math.min(r.start,s);r=r.end===void 0?u:Math.min(r.end,s),!e.extend&&u>r&&(s=r,r=u,u=s),s=Oo(n,u);var d=Oo(n,r);s&&d&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lm=x&&"documentMode"in document&&11>=document.documentMode,bn=null,Js=null,kr=null,Zs=!1;function Uo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zs||bn==null||bn!==Jr(r)||(r=bn,"selectionStart"in r&&Xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&jr(kr,r)||(kr=r,r=yl(Js,"onSelect"),0<r.length&&(t=new Hs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bn)))}function gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ln={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionend:gl("Transition","TransitionEnd")},ea={},Bo={};x&&(Bo=document.createElement("div").style,"AnimationEvent"in window||(delete Ln.animationend.animation,delete Ln.animationiteration.animation,delete Ln.animationstart.animation),"TransitionEvent"in window||delete Ln.transitionend.transition);function xl(e){if(ea[e])return ea[e];if(!Ln[e])return e;var t=Ln[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bo)return ea[e]=t[n];return e}var Ho=xl("animationend"),Vo=xl("animationiteration"),Wo=xl("animationstart"),Qo=xl("transitionend"),Ko=new Map,Go="abort auxClick 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(" ");function Gt(e,t){Ko.set(e,t),m(t,[e])}for(var ta=0;ta<Go.length;ta++){var na=Go[ta],sm=na.toLowerCase(),am=na[0].toUpperCase()+na.slice(1);Gt(sm,"on"+am)}Gt(Ho,"onAnimationEnd"),Gt(Vo,"onAnimationIteration"),Gt(Wo,"onAnimationStart"),Gt("dblclick","onDoubleClick"),Gt("focusin","onFocus"),Gt("focusout","onBlur"),Gt(Qo,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="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(" "),im=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Yo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,lf(r,t,void 0,e),e.currentTarget=null}function qo(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var d=r.length-1;0<=d;d--){var g=r[d],j=g.instance,L=g.currentTarget;if(g=g.listener,j!==u&&s.isPropagationStopped())break e;Yo(s,g,L),u=j}else for(d=0;d<r.length;d++){if(g=r[d],j=g.instance,L=g.currentTarget,g=g.listener,j!==u&&s.isPropagationStopped())break e;Yo(s,g,L),u=j}}}if(tl)throw e=Ms,tl=!1,Ms=null,e}function xe(e,t){var n=t[ca];n===void 0&&(n=t[ca]=new Set);var r=e+"__bubble";n.has(r)||(Xo(t,e,2,!1),n.add(r))}function ra(e,t,n){var r=0;t&&(r|=4),Xo(n,e,r,t)}var vl="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){if(!e[vl]){e[vl]=!0,c.forEach(function(n){n!=="selectionchange"&&(im.has(n)||ra(n,!1,e),ra(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vl]||(t[vl]=!0,ra("selectionchange",!1,t))}}function Xo(e,t,n,r){switch(wo(t)){case 1:var s=jf;break;case 4:s=kf;break;default:s=As}n=s.bind(null,t,n,e),s=void 0,!_s||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function la(e,t,n,r,s){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var d=r.tag;if(d===3||d===4){var g=r.stateNode.containerInfo;if(g===s||g.nodeType===8&&g.parentNode===s)break;if(d===4)for(d=r.return;d!==null;){var j=d.tag;if((j===3||j===4)&&(j=d.stateNode.containerInfo,j===s||j.nodeType===8&&j.parentNode===s))return;d=d.return}for(;g!==null;){if(d=cn(g),d===null)return;if(j=d.tag,j===5||j===6){r=u=d;continue e}g=g.parentNode}}r=r.return}to(function(){var L=u,I=Ps(n),O=[];e:{var z=Ko.get(e);if(z!==void 0){var H=Hs,Q=e;switch(e){case"keypress":if(fl(n)===0)break e;case"keydown":case"keyup":H=If;break;case"focusin":Q="focus",H=Qs;break;case"focusout":Q="blur",H=Qs;break;case"beforeblur":case"afterblur":H=Qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=So;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Cf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Af;break;case Ho:case Vo:case Wo:H=Rf;break;case Qo:H=Bf;break;case"scroll":H=Sf;break;case"wheel":H=Vf;break;case"copy":case"cut":case"paste":H=bf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Co}var K=(t&4)!==0,Re=!K&&e==="scroll",E=K?z!==null?z+"Capture":null:z;K=[];for(var S=L,P;S!==null;){P=S;var A=P.stateNode;if(P.tag===5&&A!==null&&(P=A,E!==null&&(A=ar(S,E),A!=null&&K.push(Cr(S,A,P)))),Re)break;S=S.return}0<K.length&&(z=new H(z,Q,null,n,I),O.push({event:z,listeners:K}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",z&&n!==Rs&&(Q=n.relatedTarget||n.fromElement)&&(cn(Q)||Q[Lt]))break e;if((H||z)&&(z=I.window===I?I:(z=I.ownerDocument)?z.defaultView||z.parentWindow:window,H?(Q=n.relatedTarget||n.toElement,H=L,Q=Q?cn(Q):null,Q!==null&&(Re=un(Q),Q!==Re||Q.tag!==5&&Q.tag!==6)&&(Q=null)):(H=null,Q=L),H!==Q)){if(K=So,A="onMouseLeave",E="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(K=Co,A="onPointerLeave",E="onPointerEnter",S="pointer"),Re=H==null?z:Dn(H),P=Q==null?z:Dn(Q),z=new K(A,S+"leave",H,n,I),z.target=Re,z.relatedTarget=P,A=null,cn(I)===L&&(K=new K(E,S+"enter",Q,n,I),K.target=P,K.relatedTarget=Re,A=K),Re=A,H&&Q)t:{for(K=H,E=Q,S=0,P=K;P;P=_n(P))S++;for(P=0,A=E;A;A=_n(A))P++;for(;0<S-P;)K=_n(K),S--;for(;0<P-S;)E=_n(E),P--;for(;S--;){if(K===E||E!==null&&K===E.alternate)break t;K=_n(K),E=_n(E)}K=null}else K=null;H!==null&&Jo(O,z,H,K,!1),Q!==null&&Re!==null&&Jo(O,Re,Q,K,!0)}}e:{if(z=L?Dn(L):window,H=z.nodeName&&z.nodeName.toLowerCase(),H==="select"||H==="input"&&z.type==="file")var G=Xf;else if(Lo(z))if(Mo)G=tm;else{G=Zf;var q=Jf}else(H=z.nodeName)&&H.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(G=em);if(G&&(G=G(e,L))){_o(O,G,n,I);break e}q&&q(e,z,L),e==="focusout"&&(q=z._wrapperState)&&q.controlled&&z.type==="number"&&Ss(z,"number",z.value)}switch(q=L?Dn(L):window,e){case"focusin":(Lo(q)||q.contentEditable==="true")&&(bn=q,Js=L,kr=null);break;case"focusout":kr=Js=bn=null;break;case"mousedown":Zs=!0;break;case"contextmenu":case"mouseup":case"dragend":Zs=!1,Uo(O,n,I);break;case"selectionchange":if(lm)break;case"keydown":case"keyup":Uo(O,n,I)}var X;if(Gs)e:{switch(e){case"compositionstart":var ee="onCompositionStart";break e;case"compositionend":ee="onCompositionEnd";break e;case"compositionupdate":ee="onCompositionUpdate";break e}ee=void 0}else Pn?Po(e,n)&&(ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ee="onCompositionStart");ee&&(Eo&&n.locale!=="ko"&&(Pn||ee!=="onCompositionStart"?ee==="onCompositionEnd"&&Pn&&(X=jo()):(Kt=I,Bs="value"in Kt?Kt.value:Kt.textContent,Pn=!0)),q=yl(L,ee),0<q.length&&(ee=new No(ee,e,null,n,I),O.push({event:ee,listeners:q}),X?ee.data=X:(X=bo(n),X!==null&&(ee.data=X)))),(X=Qf?Kf(e,n):Gf(e,n))&&(L=yl(L,"onBeforeInput"),0<L.length&&(I=new No("onBeforeInput","beforeinput",null,n,I),O.push({event:I,listeners:L}),I.data=X))}qo(O,t)})}function Cr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,u=s.stateNode;s.tag===5&&u!==null&&(s=u,u=ar(e,n),u!=null&&r.unshift(Cr(e,u,s)),u=ar(e,t),u!=null&&r.push(Cr(e,u,s))),e=e.return}return r}function _n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jo(e,t,n,r,s){for(var u=t._reactName,d=[];n!==null&&n!==r;){var g=n,j=g.alternate,L=g.stateNode;if(j!==null&&j===r)break;g.tag===5&&L!==null&&(g=L,s?(j=ar(n,u),j!=null&&d.unshift(Cr(n,j,g))):s||(j=ar(n,u),j!=null&&d.push(Cr(n,j,g)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var om=/\r\n?/g,um=/\u0000|\uFFFD/g;function Zo(e){return(typeof e=="string"?e:""+e).replace(om,`
|
|
38
|
+
`).replace(um,"")}function wl(e,t,n){if(t=Zo(t),Zo(e)!==t&&n)throw Error(o(425))}function jl(){}var sa=null,aa=null;function ia(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var oa=typeof setTimeout=="function"?setTimeout:void 0,cm=typeof clearTimeout=="function"?clearTimeout:void 0,eu=typeof Promise=="function"?Promise:void 0,dm=typeof queueMicrotask=="function"?queueMicrotask:typeof eu<"u"?function(e){return eu.resolve(null).then(e).catch(fm)}:oa;function fm(e){setTimeout(function(){throw e})}function ua(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),hr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);hr(t)}function Yt(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==="$?")break;if(t==="/$")return null}}return e}function tu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mn=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Mn,Er="__reactProps$"+Mn,Lt="__reactContainer$"+Mn,ca="__reactEvents$"+Mn,mm="__reactListeners$"+Mn,pm="__reactHandles$"+Mn;function cn(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lt]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tu(e);e!==null;){if(n=e[Ct])return n;e=tu(e)}return t}e=n,n=e.parentNode}return null}function Tr(e){return e=e[Ct]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function kl(e){return e[Er]||null}var da=[],zn=-1;function qt(e){return{current:e}}function ve(e){0>zn||(e.current=da[zn],da[zn]=null,zn--)}function ge(e,t){zn++,da[zn]=e.current,e.current=t}var Xt={},Ae=qt(Xt),Ge=qt(!1),dn=Xt;function Fn(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},u;for(u in n)s[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ye(e){return e=e.childContextTypes,e!=null}function Sl(){ve(Ge),ve(Ae)}function nu(e,t,n){if(Ae.current!==Xt)throw Error(o(168));ge(Ae,t),ge(Ge,n)}function ru(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(o(108,he(e)||"Unknown",s));return W({},n,r)}function Nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,dn=Ae.current,ge(Ae,e),ge(Ge,Ge.current),!0}function lu(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ru(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,ve(Ge),ve(Ae),ge(Ae,e)):ve(Ge),ge(Ge,n)}var _t=null,Cl=!1,fa=!1;function su(e){_t===null?_t=[e]:_t.push(e)}function hm(e){Cl=!0,su(e)}function Jt(){if(!fa&&_t!==null){fa=!0;var e=0,t=fe;try{var n=_t;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_t=null,Cl=!1}catch(s){throw _t!==null&&(_t=_t.slice(e+1)),ao(Ds,Jt),s}finally{fe=t,fa=!1}}return null}var In=[],On=0,El=null,Tl=0,it=[],ot=0,fn=null,Mt=1,Dt="";function mn(e,t){In[On++]=Tl,In[On++]=El,El=e,Tl=t}function au(e,t,n){it[ot++]=Mt,it[ot++]=Dt,it[ot++]=fn,fn=e;var r=Mt;e=Dt;var s=32-ht(r)-1;r&=~(1<<s),n+=1;var u=32-ht(t)+s;if(30<u){var d=s-s%5;u=(r&(1<<d)-1).toString(32),r>>=d,s-=d,Mt=1<<32-ht(t)+s|n<<s|r,Dt=u+e}else Mt=1<<u|n<<s|r,Dt=e}function ma(e){e.return!==null&&(mn(e,1),au(e,1,0))}function pa(e){for(;e===El;)El=In[--On],In[On]=null,Tl=In[--On],In[On]=null;for(;e===fn;)fn=it[--ot],it[ot]=null,Dt=it[--ot],it[ot]=null,Mt=it[--ot],it[ot]=null}var rt=null,lt=null,we=!1,xt=null;function iu(e,t){var n=ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ou(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,lt=Yt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fn!==null?{id:Mt,overflow:Dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,lt=null,!0):!1;default:return!1}}function ha(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ga(e){if(we){var t=lt;if(t){var n=t;if(!ou(e,t)){if(ha(e))throw Error(o(418));t=Yt(n.nextSibling);var r=rt;t&&ou(e,t)?iu(r,n):(e.flags=e.flags&-4097|2,we=!1,rt=e)}}else{if(ha(e))throw Error(o(418));e.flags=e.flags&-4097|2,we=!1,rt=e}}}function uu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function Rl(e){if(e!==rt)return!1;if(!we)return uu(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ia(e.type,e.memoizedProps)),t&&(t=lt)){if(ha(e))throw cu(),Error(o(418));for(;t;)iu(e,t),t=Yt(t.nextSibling)}if(uu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=rt?Yt(e.stateNode.nextSibling):null;return!0}function cu(){for(var e=lt;e;)e=Yt(e.nextSibling)}function $n(){lt=rt=null,we=!1}function xa(e){xt===null?xt=[e]:xt.push(e)}var gm=U.ReactCurrentBatchConfig;function Rr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var s=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var g=s.refs;d===null?delete g[u]:g[u]=d},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Pl(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function du(e){var t=e._init;return t(e._payload)}function fu(e){function t(E,S){if(e){var P=E.deletions;P===null?(E.deletions=[S],E.flags|=16):P.push(S)}}function n(E,S){if(!e)return null;for(;S!==null;)t(E,S),S=S.sibling;return null}function r(E,S){for(E=new Map;S!==null;)S.key!==null?E.set(S.key,S):E.set(S.index,S),S=S.sibling;return E}function s(E,S){return E=an(E,S),E.index=0,E.sibling=null,E}function u(E,S,P){return E.index=P,e?(P=E.alternate,P!==null?(P=P.index,P<S?(E.flags|=2,S):P):(E.flags|=2,S)):(E.flags|=1048576,S)}function d(E){return e&&E.alternate===null&&(E.flags|=2),E}function g(E,S,P,A){return S===null||S.tag!==6?(S=oi(P,E.mode,A),S.return=E,S):(S=s(S,P),S.return=E,S)}function j(E,S,P,A){var G=P.type;return G===ae?I(E,S,P.props.children,A,P.key):S!==null&&(S.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===$e&&du(G)===S.type)?(A=s(S,P.props),A.ref=Rr(E,S,P),A.return=E,A):(A=Zl(P.type,P.key,P.props,null,E.mode,A),A.ref=Rr(E,S,P),A.return=E,A)}function L(E,S,P,A){return S===null||S.tag!==4||S.stateNode.containerInfo!==P.containerInfo||S.stateNode.implementation!==P.implementation?(S=ui(P,E.mode,A),S.return=E,S):(S=s(S,P.children||[]),S.return=E,S)}function I(E,S,P,A,G){return S===null||S.tag!==7?(S=jn(P,E.mode,A,G),S.return=E,S):(S=s(S,P),S.return=E,S)}function O(E,S,P){if(typeof S=="string"&&S!==""||typeof S=="number")return S=oi(""+S,E.mode,P),S.return=E,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y:return P=Zl(S.type,S.key,S.props,null,E.mode,P),P.ref=Rr(E,null,S),P.return=E,P;case J:return S=ui(S,E.mode,P),S.return=E,S;case $e:var A=S._init;return O(E,A(S._payload),P)}if(rr(S)||Z(S))return S=jn(S,E.mode,P,null),S.return=E,S;Pl(E,S)}return null}function z(E,S,P,A){var G=S!==null?S.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return G!==null?null:g(E,S,""+P,A);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Y:return P.key===G?j(E,S,P,A):null;case J:return P.key===G?L(E,S,P,A):null;case $e:return G=P._init,z(E,S,G(P._payload),A)}if(rr(P)||Z(P))return G!==null?null:I(E,S,P,A,null);Pl(E,P)}return null}function H(E,S,P,A,G){if(typeof A=="string"&&A!==""||typeof A=="number")return E=E.get(P)||null,g(S,E,""+A,G);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Y:return E=E.get(A.key===null?P:A.key)||null,j(S,E,A,G);case J:return E=E.get(A.key===null?P:A.key)||null,L(S,E,A,G);case $e:var q=A._init;return H(E,S,P,q(A._payload),G)}if(rr(A)||Z(A))return E=E.get(P)||null,I(S,E,A,G,null);Pl(S,A)}return null}function Q(E,S,P,A){for(var G=null,q=null,X=S,ee=S=0,Fe=null;X!==null&&ee<P.length;ee++){X.index>ee?(Fe=X,X=null):Fe=X.sibling;var ce=z(E,X,P[ee],A);if(ce===null){X===null&&(X=Fe);break}e&&X&&ce.alternate===null&&t(E,X),S=u(ce,S,ee),q===null?G=ce:q.sibling=ce,q=ce,X=Fe}if(ee===P.length)return n(E,X),we&&mn(E,ee),G;if(X===null){for(;ee<P.length;ee++)X=O(E,P[ee],A),X!==null&&(S=u(X,S,ee),q===null?G=X:q.sibling=X,q=X);return we&&mn(E,ee),G}for(X=r(E,X);ee<P.length;ee++)Fe=H(X,E,ee,P[ee],A),Fe!==null&&(e&&Fe.alternate!==null&&X.delete(Fe.key===null?ee:Fe.key),S=u(Fe,S,ee),q===null?G=Fe:q.sibling=Fe,q=Fe);return e&&X.forEach(function(on){return t(E,on)}),we&&mn(E,ee),G}function K(E,S,P,A){var G=Z(P);if(typeof G!="function")throw Error(o(150));if(P=G.call(P),P==null)throw Error(o(151));for(var q=G=null,X=S,ee=S=0,Fe=null,ce=P.next();X!==null&&!ce.done;ee++,ce=P.next()){X.index>ee?(Fe=X,X=null):Fe=X.sibling;var on=z(E,X,ce.value,A);if(on===null){X===null&&(X=Fe);break}e&&X&&on.alternate===null&&t(E,X),S=u(on,S,ee),q===null?G=on:q.sibling=on,q=on,X=Fe}if(ce.done)return n(E,X),we&&mn(E,ee),G;if(X===null){for(;!ce.done;ee++,ce=P.next())ce=O(E,ce.value,A),ce!==null&&(S=u(ce,S,ee),q===null?G=ce:q.sibling=ce,q=ce);return we&&mn(E,ee),G}for(X=r(E,X);!ce.done;ee++,ce=P.next())ce=H(X,E,ee,ce.value,A),ce!==null&&(e&&ce.alternate!==null&&X.delete(ce.key===null?ee:ce.key),S=u(ce,S,ee),q===null?G=ce:q.sibling=ce,q=ce);return e&&X.forEach(function(Ym){return t(E,Ym)}),we&&mn(E,ee),G}function Re(E,S,P,A){if(typeof P=="object"&&P!==null&&P.type===ae&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Y:e:{for(var G=P.key,q=S;q!==null;){if(q.key===G){if(G=P.type,G===ae){if(q.tag===7){n(E,q.sibling),S=s(q,P.props.children),S.return=E,E=S;break e}}else if(q.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===$e&&du(G)===q.type){n(E,q.sibling),S=s(q,P.props),S.ref=Rr(E,q,P),S.return=E,E=S;break e}n(E,q);break}else t(E,q);q=q.sibling}P.type===ae?(S=jn(P.props.children,E.mode,A,P.key),S.return=E,E=S):(A=Zl(P.type,P.key,P.props,null,E.mode,A),A.ref=Rr(E,S,P),A.return=E,E=A)}return d(E);case J:e:{for(q=P.key;S!==null;){if(S.key===q)if(S.tag===4&&S.stateNode.containerInfo===P.containerInfo&&S.stateNode.implementation===P.implementation){n(E,S.sibling),S=s(S,P.children||[]),S.return=E,E=S;break e}else{n(E,S);break}else t(E,S);S=S.sibling}S=ui(P,E.mode,A),S.return=E,E=S}return d(E);case $e:return q=P._init,Re(E,S,q(P._payload),A)}if(rr(P))return Q(E,S,P,A);if(Z(P))return K(E,S,P,A);Pl(E,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,S!==null&&S.tag===6?(n(E,S.sibling),S=s(S,P),S.return=E,E=S):(n(E,S),S=oi(P,E.mode,A),S.return=E,E=S),d(E)):n(E,S)}return Re}var An=fu(!0),mu=fu(!1),bl=qt(null),Ll=null,Un=null,va=null;function ya(){va=Un=Ll=null}function wa(e){var t=bl.current;ve(bl),e._currentValue=t}function ja(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bn(e,t){Ll=e,va=Un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(qe=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if(va!==e)if(e={context:e,memoizedValue:t,next:null},Un===null){if(Ll===null)throw Error(o(308));Un=e,Ll.dependencies={lanes:0,firstContext:e}}else Un=Un.next=e;return t}var pn=null;function ka(e){pn===null?pn=[e]:pn.push(e)}function pu(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ka(t)):(n.next=s.next,s.next=n),t.interleaved=n,zt(e,r)}function zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zt=!1;function Sa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ie&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,zt(e,n)}return s=r.interleaved,s===null?(t.next=t,ka(r)):(t.next=s.next,s.next=t),r.interleaved=t,zt(e,n)}function _l(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Is(e,n)}}function gu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?s=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ml(e,t,n,r){var s=e.updateQueue;Zt=!1;var u=s.firstBaseUpdate,d=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var j=g,L=j.next;j.next=null,d===null?u=L:d.next=L,d=j;var I=e.alternate;I!==null&&(I=I.updateQueue,g=I.lastBaseUpdate,g!==d&&(g===null?I.firstBaseUpdate=L:g.next=L,I.lastBaseUpdate=j))}if(u!==null){var O=s.baseState;d=0,I=L=j=null,g=u;do{var z=g.lane,H=g.eventTime;if((r&z)===z){I!==null&&(I=I.next={eventTime:H,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var Q=e,K=g;switch(z=t,H=n,K.tag){case 1:if(Q=K.payload,typeof Q=="function"){O=Q.call(H,O,z);break e}O=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=K.payload,z=typeof Q=="function"?Q.call(H,O,z):Q,z==null)break e;O=W({},O,z);break e;case 2:Zt=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,z=s.effects,z===null?s.effects=[g]:z.push(g))}else H={eventTime:H,lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},I===null?(L=I=H,j=O):I=I.next=H,d|=z;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;z=g,g=z.next,z.next=null,s.lastBaseUpdate=z,s.shared.pending=null}}while(!0);if(I===null&&(j=O),s.baseState=j,s.firstBaseUpdate=L,s.lastBaseUpdate=I,t=s.shared.interleaved,t!==null){s=t;do d|=s.lane,s=s.next;while(s!==t)}else u===null&&(s.shared.lanes=0);xn|=d,e.lanes=d,e.memoizedState=O}}function xu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(o(191,s));s.call(r)}}}var Pr={},Et=qt(Pr),br=qt(Pr),Lr=qt(Pr);function hn(e){if(e===Pr)throw Error(o(174));return e}function Na(e,t){switch(ge(Lr,t),ge(br,e),ge(Et,Pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cs(t,e)}ve(Et),ge(Et,t)}function Hn(){ve(Et),ve(br),ve(Lr)}function vu(e){hn(Lr.current);var t=hn(Et.current),n=Cs(t,e.type);t!==n&&(ge(br,e),ge(Et,n))}function Ca(e){br.current===e&&(ve(Et),ve(br))}var ke=qt(0);function Dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Ea=[];function Ta(){for(var e=0;e<Ea.length;e++)Ea[e]._workInProgressVersionPrimary=null;Ea.length=0}var zl=U.ReactCurrentDispatcher,Ra=U.ReactCurrentBatchConfig,gn=0,Se=null,Le=null,De=null,Fl=!1,_r=!1,Mr=0,xm=0;function Ue(){throw Error(o(321))}function Pa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function ba(e,t,n,r,s,u){if(gn=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zl.current=e===null||e.memoizedState===null?jm:km,e=n(r,s),_r){u=0;do{if(_r=!1,Mr=0,25<=u)throw Error(o(301));u+=1,De=Le=null,t.updateQueue=null,zl.current=Sm,e=n(r,s)}while(_r)}if(zl.current=$l,t=Le!==null&&Le.next!==null,gn=0,De=Le=Se=null,Fl=!1,t)throw Error(o(300));return e}function La(){var e=Mr!==0;return Mr=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Se.memoizedState=De=e:De=De.next=e,De}function ct(){if(Le===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=De===null?Se.memoizedState:De.next;if(t!==null)De=t,Le=e;else{if(e===null)throw Error(o(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},De===null?Se.memoizedState=De=e:De=De.next=e}return De}function Dr(e,t){return typeof t=="function"?t(e):t}function _a(e){var t=ct(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=Le,s=r.baseQueue,u=n.pending;if(u!==null){if(s!==null){var d=s.next;s.next=u.next,u.next=d}r.baseQueue=s=u,n.pending=null}if(s!==null){u=s.next,r=r.baseState;var g=d=null,j=null,L=u;do{var I=L.lane;if((gn&I)===I)j!==null&&(j=j.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),r=L.hasEagerState?L.eagerState:e(r,L.action);else{var O={lane:I,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};j===null?(g=j=O,d=r):j=j.next=O,Se.lanes|=I,xn|=I}L=L.next}while(L!==null&&L!==u);j===null?d=r:j.next=g,gt(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=d,t.baseQueue=j,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do u=s.lane,Se.lanes|=u,xn|=u,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ma(e){var t=ct(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do u=e(u,d.action),d=d.next;while(d!==s);gt(u,t.memoizedState)||(qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function yu(){}function wu(e,t){var n=Se,r=ct(),s=t(),u=!gt(r.memoizedState,s);if(u&&(r.memoizedState=s,qe=!0),r=r.queue,Da(Su.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,zr(9,ku.bind(null,n,r,s,t),void 0,null),ze===null)throw Error(o(349));(gn&30)!==0||ju(n,t,s)}return s}function ju(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ku(e,t,n,r){t.value=n,t.getSnapshot=r,Nu(t)&&Cu(e)}function Su(e,t,n){return n(function(){Nu(t)&&Cu(e)})}function Nu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Cu(e){var t=zt(e,1);t!==null&&jt(t,e,1,-1)}function Eu(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:e},t.queue=e,e=e.dispatch=wm.bind(null,Se,e),[t.memoizedState,e]}function zr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Tu(){return ct().memoizedState}function Il(e,t,n,r){var s=Tt();Se.flags|=e,s.memoizedState=zr(1|t,n,void 0,r===void 0?null:r)}function Ol(e,t,n,r){var s=ct();r=r===void 0?null:r;var u=void 0;if(Le!==null){var d=Le.memoizedState;if(u=d.destroy,r!==null&&Pa(r,d.deps)){s.memoizedState=zr(t,n,u,r);return}}Se.flags|=e,s.memoizedState=zr(1|t,n,u,r)}function Ru(e,t){return Il(8390656,8,e,t)}function Da(e,t){return Ol(2048,8,e,t)}function Pu(e,t){return Ol(4,2,e,t)}function bu(e,t){return Ol(4,4,e,t)}function Lu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _u(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4,4,Lu.bind(null,t,e),n)}function za(){}function Mu(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Du(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zu(e,t,n){return(gn&21)===0?(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n):(gt(n,t)||(n=co(),Se.lanes|=n,xn|=n,e.baseState=!0),t)}function vm(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=Ra.transition;Ra.transition={};try{e(!1),t()}finally{fe=n,Ra.transition=r}}function Fu(){return ct().memoizedState}function ym(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Iu(e))Ou(t,n);else if(n=pu(e,t,n,r),n!==null){var s=Qe();jt(n,e,r,s),$u(n,t,r)}}function wm(e,t,n){var r=ln(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Iu(e))Ou(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,n);if(s.hasEagerState=!0,s.eagerState=g,gt(g,d)){var j=t.interleaved;j===null?(s.next=s,ka(t)):(s.next=j.next,j.next=s),t.interleaved=s;return}}catch{}finally{}n=pu(e,t,s,r),n!==null&&(s=Qe(),jt(n,e,r,s),$u(n,t,r))}}function Iu(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Ou(e,t){_r=Fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $u(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Is(e,n)}}var $l={readContext:ut,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},jm={readContext:ut,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Ru,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Il(4194308,4,Lu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Il(4194308,4,e,t)},useInsertionEffect:function(e,t){return Il(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ym.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Eu,useDebugValue:za,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Eu(!1),t=e[0];return e=vm.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,s=Tt();if(we){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),ze===null)throw Error(o(349));(gn&30)!==0||ju(r,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,Ru(Su.bind(null,r,u,e),[e]),r.flags|=2048,zr(9,ku.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=Tt(),t=ze.identifierPrefix;if(we){var n=Dt,r=Mt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},km={readContext:ut,useCallback:Mu,useContext:ut,useEffect:Da,useImperativeHandle:_u,useInsertionEffect:Pu,useLayoutEffect:bu,useMemo:Du,useReducer:_a,useRef:Tu,useState:function(){return _a(Dr)},useDebugValue:za,useDeferredValue:function(e){var t=ct();return zu(t,Le.memoizedState,e)},useTransition:function(){var e=_a(Dr)[0],t=ct().memoizedState;return[e,t]},useMutableSource:yu,useSyncExternalStore:wu,useId:Fu,unstable_isNewReconciler:!1},Sm={readContext:ut,useCallback:Mu,useContext:ut,useEffect:Da,useImperativeHandle:_u,useInsertionEffect:Pu,useLayoutEffect:bu,useMemo:Du,useReducer:Ma,useRef:Tu,useState:function(){return Ma(Dr)},useDebugValue:za,useDeferredValue:function(e){var t=ct();return Le===null?t.memoizedState=e:zu(t,Le.memoizedState,e)},useTransition:function(){var e=Ma(Dr)[0],t=ct().memoizedState;return[e,t]},useMutableSource:yu,useSyncExternalStore:wu,useId:Fu,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Al={isMounted:function(e){return(e=e._reactInternals)?un(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Qe(),s=ln(e),u=Ft(r,s);u.payload=t,n!=null&&(u.callback=n),t=en(e,u,s),t!==null&&(jt(t,e,s,r),_l(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Qe(),s=ln(e),u=Ft(r,s);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=en(e,u,s),t!==null&&(jt(t,e,s,r),_l(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qe(),r=ln(e),s=Ft(n,r);s.tag=2,t!=null&&(s.callback=t),t=en(e,s,r),t!==null&&(jt(t,e,r,n),_l(t,e,r))}};function Au(e,t,n,r,s,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,d):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(s,u):!0}function Uu(e,t,n){var r=!1,s=Xt,u=t.contextType;return typeof u=="object"&&u!==null?u=ut(u):(s=Ye(t)?dn:Ae.current,r=t.contextTypes,u=(r=r!=null)?Fn(e,s):Xt),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Al,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=u),t}function Bu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Al.enqueueReplaceState(t,t.state,null)}function Ia(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Sa(e);var u=t.contextType;typeof u=="object"&&u!==null?s.context=ut(u):(u=Ye(t)?dn:Ae.current,s.context=Fn(e,u)),s.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Fa(e,t,u,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Al.enqueueReplaceState(s,s.state,null),Ml(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Vn(e,t){try{var n="",r=t;do n+=oe(r),r=r.return;while(r);var s=n}catch(u){s=`
|
|
39
|
+
Error generating stack: `+u.message+`
|
|
40
|
+
`+u.stack}return{value:e,source:t,stack:s,digest:null}}function Oa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $a(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Nm=typeof WeakMap=="function"?WeakMap:Map;function Hu(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,ei=r),$a(e,t)},n}function Vu(e,t,n){n=Ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){$a(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){$a(e,t),typeof r!="function"&&(nn===null?nn=new Set([this]):nn.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nm;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Om.bind(null,e,t,n),t.then(e,e))}function Qu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ku(e,t,n,r,s){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ft(-1,1),t.tag=2,en(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var Cm=U.ReactCurrentOwner,qe=!1;function We(e,t,n,r){t.child=e===null?mu(t,null,n,r):An(t,e.child,n,r)}function Gu(e,t,n,r,s){n=n.render;var u=t.ref;return Bn(t,s),r=ba(e,t,n,r,u,s),n=La(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,It(e,t,s)):(we&&n&&ma(t),t.flags|=1,We(e,t,r,s),t.child)}function Yu(e,t,n,r,s){if(e===null){var u=n.type;return typeof u=="function"&&!ii(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,qu(e,t,u,r,s)):(e=Zl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&s)===0){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:jr,n(d,r)&&e.ref===t.ref)return It(e,t,s)}return t.flags|=1,e=an(u,r),e.ref=t.ref,e.return=t,t.child=e}function qu(e,t,n,r,s){if(e!==null){var u=e.memoizedProps;if(jr(u,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=u,(e.lanes&s)!==0)(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,It(e,t,s)}return Aa(e,t,n,r,s)}function Xu(e,t,n){var r=t.pendingProps,s=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Qn,st),st|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Qn,st),st|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ge(Qn,st),st|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ge(Qn,st),st|=r;return We(e,t,s,n),t.child}function Ju(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Aa(e,t,n,r,s){var u=Ye(n)?dn:Ae.current;return u=Fn(t,u),Bn(t,s),n=ba(e,t,n,r,u,s),r=La(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,It(e,t,s)):(we&&r&&ma(t),t.flags|=1,We(e,t,n,s),t.child)}function Zu(e,t,n,r,s){if(Ye(n)){var u=!0;Nl(t)}else u=!1;if(Bn(t,s),t.stateNode===null)Bl(e,t),Uu(t,n,r),Ia(t,n,r,s),r=!0;else if(e===null){var d=t.stateNode,g=t.memoizedProps;d.props=g;var j=d.context,L=n.contextType;typeof L=="object"&&L!==null?L=ut(L):(L=Ye(n)?dn:Ae.current,L=Fn(t,L));var I=n.getDerivedStateFromProps,O=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function";O||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==r||j!==L)&&Bu(t,d,r,L),Zt=!1;var z=t.memoizedState;d.state=z,Ml(t,r,d,s),j=t.memoizedState,g!==r||z!==j||Ge.current||Zt?(typeof I=="function"&&(Fa(t,n,I,r),j=t.memoizedState),(g=Zt||Au(t,n,g,r,z,j,L))?(O||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=j),d.props=r,d.state=j,d.context=L,r=g):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,hu(e,t),g=t.memoizedProps,L=t.type===t.elementType?g:vt(t.type,g),d.props=L,O=t.pendingProps,z=d.context,j=n.contextType,typeof j=="object"&&j!==null?j=ut(j):(j=Ye(n)?dn:Ae.current,j=Fn(t,j));var H=n.getDerivedStateFromProps;(I=typeof H=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==O||z!==j)&&Bu(t,d,r,j),Zt=!1,z=t.memoizedState,d.state=z,Ml(t,r,d,s);var Q=t.memoizedState;g!==O||z!==Q||Ge.current||Zt?(typeof H=="function"&&(Fa(t,n,H,r),Q=t.memoizedState),(L=Zt||Au(t,n,L,r,z,Q,j)||!1)?(I||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,Q,j),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,Q,j)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Q),d.props=r,d.state=Q,d.context=j,r=L):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),r=!1)}return Ua(e,t,n,r,u,s)}function Ua(e,t,n,r,s,u){Ju(e,t);var d=(t.flags&128)!==0;if(!r&&!d)return s&&lu(t,n,!1),It(e,t,u);r=t.stateNode,Cm.current=t;var g=d&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&d?(t.child=An(t,e.child,null,u),t.child=An(t,null,g,u)):We(e,t,g,u),t.memoizedState=r.state,s&&lu(t,n,!0),t.child}function ec(e){var t=e.stateNode;t.pendingContext?nu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nu(e,t.context,!1),Na(e,t.containerInfo)}function tc(e,t,n,r,s){return $n(),xa(s),t.flags|=256,We(e,t,n,r),t.child}var Ba={dehydrated:null,treeContext:null,retryLane:0};function Ha(e){return{baseLanes:e,cachePool:null,transitions:null}}function nc(e,t,n){var r=t.pendingProps,s=ke.current,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(s&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ge(ke,s&1),e===null)return ga(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=r.children,e=r.fallback,u?(r=t.mode,u=t.child,d={mode:"hidden",children:d},(r&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=d):u=es(d,r,0,null),e=jn(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ha(n),t.memoizedState=Ba,e):Va(t,d));if(s=e.memoizedState,s!==null&&(g=s.dehydrated,g!==null))return Em(e,t,d,r,g,s,n);if(u){u=r.fallback,d=t.mode,s=e.child,g=s.sibling;var j={mode:"hidden",children:r.children};return(d&1)===0&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=j,t.deletions=null):(r=an(s,j),r.subtreeFlags=s.subtreeFlags&14680064),g!==null?u=an(g,u):(u=jn(u,d,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,d=e.child.memoizedState,d=d===null?Ha(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=Ba,r}return u=e.child,e=u.sibling,r=an(u,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Va(e,t){return t=es({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ul(e,t,n,r){return r!==null&&xa(r),An(t,e.child,null,n),e=Va(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Em(e,t,n,r,s,u,d){if(n)return t.flags&256?(t.flags&=-257,r=Oa(Error(o(422))),Ul(e,t,d,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,s=t.mode,r=es({mode:"visible",children:r.children},s,0,null),u=jn(u,s,d,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,(t.mode&1)!==0&&An(t,e.child,null,d),t.child.memoizedState=Ha(d),t.memoizedState=Ba,u);if((t.mode&1)===0)return Ul(e,t,d,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var g=r.dgst;return r=g,u=Error(o(419)),r=Oa(u,r,void 0),Ul(e,t,d,r)}if(g=(d&e.childLanes)!==0,qe||g){if(r=ze,r!==null){switch(d&-d){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=(s&(r.suspendedLanes|d))!==0?0:s,s!==0&&s!==u.retryLane&&(u.retryLane=s,zt(e,s),jt(r,e,s,-1))}return ai(),r=Oa(Error(o(421))),Ul(e,t,d,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=$m.bind(null,e),s._reactRetry=t,null):(e=u.treeContext,lt=Yt(s.nextSibling),rt=t,we=!0,xt=null,e!==null&&(it[ot++]=Mt,it[ot++]=Dt,it[ot++]=fn,Mt=e.id,Dt=e.overflow,fn=t),t=Va(t,r.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ja(e.return,t,n)}function Wa(e,t,n,r,s){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=s)}function lc(e,t,n){var r=t.pendingProps,s=r.revealOrder,u=r.tail;if(We(e,t,r.children,n),r=ke.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,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}r&=1}if(ge(ke,r),(t.mode&1)===0)t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Dl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Wa(t,!1,s,n,u);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Dl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Wa(t,!0,n,null,u);break;case"together":Wa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function It(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=an(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=an(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tm(e,t,n){switch(t.tag){case 3:ec(t),$n();break;case 5:vu(t);break;case 1:Ye(t.type)&&Nl(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ge(bl,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(ke,ke.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?nc(e,t,n):(ge(ke,ke.current&1),e=It(e,t,n),e!==null?e.sibling:null);ge(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return lc(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ge(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,Xu(e,t,n)}return It(e,t,n)}var sc,Qa,ac,ic;sc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qa=function(){},ac=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,hn(Et.current);var u=null;switch(n){case"input":s=js(e,s),r=js(e,r),u=[];break;case"select":s=W({},s,{value:void 0}),r=W({},r,{value:void 0}),u=[];break;case"textarea":s=Ns(e,s),r=Ns(e,r),u=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}Es(n,r);var d;n=null;for(L in s)if(!r.hasOwnProperty(L)&&s.hasOwnProperty(L)&&s[L]!=null)if(L==="style"){var g=s[L];for(d in g)g.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(f.hasOwnProperty(L)?u||(u=[]):(u=u||[]).push(L,null));for(L in r){var j=r[L];if(g=s!=null?s[L]:void 0,r.hasOwnProperty(L)&&j!==g&&(j!=null||g!=null))if(L==="style")if(g){for(d in g)!g.hasOwnProperty(d)||j&&j.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in j)j.hasOwnProperty(d)&&g[d]!==j[d]&&(n||(n={}),n[d]=j[d])}else n||(u||(u=[]),u.push(L,n)),n=j;else L==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,g=g?g.__html:void 0,j!=null&&g!==j&&(u=u||[]).push(L,j)):L==="children"?typeof j!="string"&&typeof j!="number"||(u=u||[]).push(L,""+j):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(f.hasOwnProperty(L)?(j!=null&&L==="onScroll"&&xe("scroll",e),u||g===j||(u=[])):(u=u||[]).push(L,j))}n&&(u=u||[]).push("style",n);var L=u;(t.updateQueue=L)&&(t.flags|=4)}},ic=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fr(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Rm(e,t,n){var r=t.pendingProps;switch(pa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Ye(t.type)&&Sl(),Be(t),null;case 3:return r=t.stateNode,Hn(),ve(Ge),ve(Ae),Ta(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xt!==null&&(ri(xt),xt=null))),Qa(e,t),Be(t),null;case 5:Ca(t);var s=hn(Lr.current);if(n=t.type,e!==null&&t.stateNode!=null)ac(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Be(t),null}if(e=hn(Et.current),Rl(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Ct]=t,r[Er]=u,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(s=0;s<Sr.length;s++)xe(Sr[s],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":Ai(r,u),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},xe("invalid",r);break;case"textarea":Hi(r,u),xe("invalid",r)}Es(n,u),s=null;for(var d in u)if(u.hasOwnProperty(d)){var g=u[d];d==="children"?typeof g=="string"?r.textContent!==g&&(u.suppressHydrationWarning!==!0&&wl(r.textContent,g,e),s=["children",g]):typeof g=="number"&&r.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&wl(r.textContent,g,e),s=["children",""+g]):f.hasOwnProperty(d)&&g!=null&&d==="onScroll"&&xe("scroll",r)}switch(n){case"input":Xr(r),Bi(r,u,!0);break;case"textarea":Xr(r),Wi(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=jl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{d=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qi(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=d.createElement(n,{is:r.is}):(e=d.createElement(n),n==="select"&&(d=e,r.multiple?d.multiple=!0:r.size&&(d.size=r.size))):e=d.createElementNS(e,n),e[Ct]=t,e[Er]=r,sc(e,t,!1,!1),t.stateNode=e;e:{switch(d=Ts(n,r),n){case"dialog":xe("cancel",e),xe("close",e),s=r;break;case"iframe":case"object":case"embed":xe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Sr.length;s++)xe(Sr[s],e);s=r;break;case"source":xe("error",e),s=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),s=r;break;case"details":xe("toggle",e),s=r;break;case"input":Ai(e,r),s=js(e,r),xe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=W({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Hi(e,r),s=Ns(e,r),xe("invalid",e);break;default:s=r}Es(n,s),g=s;for(u in g)if(g.hasOwnProperty(u)){var j=g[u];u==="style"?Yi(e,j):u==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Ki(e,j)):u==="children"?typeof j=="string"?(n!=="textarea"||j!=="")&&lr(e,j):typeof j=="number"&&lr(e,""+j):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(f.hasOwnProperty(u)?j!=null&&u==="onScroll"&&xe("scroll",e):j!=null&&R(e,u,j,d))}switch(n){case"input":Xr(e),Bi(e,r,!1);break;case"textarea":Xr(e),Wi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+de(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?Nn(e,!!r.multiple,u,!1):r.defaultValue!=null&&Nn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=jl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)ic(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(n=hn(Lr.current),hn(Et.current),Rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ct]=t,(u=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:wl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wl(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ct]=t,t.stateNode=r}return Be(t),null;case 13:if(ve(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&<!==null&&(t.mode&1)!==0&&(t.flags&128)===0)cu(),$n(),t.flags|=98560,u=!1;else if(u=Rl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Ct]=t}else $n(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),u=!1}else xt!==null&&(ri(xt),xt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ke.current&1)!==0?_e===0&&(_e=3):ai())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return Hn(),Qa(e,t),e===null&&Nr(t.stateNode.containerInfo),Be(t),null;case 10:return wa(t.type._context),Be(t),null;case 17:return Ye(t.type)&&Sl(),Be(t),null;case 19:if(ve(ke),u=t.memoizedState,u===null)return Be(t),null;if(r=(t.flags&128)!==0,d=u.rendering,d===null)if(r)Fr(u,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Dl(e),d!==null){for(t.flags|=128,Fr(u,!1),r=d.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,d=u.alternate,d===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(ke,ke.current&1|2),t.child}e=e.sibling}u.tail!==null&&Te()>Kn&&(t.flags|=128,r=!0,Fr(u,!1),t.lanes=4194304)}else{if(!r)if(e=Dl(d),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!we)return Be(t),null}else 2*Te()-u.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,Fr(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Te(),t.sibling=null,n=ke.current,ge(ke,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return si(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(st&1073741824)!==0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Pm(e,t){switch(pa(t),t.tag){case 1:return Ye(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(),ve(Ge),ve(Ae),Ta(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ca(t),null;case 13:if(ve(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(ke),null;case 4:return Hn(),null;case 10:return wa(t.type._context),null;case 22:case 23:return si(),null;case 24:return null;default:return null}}var Hl=!1,He=!1,bm=typeof WeakSet=="function"?WeakSet:Set,V=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Ka(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var oc=!1;function Lm(e,t){if(sa=ul,e=Ao(),Xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,g=-1,j=-1,L=0,I=0,O=e,z=null;t:for(;;){for(var H;O!==n||s!==0&&O.nodeType!==3||(g=d+s),O!==u||r!==0&&O.nodeType!==3||(j=d+r),O.nodeType===3&&(d+=O.nodeValue.length),(H=O.firstChild)!==null;)z=O,O=H;for(;;){if(O===e)break t;if(z===n&&++L===s&&(g=d),z===u&&++I===r&&(j=d),(H=O.nextSibling)!==null)break;O=z,z=O.parentNode}O=H}n=g===-1||j===-1?null:{start:g,end:j}}else n=null}n=n||{start:0,end:0}}else n=null;for(aa={focusedElem:e,selectionRange:n},ul=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var Q=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Q!==null){var K=Q.memoizedProps,Re=Q.memoizedState,E=t.stateNode,S=E.getSnapshotBeforeUpdate(t.elementType===t.type?K:vt(t.type,K),Re);E.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(A){Ce(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return Q=oc,oc=!1,Q}function Ir(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var u=s.destroy;s.destroy=void 0,u!==void 0&&Ka(t,n,u)}s=s.next}while(s!==r)}}function Vl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ga(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uc(e){var t=e.alternate;t!==null&&(e.alternate=null,uc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[Er],delete t[ca],delete t[mm],delete t[pm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cc(e){return e.tag===5||e.tag===3||e.tag===4}function dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(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.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 Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jl));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function qa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qa(e,t,n),e=e.sibling;e!==null;)qa(e,t,n),e=e.sibling}var Ie=null,yt=!1;function tn(e,t,n){for(n=n.child;n!==null;)fc(e,t,n),n=n.sibling}function fc(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:He||Wn(n,t);case 6:var r=Ie,s=yt;Ie=null,tn(e,t,n),Ie=r,yt=s,Ie!==null&&(yt?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(yt?(e=Ie,n=n.stateNode,e.nodeType===8?ua(e.parentNode,n):e.nodeType===1&&ua(e,n),hr(e)):ua(Ie,n.stateNode));break;case 4:r=Ie,s=yt,Ie=n.stateNode.containerInfo,yt=!0,tn(e,t,n),Ie=r,yt=s;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var u=s,d=u.destroy;u=u.tag,d!==void 0&&((u&2)!==0||(u&4)!==0)&&Ka(n,t,d),s=s.next}while(s!==r)}tn(e,t,n);break;case 1:if(!He&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(g){Ce(n,t,g)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,tn(e,t,n),He=r):tn(e,t,n);break;default:tn(e,t,n)}}function mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bm),t.forEach(function(r){var s=Am.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 5:Ie=g.stateNode,yt=!1;break e;case 3:Ie=g.stateNode.containerInfo,yt=!0;break e;case 4:Ie=g.stateNode.containerInfo,yt=!0;break e}g=g.return}if(Ie===null)throw Error(o(160));fc(u,d,s),Ie=null,yt=!1;var j=s.alternate;j!==null&&(j.return=null),s.return=null}catch(L){Ce(s,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pc(t,e),t=t.sibling}function pc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),Rt(e),r&4){try{Ir(3,e,e.return),Vl(3,e)}catch(K){Ce(e,e.return,K)}try{Ir(5,e,e.return)}catch(K){Ce(e,e.return,K)}}break;case 1:wt(t,e),Rt(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(wt(t,e),Rt(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var s=e.stateNode;try{lr(s,"")}catch(K){Ce(e,e.return,K)}}if(r&4&&(s=e.stateNode,s!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,g=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Ui(s,u),Ts(g,d);var L=Ts(g,u);for(d=0;d<j.length;d+=2){var I=j[d],O=j[d+1];I==="style"?Yi(s,O):I==="dangerouslySetInnerHTML"?Ki(s,O):I==="children"?lr(s,O):R(s,I,O,L)}switch(g){case"input":ks(s,u);break;case"textarea":Vi(s,u);break;case"select":var z=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!u.multiple;var H=u.value;H!=null?Nn(s,!!u.multiple,H,!1):z!==!!u.multiple&&(u.defaultValue!=null?Nn(s,!!u.multiple,u.defaultValue,!0):Nn(s,!!u.multiple,u.multiple?[]:"",!1))}s[Er]=u}catch(K){Ce(e,e.return,K)}}break;case 6:if(wt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(o(162));s=e.stateNode,u=e.memoizedProps;try{s.nodeValue=u}catch(K){Ce(e,e.return,K)}}break;case 3:if(wt(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hr(t.containerInfo)}catch(K){Ce(e,e.return,K)}break;case 4:wt(t,e),Rt(e);break;case 13:wt(t,e),Rt(e),s=e.child,s.flags&8192&&(u=s.memoizedState!==null,s.stateNode.isHidden=u,!u||s.alternate!==null&&s.alternate.memoizedState!==null||(Za=Te())),r&4&&mc(e);break;case 22:if(I=n!==null&&n.memoizedState!==null,e.mode&1?(He=(L=He)||I,wt(t,e),He=L):wt(t,e),Rt(e),r&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!I&&(e.mode&1)!==0)for(V=e,I=e.child;I!==null;){for(O=V=I;V!==null;){switch(z=V,H=z.child,z.tag){case 0:case 11:case 14:case 15:Ir(4,z,z.return);break;case 1:Wn(z,z.return);var Q=z.stateNode;if(typeof Q.componentWillUnmount=="function"){r=z,n=z.return;try{t=r,Q.props=t.memoizedProps,Q.state=t.memoizedState,Q.componentWillUnmount()}catch(K){Ce(r,n,K)}}break;case 5:Wn(z,z.return);break;case 22:if(z.memoizedState!==null){xc(O);continue}}H!==null?(H.return=z,V=H):xc(O)}I=I.sibling}e:for(I=null,O=e;;){if(O.tag===5){if(I===null){I=O;try{s=O.stateNode,L?(u=s.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=O.stateNode,j=O.memoizedProps.style,d=j!=null&&j.hasOwnProperty("display")?j.display:null,g.style.display=Gi("display",d))}catch(K){Ce(e,e.return,K)}}}else if(O.tag===6){if(I===null)try{O.stateNode.nodeValue=L?"":O.memoizedProps}catch(K){Ce(e,e.return,K)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;I===O&&(I=null),O=O.return}I===O&&(I=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:wt(t,e),Rt(e),r&4&&mc(e);break;case 21:break;default:wt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cc(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(lr(s,""),r.flags&=-33);var u=dc(e);qa(e,u,s);break;case 3:case 4:var d=r.stateNode.containerInfo,g=dc(e);Ya(e,g,d);break;default:throw Error(o(161))}}catch(j){Ce(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _m(e,t,n){V=e,hc(e)}function hc(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var s=V,u=s.child;if(s.tag===22&&r){var d=s.memoizedState!==null||Hl;if(!d){var g=s.alternate,j=g!==null&&g.memoizedState!==null||He;g=Hl;var L=He;if(Hl=d,(He=j)&&!L)for(V=s;V!==null;)d=V,j=d.child,d.tag===22&&d.memoizedState!==null?vc(s):j!==null?(j.return=d,V=j):vc(s);for(;u!==null;)V=u,hc(u),u=u.sibling;V=s,Hl=g,He=L}gc(e)}else(s.subtreeFlags&8772)!==0&&u!==null?(u.return=s,V=u):gc(e)}}function gc(e){for(;V!==null;){var t=V;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:He||Vl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&xu(t,u,r);break;case 3:var d=t.updateQueue;if(d!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xu(t,d,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var j=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&n.focus();break;case"img":j.src&&(n.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var L=t.alternate;if(L!==null){var I=L.memoizedState;if(I!==null){var O=I.dehydrated;O!==null&&hr(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}He||t.flags&512&&Ga(t)}catch(z){Ce(t,t.return,z)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function xc(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function vc(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vl(4,t)}catch(j){Ce(t,n,j)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(j){Ce(t,s,j)}}var u=t.return;try{Ga(t)}catch(j){Ce(t,u,j)}break;case 5:var d=t.return;try{Ga(t)}catch(j){Ce(t,d,j)}}}catch(j){Ce(t,t.return,j)}if(t===e){V=null;break}var g=t.sibling;if(g!==null){g.return=t.return,V=g;break}V=t.return}}var Mm=Math.ceil,Wl=U.ReactCurrentDispatcher,Xa=U.ReactCurrentOwner,dt=U.ReactCurrentBatchConfig,ie=0,ze=null,Pe=null,Oe=0,st=0,Qn=qt(0),_e=0,Or=null,xn=0,Ql=0,Ja=0,$r=null,Xe=null,Za=0,Kn=1/0,Ot=null,Kl=!1,ei=null,nn=null,Gl=!1,rn=null,Yl=0,Ar=0,ti=null,ql=-1,Xl=0;function Qe(){return(ie&6)!==0?Te():ql!==-1?ql:ql=Te()}function ln(e){return(e.mode&1)===0?1:(ie&2)!==0&&Oe!==0?Oe&-Oe:gm.transition!==null?(Xl===0&&(Xl=co()),Xl):(e=fe,e!==0||(e=window.event,e=e===void 0?16:wo(e.type)),e)}function jt(e,t,n,r){if(50<Ar)throw Ar=0,ti=null,Error(o(185));cr(e,n,r),((ie&2)===0||e!==ze)&&(e===ze&&((ie&2)===0&&(Ql|=n),_e===4&&sn(e,Oe)),Je(e,r),n===1&&ie===0&&(t.mode&1)===0&&(Kn=Te()+500,Cl&&Jt()))}function Je(e,t){var n=e.callbackNode;gf(e,t);var r=al(e,e===ze?Oe:0);if(r===0)n!==null&&io(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&io(n),t===1)e.tag===0?hm(wc.bind(null,e)):su(wc.bind(null,e)),dm(function(){(ie&6)===0&&Jt()}),n=null;else{switch(fo(r)){case 1:n=Ds;break;case 4:n=oo;break;case 16:n=nl;break;case 536870912:n=uo;break;default:n=nl}n=Rc(n,yc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yc(e,t){if(ql=-1,Xl=0,(ie&6)!==0)throw Error(o(327));var n=e.callbackNode;if(Gn()&&e.callbackNode!==n)return null;var r=al(e,e===ze?Oe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Jl(e,r);else{t=r;var s=ie;ie|=2;var u=kc();(ze!==e||Oe!==t)&&(Ot=null,Kn=Te()+500,yn(e,t));do try{Fm();break}catch(g){jc(e,g)}while(!0);ya(),Wl.current=u,ie=s,Pe!==null?t=0:(ze=null,Oe=0,t=_e)}if(t!==0){if(t===2&&(s=zs(e),s!==0&&(r=s,t=ni(e,s))),t===1)throw n=Or,yn(e,0),sn(e,r),Je(e,Te()),n;if(t===6)sn(e,r);else{if(s=e.current.alternate,(r&30)===0&&!Dm(s)&&(t=Jl(e,r),t===2&&(u=zs(e),u!==0&&(r=u,t=ni(e,u))),t===1))throw n=Or,yn(e,0),sn(e,r),Je(e,Te()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:wn(e,Xe,Ot);break;case 3:if(sn(e,r),(r&130023424)===r&&(t=Za+500-Te(),10<t)){if(al(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Qe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=oa(wn.bind(null,e,Xe,Ot),t);break}wn(e,Xe,Ot);break;case 4:if(sn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var d=31-ht(r);u=1<<d,d=t[d],d>s&&(s=d),r&=~u}if(r=s,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mm(r/1960))-r,10<r){e.timeoutHandle=oa(wn.bind(null,e,Xe,Ot),r);break}wn(e,Xe,Ot);break;case 5:wn(e,Xe,Ot);break;default:throw Error(o(329))}}}return Je(e,Te()),e.callbackNode===n?yc.bind(null,e):null}function ni(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Jl(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&ri(t)),e}function ri(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function Dm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],u=s.getSnapshot;s=s.value;try{if(!gt(u(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 sn(e,t){for(t&=~Ja,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),r=1<<n;e[n]=-1,t&=~r}}function wc(e){if((ie&6)!==0)throw Error(o(327));Gn();var t=al(e,0);if((t&1)===0)return Je(e,Te()),null;var n=Jl(e,t);if(e.tag!==0&&n===2){var r=zs(e);r!==0&&(t=r,n=ni(e,r))}if(n===1)throw n=Or,yn(e,0),sn(e,t),Je(e,Te()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e,Xe,Ot),Je(e,Te()),null}function li(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Kn=Te()+500,Cl&&Jt())}}function vn(e){rn!==null&&rn.tag===0&&(ie&6)===0&&Gn();var t=ie;ie|=1;var n=dt.transition,r=fe;try{if(dt.transition=null,fe=1,e)return e()}finally{fe=r,dt.transition=n,ie=t,(ie&6)===0&&Jt()}}function si(){st=Qn.current,ve(Qn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,cm(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(pa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sl();break;case 3:Hn(),ve(Ge),ve(Ae),Ta();break;case 5:Ca(r);break;case 4:Hn();break;case 13:ve(ke);break;case 19:ve(ke);break;case 10:wa(r.type._context);break;case 22:case 23:si()}n=n.return}if(ze=e,Pe=e=an(e.current,null),Oe=st=t,_e=0,Or=null,Ja=Ql=xn=0,Xe=$r=null,pn!==null){for(t=0;t<pn.length;t++)if(n=pn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,u=n.pending;if(u!==null){var d=u.next;u.next=s,r.next=d}n.pending=r}pn=null}return e}function jc(e,t){do{var n=Pe;try{if(ya(),zl.current=$l,Fl){for(var r=Se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Fl=!1}if(gn=0,De=Le=Se=null,_r=!1,Mr=0,Xa.current=null,n===null||n.return===null){_e=1,Or=t,Pe=null;break}e:{var u=e,d=n.return,g=n,j=t;if(t=Oe,g.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var L=j,I=g,O=I.tag;if((I.mode&1)===0&&(O===0||O===11||O===15)){var z=I.alternate;z?(I.updateQueue=z.updateQueue,I.memoizedState=z.memoizedState,I.lanes=z.lanes):(I.updateQueue=null,I.memoizedState=null)}var H=Qu(d);if(H!==null){H.flags&=-257,Ku(H,d,g,u,t),H.mode&1&&Wu(u,L,t),t=H,j=L;var Q=t.updateQueue;if(Q===null){var K=new Set;K.add(j),t.updateQueue=K}else Q.add(j);break e}else{if((t&1)===0){Wu(u,L,t),ai();break e}j=Error(o(426))}}else if(we&&g.mode&1){var Re=Qu(d);if(Re!==null){(Re.flags&65536)===0&&(Re.flags|=256),Ku(Re,d,g,u,t),xa(Vn(j,g));break e}}u=j=Vn(j,g),_e!==4&&(_e=2),$r===null?$r=[u]:$r.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var E=Hu(u,j,t);gu(u,E);break e;case 1:g=j;var S=u.type,P=u.stateNode;if((u.flags&128)===0&&(typeof S.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(nn===null||!nn.has(P)))){u.flags|=65536,t&=-t,u.lanes|=t;var A=Vu(u,g,t);gu(u,A);break e}}u=u.return}while(u!==null)}Nc(n)}catch(G){t=G,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function kc(){var e=Wl.current;return Wl.current=$l,e===null?$l:e}function ai(){(_e===0||_e===3||_e===2)&&(_e=4),ze===null||(xn&268435455)===0&&(Ql&268435455)===0||sn(ze,Oe)}function Jl(e,t){var n=ie;ie|=2;var r=kc();(ze!==e||Oe!==t)&&(Ot=null,yn(e,t));do try{zm();break}catch(s){jc(e,s)}while(!0);if(ya(),ie=n,Wl.current=r,Pe!==null)throw Error(o(261));return ze=null,Oe=0,_e}function zm(){for(;Pe!==null;)Sc(Pe)}function Fm(){for(;Pe!==null&&!af();)Sc(Pe)}function Sc(e){var t=Tc(e.alternate,e,st);e.memoizedProps=e.pendingProps,t===null?Nc(e):Pe=t,Xa.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Rm(n,t,st),n!==null){Pe=n;return}}else{if(n=Pm(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Pe=null;return}}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);_e===0&&(_e=5)}function wn(e,t,n){var r=fe,s=dt.transition;try{dt.transition=null,fe=1,Im(e,t,n,r)}finally{dt.transition=s,fe=r}return null}function Im(e,t,n,r){do Gn();while(rn!==null);if((ie&6)!==0)throw Error(o(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(xf(e,u),e===ze&&(Pe=ze=null,Oe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Gl||(Gl=!0,Rc(nl,function(){return Gn(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=dt.transition,dt.transition=null;var d=fe;fe=1;var g=ie;ie|=4,Xa.current=null,Lm(e,n),pc(n,e),rm(aa),ul=!!sa,aa=sa=null,e.current=n,_m(n),of(),ie=g,fe=d,dt.transition=u}else e.current=n;if(Gl&&(Gl=!1,rn=e,Yl=s),u=e.pendingLanes,u===0&&(nn=null),df(n.stateNode),Je(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Kl)throw Kl=!1,e=ei,ei=null,e;return(Yl&1)!==0&&e.tag!==0&&Gn(),u=e.pendingLanes,(u&1)!==0?e===ti?Ar++:(Ar=0,ti=e):Ar=0,Jt(),null}function Gn(){if(rn!==null){var e=fo(Yl),t=dt.transition,n=fe;try{if(dt.transition=null,fe=16>e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,Yl=0,(ie&6)!==0)throw Error(o(331));var s=ie;for(ie|=4,V=e.current;V!==null;){var u=V,d=u.child;if((V.flags&16)!==0){var g=u.deletions;if(g!==null){for(var j=0;j<g.length;j++){var L=g[j];for(V=L;V!==null;){var I=V;switch(I.tag){case 0:case 11:case 15:Ir(8,I,u)}var O=I.child;if(O!==null)O.return=I,V=O;else for(;V!==null;){I=V;var z=I.sibling,H=I.return;if(uc(I),I===L){V=null;break}if(z!==null){z.return=H,V=z;break}V=H}}}var Q=u.alternate;if(Q!==null){var K=Q.child;if(K!==null){Q.child=null;do{var Re=K.sibling;K.sibling=null,K=Re}while(K!==null)}}V=u}}if((u.subtreeFlags&2064)!==0&&d!==null)d.return=u,V=d;else e:for(;V!==null;){if(u=V,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Ir(9,u,u.return)}var E=u.sibling;if(E!==null){E.return=u.return,V=E;break e}V=u.return}}var S=e.current;for(V=S;V!==null;){d=V;var P=d.child;if((d.subtreeFlags&2064)!==0&&P!==null)P.return=d,V=P;else e:for(d=S;V!==null;){if(g=V,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Vl(9,g)}}catch(G){Ce(g,g.return,G)}if(g===d){V=null;break e}var A=g.sibling;if(A!==null){A.return=g.return,V=A;break e}V=g.return}}if(ie=s,Jt(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(rl,e)}catch{}r=!0}return r}finally{fe=n,dt.transition=t}}return!1}function Cc(e,t,n){t=Vn(n,t),t=Hu(e,t,1),e=en(e,t,1),t=Qe(),e!==null&&(cr(e,1,t),Je(e,t))}function Ce(e,t,n){if(e.tag===3)Cc(e,e,n);else for(;t!==null;){if(t.tag===3){Cc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nn===null||!nn.has(r))){e=Vn(n,e),e=Vu(t,e,1),t=en(t,e,1),e=Qe(),t!==null&&(cr(t,1,e),Je(t,e));break}}t=t.return}}function Om(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Qe(),e.pingedLanes|=e.suspendedLanes&n,ze===e&&(Oe&n)===n&&(_e===4||_e===3&&(Oe&130023424)===Oe&&500>Te()-Za?yn(e,0):Ja|=n),Je(e,t)}function Ec(e,t){t===0&&((e.mode&1)===0?t=1:(t=sl,sl<<=1,(sl&130023424)===0&&(sl=4194304)));var n=Qe();e=zt(e,t),e!==null&&(cr(e,t,n),Je(e,n))}function $m(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ec(e,n)}function Am(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Ec(e,n)}var Tc;Tc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)qe=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return qe=!1,Tm(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,we&&(t.flags&1048576)!==0&&au(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var s=Fn(t,Ae.current);Bn(t,n),s=ba(null,t,r,e,s,n);var u=La();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(u=!0,Nl(t)):u=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Sa(t),s.updater=Al,t.stateNode=s,s._reactInternals=t,Ia(t,r,e,n),t=Ua(null,t,r,!0,u,n)):(t.tag=0,we&&u&&ma(t),We(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Bm(r),e=vt(r,e),s){case 0:t=Aa(null,t,r,e,n);break e;case 1:t=Zu(null,t,r,e,n);break e;case 11:t=Gu(null,t,r,e,n);break e;case 14:t=Yu(null,t,r,vt(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Aa(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Zu(e,t,r,s,n);case 3:e:{if(ec(t),e===null)throw Error(o(387));r=t.pendingProps,u=t.memoizedState,s=u.element,hu(e,t),Ml(t,r,null,n);var d=t.memoizedState;if(r=d.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){s=Vn(Error(o(423)),t),t=tc(e,t,r,n,s);break e}else if(r!==s){s=Vn(Error(o(424)),t),t=tc(e,t,r,n,s);break e}else for(lt=Yt(t.stateNode.containerInfo.firstChild),rt=t,we=!0,xt=null,n=mu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===s){t=It(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return vu(t),e===null&&ga(t),r=t.type,s=t.pendingProps,u=e!==null?e.memoizedProps:null,d=s.children,ia(r,s)?d=null:u!==null&&ia(r,u)&&(t.flags|=32),Ju(e,t),We(e,t,d,n),t.child;case 6:return e===null&&ga(t),null;case 13:return nc(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=An(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Gu(e,t,r,s,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,u=t.memoizedProps,d=s.value,ge(bl,r._currentValue),r._currentValue=d,u!==null)if(gt(u.value,d)){if(u.children===s.children&&!Ge.current){t=It(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){d=u.child;for(var j=g.firstContext;j!==null;){if(j.context===r){if(u.tag===1){j=Ft(-1,n&-n),j.tag=2;var L=u.updateQueue;if(L!==null){L=L.shared;var I=L.pending;I===null?j.next=j:(j.next=I.next,I.next=j),L.pending=j}}u.lanes|=n,j=u.alternate,j!==null&&(j.lanes|=n),ja(u.return,n,t),g.lanes|=n;break}j=j.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=n,g=d.alternate,g!==null&&(g.lanes|=n),ja(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}We(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Bn(t,n),s=ut(s),r=r(s),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,s=vt(r,t.pendingProps),s=vt(r.type,s),Yu(e,t,r,s,n);case 15:return qu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Bl(e,t),t.tag=1,Ye(r)?(e=!0,Nl(t)):e=!1,Bn(t,n),Uu(t,r,s),Ia(t,r,s,n),Ua(null,t,r,!0,e,n);case 19:return lc(e,t,n);case 22:return Xu(e,t,n)}throw Error(o(156,t.tag))};function Rc(e,t){return ao(e,t)}function Um(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,r){return new Um(e,t,n,r)}function ii(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bm(e){if(typeof e=="function")return ii(e)?1:0;if(e!=null){if(e=e.$$typeof,e===at)return 11;if(e===je)return 14}return 2}function an(e,t){var n=e.alternate;return n===null?(n=ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zl(e,t,n,r,s,u){var d=2;if(r=e,typeof e=="function")ii(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ae:return jn(n.children,s,u,t);case ne:d=8,s|=8;break;case Ee:return e=ft(12,n,t,s|2),e.elementType=Ee,e.lanes=u,e;case Ve:return e=ft(13,n,t,s),e.elementType=Ve,e.lanes=u,e;case et:return e=ft(19,n,t,s),e.elementType=et,e.lanes=u,e;case me:return es(n,s,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:d=10;break e;case pt:d=9;break e;case at:d=11;break e;case je:d=14;break e;case $e:d=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=ft(d,n,t,s),t.elementType=e,t.type=r,t.lanes=u,t}function jn(e,t,n,r){return e=ft(7,e,r,t),e.lanes=n,e}function es(e,t,n,r){return e=ft(22,e,r,t),e.elementType=me,e.lanes=n,e.stateNode={isHidden:!1},e}function oi(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function ui(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hm(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fs(0),this.expirationTimes=Fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fs(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function ci(e,t,n,r,s,u,d,g,j){return e=new Hm(e,t,n,g,j),t===1?(t=1,u===!0&&(t|=8)):t=0,u=ft(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sa(u),e}function Vm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Pc(e){if(!e)return Xt;e=e._reactInternals;e:{if(un(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ye(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(Ye(n))return ru(e,n,t)}return t}function bc(e,t,n,r,s,u,d,g,j){return e=ci(n,r,!0,e,s,u,d,g,j),e.context=Pc(null),n=e.current,r=Qe(),s=ln(n),u=Ft(r,s),u.callback=t??null,en(n,u,s),e.current.lanes=s,cr(e,s,r),Je(e,r),e}function ts(e,t,n,r){var s=t.current,u=Qe(),d=ln(s);return n=Pc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ft(u,d),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=en(s,t,d),e!==null&&(jt(e,s,d,u),_l(e,s,d)),d}function ns(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Lc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function di(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function Wm(){return null}var _c=typeof reportError=="function"?reportError:function(e){console.error(e)};function fi(e){this._internalRoot=e}rs.prototype.render=fi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));ts(e,t,null,null)},rs.prototype.unmount=fi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){ts(null,e,null,null)}),t[Lt]=null}};function rs(e){this._internalRoot=e}rs.prototype.unstable_scheduleHydration=function(e){if(e){var t=ho();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qt.length&&t!==0&&t<Qt[n].priority;n++);Qt.splice(n,0,e),n===0&&vo(e)}};function mi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ls(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mc(){}function Qm(e,t,n,r,s){if(s){if(typeof r=="function"){var u=r;r=function(){var L=ns(d);u.call(L)}}var d=bc(t,r,e,0,null,!1,!1,"",Mc);return e._reactRootContainer=d,e[Lt]=d.current,Nr(e.nodeType===8?e.parentNode:e),vn(),d}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var g=r;r=function(){var L=ns(j);g.call(L)}}var j=ci(e,0,!1,null,null,!1,!1,"",Mc);return e._reactRootContainer=j,e[Lt]=j.current,Nr(e.nodeType===8?e.parentNode:e),vn(function(){ts(t,j,n,r)}),j}function ss(e,t,n,r,s){var u=n._reactRootContainer;if(u){var d=u;if(typeof s=="function"){var g=s;s=function(){var j=ns(d);g.call(j)}}ts(t,d,e,s)}else d=Qm(n,t,e,s,r);return ns(d)}mo=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ur(t.pendingLanes);n!==0&&(Is(t,n|1),Je(t,Te()),(ie&6)===0&&(Kn=Te()+500,Jt()))}break;case 13:vn(function(){var r=zt(e,1);if(r!==null){var s=Qe();jt(r,e,1,s)}}),di(e,1)}},Os=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Qe();jt(t,e,134217728,n)}di(e,134217728)}},po=function(e){if(e.tag===13){var t=ln(e),n=zt(e,t);if(n!==null){var r=Qe();jt(n,e,t,r)}di(e,t)}},ho=function(){return fe},go=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}},bs=function(e,t,n){switch(t){case"input":if(ks(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=kl(r);if(!s)throw Error(o(90));$i(r),ks(r,s)}}}break;case"textarea":Vi(e,n);break;case"select":t=n.value,t!=null&&Nn(e,!!n.multiple,t,!1)}},Zi=li,eo=vn;var Km={usingClientEntryPoint:!1,Events:[Tr,Dn,kl,Xi,Ji,li]},Ur={findFiberByHostInstance:cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gm={bundleType:Ur.bundleType,version:Ur.version,rendererPackageName:Ur.rendererPackageName,rendererConfig:Ur.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lo(e),e===null?null:e.stateNode},findFiberByHostInstance:Ur.findFiberByHostInstance||Wm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var as=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!as.isDisabled&&as.supportsFiber)try{rl=as.inject(Gm),Nt=as}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Km,Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mi(t))throw Error(o(200));return Vm(e,t,null,n)},Ze.createRoot=function(e,t){if(!mi(e))throw Error(o(299));var n=!1,r="",s=_c;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=ci(e,1,!1,null,null,n,!1,r,s),e[Lt]=t.current,Nr(e.nodeType===8?e.parentNode:e),new fi(t)},Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=lo(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e){return vn(e)},Ze.hydrate=function(e,t,n){if(!ls(t))throw Error(o(200));return ss(null,e,t,!0,n)},Ze.hydrateRoot=function(e,t,n){if(!mi(e))throw Error(o(405));var r=n!=null&&n.hydratedSources||null,s=!1,u="",d=_c;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=bc(t,null,e,1,n??null,s,!1,u,d),e[Lt]=t.current,Nr(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new rs(t)},Ze.render=function(e,t,n){if(!ls(t))throw Error(o(200));return ss(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!ls(e))throw Error(o(40));return e._reactRootContainer?(vn(function(){ss(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1},Ze.unstable_batchedUpdates=li,Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ls(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ss(e,t,n,!1,r)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}var Uc;function lp(){if(Uc)return gi.exports;Uc=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),gi.exports=rp(),gi.exports}var Bc;function sp(){if(Bc)return os;Bc=1;var l=lp();return os.createRoot=l.createRoot,os.hydrateRoot=l.hydrateRoot,os}var ap=sp();const ip=fd(ap);/**
|
|
41
|
+
* react-router v7.13.0
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var Hc="popstate";function op(l={}){function i(c,f){let{pathname:m,search:p,hash:x}=c.location;return Si("",{pathname:m,search:p,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function o(c,f){return typeof f=="string"?f:Wr(f)}return cp(i,o,null,l)}function Ne(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function bt(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function up(){return Math.random().toString(36).substring(2,10)}function Vc(l,i){return{usr:l.state,key:l.key,idx:i}}function Si(l,i,o=null,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?tr(i):i,state:o,key:i&&i.key||c||up()}}function Wr({pathname:l="/",search:i="",hash:o=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(l+=o.charAt(0)==="#"?o:"#"+o),l}function tr(l){let i={};if(l){let o=l.indexOf("#");o>=0&&(i.hash=l.substring(o),l=l.substring(0,o));let c=l.indexOf("?");c>=0&&(i.search=l.substring(c),l=l.substring(0,c)),l&&(i.pathname=l)}return i}function cp(l,i,o,c={}){let{window:f=document.defaultView,v5Compat:m=!1}=c,p=f.history,x="POP",v=null,w=k();w==null&&(w=0,p.replaceState({...p.state,idx:w},""));function k(){return(p.state||{idx:null}).idx}function y(){x="POP";let C=k(),D=C==null?null:C-w;w=C,v&&v({action:x,location:_.location,delta:D})}function T(C,D){x="PUSH";let M=Si(_.location,C,D);w=k()+1;let R=Vc(M,w),U=_.createHref(M);try{p.pushState(R,"",U)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;f.location.assign(U)}m&&v&&v({action:x,location:_.location,delta:1})}function b(C,D){x="REPLACE";let M=Si(_.location,C,D);w=k();let R=Vc(M,w),U=_.createHref(M);p.replaceState(R,"",U),m&&v&&v({action:x,location:_.location,delta:0})}function $(C){return dp(C)}let _={get action(){return x},get location(){return l(f,p)},listen(C){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Hc,y),v=C,()=>{f.removeEventListener(Hc,y),v=null}},createHref(C){return i(f,C)},createURL:$,encodeLocation(C){let D=$(C);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:T,replace:b,go(C){return p.go(C)}};return _}function dp(l,i=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ne(o,"No window.location.(origin|href) available to create URL");let c=typeof l=="string"?l:Wr(l);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=o+c),new URL(c,o)}function md(l,i,o="/"){return fp(l,i,o,!1)}function fp(l,i,o,c){let f=typeof i=="string"?tr(i):i,m=Ut(f.pathname||"/",o);if(m==null)return null;let p=pd(l);mp(p);let x=null;for(let v=0;x==null&&v<p.length;++v){let w=Np(m);x=kp(p[v],w,c)}return x}function pd(l,i=[],o=[],c="",f=!1){let m=(p,x,v=f,w)=>{let k={relativePath:w===void 0?p.path||"":w,caseSensitive:p.caseSensitive===!0,childrenIndex:x,route:p};if(k.relativePath.startsWith("/")){if(!k.relativePath.startsWith(c)&&v)return;Ne(k.relativePath.startsWith(c),`Absolute route path "${k.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),k.relativePath=k.relativePath.slice(c.length)}let y=At([c,k.relativePath]),T=o.concat(k);p.children&&p.children.length>0&&(Ne(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),pd(p.children,i,T,y,v)),!(p.path==null&&!p.index)&&i.push({path:y,score:wp(y,p.index),routesMeta:T})};return l.forEach((p,x)=>{var v;if(p.path===""||!((v=p.path)!=null&&v.includes("?")))m(p,x);else for(let w of hd(p.path))m(p,x,!0,w)}),i}function hd(l){let i=l.split("/");if(i.length===0)return[];let[o,...c]=i,f=o.endsWith("?"),m=o.replace(/\?$/,"");if(c.length===0)return f?[m,""]:[m];let p=hd(c.join("/")),x=[];return x.push(...p.map(v=>v===""?m:[m,v].join("/"))),f&&x.push(...p),x.map(v=>l.startsWith("/")&&v===""?"/":v)}function mp(l){l.sort((i,o)=>i.score!==o.score?o.score-i.score:jp(i.routesMeta.map(c=>c.childrenIndex),o.routesMeta.map(c=>c.childrenIndex)))}var pp=/^:[\w-]+$/,hp=3,gp=2,xp=1,vp=10,yp=-2,Wc=l=>l==="*";function wp(l,i){let o=l.split("/"),c=o.length;return o.some(Wc)&&(c+=yp),i&&(c+=gp),o.filter(f=>!Wc(f)).reduce((f,m)=>f+(pp.test(m)?hp:m===""?xp:vp),c)}function jp(l,i){return l.length===i.length&&l.slice(0,-1).every((c,f)=>c===i[f])?l[l.length-1]-i[i.length-1]:0}function kp(l,i,o=!1){let{routesMeta:c}=l,f={},m="/",p=[];for(let x=0;x<c.length;++x){let v=c[x],w=x===c.length-1,k=m==="/"?i:i.slice(m.length)||"/",y=xs({path:v.relativePath,caseSensitive:v.caseSensitive,end:w},k),T=v.route;if(!y&&w&&o&&!c[c.length-1].route.index&&(y=xs({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},k)),!y)return null;Object.assign(f,y.params),p.push({params:f,pathname:At([m,y.pathname]),pathnameBase:Rp(At([m,y.pathnameBase])),route:T}),y.pathnameBase!=="/"&&(m=At([m,y.pathnameBase]))}return p}function xs(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[o,c]=Sp(l.path,l.caseSensitive,l.end),f=i.match(o);if(!f)return null;let m=f[0],p=m.replace(/(.)\/+$/,"$1"),x=f.slice(1);return{params:c.reduce((w,{paramName:k,isOptional:y},T)=>{if(k==="*"){let $=x[T]||"";p=m.slice(0,m.length-$.length).replace(/(.)\/+$/,"$1")}const b=x[T];return y&&!b?w[k]=void 0:w[k]=(b||"").replace(/%2F/g,"/"),w},{}),pathname:m,pathnameBase:p,pattern:l}}function Sp(l,i=!1,o=!0){bt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,x,v)=>(c.push({paramName:x,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),c]}function Np(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return bt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function Ut(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,c=l.charAt(o);return c&&c!=="/"?null:l.slice(o)||"/"}var Cp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ep(l,i="/"){let{pathname:o,search:c="",hash:f=""}=typeof l=="string"?tr(l):l,m;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?m=Qc(o.substring(1),"/"):m=Qc(o,i)):m=i,{pathname:m,search:Pp(c),hash:bp(f)}}function Qc(l,i){let o=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function yi(l,i,o,c){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tp(l){return l.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function gd(l){let i=Tp(l);return i.map((o,c)=>c===i.length-1?o.pathname:o.pathnameBase)}function xd(l,i,o,c=!1){let f;typeof l=="string"?f=tr(l):(f={...l},Ne(!f.pathname||!f.pathname.includes("?"),yi("?","pathname","search",f)),Ne(!f.pathname||!f.pathname.includes("#"),yi("#","pathname","hash",f)),Ne(!f.search||!f.search.includes("#"),yi("#","search","hash",f)));let m=l===""||f.pathname==="",p=m?"/":f.pathname,x;if(p==null)x=o;else{let y=i.length-1;if(!c&&p.startsWith("..")){let T=p.split("/");for(;T[0]==="..";)T.shift(),y-=1;f.pathname=T.join("/")}x=y>=0?i[y]:"/"}let v=Ep(f,x),w=p&&p!=="/"&&p.endsWith("/"),k=(m||p===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(w||k)&&(v.pathname+="/"),v}var At=l=>l.join("/").replace(/\/\/+/g,"/"),Rp=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Pp=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,bp=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Lp=class{constructor(l,i,o,c=!1){this.status=l,this.statusText=i||"",this.internal=c,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function _p(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Mp(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yd(l,i){let o=l;if(typeof o!="string"||!Cp.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let c=o,f=!1;if(vd)try{let m=new URL(window.location.href),p=o.startsWith("//")?new URL(m.protocol+o):new URL(o),x=Ut(p.pathname,i);p.origin===m.origin&&x!=null?o=x+p.search+p.hash:f=!0}catch{bt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wd=["POST","PUT","PATCH","DELETE"];new Set(wd);var Dp=["GET",...wd];new Set(Dp);var nr=h.createContext(null);nr.displayName="DataRouter";var ys=h.createContext(null);ys.displayName="DataRouterState";var zp=h.createContext(!1),jd=h.createContext({isTransitioning:!1});jd.displayName="ViewTransition";var Fp=h.createContext(new Map);Fp.displayName="Fetchers";var Ip=h.createContext(null);Ip.displayName="Await";var mt=h.createContext(null);mt.displayName="Navigation";var Kr=h.createContext(null);Kr.displayName="Location";var Bt=h.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var Ri=h.createContext(null);Ri.displayName="RouteError";var kd="REACT_ROUTER_ERROR",Op="REDIRECT",$p="ROUTE_ERROR_RESPONSE";function Ap(l){if(l.startsWith(`${kd}:${Op}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Up(l){if(l.startsWith(`${kd}:${$p}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Lp(i.status,i.statusText,i.data)}catch{}}function Bp(l,{relative:i}={}){Ne(Gr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:c}=h.useContext(mt),{hash:f,pathname:m,search:p}=Yr(l,{relative:i}),x=m;return o!=="/"&&(x=m==="/"?o:At([o,m])),c.createHref({pathname:x,search:p,hash:f})}function Gr(){return h.useContext(Kr)!=null}function Sn(){return Ne(Gr(),"useLocation() may be used only in the context of a <Router> component."),h.useContext(Kr).location}var Sd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nd(l){h.useContext(mt).static||h.useLayoutEffect(l)}function Pi(){let{isDataRoute:l}=h.useContext(Bt);return l?th():Hp()}function Hp(){Ne(Gr(),"useNavigate() may be used only in the context of a <Router> component.");let l=h.useContext(nr),{basename:i,navigator:o}=h.useContext(mt),{matches:c}=h.useContext(Bt),{pathname:f}=Sn(),m=JSON.stringify(gd(c)),p=h.useRef(!1);return Nd(()=>{p.current=!0}),h.useCallback((v,w={})=>{if(bt(p.current,Sd),!p.current)return;if(typeof v=="number"){o.go(v);return}let k=xd(v,JSON.parse(m),f,w.relative==="path");l==null&&i!=="/"&&(k.pathname=k.pathname==="/"?i:At([i,k.pathname])),(w.replace?o.replace:o.push)(k,w.state,w)},[i,o,m,f,l])}h.createContext(null);function Yr(l,{relative:i}={}){let{matches:o}=h.useContext(Bt),{pathname:c}=Sn(),f=JSON.stringify(gd(o));return h.useMemo(()=>xd(l,JSON.parse(f),c,i==="path"),[l,f,c,i])}function Vp(l,i){return Cd(l,i)}function Cd(l,i,o,c,f){var M;Ne(Gr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=h.useContext(mt),{matches:p}=h.useContext(Bt),x=p[p.length-1],v=x?x.params:{},w=x?x.pathname:"/",k=x?x.pathnameBase:"/",y=x&&x.route;{let R=y&&y.path||"";Td(w,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${w}" (under <Route path="${R}">) 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.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let T=Sn(),b;if(i){let R=typeof i=="string"?tr(i):i;Ne(k==="/"||((M=R.pathname)==null?void 0:M.startsWith(k)),`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 "${k}" but pathname "${R.pathname}" was given in the \`location\` prop.`),b=R}else b=T;let $=b.pathname||"/",_=$;if(k!=="/"){let R=k.replace(/^\//,"").split("/");_="/"+$.replace(/^\//,"").split("/").slice(R.length).join("/")}let C=md(l,{pathname:_});bt(y||C!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),bt(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 D=Yp(C&&C.map(R=>Object.assign({},R,{params:Object.assign({},v,R.params),pathname:At([k,m.encodeLocation?m.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?k:At([k,m.encodeLocation?m.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),p,o,c,f);return i&&D?h.createElement(Kr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},D):D}function Wp(){let l=eh(),i=_p(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),o=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},p=null;return console.error("Error handled by React Router default ErrorBoundary:",l),p=h.createElement(h.Fragment,null,h.createElement("p",null,"💿 Hey developer 👋"),h.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",h.createElement("code",{style:m},"ErrorBoundary")," or"," ",h.createElement("code",{style:m},"errorElement")," prop on your route.")),h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},i),o?h.createElement("pre",{style:f},o):null,p)}var Qp=h.createElement(Wp,null),Ed=class extends h.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const o=Up(l.digest);o&&(l=o)}let i=l!==void 0?h.createElement(Bt.Provider,{value:this.props.routeContext},h.createElement(Ri.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?h.createElement(Kp,{error:l},i):i}};Ed.contextType=zp;var wi=new WeakMap;function Kp({children:l,error:i}){let{basename:o}=h.useContext(mt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Ap(i.digest);if(c){let f=wi.get(i);if(f)throw f;let m=yd(c.location,o);if(vd&&!wi.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw wi.set(i,p),p}return h.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return l}function Gp({routeContext:l,match:i,children:o}){let c=h.useContext(nr);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),h.createElement(Bt.Provider,{value:l},o)}function Yp(l,i=[],o=null,c=null,f=null){if(l==null){if(!o)return null;if(o.errors)l=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let m=l,p=o==null?void 0:o.errors;if(p!=null){let k=m.findIndex(y=>y.route.id&&(p==null?void 0:p[y.route.id])!==void 0);Ne(k>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),m=m.slice(0,Math.min(m.length,k+1))}let x=!1,v=-1;if(o)for(let k=0;k<m.length;k++){let y=m[k];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(v=k),y.route.id){let{loaderData:T,errors:b}=o,$=y.route.loader&&!T.hasOwnProperty(y.route.id)&&(!b||b[y.route.id]===void 0);if(y.route.lazy||$){x=!0,v>=0?m=m.slice(0,v+1):m=[m[0]];break}}}let w=o&&c?(k,y)=>{var T,b;c(k,{location:o.location,params:((b=(T=o.matches)==null?void 0:T[0])==null?void 0:b.params)??{},unstable_pattern:Mp(o.matches),errorInfo:y})}:void 0;return m.reduceRight((k,y,T)=>{let b,$=!1,_=null,C=null;o&&(b=p&&y.route.id?p[y.route.id]:void 0,_=y.route.errorElement||Qp,x&&(v<0&&T===0?(Td("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),$=!0,C=null):v===T&&($=!0,C=y.route.hydrateFallbackElement||null)));let D=i.concat(m.slice(0,T+1)),M=()=>{let R;return b?R=_:$?R=C:y.route.Component?R=h.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=k,h.createElement(Gp,{match:y,routeContext:{outlet:k,matches:D,isDataRoute:o!=null},children:R})};return o&&(y.route.ErrorBoundary||y.route.errorElement||T===0)?h.createElement(Ed,{location:o.location,revalidation:o.revalidation,component:_,error:b,children:M(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:w}):M()},null)}function bi(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qp(l){let i=h.useContext(nr);return Ne(i,bi(l)),i}function Xp(l){let i=h.useContext(ys);return Ne(i,bi(l)),i}function Jp(l){let i=h.useContext(Bt);return Ne(i,bi(l)),i}function Li(l){let i=Jp(l),o=i.matches[i.matches.length-1];return Ne(o.route.id,`${l} can only be used on routes that contain a unique "id"`),o.route.id}function Zp(){return Li("useRouteId")}function eh(){var c;let l=h.useContext(Ri),i=Xp("useRouteError"),o=Li("useRouteError");return l!==void 0?l:(c=i.errors)==null?void 0:c[o]}function th(){let{router:l}=qp("useNavigate"),i=Li("useNavigate"),o=h.useRef(!1);return Nd(()=>{o.current=!0}),h.useCallback(async(f,m={})=>{bt(o.current,Sd),o.current&&(typeof f=="number"?await l.navigate(f):await l.navigate(f,{fromRouteId:i,...m}))},[l,i])}var Kc={};function Td(l,i,o){!i&&!Kc[l]&&(Kc[l]=!0,bt(!1,o))}h.memo(nh);function nh({routes:l,future:i,state:o,onError:c}){return Cd(l,void 0,o,c,i)}function Pt(l){Ne(!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 rh({basename:l="/",children:i=null,location:o,navigationType:c="POP",navigator:f,static:m=!1,unstable_useTransitions:p}){Ne(!Gr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=l.replace(/^\/*/,"/"),v=h.useMemo(()=>({basename:x,navigator:f,static:m,unstable_useTransitions:p,future:{}}),[x,f,m,p]);typeof o=="string"&&(o=tr(o));let{pathname:w="/",search:k="",hash:y="",state:T=null,key:b="default"}=o,$=h.useMemo(()=>{let _=Ut(w,x);return _==null?null:{location:{pathname:_,search:k,hash:y,state:T,key:b},navigationType:c}},[x,w,k,y,T,b,c]);return bt($!=null,`<Router basename="${x}"> is not able to match the URL "${w}${k}${y}" because it does not start with the basename, so the <Router> won't render anything.`),$==null?null:h.createElement(mt.Provider,{value:v},h.createElement(Kr.Provider,{children:i,value:$}))}function lh({children:l,location:i}){return Vp(Ni(l),i)}function Ni(l,i=[]){let o=[];return h.Children.forEach(l,(c,f)=>{if(!h.isValidElement(c))return;let m=[...i,f];if(c.type===h.Fragment){o.push.apply(o,Ni(c.props.children,m));return}Ne(c.type===Pt,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ne(!c.props.index||!c.props.children,"An index route cannot have child routes.");let p={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(p.children=Ni(c.props.children,m)),o.push(p)}),o}var ps="get",hs="application/x-www-form-urlencoded";function ws(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function sh(l){return ws(l)&&l.tagName.toLowerCase()==="button"}function ah(l){return ws(l)&&l.tagName.toLowerCase()==="form"}function ih(l){return ws(l)&&l.tagName.toLowerCase()==="input"}function oh(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function uh(l,i){return l.button===0&&(!i||i==="_self")&&!oh(l)}var us=null;function ch(){if(us===null)try{new FormData(document.createElement("form"),0),us=!1}catch{us=!0}return us}var dh=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ji(l){return l!=null&&!dh.has(l)?(bt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hs}"`),null):l}function fh(l,i){let o,c,f,m,p;if(ah(l)){let x=l.getAttribute("action");c=x?Ut(x,i):null,o=l.getAttribute("method")||ps,f=ji(l.getAttribute("enctype"))||hs,m=new FormData(l)}else if(sh(l)||ih(l)&&(l.type==="submit"||l.type==="image")){let x=l.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||x.getAttribute("action");if(c=v?Ut(v,i):null,o=l.getAttribute("formmethod")||x.getAttribute("method")||ps,f=ji(l.getAttribute("formenctype"))||ji(x.getAttribute("enctype"))||hs,m=new FormData(x,l),!ch()){let{name:w,type:k,value:y}=l;if(k==="image"){let T=w?`${w}.`:"";m.append(`${T}x`,"0"),m.append(`${T}y`,"0")}else w&&m.append(w,y)}}else{if(ws(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ps,c=null,f=hs,p=l}return m&&f==="text/plain"&&(p=m,m=void 0),{action:c,method:o.toLowerCase(),encType:f,formData:m,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _i(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function mh(l,i,o,c){let f=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:i&&Ut(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${c}`,f}async function ph(l,i){if(l.id in i)return i[l.id];try{let o=await import(l.module);return i[l.id]=o,o}catch(o){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hh(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function gh(l,i,o){let c=await Promise.all(l.map(async f=>{let m=i.routes[f.route.id];if(m){let p=await ph(m,o);return p.links?p.links():[]}return[]}));return wh(c.flat(1).filter(hh).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Gc(l,i,o,c,f,m){let p=(v,w)=>o[w]?v.route.id!==o[w].route.id:!0,x=(v,w)=>{var k;return o[w].pathname!==v.pathname||((k=o[w].route.path)==null?void 0:k.endsWith("*"))&&o[w].params["*"]!==v.params["*"]};return m==="assets"?i.filter((v,w)=>p(v,w)||x(v,w)):m==="data"?i.filter((v,w)=>{var y;let k=c.routes[v.route.id];if(!k||!k.hasLoader)return!1;if(p(v,w)||x(v,w))return!0;if(v.route.shouldRevalidate){let T=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((y=o[0])==null?void 0:y.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function xh(l,i,{includeHydrateFallback:o}={}){return vh(l.map(c=>{let f=i.routes[c.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function vh(l){return[...new Set(l)]}function yh(l){let i={},o=Object.keys(l).sort();for(let c of o)i[c]=l[c];return i}function wh(l,i){let o=new Set;return new Set(i),l.reduce((c,f)=>{let m=JSON.stringify(yh(f));return o.has(m)||(o.add(m),c.push({key:m,link:f})),c},[])}function Rd(){let l=h.useContext(nr);return _i(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function jh(){let l=h.useContext(ys);return _i(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Mi=h.createContext(void 0);Mi.displayName="FrameworkContext";function Pd(){let l=h.useContext(Mi);return _i(l,"You must render this element inside a <HydratedRouter> element"),l}function kh(l,i){let o=h.useContext(Mi),[c,f]=h.useState(!1),[m,p]=h.useState(!1),{onFocus:x,onBlur:v,onMouseEnter:w,onMouseLeave:k,onTouchStart:y}=i,T=h.useRef(null);h.useEffect(()=>{if(l==="render"&&p(!0),l==="viewport"){let _=D=>{D.forEach(M=>{p(M.isIntersecting)})},C=new IntersectionObserver(_,{threshold:.5});return T.current&&C.observe(T.current),()=>{C.disconnect()}}},[l]),h.useEffect(()=>{if(c){let _=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(_)}}},[c]);let b=()=>{f(!0)},$=()=>{f(!1),p(!1)};return o?l!=="intent"?[m,T,{}]:[m,T,{onFocus:Hr(x,b),onBlur:Hr(v,$),onMouseEnter:Hr(w,b),onMouseLeave:Hr(k,$),onTouchStart:Hr(y,b)}]:[!1,T,{}]}function Hr(l,i){return o=>{l&&l(o),o.defaultPrevented||i(o)}}function Sh({page:l,...i}){let{router:o}=Rd(),c=h.useMemo(()=>md(o.routes,l,o.basename),[o.routes,l,o.basename]);return c?h.createElement(Ch,{page:l,matches:c,...i}):null}function Nh(l){let{manifest:i,routeModules:o}=Pd(),[c,f]=h.useState([]);return h.useEffect(()=>{let m=!1;return gh(l,i,o).then(p=>{m||f(p)}),()=>{m=!0}},[l,i,o]),c}function Ch({page:l,matches:i,...o}){let c=Sn(),{future:f,manifest:m,routeModules:p}=Pd(),{basename:x}=Rd(),{loaderData:v,matches:w}=jh(),k=h.useMemo(()=>Gc(l,i,w,m,c,"data"),[l,i,w,m,c]),y=h.useMemo(()=>Gc(l,i,w,m,c,"assets"),[l,i,w,m,c]),T=h.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let _=new Set,C=!1;if(i.forEach(M=>{var U;let R=m.routes[M.route.id];!R||!R.hasLoader||(!k.some(Y=>Y.route.id===M.route.id)&&M.route.id in v&&((U=p[M.route.id])!=null&&U.shouldRevalidate)||R.hasClientLoader?C=!0:_.add(M.route.id))}),_.size===0)return[];let D=mh(l,x,f.unstable_trailingSlashAwareDataRequests,"data");return C&&_.size>0&&D.searchParams.set("_routes",i.filter(M=>_.has(M.route.id)).map(M=>M.route.id).join(",")),[D.pathname+D.search]},[x,f.unstable_trailingSlashAwareDataRequests,v,c,m,k,i,l,p]),b=h.useMemo(()=>xh(y,m),[y,m]),$=Nh(y);return h.createElement(h.Fragment,null,T.map(_=>h.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...o})),b.map(_=>h.createElement("link",{key:_,rel:"modulepreload",href:_,...o})),$.map(({key:_,link:C})=>h.createElement("link",{key:_,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function Eh(...l){return i=>{l.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var Th=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Th&&(window.__reactRouterVersion="7.13.0")}catch{}function Rh({basename:l,children:i,unstable_useTransitions:o,window:c}){let f=h.useRef();f.current==null&&(f.current=op({window:c,v5Compat:!0}));let m=f.current,[p,x]=h.useState({action:m.action,location:m.location}),v=h.useCallback(w=>{o===!1?x(w):h.startTransition(()=>x(w))},[o]);return h.useLayoutEffect(()=>m.listen(v),[m,v]),h.createElement(rh,{basename:l,children:i,location:p.location,navigationType:p.action,navigator:m,unstable_useTransitions:o})}var bd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Di=h.forwardRef(function({onClick:i,discover:o="render",prefetch:c="none",relative:f,reloadDocument:m,replace:p,state:x,target:v,to:w,preventScrollReset:k,viewTransition:y,unstable_defaultShouldRevalidate:T,...b},$){let{basename:_,unstable_useTransitions:C}=h.useContext(mt),D=typeof w=="string"&&bd.test(w),M=yd(w,_);w=M.to;let R=Bp(w,{relative:f}),[U,Y,J]=kh(c,b),ae=Lh(w,{replace:p,state:x,target:v,preventScrollReset:k,relative:f,viewTransition:y,unstable_defaultShouldRevalidate:T,unstable_useTransitions:C});function ne(be){i&&i(be),be.defaultPrevented||ae(be)}let Ee=h.createElement("a",{...b,...J,href:M.absoluteURL||R,onClick:M.isExternal||m?i:ne,ref:Eh($,Y),target:v,"data-discover":!D&&o==="render"?"true":void 0});return U&&!D?h.createElement(h.Fragment,null,Ee,h.createElement(Sh,{page:R})):Ee});Di.displayName="Link";var Ld=h.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:c="",end:f=!1,style:m,to:p,viewTransition:x,children:v,...w},k){let y=Yr(p,{relative:w.relative}),T=Sn(),b=h.useContext(ys),{navigator:$,basename:_}=h.useContext(mt),C=b!=null&&Fh(y)&&x===!0,D=$.encodeLocation?$.encodeLocation(y).pathname:y.pathname,M=T.pathname,R=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;o||(M=M.toLowerCase(),R=R?R.toLowerCase():null,D=D.toLowerCase()),R&&_&&(R=Ut(R,_)||R);const U=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let Y=M===D||!f&&M.startsWith(D)&&M.charAt(U)==="/",J=R!=null&&(R===D||!f&&R.startsWith(D)&&R.charAt(D.length)==="/"),ae={isActive:Y,isPending:J,isTransitioning:C},ne=Y?i:void 0,Ee;typeof c=="function"?Ee=c(ae):Ee=[c,Y?"active":null,J?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let be=typeof m=="function"?m(ae):m;return h.createElement(Di,{...w,"aria-current":ne,className:Ee,ref:k,style:be,to:p,viewTransition:x},typeof v=="function"?v(ae):v)});Ld.displayName="NavLink";var Ph=h.forwardRef(({discover:l="render",fetcherKey:i,navigate:o,reloadDocument:c,replace:f,state:m,method:p=ps,action:x,onSubmit:v,relative:w,preventScrollReset:k,viewTransition:y,unstable_defaultShouldRevalidate:T,...b},$)=>{let{unstable_useTransitions:_}=h.useContext(mt),C=Dh(),D=zh(x,{relative:w}),M=p.toLowerCase()==="get"?"get":"post",R=typeof x=="string"&&bd.test(x),U=Y=>{if(v&&v(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,ae=(J==null?void 0:J.getAttribute("formmethod"))||p,ne=()=>C(J||Y.currentTarget,{fetcherKey:i,method:ae,navigate:o,replace:f,state:m,relative:w,preventScrollReset:k,viewTransition:y,unstable_defaultShouldRevalidate:T});_&&o!==!1?h.startTransition(()=>ne()):ne()};return h.createElement("form",{ref:$,method:M,action:D,onSubmit:c?v:U,...b,"data-discover":!R&&l==="render"?"true":void 0})});Ph.displayName="Form";function bh(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _d(l){let i=h.useContext(nr);return Ne(i,bh(l)),i}function Lh(l,{target:i,replace:o,state:c,preventScrollReset:f,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:x,unstable_useTransitions:v}={}){let w=Pi(),k=Sn(),y=Yr(l,{relative:m});return h.useCallback(T=>{if(uh(T,i)){T.preventDefault();let b=o!==void 0?o:Wr(k)===Wr(y),$=()=>w(l,{replace:b,state:c,preventScrollReset:f,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:x});v?h.startTransition(()=>$()):$()}},[k,w,y,o,c,i,l,f,m,p,x,v])}var _h=0,Mh=()=>`__${String(++_h)}__`;function Dh(){let{router:l}=_d("useSubmit"),{basename:i}=h.useContext(mt),o=Zp(),c=l.fetch,f=l.navigate;return h.useCallback(async(m,p={})=>{let{action:x,method:v,encType:w,formData:k,body:y}=fh(m,i);if(p.navigate===!1){let T=p.fetcherKey||Mh();await c(T,o,p.action||x,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:k,body:y,formMethod:p.method||v,formEncType:p.encType||w,flushSync:p.flushSync})}else await f(p.action||x,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:k,body:y,formMethod:p.method||v,formEncType:p.encType||w,replace:p.replace,state:p.state,fromRouteId:o,flushSync:p.flushSync,viewTransition:p.viewTransition})},[c,f,i,o])}function zh(l,{relative:i}={}){let{basename:o}=h.useContext(mt),c=h.useContext(Bt);Ne(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),m={...Yr(l||".",{relative:i})},p=Sn();if(l==null){m.search=p.search;let x=new URLSearchParams(m.search),v=x.getAll("index");if(v.some(k=>k==="")){x.delete("index"),v.filter(y=>y).forEach(y=>x.append("index",y));let k=x.toString();m.search=k?`?${k}`:""}}return(!l||l===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(m.pathname=m.pathname==="/"?o:At([o,m.pathname])),Wr(m)}function Fh(l,{relative:i}={}){let o=h.useContext(jd);Ne(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=_d("useViewTransitionState"),f=Yr(l,{relative:i});if(!o.isTransitioning)return!1;let m=Ut(o.currentLocation.pathname,c)||o.currentLocation.pathname,p=Ut(o.nextLocation.pathname,c)||o.nextLocation.pathname;return xs(f.pathname,p)!=null||xs(f.pathname,m)!=null}/**
|
|
52
|
+
* @license lucide-react v0.468.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const Ih=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Md=(...l)=>l.filter((i,o,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===o).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v0.468.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var Oh={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"};/**
|
|
62
|
+
* @license lucide-react v0.468.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const $h=h.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:c,className:f="",children:m,iconNode:p,...x},v)=>h.createElement("svg",{ref:v,...Oh,width:i,height:i,stroke:l,strokeWidth:c?Number(o)*24/Number(i):o,className:Md("lucide",f),...x},[...p.map(([w,k])=>h.createElement(w,k)),...Array.isArray(m)?m:[m]]));/**
|
|
67
|
+
* @license lucide-react v0.468.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const te=(l,i)=>{const o=h.forwardRef(({className:c,...f},m)=>h.createElement($h,{ref:m,iconNode:i,className:Md(`lucide-${Ih(l)}`,c),...f}));return o.displayName=`${l}`,o};/**
|
|
72
|
+
* @license lucide-react v0.468.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const Ah=te("Activity",[["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"}]]);/**
|
|
77
|
+
* @license lucide-react v0.468.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Uh=te("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
82
|
+
* @license lucide-react v0.468.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Bh=te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
87
|
+
* @license lucide-react v0.468.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Hh=te("ArrowUpDown",[["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"}]]);/**
|
|
92
|
+
* @license lucide-react v0.468.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const zi=te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
97
|
+
* @license lucide-react v0.468.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Vh=te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
102
|
+
* @license lucide-react v0.468.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Wh=te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
107
|
+
* @license lucide-react v0.468.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Dd=te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
112
|
+
* @license lucide-react v0.468.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const zd=te("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
117
|
+
* @license lucide-react v0.468.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const Qh=te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
122
|
+
* @license lucide-react v0.468.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const Fd=te("CircleX",[["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"}]]);/**
|
|
127
|
+
* @license lucide-react v0.468.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const Id=te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
132
|
+
* @license lucide-react v0.468.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const Kh=te("ExternalLink",[["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"}]]);/**
|
|
137
|
+
* @license lucide-react v0.468.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Od=te("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
142
|
+
* @license lucide-react v0.468.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const Gh=te("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
147
|
+
* @license lucide-react v0.468.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const $d=te("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
152
|
+
* @license lucide-react v0.468.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Yh=te("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
|
|
157
|
+
* @license lucide-react v0.468.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const qh=te("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
162
|
+
* @license lucide-react v0.468.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const Ad=te("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
167
|
+
* @license lucide-react v0.468.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const Xh=te("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
|
|
172
|
+
* @license lucide-react v0.468.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const Jh=te("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
177
|
+
* @license lucide-react v0.468.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const Zh=te("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
182
|
+
* @license lucide-react v0.468.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const Ud=te("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
187
|
+
* @license lucide-react v0.468.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const eg=te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
192
|
+
* @license lucide-react v0.468.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const tg=te("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
197
|
+
* @license lucide-react v0.468.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Bd=te("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
202
|
+
* @license lucide-react v0.468.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const Fi=te("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
207
|
+
* @license lucide-react v0.468.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const Hd=te("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
212
|
+
* @license lucide-react v0.468.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const ng=te("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
217
|
+
* @license lucide-react v0.468.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const Ci=te("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
222
|
+
* @license lucide-react v0.468.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const Vd=te("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|
227
|
+
* @license lucide-react v0.468.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const kn=te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
232
|
+
* @license lucide-react v0.468.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const rg=te("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
237
|
+
* @license lucide-react v0.468.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const Wd=te("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
242
|
+
* @license lucide-react v0.468.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const lg=te("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
247
|
+
* @license lucide-react v0.468.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const sg=te("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
252
|
+
* @license lucide-react v0.468.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const ag=te("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
257
|
+
* @license lucide-react v0.468.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const Qd=te("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
262
|
+
* @license lucide-react v0.468.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const ig=te("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
|
|
267
|
+
* @license lucide-react v0.468.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const og=te("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/**
|
|
272
|
+
* @license lucide-react v0.468.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const Qr=te("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
277
|
+
* @license lucide-react v0.468.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const ug=te("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
282
|
+
* @license lucide-react v0.468.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const Ii=te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cg=[{path:"/",label:"Dashboard",icon:a.jsx(Zh,{className:"h-5 w-5"})},{path:"/projects",label:"Projects",icon:a.jsx(Yh,{className:"h-5 w-5"})},{path:"/tasks",label:"Tasks",icon:a.jsx(ag,{className:"h-5 w-5"})},{path:"/logs",label:"Logs",icon:a.jsx(Vd,{className:"h-5 w-5"})},{path:"/preview",label:"Preview",icon:a.jsx(Od,{className:"h-5 w-5"})},{path:"/settings",label:"Settings",icon:a.jsx(Wd,{className:"h-5 w-5"})}],Ei=h.forwardRef(({collapsed:l=!1,onToggle:i,className:o="",...c},f)=>{const m=l?"w-16":"w-60";return a.jsxs("aside",{ref:f,"data-testid":"sidebar",className:`
|
|
287
|
+
${m}
|
|
288
|
+
h-screen
|
|
289
|
+
bg-bg-secondary
|
|
290
|
+
border-r border-border
|
|
291
|
+
flex flex-col
|
|
292
|
+
transition-all duration-300
|
|
293
|
+
${l?"collapsed":""}
|
|
294
|
+
${o}
|
|
295
|
+
`,...c,children:[a.jsx("div",{className:"h-14 flex items-center px-4 border-b border-border",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent flex items-center justify-center text-white font-bold",children:"T"}),!l&&a.jsx("span",{className:"font-semibold text-text-primary",children:"TLC"})]})}),a.jsx("nav",{className:"flex-1 py-4 overflow-y-auto",children:a.jsx("ul",{className:"space-y-1 px-2",children:cg.map(p=>a.jsx("li",{children:a.jsxs(Ld,{to:p.path,className:({isActive:x})=>`flex items-center gap-3 px-3 py-2 rounded-md transition-colors
|
|
296
|
+
${x?"bg-accent text-white active":"text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"}
|
|
297
|
+
${l?"justify-center":""}`,title:l?p.label:void 0,children:[p.icon,!l&&a.jsx("span",{children:p.label})]})},p.path))})}),a.jsx("div",{className:"p-2 border-t border-border",children:a.jsx("button",{onClick:i,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-md text-text-secondary hover:bg-bg-tertiary hover:text-text-primary transition-colors","aria-label":l?"Expand sidebar":"Collapse sidebar",children:l?a.jsx(Wh,{className:"h-5 w-5"}):a.jsxs(a.Fragment,{children:[a.jsx(Vh,{className:"h-5 w-5"}),a.jsx("span",{children:"Collapse"})]})})})]})});Ei.displayName="Sidebar";const dg={primary:"btn-primary",secondary:"btn-secondary",ghost:"btn-ghost",danger:"btn-danger",outline:"btn-outline border border-border bg-transparent hover:bg-surface-secondary",destructive:"btn-danger"},fg={sm:"btn-sm",md:"",lg:"btn-lg"},Me=h.forwardRef(({variant:l="primary",size:i="md",loading:o=!1,leftIcon:c,rightIcon:f,children:m,className:p="",disabled:x,...v},w)=>{const k=["btn",dg[l],fg[i],p].filter(Boolean).join(" "),y=a.jsxs(a.Fragment,{children:[o?a.jsx(eg,{className:"h-4 w-4 animate-spin","data-testid":"spinner"}):c,a.jsx("span",{children:m}),!o&&f]});return"href"in v&&v.href?a.jsx("a",{ref:w,className:k,...v,children:y}):a.jsx("button",{ref:w,className:k,disabled:x||o,...v,children:y})});Me.displayName="Button";const Kd=h.forwardRef(({title:l,breadcrumbs:i=[],theme:o="dark",onThemeToggle:c,onMobileMenuToggle:f,onSearchClick:m,className:p="",...x},v)=>a.jsxs("header",{ref:v,"data-testid":"header",className:`
|
|
298
|
+
h-14
|
|
299
|
+
bg-bg-secondary
|
|
300
|
+
border-b border-border
|
|
301
|
+
flex items-center justify-between
|
|
302
|
+
px-4
|
|
303
|
+
${p}
|
|
304
|
+
`,...x,children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("button",{onClick:f,className:"md:hidden p-2 text-text-secondary hover:text-text-primary","aria-label":"Open menu","data-testid":"mobile-menu-button",children:a.jsx(tg,{className:"h-5 w-5"})}),a.jsx("nav",{"aria-label":"Breadcrumb",className:"hidden sm:block",children:a.jsx("ol",{className:"flex items-center gap-2 text-sm",children:i.length>0?i.map((w,k)=>a.jsxs("li",{className:"flex items-center gap-2",children:[k>0&&a.jsx("span",{className:"text-text-muted",children:"/"}),w.href?a.jsx("a",{href:w.href,className:"text-text-secondary hover:text-text-primary",children:w.label}):a.jsx("span",{className:"text-text-primary font-medium",children:w.label})]},w.label)):l?a.jsx("li",{className:"text-text-primary font-medium",children:l}):null})})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:m,className:"p-2 text-text-secondary hover:text-text-primary hover:bg-bg-tertiary rounded-md transition-colors","aria-label":"Search","data-testid":"search-button",children:a.jsx(kn,{className:"h-5 w-5"})}),a.jsx("button",{onClick:c,className:"p-2 text-text-secondary hover:text-text-primary hover:bg-bg-tertiary rounded-md transition-colors","aria-label":o==="dark"?"Switch to light theme":"Switch to dark theme","data-testid":"theme-toggle",children:o==="dark"?a.jsx(Qd,{className:"h-5 w-5"}):a.jsx(Hd,{className:"h-5 w-5"})}),a.jsx(Me,{variant:"ghost",className:"p-2","aria-label":"User menu",children:a.jsx(Qr,{className:"h-5 w-5"})})]})]}));Kd.displayName="Header";const Gd=h.forwardRef(({children:l,className:i="",...o},c)=>{const[f,m]=h.useState(!1),[p,x]=h.useState("dark"),[v,w]=h.useState(!1),k=()=>{const b=p==="dark"?"light":"dark";x(b),document.documentElement.setAttribute("data-theme",b)},y=()=>{m(!f)},T=()=>{w(!v)};return a.jsxs("div",{ref:c,className:`flex h-screen bg-bg-primary ${i}`,...o,children:[a.jsx("a",{href:"#main-content",className:"skip-link",children:"Skip to main content"}),a.jsx("div",{className:"hidden md:block",children:a.jsx(Ei,{collapsed:f,onToggle:y})}),v&&a.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 md:hidden",onClick:()=>w(!1),"data-testid":"mobile-overlay"}),a.jsx("div",{className:`
|
|
305
|
+
fixed inset-y-0 left-0 z-50 md:hidden
|
|
306
|
+
transform transition-transform duration-300
|
|
307
|
+
${v?"translate-x-0":"-translate-x-full"}
|
|
308
|
+
`,"data-testid":"mobile-sidebar",children:a.jsx(Ei,{onToggle:()=>w(!1)})}),a.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[a.jsx(Kd,{theme:p,onThemeToggle:k,onMobileMenuToggle:T}),a.jsx("main",{id:"main-content",className:"flex-1 overflow-auto bg-bg-primary",tabIndex:-1,children:l})]})]})});Gd.displayName="Shell";class mg extends h.Component{constructor(o){super(o);is(this,"handleRetry",()=>{this.setState({hasError:!1,error:null,errorInfo:null})});this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}componentDidCatch(o,c){this.setState({errorInfo:c}),this.props.onError&&this.props.onError(o,c),this.props.reportToServer&&this.props.reportToServer(o,c)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:a.jsxs("div",{className:"p-6 text-center",children:[a.jsx("h2",{className:"text-xl font-semibold text-error mb-2",children:"Something went wrong"}),a.jsx("p",{className:"text-text-secondary mb-4",children:"We're sorry, an unexpected error occurred."}),this.props.showError&&this.state.error&&a.jsx("pre",{className:"bg-surface-elevated p-4 rounded text-sm text-left overflow-auto mb-4",children:this.state.error.message}),a.jsx("button",{onClick:this.handleRetry,className:"btn btn-primary",children:"Retry"})]}):this.props.children}}function pg(l,i){l=l.toLowerCase(),i=i.toLowerCase();let o=0;for(let c=0;c<i.length&&o<l.length;c++)i[c]===l[o]&&o++;return o===l.length}function hg({commands:l,open:i,onClose:o,className:c=""}){const[f,m]=h.useState(""),[p,x]=h.useState(0),v=h.useRef(null),w=f?l.filter(T=>pg(f,T.label)):l;h.useEffect(()=>{var T;i&&(m(""),x(0),(T=v.current)==null||T.focus())},[i]),h.useEffect(()=>{x(0)},[f]);const k=T=>{T.action(),o()},y=T=>{T.key==="Escape"?o():T.key==="ArrowDown"?(T.preventDefault(),x(b=>Math.min(b+1,w.length-1))):T.key==="ArrowUp"?(T.preventDefault(),x(b=>Math.max(b-1,0))):T.key==="Enter"&&w[p]&&(T.preventDefault(),k(w[p]))};return i?a.jsxs("div",{"data-testid":"command-palette",className:`fixed inset-0 z-50 flex items-start justify-center pt-[20vh] ${c}`,children:[a.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:o}),a.jsxs("div",{className:"relative w-full max-w-lg bg-surface border border-border rounded-lg shadow-2xl overflow-hidden",children:[a.jsxs("div",{className:"flex items-center px-4 border-b border-border",children:[a.jsx(kn,{className:"w-5 h-5 text-muted-foreground"}),a.jsx("input",{ref:v,type:"text",value:f,onChange:T=>m(T.target.value),onKeyDown:y,placeholder:"Type a command...",className:"flex-1 px-3 py-4 bg-transparent text-foreground placeholder:text-muted-foreground focus:outline-none"})]}),a.jsx("div",{className:"max-h-80 overflow-auto py-2",children:w.length===0?a.jsx("div",{className:"px-4 py-8 text-center text-muted-foreground",children:"No commands found"}):w.map((T,b)=>a.jsxs("button",{onClick:()=>k(T),className:`
|
|
309
|
+
w-full flex items-center justify-between px-4 py-3 text-left
|
|
310
|
+
${b===p?"bg-muted":"hover:bg-muted/50"}
|
|
311
|
+
transition-colors
|
|
312
|
+
`,children:[a.jsx("span",{className:"text-foreground",children:T.label}),T.shortcut&&a.jsx("kbd",{className:"px-2 py-1 text-xs bg-muted rounded border border-border",children:T.shortcut})]},T.id))})]})]}):null}const gg={success:"bg-success",warning:"bg-warning",error:"bg-error",info:"bg-info",neutral:"bg-text-muted"},xg={none:"",sm:"p-3",md:"p-4",lg:"p-6"},kt=h.forwardRef(({status:l,clickable:i=!1,padding:o="md",children:c,className:f="",onClick:m,...p},x)=>{const v=["card",xg[o],i&&"card-hover",f].filter(Boolean).join(" "),w=a.jsxs(a.Fragment,{children:[l&&a.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-1 rounded-l-lg ${gg[l]}`,"data-testid":"status-indicator"}),c]});return i||m?a.jsx("div",{ref:x,role:"button",tabIndex:0,"data-testid":"card",className:`${v} relative`,onClick:m,onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),m==null||m(k))},...p,children:w}):a.jsx("div",{ref:x,"data-testid":"card",className:`${v} relative`,...p,children:w})});kt.displayName="Card";const vg=h.forwardRef(({children:l,className:i="",...o},c)=>a.jsx("div",{ref:c,className:`border-b border-border pb-3 mb-3 ${i}`,...o,children:l}));vg.displayName="CardHeader";const yg=h.forwardRef(({children:l,className:i="",...o},c)=>a.jsx("div",{ref:c,className:`border-t border-border pt-3 mt-3 ${i}`,...o,children:l}));yg.displayName="CardFooter";const wg={running:"badge-success",success:"badge-success",stopped:"badge-neutral",pending:"badge-neutral",building:"badge-warning",error:"badge-error"},jg={primary:"badge-primary bg-primary/10 text-primary border-primary/20",success:"badge-success bg-success/10 text-success border-success/20",warning:"badge-warning bg-warning/10 text-warning border-warning/20",danger:"badge-error bg-danger/10 text-danger border-danger/20",info:"badge-info bg-info/10 text-info border-info/20",neutral:"badge-neutral bg-text-muted/10 text-text-secondary border-border",secondary:"badge-secondary bg-text-muted/10 text-text-secondary border-border",error:"badge-error bg-danger/10 text-danger border-danger/20",outline:"badge-outline bg-transparent text-text-primary border-border",destructive:"badge-destructive bg-danger/10 text-danger border-danger/20"},kg={running:"bg-success",success:"bg-success",stopped:"bg-text-muted",pending:"bg-text-muted",building:"bg-warning",error:"bg-error"},Sg={sm:"text-xs px-1.5 py-0.5",md:"text-sm px-2 py-0.5",lg:"text-base px-3 py-1"},Zn=h.forwardRef(({status:l="pending",variant:i,size:o="sm",dot:c=!1,icon:f,children:m,className:p="",...x},v)=>{const k=["badge inline-flex items-center gap-1 rounded-full border",i?jg[i]:wg[l],Sg[o],p].filter(Boolean).join(" ");return a.jsxs("span",{ref:v,className:k,...x,children:[c&&a.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${kg[l]}`,"data-testid":"dot-indicator"}),f&&a.jsx("span",{className:"flex-shrink-0",children:f}),m]})});Zn.displayName="Badge";const Ng={rectangular:"rounded-none",rounded:"rounded-md",circular:"rounded-full"};function pe({width:l,height:i="1rem",variant:o="rounded",className:c="",testId:f="skeleton"}){return a.jsx("div",{"data-testid":f,className:`
|
|
313
|
+
animate-pulse bg-muted
|
|
314
|
+
${Ng[o]}
|
|
315
|
+
${c}
|
|
316
|
+
`,style:{width:l,height:i}})}function Cg({lines:l=1,className:i=""}){return a.jsx("div",{"data-testid":"skeleton-text",className:`space-y-2 ${i}`,children:Array.from({length:l}).map((o,c)=>a.jsx(pe,{height:"0.875rem",className:c===l-1&&l>1?"w-3/4":"w-full"},c))})}function Eg({showHeader:l=!1,showImage:i=!1,textLines:o=2,className:c=""}){return a.jsxs("div",{"data-testid":"skeleton-card",className:`p-4 border border-border rounded-lg bg-surface ${c}`,children:[l&&a.jsxs("div",{"data-testid":"skeleton-header",className:"flex items-center gap-3 mb-4",children:[a.jsx(pe,{variant:"circular",width:"40px",height:"40px"}),a.jsxs("div",{className:"flex-1 space-y-2",children:[a.jsx(pe,{height:"0.875rem",className:"w-1/3"}),a.jsx(pe,{height:"0.75rem",className:"w-1/4"})]})]}),i&&a.jsx(pe,{testId:"skeleton-image",variant:"rounded",height:"150px",className:"w-full mb-4"}),a.jsx(Cg,{lines:o})]})}function vs({items:l,onSelect:i,trigger:o,align:c="left",className:f=""}){const[m,p]=h.useState(!1),[x,v]=h.useState(-1),[w,k]=h.useState(""),y=h.useRef(null),T=h.useRef(null),b=h.useRef(null);h.useEffect(()=>{if(!m)return;const C=D=>{y.current&&!y.current.contains(D.target)&&p(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[m]),h.useEffect(()=>{m||(v(-1),k(""))},[m]);const $=C=>{if(m)switch(C.key){case"ArrowDown":C.preventDefault(),v(M=>{const R=M+1;return R>=l.length?0:R});break;case"ArrowUp":C.preventDefault(),v(M=>{const R=M-1;return R<0?l.length-1:R});break;case"Enter":C.preventDefault();const D=l[x];x>=0&&D&&!D.disabled&&_(D);break;case"Escape":C.preventDefault(),p(!1);break;default:if(C.key.length===1&&C.key.match(/[a-z0-9]/i)){const M=w+C.key.toLowerCase();k(M);const R=l.findIndex(U=>U.label.toLowerCase().startsWith(M));R>=0&&v(R),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{k("")},500)}break}},_=C=>{C.disabled||(i(C),p(!1))};return a.jsxs("div",{ref:y,className:`relative inline-block ${f}`,children:[a.jsxs("button",{type:"button",onClick:()=>p(!m),className:`\r
|
|
317
|
+
flex items-center gap-2 px-3 py-2\r
|
|
318
|
+
bg-surface border border-border rounded-md\r
|
|
319
|
+
hover:bg-muted transition-colors\r
|
|
320
|
+
text-foreground\r
|
|
321
|
+
`,"aria-haspopup":"menu","aria-expanded":m,children:[o,a.jsx(zi,{className:`w-4 h-4 transition-transform ${m?"rotate-180":""}`})]}),m&&a.jsx("div",{ref:T,role:"menu",tabIndex:-1,onKeyDown:$,className:`
|
|
322
|
+
absolute z-50 mt-1 min-w-[180px]
|
|
323
|
+
bg-surface border border-border rounded-md shadow-lg
|
|
324
|
+
py-1 max-h-60 overflow-auto
|
|
325
|
+
${c==="left"?"left-0":"right-0"}
|
|
326
|
+
`,children:l.map((C,D)=>a.jsxs("div",{role:"menuitem",tabIndex:-1,"aria-disabled":C.disabled,onClick:()=>_(C),className:`
|
|
327
|
+
flex items-center gap-2 px-3 py-2 cursor-pointer
|
|
328
|
+
${C.disabled?"opacity-50 cursor-not-allowed":"hover:bg-muted"}
|
|
329
|
+
${x===D?"bg-muted":""}
|
|
330
|
+
${C.disabled?"":"text-foreground"}
|
|
331
|
+
`,children:[C.icon&&a.jsx("span",{className:"flex-shrink-0",children:C.icon}),a.jsx("span",{children:C.label})]},C.id))})]})}const Tg={commit:a.jsx(Xh,{className:"w-4 h-4","data-testid":"icon-commit"}),task_claim:a.jsx(Qr,{className:"w-4 h-4","data-testid":"icon-task_claim"}),task_complete:a.jsx(Qh,{className:"w-4 h-4","data-testid":"icon-task_complete"}),comment:a.jsx(Bd,{className:"w-4 h-4","data-testid":"icon-comment"}),review:a.jsx(Od,{className:"w-4 h-4","data-testid":"icon-review"})};function Rg(l){const i=new Date(l),c=new Date().getTime()-i.getTime(),f=Math.floor(c/6e4),m=Math.floor(c/36e5);return f<1?"Just now":f<60?`${f}m ago`:m<24?`${m}h ago`:i.toLocaleDateString()}function Pg(l){const i=new Date(l),o=new Date,c=new Date(o.getFullYear(),o.getMonth(),o.getDate()),f=new Date(c);f.setDate(f.getDate()-1);const m=new Date(i.getFullYear(),i.getMonth(),i.getDate());return m.getTime()===c.getTime()?"Today":m.getTime()===f.getTime()?"Yesterday":"Earlier"}function bg(l){const i={};return l.forEach(o=>{const c=Pg(o.timestamp);i[c]||(i[c]=[]),i[c].push(o)}),i}function Yd({activities:l,showFilters:i=!1,pageSize:o=20,mode:c="vps",className:f=""}){const[m,p]=h.useState(null),[x,v]=h.useState(null),[w,k]=h.useState(o);if(c==="local")return null;const y=l.filter(D=>!(m&&D.type!==m||x&&D.user!==x)),T=y.slice(0,w),b=bg(T),$=y.length>w,C=[...new Set(l.map(D=>D.user))].map(D=>({id:D,label:D}));return l.length===0?a.jsx("div",{"data-testid":"activity-feed",className:`bg-surface border border-border rounded-lg p-4 ${f}`,children:a.jsxs("div",{"data-testid":"empty-state",className:"text-center text-muted-foreground",children:[a.jsx(Ah,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),a.jsx("p",{children:"No activity yet"})]})}):a.jsxs("div",{"data-testid":"activity-feed",className:`bg-surface border border-border rounded-lg ${f}`,children:[i&&a.jsxs("div",{className:"flex items-center gap-2 p-3 border-b border-border",children:[a.jsx("button",{"data-testid":"filter-commit",onClick:()=>p(m==="commit"?null:"commit"),className:`px-2 py-1 text-xs rounded ${m==="commit"?"bg-primary text-primary-foreground":"bg-muted"}`,children:"Commits"}),a.jsx("button",{"data-testid":"filter-task_claim",onClick:()=>p(m==="task_claim"?null:"task_claim"),className:`px-2 py-1 text-xs rounded ${m==="task_claim"?"bg-primary text-primary-foreground":"bg-muted"}`,children:"Claims"}),a.jsx("div",{"data-testid":"filter-user",children:a.jsx(vs,{items:C,onSelect:D=>v(x===D.id?null:D.id),trigger:a.jsx("span",{className:"text-xs",children:"User"})})})]}),a.jsx("div",{className:"p-3 space-y-4",children:["Today","Yesterday","Earlier"].map(D=>{const M=b[D];return!M||M.length===0?null:a.jsxs("div",{children:[a.jsx("h4",{className:"text-xs font-semibold text-muted-foreground mb-2",children:D}),a.jsx("div",{className:"space-y-2",children:M.map(R=>a.jsxs("div",{"data-testid":"activity-item",className:"flex items-start gap-3",children:[a.jsx("div",{className:"text-muted-foreground mt-0.5",children:Tg[R.type]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-sm",children:[a.jsx("span",{className:"font-medium text-foreground",children:R.user}),a.jsx("span",{className:"text-muted-foreground ml-1",children:R.message})]}),a.jsx("span",{"data-testid":"activity-time",className:"text-xs text-muted-foreground",children:Rg(R.timestamp)})]})]},R.id))})]},D)})}),$&&a.jsx("div",{className:"p-3 border-t border-border",children:a.jsx("button",{onClick:()=>k(D=>D+o),className:"w-full text-sm text-primary hover:underline",children:"Load more"})})]})}const Yc=l=>{let i;const o=new Set,c=(w,k)=>{const y=typeof w=="function"?w(i):w;if(!Object.is(y,i)){const T=i;i=k??(typeof y!="object"||y===null)?y:Object.assign({},i,y),o.forEach(b=>b(i,T))}},f=()=>i,x={setState:c,getState:f,getInitialState:()=>v,subscribe:w=>(o.add(w),()=>o.delete(w))},v=i=l(c,f,x);return x},Lg=(l=>l?Yc(l):Yc),_g=l=>l;function Mg(l,i=_g){const o=Vr.useSyncExternalStore(l.subscribe,Vr.useCallback(()=>i(l.getState()),[l,i]),Vr.useCallback(()=>i(l.getInitialState()),[l,i]));return Vr.useDebugValue(o),o}const qc=l=>{const i=Lg(l),o=c=>Mg(i,c);return Object.assign(o,i),o},qr=(l=>l?qc(l):qc),Dg=l=>(i,o,c)=>{const f=c.subscribe;return c.subscribe=((p,x,v)=>{let w=p;if(x){const k=(v==null?void 0:v.equalityFn)||Object.is;let y=p(c.getState());w=T=>{const b=p(T);if(!k(y,b)){const $=y;x(y=b,$)}},v!=null&&v.fireImmediately&&x(y,y)}return f(w)}),l(i,o,c)},Oi=Dg,zg=10,Fg=1e3,Ig=3e4,Og=l=>{const i=Fg*Math.pow(2,l);return Math.min(i,Ig)},Yn={status:"disconnected",reconnectAttempts:0,lastConnected:null,error:null},qn=(l,i)=>({isConnected:l==="connected",shouldReconnect:l!=="connected"&&i<zg,reconnectDelay:Og(i)}),$t=qr()(Oi(l=>({...Yn,...qn(Yn.status,Yn.reconnectAttempts),setStatus:i=>l(o=>i==="connected"?{status:i,lastConnected:Date.now(),reconnectAttempts:0,error:null,...qn(i,0)}:{status:i,...qn(i,o.reconnectAttempts)}),incrementReconnectAttempts:()=>l(i=>{const o=i.reconnectAttempts+1;return{reconnectAttempts:o,...qn(i.status,o)}}),resetReconnectAttempts:()=>l(i=>({reconnectAttempts:0,...qn(i.status,0)})),setError:i=>l({error:i}),clearError:()=>l({error:null}),reset:()=>l({...Yn,...qn(Yn.status,Yn.reconnectAttempts)})}))),Xc=1e3,qd={app:[],test:[],git:[],system:[]},Jc={logs:qd,activeType:"app",searchQuery:"",autoScroll:!0},Zc=()=>Math.random().toString(36).slice(2),ed=(l,i,o)=>{const f=[...l[i],...o],m=f.length>Xc?f.slice(f.length-Xc):f;return{...l,[i]:m}},cs=(l,i)=>l[i],Xn=(l,i,o)=>{const c=l[i];if(!o)return c;const f=o.toLowerCase();return c.filter(m=>m.text.toLowerCase().includes(f))},Xd=qr()(Oi(l=>({...Jc,currentLogs:[],filteredLogs:[],addLog:i=>l(o=>{const c={...i,id:i.id||Zc(),timestamp:i.timestamp||new Date().toISOString()},f=ed(o.logs,i.type,[c]);return{logs:f,currentLogs:cs(f,o.activeType),filteredLogs:Xn(f,o.activeType,o.searchQuery)}}),addBatchLogs:i=>l(o=>{const c={};for(const m of i){const p={...m,id:m.id||Zc(),timestamp:m.timestamp||new Date().toISOString()};c[m.type]||(c[m.type]=[]),c[m.type].push(p)}let f={...o.logs};for(const[m,p]of Object.entries(c))f=ed(f,m,p);return{logs:f,currentLogs:cs(f,o.activeType),filteredLogs:Xn(f,o.activeType,o.searchQuery)}}),setLogType:i=>l(o=>({activeType:i,currentLogs:cs(o.logs,i),filteredLogs:Xn(o.logs,i,o.searchQuery)})),clearLogs:i=>l(o=>{const c={...o.logs,[i]:[]};return{logs:c,currentLogs:cs(c,o.activeType),filteredLogs:Xn(c,o.activeType,o.searchQuery)}}),clearAllLogs:()=>l(()=>({logs:qd,currentLogs:[],filteredLogs:[]})),setSearchQuery:i=>l(o=>({searchQuery:i,filteredLogs:Xn(o.logs,o.activeType,i)})),clearSearch:()=>l(i=>({searchQuery:"",filteredLogs:Xn(i.logs,i.activeType,"")})),setAutoScroll:i=>l({autoScroll:i}),reset:()=>l({...Jc,currentLogs:[],filteredLogs:[]})})));function $g(l){const{url:i,autoConnect:o=!0,onMessage:c,onOpen:f,onClose:m,onError:p}=l,x=h.useRef(null),v=h.useRef(null),w=h.useRef(!1),k=h.useRef(i);h.useEffect(()=>{k.current=i},[i]);const y=h.useRef(c),T=h.useRef(f),b=h.useRef(m),$=h.useRef(p);h.useEffect(()=>{y.current=c,T.current=f,b.current=m,$.current=p},[c,f,m,p]);const _=$t(U=>U.isConnected),C=Xd(U=>U.addLog),D=h.useCallback(()=>{var Y;if(((Y=x.current)==null?void 0:Y.readyState)===WebSocket.OPEN)return;w.current=!1,$t.getState().setStatus("connecting");const U=new WebSocket(k.current);x.current=U,U.onopen=()=>{var J;$t.getState().setStatus("connected"),(J=T.current)==null||J.call(T)},U.onclose=()=>{var J;if($t.getState().setStatus("disconnected"),(J=b.current)==null||J.call(b),!w.current&&$t.getState().shouldReconnect){$t.getState().incrementReconnectAttempts();const ne=$t.getState().reconnectDelay;v.current=setTimeout(()=>{D()},ne)}},U.onerror=J=>{var ae;$t.getState().setError("WebSocket connection error"),(ae=$.current)==null||ae.call($,J)},U.onmessage=J=>{var ae;try{const ne=JSON.parse(J.data);if(ne.type==="log"&&ne.payload){const Ee=ne.payload;C(Ee)}(ae=y.current)==null||ae.call(y,ne)}catch{}}},[C]),M=h.useCallback(()=>{w.current=!0,v.current&&(clearTimeout(v.current),v.current=null),x.current&&(x.current.close(),x.current=null)},[]),R=h.useCallback(U=>{var Y;((Y=x.current)==null?void 0:Y.readyState)===WebSocket.OPEN&&x.current.send(JSON.stringify(U))},[]);return h.useEffect(()=>(o&&D(),()=>{M()}),[o,D,M]),{isConnected:_,send:R,connect:D,disconnect:M}}const td={project:null,status:null,loading:!1,error:null},Ag=qr(l=>({...td,setProject:i=>l({project:i,loading:!1,error:null}),setStatus:i=>l({status:i}),setLoading:i=>l({loading:i}),setError:i=>l({error:i,loading:!1}),clearError:()=>l({error:null}),reset:()=>l(td)}));class Ug extends Error{constructor(o,c,f){super(o);is(this,"status");is(this,"statusText");this.name="ApiError",this.status=c,this.statusText=f}}const Bg="http://localhost:3147";function Hg(l={}){const i=l.baseUrl||Bg,o={"Content-Type":"application/json",...l.headers};async function c(f,m,p,x){const v=`${i}${m}`,w={...o,...x==null?void 0:x.headers},k={method:f,headers:w,signal:x==null?void 0:x.signal};p!==void 0&&(k.body=JSON.stringify(p));const y=await fetch(v,k);if(!y.ok){let T=y.statusText;try{T=(await y.json()).message||T}catch{}throw new Ug(T,y.status,y.statusText)}return y.json()}return{get(f,m){return c("GET",f,void 0,m)},post(f,m,p){return c("POST",f,m,p)},put(f,m,p){return c("PUT",f,m,p)},patch(f,m,p){return c("PATCH",f,m,p)},delete(f,m){return c("DELETE",f,void 0,m)}}}const Vg=Hg();function Wg(l){return{project:{getProject(){return l.get("/api/project")},getStatus(){return l.get("/api/status")},getChangelog(){return l.get("/api/changelog")}},tasks:{getTasks(){return l.get("/api/tasks")},getTask(i){return l.get(`/api/tasks/${i}`)},createTask(i){return l.post("/api/tasks",i)},updateTask(i,o){return l.patch(`/api/tasks/${i}`,o)},deleteTask(i){return l.delete(`/api/tasks/${i}`)}},logs:{getLogs(i){return l.get(`/api/logs/${i}`)},clearLogs(i){return l.delete(`/api/logs/${i}`)}},agents:{getAgents(){return l.get("/api/agents")},getAgent(i){return l.get(`/api/agents/${i}`)},stopAgent(i){return l.post(`/api/agents/${i}/stop`)}},health:{getHealth(){return l.get("/api/health")}},commands:{runCommand(i,o){return l.post(`/api/commands/${i}`,o)},getHistory(){return l.get("/api/commands/history")}},bugs:{getBugs(){return l.get("/api/bugs")},createBug(i){return l.post("/api/bug",i)}},config:{getConfig(){return l.get("/api/config")},saveConfig(i){return l.put("/api/config",i)}}}}const Ke=Wg(Vg);function Qg(){const{project:l,status:i,loading:o,error:c,setProject:f,setStatus:m,setLoading:p,setError:x}=Ag(),v=h.useCallback(async()=>{p(!0);try{const y=await Ke.project.getProject();f(y)}catch(y){x(y instanceof Error?y.message:"Failed to fetch project")}},[p,f,x]),w=h.useCallback(async()=>{try{const y=await Ke.project.getStatus();m(y)}catch(y){x(y instanceof Error?y.message:"Failed to fetch status")}},[m,x]),k=h.useCallback(async()=>{await Promise.all([v(),w()])},[v,w]);return{project:l,status:i,loading:o,error:c,fetchProject:v,fetchStatus:w,refresh:k}}function Kg(){const[l,i]=h.useState([]),[o,c]=h.useState(!1),[f,m]=h.useState(null),p=h.useCallback(async()=>{c(!0),m(null);try{const[v,w]=await Promise.all([Ke.project.getProject(),Ke.project.getStatus().catch(()=>null)]),k=(w==null?void 0:w.testsPass)??0,y=(w==null?void 0:w.testsFail)??0,T=(w==null?void 0:w.coverage)??0,b={id:v.name??"default",name:v.name,description:v.description,branch:v.branch??"main",status:y>0?"failing":"healthy",tests:{passed:k,failed:y,total:k+y},coverage:T,lastActivity:new Date().toISOString()};i([b])}catch(v){m(v instanceof Error?v.message:"Failed to fetch projects"),i([])}finally{c(!1)}},[]),x=h.useCallback(async()=>{await p()},[p]);return{projects:l,loading:o,error:f,fetchProjects:p,refresh:x}}const gs={status:null,assignee:null,phase:null,priority:null},Jn=(l,i)=>l.filter(o=>!(i.status&&o.status!==i.status||i.assignee&&o.assignee!==i.assignee||i.phase&&o.phase!==i.phase||i.priority&&o.priority!==i.priority)),ds=l=>({pending:l.filter(i=>i.status==="pending"),in_progress:l.filter(i=>i.status==="in_progress"),completed:l.filter(i=>i.status==="completed")}),nd={tasks:[],selectedTask:null,filters:gs,loading:!1},Gg=qr()(Oi(l=>({...nd,filteredTasks:[],tasksByStatus:{pending:[],in_progress:[],completed:[]},setTasks:i=>l({tasks:i,loading:!1,filteredTasks:Jn(i,gs),tasksByStatus:ds(i)}),addTask:i=>l(o=>{const c=[...o.tasks,i];return{tasks:c,filteredTasks:Jn(c,o.filters),tasksByStatus:ds(c)}}),updateTask:(i,o)=>l(c=>{var p;const f=c.tasks.map(x=>x.id===i?{...x,...o}:x),m=((p=c.selectedTask)==null?void 0:p.id)===i?{...c.selectedTask,...o}:c.selectedTask;return{tasks:f,selectedTask:m,filteredTasks:Jn(f,c.filters),tasksByStatus:ds(f)}}),removeTask:i=>l(o=>{var f;const c=o.tasks.filter(m=>m.id!==i);return{tasks:c,selectedTask:((f=o.selectedTask)==null?void 0:f.id)===i?null:o.selectedTask,filteredTasks:Jn(c,o.filters),tasksByStatus:ds(c)}}),selectTask:i=>l({selectedTask:i}),setFilter:(i,o)=>l(c=>{const f={...c.filters,[i]:o};return{filters:f,filteredTasks:Jn(c.tasks,f)}}),clearFilters:()=>l(i=>({filters:gs,filteredTasks:Jn(i.tasks,gs)})),setLoading:i=>l({loading:i}),reset:()=>l({...nd,filteredTasks:[],tasksByStatus:{pending:[],in_progress:[],completed:[]}})})));function Jd(){const{tasks:l,selectedTask:i,filters:o,loading:c,filteredTasks:f,tasksByStatus:m,setTasks:p,addTask:x,updateTask:v,removeTask:w,selectTask:k,setFilter:y,clearFilters:T,setLoading:b}=Gg(),$=h.useCallback(async()=>{b(!0);try{const M=await Ke.tasks.getTasks();p(M)}catch(M){console.error("Failed to fetch tasks:",M)}},[b,p]),_=h.useCallback(async M=>{try{const R=await Ke.tasks.createTask(M);return x(R),R}catch(R){throw console.error("Failed to create task:",R),R}},[x]),C=h.useCallback(async(M,R)=>{try{const U=await Ke.tasks.updateTask(M,R);return v(M,U),U}catch(U){throw console.error("Failed to update task:",U),U}},[v]),D=h.useCallback(async M=>{try{await Ke.tasks.deleteTask(M),w(M)}catch(R){throw console.error("Failed to delete task:",R),R}},[w]);return{tasks:l,selectedTask:i,filters:o,loading:c,filteredTasks:f,tasksByStatus:m,fetchTasks:$,createTask:_,updateTask:C,deleteTask:D,selectTask:k,setFilter:y,clearFilters:T}}function Yg(){const[l,i]=h.useState(null),[o,c]=h.useState(!0),[f,m]=h.useState(!1),[p,x]=h.useState(null),v=h.useCallback(async()=>{c(!0),x(null);try{const y=await Ke.config.getConfig();i(y)}catch(y){x(y instanceof Error?y.message:"Failed to fetch config"),i(null)}finally{c(!1)}},[]);h.useEffect(()=>{v()},[v]);const w=h.useCallback(async y=>{m(!0),x(null);try{await Ke.config.saveConfig(y),i(y)}catch(T){const b=T instanceof Error?T.message:"Failed to save config";throw x(b),T}finally{m(!1)}},[]),k=h.useCallback(async()=>{await v()},[v]);return{config:l,loading:o,saving:f,error:p,saveConfig:w,refetch:k}}const ki="tlc-theme",rd={theme:"dark",sidebarCollapsed:!1,isCommandPaletteOpen:!1,activeView:"dashboard",isMobileMenuOpen:!1},St=qr(l=>({...rd,setTheme:i=>{localStorage.setItem(ki,i),l({theme:i})},toggleTheme:()=>{l(i=>{const o=i.theme==="dark"?"light":"dark";return localStorage.setItem(ki,o),{theme:o}})},setSidebarCollapsed:i=>l({sidebarCollapsed:i}),toggleSidebar:()=>l(i=>({sidebarCollapsed:!i.sidebarCollapsed})),openCommandPalette:()=>l({isCommandPaletteOpen:!0}),closeCommandPalette:()=>l({isCommandPaletteOpen:!1}),toggleCommandPalette:()=>l(i=>({isCommandPaletteOpen:!i.isCommandPaletteOpen})),setActiveView:i=>l({activeView:i}),toggleMobileMenu:()=>l(i=>({isMobileMenuOpen:!i.isMobileMenuOpen})),closeMobileMenu:()=>l({isMobileMenuOpen:!1}),initFromStorage:()=>{const i=localStorage.getItem(ki);(i==="light"||i==="dark")&&l({theme:i})},reset:()=>l(rd)}));function ld(){const l=Pi(),{project:i,status:o,loading:c,fetchProject:f,fetchStatus:m}=Qg(),{tasks:p,fetchTasks:x}=Jd(),v=St(je=>je.setActiveView),[w,k]=h.useState(!1),[y,T]=h.useState([]),[b,$]=h.useState(!0),_=h.useCallback(async()=>{$(!0);try{const $e=(await Ke.project.getChangelog()||[]).slice(0,10).map((me,B)=>({id:me.hash||String(B),type:"commit",user:me.author||"Developer",message:me.message||"",timestamp:me.time||new Date().toISOString()}));T($e)}catch{T([])}finally{$(!1)}},[]);h.useEffect(()=>{v("dashboard"),f(),m(),x(),_()},[v,f,m,x,_]);const C=(o==null?void 0:o.testsPass)??0,D=(o==null?void 0:o.testsFail)??0,M=C+D,R=(o==null?void 0:o.coverage)??0,U=p.filter(je=>je.status==="pending").length,Y=p.filter(je=>je.status==="in_progress").length,J=p.filter(je=>je.status==="completed").length,ae=(i==null?void 0:i.phase)??0,ne=(i==null?void 0:i.totalPhases)??10,Ee=ne>0?ae/ne*100:0,be=async()=>{k(!0);try{await Ke.commands.runCommand("test")}catch{}finally{setTimeout(()=>k(!1),2e3)}},pt=()=>l("/logs"),at=()=>l("/tasks"),Ve=()=>l("/settings"),et=()=>l("/projects");return c?a.jsxs("div",{className:"p-6 space-y-6",children:[a.jsx(pe,{className:"h-8 w-64"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[1,2,3,4].map(je=>a.jsx(pe,{className:"h-32"},je))}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[a.jsx(pe,{className:"h-64"}),a.jsx(pe,{className:"h-64"})]})]}):i?a.jsxs("div",{className:"p-6 space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:i.name}),a.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[a.jsx("p",{className:"text-text-secondary",children:i.phaseName||`Phase ${i.phase}`}),i.branch&&a.jsxs("span",{className:"flex items-center gap-1 text-text-secondary text-sm",children:[a.jsx(Ad,{className:"w-4 h-4"}),i.branch]})]})]}),a.jsxs(Zn,{variant:"primary",size:"lg",children:["Phase ",i.phase]})]}),a.jsxs(kt,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("span",{className:"text-sm font-medium text-text-primary",children:"Phase Progress"}),a.jsxs("span",{className:"text-sm text-text-secondary",children:[ae," of ",ne," phases"]})]}),a.jsx("div",{role:"progressbar","aria-valuenow":ae,"aria-valuemin":0,"aria-valuemax":ne,className:"h-2 bg-surface-secondary rounded-full overflow-hidden",children:a.jsx("div",{className:"h-full bg-primary transition-all duration-300",style:{width:`${Ee}%`}})})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[a.jsxs(kt,{className:"p-4",children:[a.jsx("div",{className:"text-sm text-text-secondary",children:"Tests Passing"}),a.jsx("div",{className:"text-3xl font-bold text-success mt-2",children:C})]}),a.jsxs(kt,{className:"p-4",children:[a.jsx("div",{className:"text-sm text-text-secondary",children:"Tests Failing"}),a.jsx("div",{className:"text-3xl font-bold text-danger mt-2",children:D})]}),a.jsxs(kt,{className:"p-4",children:[a.jsx("div",{className:"text-sm text-text-secondary",children:"Coverage"}),a.jsxs("div",{className:"text-3xl font-bold text-primary mt-2",children:[R,"%"]})]}),a.jsxs(kt,{className:"p-4",children:[a.jsx("div",{className:"text-sm text-text-secondary",children:"Total Tests"}),a.jsx("div",{className:"text-3xl font-bold text-text-primary mt-2",children:M}),a.jsxs("div",{className:"text-xs text-text-muted mt-1",children:[M," total tests"]})]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs(kt,{className:"p-4",children:[a.jsx("h3",{className:"font-medium text-text-primary mb-4",children:"Task Summary"}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsxs("div",{className:"text-center p-3 bg-surface-secondary rounded-lg",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("span",{className:"text-sm text-text-secondary",children:"Pending"}),a.jsx(Zn,{variant:"warning",size:"sm",children:U})]}),a.jsx("div",{className:"text-xs text-text-muted",children:"Tasks waiting to be started"})]}),a.jsxs("div",{className:"text-center p-3 bg-surface-secondary rounded-lg",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("span",{className:"text-sm text-text-secondary",children:"In Progress"}),a.jsx(Zn,{variant:"primary",size:"sm",children:Y})]}),a.jsx("div",{className:"text-xs text-text-muted",children:"Tasks being worked on"})]}),a.jsxs("div",{className:"text-center p-3 bg-surface-secondary rounded-lg",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("span",{className:"text-sm text-text-secondary",children:"Completed"}),a.jsx(Zn,{variant:"success",size:"sm",children:J})]}),a.jsx("div",{className:"text-xs text-text-muted",children:"Tasks finished"})]})]})]}),a.jsxs(kt,{className:"p-4",children:[a.jsx("h3",{className:"font-medium text-text-primary mb-4",children:"Quick Actions"}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsx(Me,{variant:"primary",onClick:be,loading:w,leftIcon:a.jsx(ng,{className:"w-4 h-4"}),children:"Run Tests"}),a.jsx(Me,{variant:"secondary",onClick:pt,leftIcon:a.jsx(Gh,{className:"w-4 h-4"}),children:"View Logs"}),a.jsx(Me,{variant:"secondary",onClick:at,leftIcon:a.jsx(Ud,{className:"w-4 h-4"}),children:"View Tasks"}),a.jsx(Me,{variant:"ghost",onClick:Ve,leftIcon:a.jsx(Wd,{className:"w-4 h-4"}),children:"Settings"})]})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-text-primary mb-4",children:"Recent Activity"}),b?a.jsx("div",{className:"space-y-3",children:[1,2,3].map(je=>a.jsx(pe,{className:"h-12"},je))}):a.jsx(Yd,{activities:y.slice(0,5),"data-testid":"activity-feed"})]})]})]}):a.jsx("div",{className:"p-6",children:a.jsx(kt,{className:"p-8",children:a.jsxs("div",{className:"text-center",children:[a.jsx(qh,{className:"w-16 h-16 mx-auto text-text-muted mb-4"}),a.jsx("h2",{className:"text-xl font-semibold text-text-primary mb-2",children:"No Project Selected"}),a.jsx("p",{className:"text-text-secondary mb-6",children:"Select a project to view its dashboard and start working."}),a.jsx(Me,{onClick:et,children:"Get Started"})]})})})}const qg={high:"bg-error text-white",medium:"bg-warning text-white",low:"bg-info text-white"};function Xg({task:l,onClick:i,onDragStart:o,isDraggable:c=!1,isDragging:f=!1,className:m=""}){const p=()=>{i==null||i(l)},x=w=>{var k;(k=w.dataTransfer)==null||k.setData("text/plain",l.id),o==null||o(l)},v=l.testStatus.total===0?"bg-muted":l.testStatus.failed>0?"bg-error":"bg-success";return a.jsxs("div",{"data-testid":"task-card",onClick:p,onDragStart:x,draggable:c,className:`
|
|
332
|
+
p-3 bg-surface border border-border rounded-lg
|
|
333
|
+
hover:border-primary/50 hover:shadow-sm
|
|
334
|
+
transition-all cursor-pointer
|
|
335
|
+
${f?"opacity-50 scale-95":""}
|
|
336
|
+
${m}
|
|
337
|
+
`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[a.jsx("h4",{className:"font-medium text-foreground text-sm line-clamp-2",children:l.title}),a.jsx("span",{"data-testid":"priority-badge",className:`
|
|
338
|
+
px-1.5 py-0.5 text-xs font-medium rounded
|
|
339
|
+
${qg[l.priority]}
|
|
340
|
+
`,children:l.priority})]}),l.description&&a.jsx("p",{className:"text-xs text-muted-foreground mb-3 line-clamp-2",children:l.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("div",{className:"flex items-center gap-1.5",children:l.assignee?a.jsxs(a.Fragment,{children:[l.assignee.avatar?a.jsx("img",{"data-testid":"assignee-avatar",src:l.assignee.avatar,alt:l.assignee.name,className:"w-5 h-5 rounded-full"}):a.jsx("div",{"data-testid":"assignee-avatar",className:"w-5 h-5 rounded-full bg-primary/20 flex items-center justify-center",children:a.jsx("span",{className:"text-xs text-primary font-medium",children:l.assignee.name[0]})}),a.jsx("span",{className:"text-xs text-muted-foreground",children:l.assignee.name})]}):a.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[a.jsx(Qr,{className:"w-4 h-4"}),a.jsx("span",{className:"text-xs",children:"Unassigned"})]})}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("div",{"data-testid":"test-status",className:"flex items-center gap-1",children:[a.jsx("div",{"data-testid":"test-indicator",className:`w-2 h-2 rounded-full ${v}`}),a.jsx(og,{className:"w-3 h-3 text-muted-foreground"}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:[l.testStatus.passed,"/",l.testStatus.total]})]}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:["Phase ",l.phase]})]})]})]})}const fs=[{id:"todo",title:"To Do"},{id:"in_progress",title:"In Progress"},{id:"done",title:"Done"}];function Jg({tasks:l,onTaskMove:i,onTaskClick:o,isLoading:c=!1,className:f=""}){const[m,p]=h.useState(null),[x,v]=h.useState(null),[w,k]=h.useState(0),[y,T]=h.useState(-1),b=h.useCallback(R=>l.filter(U=>U.status===R),[l]),$=R=>{v(R.id)},_=(R,U)=>{R.preventDefault(),p(U)},C=()=>{p(null)},D=(R,U)=>{R.preventDefault();const Y=R.dataTransfer.getData("text/plain");Y&&i(Y,U),p(null),v(null)},M=R=>{const U=fs[w];if(!U)return;const Y=b(U.id);switch(R.key){case"h":R.preventDefault(),k(J=>Math.max(0,J-1)),T(-1);break;case"l":R.preventDefault(),k(J=>Math.min(fs.length-1,J+1)),T(-1);break;case"j":R.preventDefault(),T(J=>Math.min(Y.length-1,J+1));break;case"k":R.preventDefault(),T(J=>Math.max(0,J-1));break;case"Enter":R.preventDefault(),y>=0&&Y[y]&&(o==null||o(Y[y]));break}};return c?a.jsx("div",{"data-testid":"task-board",className:`grid grid-cols-1 md:grid-cols-3 gap-4 ${f}`,children:fs.map(R=>a.jsxs("div",{"data-testid":`column-${R.id}`,className:"bg-muted/30 rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx(pe,{height:"1.25rem",className:"w-24"}),a.jsx(pe,{height:"1.25rem",className:"w-6"})]}),a.jsx("div",{className:"space-y-3",children:[1,2].map(U=>a.jsx(pe,{height:"100px",className:"w-full"},U))})]},R.id))}):l.length===0?a.jsx("div",{"data-testid":"task-board",className:f,children:a.jsxs("div",{"data-testid":"empty-state",className:"flex flex-col items-center justify-center py-16 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-muted rounded-full flex items-center justify-center mb-4",children:a.jsx(Ud,{className:"w-8 h-8 text-muted-foreground"})}),a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"No tasks yet"}),a.jsxs("p",{className:"text-muted-foreground max-w-md",children:["Tasks will appear here when you run"," ",a.jsx("code",{className:"text-primary",children:"/tlc:plan"})," to create a phase plan."]})]})}):a.jsx("div",{"data-testid":"task-board",tabIndex:0,onKeyDown:M,className:`grid grid-cols-1 md:grid-cols-3 gap-4 outline-none ${f}`,children:fs.map((R,U)=>{const Y=b(R.id),J=w===U,ae=m===R.id;return a.jsxs("div",{"data-testid":`column-${R.id}`,onDragOver:ne=>_(ne,R.id),onDragEnter:()=>p(R.id),onDragLeave:C,onDrop:ne=>D(ne,R.id),className:`
|
|
341
|
+
bg-muted/30 rounded-lg p-4 min-h-[400px]
|
|
342
|
+
transition-all
|
|
343
|
+
${ae||J&&y===-1?"ring-2 ring-primary":""}
|
|
344
|
+
`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h3",{className:"font-semibold text-foreground",children:R.title}),a.jsx("span",{"data-testid":`count-${R.id}`,className:"px-2 py-0.5 text-xs font-medium bg-muted rounded-full text-muted-foreground",children:Y.length})]}),a.jsx("div",{className:"space-y-3",children:Y.map((ne,Ee)=>{const be=J&&y===Ee,pt=x===ne.id;return a.jsx(Xg,{task:ne,onClick:o,onDragStart:$,isDraggable:!0,isDragging:pt,className:be?"ring-2 ring-primary":""},ne.id)})})]},R.id)})})}const Zg=[{id:"high",label:"High"},{id:"medium",label:"Medium"},{id:"low",label:"Low"}];function ex({assignees:l,onFilterChange:i,initialFilters:o,className:c=""}){const[f,m]=h.useState(!1),[p,x]=h.useState(o||{assignees:[],priorities:[]}),v=h.useRef(null);h.useEffect(()=>{if(!f)return;const b=$=>{v.current&&!v.current.contains($.target)&&m(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[f]);const w=b=>{const $=p.assignees.includes(b)?p.assignees.filter(C=>C!==b):[...p.assignees,b],_={...p,assignees:$};x(_),i(_)},k=b=>{const $=p.priorities.includes(b)?p.priorities.filter(C=>C!==b):[...p.priorities,b],_={...p,priorities:$};x(_),i(_)},y=()=>{const b={assignees:[],priorities:[]};x(b),i(b)},T=p.assignees.length+p.priorities.length;return a.jsxs("div",{ref:v,className:`relative inline-block ${c}`,children:[a.jsxs("button",{"data-testid":"task-filter",onClick:()=>m(!f),className:`
|
|
345
|
+
flex items-center gap-2 px-3 py-2
|
|
346
|
+
bg-surface border border-border rounded-md
|
|
347
|
+
hover:bg-muted transition-colors
|
|
348
|
+
text-foreground text-sm
|
|
349
|
+
`,children:[a.jsx($d,{className:"w-4 h-4"}),a.jsx("span",{children:"Filter"}),T>0&&a.jsx("span",{"data-testid":"filter-count",className:"px-1.5 py-0.5 text-xs font-medium bg-primary text-white rounded-full",children:T})]}),f&&a.jsxs("div",{"data-testid":"filter-panel",className:`\r
|
|
350
|
+
absolute z-50 mt-1 w-64\r
|
|
351
|
+
bg-surface border border-border rounded-md shadow-lg\r
|
|
352
|
+
p-4 right-0\r
|
|
353
|
+
`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h4",{className:"font-medium text-foreground",children:"Filters"}),T>0&&a.jsx("button",{onClick:y,className:"text-xs text-primary hover:underline",children:"Clear all"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("h5",{className:"text-sm font-medium text-foreground mb-2",children:"Assignee"}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[a.jsx("input",{type:"checkbox",checked:p.assignees.includes("unassigned"),onChange:()=>w("unassigned"),className:"rounded border-border"}),a.jsx("span",{className:"text-sm text-foreground",children:"Unassigned"})]}),l.map(b=>a.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[a.jsx("input",{type:"checkbox",checked:p.assignees.includes(b.id),onChange:()=>w(b.id),className:"rounded border-border"}),a.jsx("span",{className:"text-sm text-foreground",children:b.name})]},b.id))]})]}),a.jsxs("div",{children:[a.jsx("h5",{className:"text-sm font-medium text-foreground mb-2",children:"Priority"}),a.jsx("div",{className:"space-y-2",children:Zg.map(b=>a.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[a.jsx("input",{type:"checkbox",checked:p.priorities.includes(b.id),onChange:()=>k(b.id),className:"rounded border-border"}),a.jsx("span",{className:"text-sm text-foreground",children:b.label})]},b.id))})]})]})]})}const tx={todo:"To Do",in_progress:"In Progress",done:"Done"},nx={high:"bg-error text-white",medium:"bg-warning text-white",low:"bg-info text-white"};function rx(l){const i=new Date(l),c=new Date().getTime()-i.getTime(),f=Math.floor(c/6e4),m=Math.floor(c/36e5),p=Math.floor(c/864e5);return f<1?"just now":f<60?`${f}m ago`:m<24?`${m}h ago`:p<7?`${p}d ago`:i.toLocaleDateString()}function lx({task:l,acceptanceCriteria:i,activity:o,onClose:c,onCriteriaToggle:f,onClaim:m,onRelease:p,currentUserId:x}){var k;const v=((k=l.assignee)==null?void 0:k.id)===x,w=!l.assignee;return a.jsxs("div",{className:"bg-surface border border-border rounded-lg max-w-2xl w-full max-h-[80vh] overflow-hidden flex flex-col",children:[a.jsxs("div",{className:"flex items-start justify-between p-4 border-b border-border",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(Zn,{variant:"neutral",children:tx[l.status]}),a.jsx("span",{className:`px-1.5 py-0.5 text-xs font-medium rounded ${nx[l.priority]}`,children:l.priority}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:["Phase ",l.phase]})]}),a.jsx("h2",{className:"text-lg font-semibold text-foreground",children:l.title})]}),a.jsx("button",{onClick:c,"aria-label":"Close",className:"p-1 rounded hover:bg-muted transition-colors",children:a.jsx(Ii,{className:"w-5 h-5 text-muted-foreground"})})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[l.description&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Description"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:l.description})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Assignee"}),l.assignee?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center",children:a.jsx("span",{className:"text-sm text-primary font-medium",children:l.assignee.name[0]})}),a.jsx("span",{className:"text-sm text-foreground",children:l.assignee.name}),v&&p&&a.jsx(Me,{variant:"ghost",size:"sm",onClick:()=>p(l.id),children:"Release"})]}):a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Qr,{className:"w-5 h-5 text-muted-foreground"}),a.jsx("span",{className:"text-sm text-muted-foreground",children:"Unassigned"}),w&&m&&a.jsx(Me,{variant:"primary",size:"sm",onClick:()=>m(l.id),children:"Claim Task"})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Test Status"}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(zd,{className:"w-4 h-4 text-success"}),a.jsxs("span",{className:"text-sm text-foreground",children:[l.testStatus.passed," passed"]})]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(Fd,{className:"w-4 h-4 text-error"}),a.jsxs("span",{className:"text-sm text-foreground",children:[l.testStatus.failed," failed"]})]})]})]}),a.jsxs("div",{children:[a.jsxs("h3",{className:"text-sm font-medium text-foreground mb-2",children:["Acceptance Criteria (",i.filter(y=>y.completed).length,"/",i.length,")"]}),a.jsx("div",{className:"space-y-2",children:i.map(y=>a.jsxs("label",{className:"flex items-start gap-2 cursor-pointer group",children:[a.jsx("input",{type:"checkbox",checked:y.completed,onChange:T=>f==null?void 0:f(y.id,T.target.checked),className:"mt-0.5 rounded border-border"}),a.jsx("span",{className:`text-sm ${y.completed?"text-muted-foreground line-through":"text-foreground"}`,children:y.text})]},y.id))})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Activity"}),a.jsx("div",{className:"space-y-3",children:o.map(y=>a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx("div",{className:"w-6 h-6 rounded-full bg-muted flex items-center justify-center flex-shrink-0 mt-0.5",children:y.type==="comment"?a.jsx(Bd,{className:"w-3 h-3 text-muted-foreground"}):y.type==="status_change"?a.jsx(Bh,{className:"w-3 h-3 text-muted-foreground"}):a.jsx(Qr,{className:"w-3 h-3 text-muted-foreground"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-sm text-foreground",children:[a.jsx("span",{className:"font-medium",children:y.user})," ",a.jsx("span",{className:"text-muted-foreground",children:y.message})]}),a.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[a.jsx(Id,{className:"w-3 h-3"}),rx(y.timestamp)]})]})]},y.id))})]})]})]})}function sx(l){return{id:l.id,title:l.subject||l.title||"Untitled",description:l.goal||l.description||"",status:ax(l.status),priority:l.priority||"medium",assignee:l.owner?{id:l.owner,name:l.owner}:void 0,testStatus:l.testStatus||{passed:0,failed:0,total:0},phase:l.phase||0,createdAt:l.createdAt||new Date().toISOString(),updatedAt:l.updatedAt||new Date().toISOString()}}function ax(l){switch(l){case"completed":case"done":return"done";case"in_progress":return"in_progress";default:return"todo"}}function ix(l){const i=new Set,o=[];for(const c of l)c.assignee&&!i.has(c.assignee.id)&&(i.add(c.assignee.id),o.push(c.assignee));return o}const ox=[];function ux(l,i){const o=i.find(c=>c.id===l.id);return o!=null&&o.acceptanceCriteria&&o.acceptanceCriteria.length>0?o.acceptanceCriteria.map((c,f)=>({id:String(f+1),text:c,completed:l.status==="done"})):[]}function cx(){const l=St(C=>C.setActiveView),{tasks:i,loading:o,fetchTasks:c,updateTask:f}=Jd(),[m,p]=h.useState(null),[x,v]=h.useState({assignees:[],priorities:[]});h.useEffect(()=>{l("tasks"),c()},[l,c]);const w=h.useMemo(()=>i.map(sx),[i]),k=h.useMemo(()=>ix(w),[w]),y=h.useCallback(C=>{v(C)},[]),T=h.useCallback(C=>{p(C)},[]),b=h.useCallback(()=>{p(null)},[]),$=h.useCallback(async(C,D)=>{const M=D==="done"?"completed":D;try{await f(C,{status:M})}catch{c()}},[f,c]),_=h.useMemo(()=>w.filter(C=>!(x.assignees.length>0&&C.assignee&&!x.assignees.includes(C.assignee.id)||x.priorities.length>0&&!x.priorities.includes(C.priority))),[w,x]);return o&&w.length===0?a.jsxs("div",{className:"h-full p-6 space-y-4",children:[a.jsx(pe,{className:"h-8 w-32"}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx(pe,{className:"h-64"}),a.jsx(pe,{className:"h-64"}),a.jsx(pe,{className:"h-64"})]})]}):a.jsxs("div",{className:"h-full flex",children:[a.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[a.jsx("div",{className:"p-4 border-b border-border",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Tasks"}),a.jsx(ex,{assignees:k,onFilterChange:y,initialFilters:x})]})}),a.jsx("div",{className:"flex-1 overflow-auto p-4",children:w.length===0?a.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[a.jsx("p",{className:"text-text-secondary mb-2",children:"No tasks found"}),a.jsx("p",{className:"text-sm text-text-muted",children:"Tasks are loaded from .planning/phases/*-PLAN.md files"})]}):a.jsx(Jg,{tasks:_,onTaskMove:$,onTaskClick:T})})]}),m&&a.jsx("div",{className:"w-96 border-l border-border",children:a.jsx(lx,{task:m,acceptanceCriteria:ux(m,i),activity:ox,onClose:b})})]})}const sd={info:"text-info",warn:"text-warning",error:"text-error",debug:"text-muted-foreground"},ad={info:"INFO",warn:"WARN",error:"ERROR",debug:"DEBUG"};function dx(l){return new Date(l).toLocaleTimeString("en-US",{hour12:!1})}function fx({logs:l,autoScroll:i=!0,showFilters:o=!1,showCount:c=!1,virtualized:f=!1,copyOnClick:m=!1,className:p=""}){const[x,v]=h.useState(!1),[w,k]=h.useState(new Set),y=h.useRef(null),T=h.useRef(0),b=w.size>0?l.filter(R=>w.has(R.level)):l,$=f?b.slice(-50):b;h.useEffect(()=>{i&&!x&&y.current&&(y.current.scrollTop=y.current.scrollHeight)},[l,i,x]);const _=h.useCallback(()=>{if(!y.current||!i)return;const{scrollTop:R,scrollHeight:U,clientHeight:Y}=y.current,J=U-R-Y<50;R<T.current&&!J&&v(!0),T.current=R},[i]),C=()=>{y.current&&(y.current.scrollTop=y.current.scrollHeight,v(!1))},D=R=>{k(U=>{const Y=new Set(U);return Y.has(R)?Y.delete(R):Y.add(R),Y})},M=R=>{m&&navigator.clipboard&&navigator.clipboard.writeText(`[${R.timestamp}] [${R.level}] ${R.message}`)};return l.length===0?a.jsx("div",{"data-testid":"log-stream",className:`bg-surface border border-border rounded-lg ${p}`,children:a.jsxs("div",{"data-testid":"empty-state",className:"flex flex-col items-center justify-center py-16 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-muted rounded-full flex items-center justify-center mb-4",children:a.jsx(Vd,{className:"w-8 h-8 text-muted-foreground"})}),a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"No logs yet"}),a.jsx("p",{className:"text-muted-foreground",children:"Logs will appear here when your services start running."})]})}):a.jsxs("div",{"data-testid":"log-stream",className:`bg-surface border border-border rounded-lg flex flex-col ${p}`,children:[(o||c)&&a.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border",children:[o&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-sm text-muted-foreground",children:"Filter:"}),["error","warn","info","debug"].map(R=>a.jsx("button",{"data-testid":`filter-${R}`,onClick:()=>D(R),className:`
|
|
354
|
+
px-2 py-1 text-xs font-medium rounded
|
|
355
|
+
transition-colors
|
|
356
|
+
${w.has(R)?`${sd[R]} bg-current/10`:"text-muted-foreground hover:text-foreground"}
|
|
357
|
+
`,children:ad[R]},R))]}),c&&a.jsx("span",{"data-testid":"log-count",className:"text-sm text-muted-foreground",children:b.length})]}),a.jsx("div",{ref:y,"data-testid":"log-container",onScroll:_,className:"flex-1 overflow-auto font-mono text-sm p-2 max-h-[400px]",children:$.map(R=>a.jsxs("div",{"data-testid":"log-entry",onClick:()=>M(R),className:`
|
|
358
|
+
flex items-start gap-2 py-1 px-2 rounded
|
|
359
|
+
hover:bg-muted/50
|
|
360
|
+
${m?"cursor-pointer":""}
|
|
361
|
+
`,children:[a.jsx("span",{"data-testid":"log-timestamp",className:"text-muted-foreground flex-shrink-0",children:dx(R.timestamp)}),a.jsx("span",{"data-testid":`level-${R.level}`,className:`w-12 flex-shrink-0 ${sd[R.level]}`,children:ad[R.level]}),a.jsx("span",{className:"text-foreground break-all",children:R.message})]},R.id))}),x&&a.jsxs("div",{className:"flex items-center justify-center p-2 border-t border-border",children:[a.jsx("span",{"data-testid":"scroll-paused",className:"text-xs text-muted-foreground mr-2",children:"Auto-scroll paused"}),a.jsxs("button",{onClick:C,"aria-label":"Scroll to bottom",className:`\r
|
|
362
|
+
flex items-center gap-1 px-2 py-1\r
|
|
363
|
+
text-xs text-primary hover:underline\r
|
|
364
|
+
`,children:[a.jsx(Uh,{className:"w-3 h-3"}),"Resume"]})]})]})}function mx({onSearch:l,searchQuery:i="",matchCount:o,totalCount:c,currentMatch:f,onNavigate:m,className:p=""}){const x=y=>{y.key==="Enter"?(y.preventDefault(),m==null||m(y.shiftKey?"prev":"next")):y.key==="Escape"&&l("")},v=()=>{l("")},w=o!==void 0&&o>0,k=i&&o===0;return a.jsxs("div",{"data-testid":"log-search",className:`flex items-center gap-2 ${p}`,children:[a.jsxs("div",{className:"relative flex-1",children:[a.jsx(kn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx("input",{type:"text",placeholder:"Search logs...",value:i,onChange:y=>l(y.target.value),onKeyDown:x,className:`\r
|
|
365
|
+
w-full pl-9 pr-8 py-2\r
|
|
366
|
+
bg-surface border border-border rounded-md\r
|
|
367
|
+
text-sm text-foreground\r
|
|
368
|
+
placeholder:text-muted-foreground\r
|
|
369
|
+
focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent\r
|
|
370
|
+
`}),i&&a.jsx("button",{onClick:v,"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-muted rounded",children:a.jsx(Ii,{className:"w-4 h-4 text-muted-foreground"})})]}),i&&a.jsx("div",{className:"flex items-center gap-2 text-sm",children:k?a.jsx("span",{className:"text-muted-foreground",children:"No matches"}):o!==void 0?f!==void 0?a.jsxs("span",{"data-testid":"current-match",className:"text-muted-foreground",children:[f," of ",o]}):a.jsxs("span",{"data-testid":"match-count",className:"text-muted-foreground",children:[o," of ",c]}):null}),m&&a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:()=>m("prev"),disabled:!w,"aria-label":"Previous match",className:`\r
|
|
371
|
+
p-1.5 rounded hover:bg-muted\r
|
|
372
|
+
disabled:opacity-50 disabled:cursor-not-allowed\r
|
|
373
|
+
transition-colors\r
|
|
374
|
+
`,children:a.jsx(Dd,{className:"w-4 h-4"})}),a.jsx("button",{onClick:()=>m("next"),disabled:!w,"aria-label":"Next match",className:`\r
|
|
375
|
+
p-1.5 rounded hover:bg-muted\r
|
|
376
|
+
disabled:opacity-50 disabled:cursor-not-allowed\r
|
|
377
|
+
transition-colors\r
|
|
378
|
+
`,children:a.jsx(zi,{className:"w-4 h-4"})})]})]})}const px=[{value:"app",label:"Application"},{value:"test",label:"Tests"},{value:"git",label:"Git"},{value:"system",label:"System"}];function hx(){const{activeType:l,searchQuery:i,autoScroll:o,filteredLogs:c,setLogType:f,setSearchQuery:m,clearLogs:p,setAutoScroll:x}=Xd(),v=St(k=>k.setActiveView);h.useEffect(()=>{v("logs")},[v]);const w=h.useMemo(()=>c.map(k=>({id:k.id,timestamp:k.timestamp,level:k.level,message:k.text,source:k.source||l})),[c,l]);return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsx("div",{className:"p-4 border-b border-border",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("div",{className:"flex items-center gap-2",children:px.map(k=>a.jsx(Me,{variant:l===k.value?"primary":"ghost",size:"sm",onClick:()=>f(k.value),children:k.label},k.value))}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(mx,{onSearch:m,searchQuery:i}),a.jsx(Me,{variant:"ghost",size:"sm",onClick:()=>x(!o),children:o?"Auto-scroll ON":"Auto-scroll OFF"}),a.jsx(Me,{variant:"danger",size:"sm",onClick:()=>p(l),children:"Clear"})]})]})}),a.jsx("div",{className:"flex-1 overflow-hidden",children:a.jsx(fx,{logs:w,autoScroll:o})})]})}const er=h.forwardRef(({variant:l="default",label:i,error:o,leftIcon:c,rightIcon:f,onClear:m,className:p="",disabled:x,value:v,onChange:w,...k},y)=>{const[T,b]=h.useState(""),$=v!==void 0,_=$?v:T,C=Y=>{$||b(Y.target.value),w==null||w(Y)},D=()=>{$||b(""),m==null||m()},M=l==="search",R=_&&String(_).length>0,U=["input",c||M?"pl-10":"",f||M&&R?"pr-10":"",o?"border-error focus:ring-error":"",p].filter(Boolean).join(" ");return a.jsxs("div",{className:"w-full",children:[i&&a.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-1.5",children:i}),a.jsxs("div",{className:"relative",children:[(c||M)&&a.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-muted pointer-events-none",children:c||a.jsx(kn,{className:"h-4 w-4"})}),a.jsx("input",{ref:y,className:U,disabled:x,value:_,onChange:C,...k}),M&&R&&a.jsx("button",{type:"button",onClick:D,className:"absolute right-3 top-1/2 -translate-y-1/2 text-text-muted hover:text-text-secondary transition-colors","aria-label":"Clear search","data-testid":"clear-button",children:a.jsx(Ii,{className:"h-4 w-4"})}),f&&!M&&a.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-text-muted pointer-events-none",children:f})]}),o&&a.jsx("p",{className:"mt-1.5 text-sm text-error",role:"alert",children:o})]})});er.displayName="Input";function gx({config:l,onSave:i,onCancel:o,saving:c=!1,className:f=""}){var T,b,$,_;const[m,p]=h.useState({project:l.project||"",coverageThreshold:((b=(T=l.quality)==null?void 0:T.coverageThreshold)==null?void 0:b.toString())||"80",qualityScoreThreshold:((_=($=l.quality)==null?void 0:$.qualityScoreThreshold)==null?void 0:_.toString())||"75"}),[x,v]=h.useState({}),w=(C,D)=>{p(M=>({...M,[C]:D})),v(M=>({...M,[C]:""}))},k=()=>{const C={},D=parseInt(m.coverageThreshold,10);(isNaN(D)||D<0||D>100)&&(C.coverageThreshold="Must be between 0 and 100");const M=parseInt(m.qualityScoreThreshold,10);return(isNaN(M)||M<0||M>100)&&(C.qualityScoreThreshold="Must be between 0 and 100"),v(C),Object.keys(C).length===0},y=()=>{k()&&i({...l,project:m.project,quality:{...l.quality,coverageThreshold:parseInt(m.coverageThreshold,10),qualityScoreThreshold:parseInt(m.qualityScoreThreshold,10)}})};return a.jsxs("div",{"data-testid":"settings-panel",className:`bg-surface border border-border rounded-lg p-6 ${f}`,children:[a.jsx("h2",{className:"text-xl font-semibold text-foreground mb-6",children:"Settings"}),a.jsxs("section",{className:"mb-6",children:[a.jsx("h3",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider mb-4",children:"General"}),a.jsx("div",{className:"space-y-4",children:a.jsxs("div",{children:[a.jsx("label",{htmlFor:"project",className:"block text-sm font-medium text-foreground mb-1",children:"Project Name"}),a.jsx(er,{id:"project",value:m.project,onChange:C=>w("project",C.target.value)})]})})]}),a.jsxs("section",{className:"mb-6",children:[a.jsx("h3",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider mb-4",children:"Quality"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{htmlFor:"coverageThreshold",className:"block text-sm font-medium text-foreground mb-1",children:"Coverage Threshold (%)"}),a.jsx(er,{id:"coverageThreshold",type:"number",min:"0",max:"100",value:m.coverageThreshold,onChange:C=>w("coverageThreshold",C.target.value)}),x.coverageThreshold&&a.jsx("p",{className:"text-sm text-error mt-1",children:x.coverageThreshold})]}),a.jsxs("div",{children:[a.jsx("label",{htmlFor:"qualityScoreThreshold",className:"block text-sm font-medium text-foreground mb-1",children:"Quality Score Threshold"}),a.jsx(er,{id:"qualityScoreThreshold",type:"number",min:"0",max:"100",value:m.qualityScoreThreshold,onChange:C=>w("qualityScoreThreshold",C.target.value)}),x.qualityScoreThreshold&&a.jsx("p",{className:"text-sm text-error mt-1",children:x.qualityScoreThreshold})]})]})]}),a.jsxs("div",{className:"flex justify-end gap-3 pt-4 border-t border-border",children:[o&&a.jsx(Me,{variant:"outline",onClick:o,children:"Cancel"}),a.jsx(Me,{onClick:y,disabled:c,children:c?"Saving...":"Save"})]})]})}const xx={light:"Light",dark:"Dark",system:"System"};function vx({theme:l,onToggle:i,showLabel:o=!1,className:c=""}){const f=()=>l==="dark"?"Switch to light mode":l==="light"?"Switch to dark mode":"Switch theme";return a.jsxs("button",{"data-testid":"theme-toggle",onClick:i,"aria-label":f(),className:`
|
|
379
|
+
flex items-center gap-2 p-2 rounded-md
|
|
380
|
+
hover:bg-muted transition-colors
|
|
381
|
+
${c}
|
|
382
|
+
`,children:[l==="dark"&&a.jsx(Qd,{"data-testid":"sun-icon",className:"w-5 h-5"}),l==="light"&&a.jsx(Hd,{"data-testid":"moon-icon",className:"w-5 h-5"}),l==="system"&&a.jsx(Fi,{"data-testid":"system-icon",className:"w-5 h-5"}),o&&a.jsx("span",{className:"text-sm",children:xx[l]})]})}function yx(){const l=St(w=>w.setActiveView),i=St(w=>w.theme),o=St(w=>w.toggleTheme),{config:c,loading:f,saving:m,error:p,saveConfig:x}=Yg();h.useEffect(()=>{l("settings")},[l]);const v=async w=>{try{await x(w)}catch{}};return f?a.jsxs("div",{className:"h-full overflow-auto p-6 space-y-6",children:[a.jsx(pe,{className:"h-8 w-48"}),a.jsx(pe,{className:"h-32"}),a.jsx(pe,{className:"h-64"})]}):a.jsxs("div",{className:"h-full overflow-auto p-6 space-y-6",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Settings"}),a.jsx("p",{className:"text-text-secondary mt-1",children:"Configure your TLC dashboard"})]}),p&&a.jsx("div",{className:"text-danger text-sm p-3 bg-danger/10 rounded-lg",children:p}),a.jsxs(kt,{className:"p-6",children:[a.jsx("h2",{className:"text-lg font-medium text-text-primary mb-4",children:"Appearance"}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-text-primary",children:"Theme"}),a.jsx("div",{className:"text-sm text-text-secondary",children:"Switch between light and dark mode"})]}),a.jsx(vx,{theme:i,onToggle:o})]})]}),a.jsxs(kt,{className:"p-6",children:[a.jsx("h2",{className:"text-lg font-medium text-text-primary mb-4",children:"Project Configuration"}),a.jsx(gx,{config:c??{project:""},onSave:v,saving:m})]})]})}const wx={healthy:"bg-success",failing:"bg-error",building:"bg-warning",unknown:"bg-muted"};function jx(l){const i=new Date(l),c=new Date().getTime()-i.getTime(),f=Math.floor(c/6e4),m=Math.floor(c/36e5),p=Math.floor(c/864e5);return f<1?"just now":f<60?`${f}m ago`:m<24?`${m}h ago`:p<7?`${p}d ago`:i.toLocaleDateString()}function kx({project:l,onClick:i,className:o=""}){const c=m=>{i&&(m.preventDefault(),i(l))},f=a.jsxs("div",{"data-testid":"project-card",className:`
|
|
383
|
+
p-4 bg-surface border border-border rounded-lg
|
|
384
|
+
hover:border-primary/50 hover:shadow-md
|
|
385
|
+
transition-all cursor-pointer
|
|
386
|
+
${o}
|
|
387
|
+
`,onClick:c,children:[a.jsx("div",{className:"flex items-start justify-between mb-3",children:a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{"data-testid":"status-indicator",className:`w-2 h-2 rounded-full ${wx[l.status]}`}),a.jsx("h3",{className:"font-semibold text-foreground truncate",children:l.name})]}),a.jsx("p",{"data-testid":"project-description",className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:l.description||"No description"})]})}),a.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground mb-3",children:[a.jsx(Ad,{className:"w-4 h-4"}),a.jsx("span",{children:l.branch})]}),a.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[a.jsxs("div",{className:"flex items-center gap-1 text-sm",children:[a.jsx(zd,{className:"w-4 h-4 text-success"}),a.jsx("span",{className:"text-success font-medium",children:l.tests.passed})]}),a.jsxs("div",{className:"flex items-center gap-1 text-sm",children:[a.jsx(Fd,{className:"w-4 h-4 text-error"}),a.jsx("span",{className:"text-error font-medium",children:l.tests.failed})]})]}),a.jsxs("div",{className:"mb-3",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm mb-1",children:[a.jsx("span",{className:"text-muted-foreground",children:"Coverage"}),a.jsxs("span",{className:"font-medium text-foreground",children:[l.coverage,"%"]})]}),a.jsx("div",{className:"h-2 bg-muted rounded-full overflow-hidden",children:a.jsx("div",{"data-testid":"coverage-bar",className:"h-full bg-primary rounded-full transition-all",style:{width:`${l.coverage}%`}})})]}),a.jsxs("div",{"data-testid":"last-activity",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a.jsx(Id,{className:"w-3 h-3"}),a.jsx("span",{children:jx(l.lastActivity)})]})]});return i?f:a.jsx(Di,{to:`/project/${l.id}`,className:"block",children:f})}const id=[{id:"all",label:"All Status"},{id:"healthy",label:"Healthy"},{id:"failing",label:"Failing"},{id:"building",label:"Building"},{id:"unknown",label:"Unknown"}],od=[{id:"activity",label:"Recent Activity"},{id:"name-asc",label:"Name (A-Z)"},{id:"name-desc",label:"Name (Z-A)"},{id:"coverage",label:"Coverage"}];function Sx({projects:l,isLoading:i=!1,onProjectClick:o,className:c=""}){var b,$;const[f,m]=h.useState(""),[p,x]=h.useState("all"),[v,w]=h.useState("activity"),k=h.useMemo(()=>{let _=[...l];if(f){const C=f.toLowerCase();_=_.filter(D=>{var M;return D.name.toLowerCase().includes(C)||((M=D.description)==null?void 0:M.toLowerCase().includes(C))})}switch(p!=="all"&&(_=_.filter(C=>C.status===p)),v){case"name-asc":_.sort((C,D)=>C.name.localeCompare(D.name));break;case"name-desc":_.sort((C,D)=>D.name.localeCompare(C.name));break;case"coverage":_.sort((C,D)=>D.coverage-C.coverage);break;case"activity":_.sort((C,D)=>new Date(D.lastActivity).getTime()-new Date(C.lastActivity).getTime());break}return _},[l,f,p,v]),y=_=>{x(_.id)},T=_=>{w(_.id)};return i?a.jsxs("div",{className:c,children:[a.jsx("div",{className:"flex flex-col sm:flex-row gap-3 mb-6",children:a.jsx("div",{className:"flex-1",children:a.jsx(er,{placeholder:"Search projects...",leftIcon:a.jsx(kn,{className:"w-4 h-4"}),disabled:!0})})}),a.jsx("div",{"data-testid":"project-grid",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((_,C)=>a.jsx(Eg,{showHeader:!0,textLines:3},C))})]}):l.length===0?a.jsx("div",{className:c,children:a.jsxs("div",{"data-testid":"empty-state",className:"flex flex-col items-center justify-center py-16 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-muted rounded-full flex items-center justify-center mb-4",children:a.jsx(kn,{className:"w-8 h-8 text-muted-foreground"})}),a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"No projects"}),a.jsxs("p",{className:"text-muted-foreground max-w-md",children:["Get started by initializing TLC in your project directory with"," ",a.jsx("code",{className:"text-primary",children:"/tlc:init"})]})]})}):a.jsxs("div",{className:c,children:[a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mb-6",children:[a.jsx("div",{className:"flex-1",children:a.jsx(er,{placeholder:"Search projects...",value:f,onChange:_=>m(_.target.value),leftIcon:a.jsx(kn,{className:"w-4 h-4"})})}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("div",{"data-testid":"status-filter",children:a.jsx(vs,{items:id,onSelect:y,trigger:a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx($d,{className:"w-4 h-4"}),(b=id.find(_=>_.id===p))==null?void 0:b.label]})})}),a.jsx("div",{"data-testid":"sort-select",children:a.jsx(vs,{items:od,onSelect:T,trigger:a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Hh,{className:"w-4 h-4"}),($=od.find(_=>_.id===v))==null?void 0:$.label]}),align:"right"})})]})]}),k.length===0?a.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No projects found matching your criteria"}):a.jsx("div",{"data-testid":"project-grid",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:k.map(_=>a.jsx(kx,{project:_,onClick:o},_.id))})]})}function Nx(){const l=St(m=>m.setActiveView),{projects:i,loading:o,error:c,fetchProjects:f}=Kg();return h.useEffect(()=>{l("projects"),f()},[l,f]),c?a.jsxs("div",{className:"h-full overflow-auto p-6",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Projects"}),a.jsx("p",{className:"text-text-secondary mt-1",children:"Manage your TLC projects"})]}),a.jsxs("div",{className:"text-danger p-4",children:["Failed to load projects: ",c]})]}):a.jsxs("div",{className:"h-full overflow-auto p-6",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Projects"}),a.jsx("p",{className:"text-text-secondary mt-1",children:"Manage your TLC projects"})]}),o?a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(m=>a.jsx(pe,{className:"h-48"},m))}):a.jsx(Sx,{projects:i,isLoading:!1})]})}const Cx={online:"bg-success",offline:"bg-muted",away:"bg-warning",busy:"bg-error"},ud={online:0,busy:1,away:2,offline:3};function Ex(l){return l.split(" ").map(i=>i[0]).join("").toUpperCase().slice(0,2)}function Tx({members:l,mode:i="vps",compact:o=!1,className:c=""}){if(i==="local")return null;const f=[...l].sort((p,x)=>ud[p.status]-ud[x.status]),m=l.filter(p=>p.status==="online").length;return l.length===0?a.jsx("div",{"data-testid":"team-presence",className:`bg-surface border border-border rounded-lg p-4 ${c}`,children:a.jsxs("div",{"data-testid":"empty-state",className:"text-center text-muted-foreground",children:[a.jsx(ug,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),a.jsx("p",{children:"No team members"})]})}):a.jsxs("div",{"data-testid":"team-presence",className:`bg-surface border border-border rounded-lg ${o?"compact p-2":"p-4"} ${c}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h3",{className:"font-semibold text-foreground",children:"Team"}),a.jsxs("span",{"data-testid":"online-count",className:"text-sm text-muted-foreground",children:[m," online"]})]}),a.jsx("div",{className:`space-y-${o?"1":"2"}`,children:f.map(p=>a.jsxs("div",{"data-testid":"team-member",className:"flex items-center gap-3",children:[a.jsxs("div",{className:"relative",children:[p.avatar?a.jsx("img",{src:p.avatar,alt:p.name,className:"w-8 h-8 rounded-full object-cover"}):a.jsx("div",{className:"w-8 h-8 rounded-full bg-muted flex items-center justify-center text-xs font-medium",children:Ex(p.name)}),a.jsx("span",{"data-testid":`status-${p.id}`,className:`absolute bottom-0 right-0 w-2.5 h-2.5 rounded-full border-2 border-surface ${Cx[p.status]}`})]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:p.name}),p.statusMessage?a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:p.statusMessage}):p.lastSeen&&p.status!=="online"?a.jsx("p",{className:"text-xs text-muted-foreground",children:p.lastSeen}):null]})]},p.id))})]})}const Rx={local:{label:"Local",color:"bg-muted text-muted-foreground",icon:a.jsx(Fi,{className:"w-3 h-3"})},vps:{label:"VPS",color:"bg-info text-info-foreground",icon:a.jsx(rg,{className:"w-3 h-3"})},staging:{label:"Staging",color:"bg-warning text-warning-foreground",icon:a.jsx(Jh,{className:"w-3 h-3"})},production:{label:"Production",color:"bg-error text-error-foreground",icon:a.jsx(lg,{className:"w-3 h-3"})}},Px={sm:"text-xs px-1.5 py-0.5",md:"text-sm px-2 py-1",lg:"text-base px-3 py-1.5"};function bx({environment:l,showIcon:i=!1,tooltip:o,size:c="md",className:f=""}){const m=Rx[l];return a.jsxs("span",{"data-testid":"env-badge",title:o,className:`
|
|
388
|
+
inline-flex items-center gap-1 rounded-full font-medium
|
|
389
|
+
${m.color}
|
|
390
|
+
${Px[c]}
|
|
391
|
+
${f}
|
|
392
|
+
`,children:[i&&a.jsx("span",{"data-testid":"env-icon",children:m.icon}),m.label]})}function Lx({members:l,activities:i,environment:o="local",mode:c="vps",loading:f=!1,connected:m=!0,collapsible:p=!1,className:x=""}){const[v,w]=h.useState("team"),[k,y]=h.useState(!1);return c==="local"?null:f?a.jsx("div",{"data-testid":"team-panel",className:`bg-surface border border-border rounded-lg p-4 ${x}`,children:a.jsxs("div",{"data-testid":"loading-skeleton",children:[a.jsx(pe,{className:"h-6 w-24 mb-4"}),a.jsx(pe,{className:"h-10 w-full mb-2"}),a.jsx(pe,{className:"h-10 w-full mb-2"}),a.jsx(pe,{className:"h-10 w-full"})]})}):a.jsxs("div",{"data-testid":"team-panel",className:`bg-surface border border-border rounded-lg ${k?"collapsed":""} ${x}`,children:[a.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("h3",{className:"font-semibold text-foreground",children:"Team"}),a.jsx("span",{"data-testid":"member-count",className:"text-xs bg-muted px-1.5 py-0.5 rounded-full",children:l.length}),o!=="local"&&a.jsx(bx,{environment:o,size:"sm"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{"data-testid":"connection-status",className:`w-2 h-2 rounded-full ${m?"bg-success":"bg-error"}`,title:m?"Connected":"Disconnected"}),p&&a.jsx("button",{onClick:()=>y(!k),"aria-label":k?"Expand team panel":"Collapse team panel",className:"p-1 hover:bg-muted rounded",children:k?a.jsx(zi,{className:"w-4 h-4"}):a.jsx(Dd,{className:"w-4 h-4"})})]})]}),!k&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex border-b border-border",role:"tablist",children:[a.jsx("button",{role:"tab","aria-selected":v==="team",onClick:()=>w("team"),className:`flex-1 px-4 py-2 text-sm font-medium transition-colors ${v==="team"?"text-primary border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"Team"}),a.jsx("button",{role:"tab","aria-selected":v==="activity",onClick:()=>w("activity"),className:`flex-1 px-4 py-2 text-sm font-medium transition-colors ${v==="activity"?"text-primary border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"Activity"})]}),a.jsx("div",{className:"p-3",children:v==="team"?a.jsx(Tx,{members:l,mode:"vps"}):a.jsx(Yd,{activities:i,mode:"vps"})})]})]})}function _x(){const l=St(w=>w.setActiveView),i=$t(w=>w.status),[o,c]=h.useState([]),[f,m]=h.useState([]),[p,x]=h.useState(!0),v=h.useCallback(async()=>{x(!0);try{const k=(await Ke.project.getChangelog()||[]).slice(0,20),y=new Map;for(const b of k)b.author&&!y.has(b.author)&&y.set(b.author,{name:b.author,lastSeen:b.time||new Date().toISOString()});if(y.size>0){const b=Array.from(y.entries()).map(([,$],_)=>({id:`author-${_}`,name:$.name,email:"",status:_===0&&i==="connected"?"online":"offline",lastSeen:$.lastSeen}));c(b)}else c([]);const T=k.slice(0,10).map((b,$)=>({id:b.hash||String($),type:"commit",user:b.author||"Unknown",message:b.message||"",timestamp:b.time||new Date().toISOString()}));m(T)}catch{c([]),m([])}finally{x(!1)}},[i]);return h.useEffect(()=>{l("team"),v()},[l,v]),p?a.jsxs("div",{className:"h-full overflow-auto p-6",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Team"}),a.jsx("p",{className:"text-text-secondary mt-1",children:"Team presence and activity"})]}),a.jsx(pe,{className:"h-96"})]}):a.jsxs("div",{className:"h-full overflow-auto p-6",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Team"}),a.jsx("p",{className:"text-text-secondary mt-1",children:"Team presence and activity"})]}),a.jsx(Lx,{members:o,activities:f,mode:"vps",connected:i==="connected"})]})}function Mx(l){const i=Math.floor(l/86400),o=Math.floor(l%86400/3600),c=Math.floor(l%3600/60);return i>0?`${i} day${i>1?"s":""}`:o>0?`${o} hour${o>1?"s":""}`:`${c} minute${c>1?"s":""}`}function Dx({status:l}){const i={healthy:"bg-success text-white",degraded:"bg-warning text-black",unhealthy:"bg-error text-white"}[l]||"bg-text-muted text-white";return a.jsx("span",{className:`px-2 py-1 rounded text-sm font-medium ${i}`,children:l})}function ms({label:l,value:i,unit:o}){return a.jsxs("div",{className:"bg-surface-elevated p-4 rounded-lg",children:[a.jsx("p",{className:"text-text-muted text-sm",children:l}),a.jsxs("p",{className:"text-xl font-semibold",children:[i,o]})]})}function cd({value:l,testId:i}){return a.jsx("div",{"data-testid":i,className:"h-8 bg-surface-elevated rounded overflow-hidden",children:a.jsx("div",{className:"h-full bg-primary transition-all duration-300",style:{width:`${Math.min(100,Math.max(0,l))}%`}})})}function zx({health:l,loading:i,error:o,showGraphs:c,onRefresh:f,refreshInterval:m}){return h.useEffect(()=>{if(f&&m){const p=setInterval(()=>{f()},m);return()=>clearInterval(p)}},[f,m]),i?a.jsx("div",{className:"p-6 text-center",children:a.jsx("p",{className:"text-text-muted",children:"Loading health diagnostics..."})}):o?a.jsx("div",{className:"p-6 text-center",children:a.jsx("p",{className:"text-error",children:o})}):l?a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold",children:"System Health"}),a.jsx(Dx,{status:l.status})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[a.jsx(ms,{label:"Memory",value:l.memory.percent,unit:"%"}),a.jsx(ms,{label:"CPU",value:l.cpu.percent,unit:"%"}),a.jsx(ms,{label:"Tests",value:l.tests.passed,unit:` / ${l.tests.total}`}),a.jsx(ms,{label:"Uptime",value:Mx(l.uptime)})]}),c&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm text-text-muted mb-2",children:"Memory Usage"}),a.jsx(cd,{value:l.memory.percent,testId:"memory-graph"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm text-text-muted mb-2",children:"CPU Usage"}),a.jsx(cd,{value:l.cpu.percent,testId:"cpu-graph"})]})]}),l.issues&&l.issues.length>0&&a.jsxs("div",{className:"bg-warning/10 border border-warning rounded-lg p-4",children:[a.jsx("h3",{className:"font-medium text-warning mb-2",children:"Issues"}),a.jsx("ul",{className:"list-disc list-inside space-y-1",children:l.issues.map((p,x)=>a.jsx("li",{className:"text-sm",children:p},x))})]}),l.alerts&&l.alerts.length>0&&a.jsxs("div",{className:"space-y-2",children:[a.jsx("h3",{className:"font-medium",children:"Alerts"}),l.alerts.map((p,x)=>a.jsx("div",{className:`p-3 rounded-lg ${p.severity==="warning"?"bg-warning/10 border border-warning":p.severity==="error"?"bg-error/10 border border-error":"bg-info/10 border border-info"}`,children:a.jsx("p",{className:"text-sm",children:p.message})},x))]}),l.router&&l.router.providers&&a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium mb-2",children:"Router Providers"}),a.jsx("div",{className:"space-y-2",children:l.router.providers.map((p,x)=>a.jsxs("div",{className:"flex items-center justify-between p-2 bg-surface-elevated rounded",children:[a.jsx("span",{children:p.name}),a.jsx("span",{className:`text-sm ${p.status==="active"?"text-success":p.status==="error"?"text-error":"text-text-muted"}`,children:p.status})]},x))})]})]}):a.jsx("div",{className:"p-6 text-center",children:a.jsx("p",{className:"text-text-muted",children:"No health data available"})})}function Fx(){const l=St(p=>p.setActiveView),[i,o]=h.useState(!0),[c,f]=h.useState(null),m=h.useCallback(async()=>{o(!0),f(null);try{await Ke.health.getHealth()}catch(p){f(p instanceof Error?p.message:"Failed to fetch health data")}finally{o(!1)}},[]);return h.useEffect(()=>{l("health"),m()},[l,m]),i?a.jsxs("div",{className:"h-full overflow-auto p-6",children:[a.jsx("div",{className:"flex items-center justify-between mb-6",children:a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Health"})}),a.jsx("div",{className:"space-y-4",children:[1,2,3].map(p=>a.jsx(pe,{className:"h-24"},p))})]}):c?a.jsxs("div",{className:"h-full overflow-auto p-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Health"}),a.jsx(Me,{variant:"ghost",onClick:m,leftIcon:a.jsx(Ci,{className:"w-4 h-4"}),children:"Retry"})]}),a.jsxs("div",{className:"text-danger p-4",children:["Failed to load health data: ",c]})]}):a.jsxs("div",{className:"h-full overflow-auto",children:[a.jsxs("div",{className:"flex items-center justify-between p-6 pb-0",children:[a.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Health"}),a.jsx(Me,{variant:"ghost",onClick:m,leftIcon:a.jsx(Ci,{className:"w-4 h-4"}),children:"Refresh"})]}),a.jsx(zx,{onRefresh:async()=>await Ke.health.getHealth()})]})}const dd=[{type:"phone",label:"Phone",width:"375px",icon:a.jsx(sg,{className:"w-4 h-4"})},{type:"tablet",label:"Tablet",width:"768px",icon:a.jsx(ig,{className:"w-4 h-4"})},{type:"desktop",label:"Desktop",width:"100%",icon:a.jsx(Fi,{className:"w-4 h-4"})}];function Ix({defaultUrl:l="http://localhost:3000",services:i}){var D;const o=St(M=>M.setActiveView),[c,f]=h.useState("desktop"),[m,p]=h.useState(l),[x,v]=h.useState(0),[w,k]=h.useState((i==null?void 0:i[0])??null);h.useEffect(()=>{o("preview")},[o]),h.useEffect(()=>{w&&p(w.url)},[w]);const y=h.useCallback(M=>{f(M)},[]),T=h.useCallback(()=>{v(M=>M+1)},[]),b=h.useCallback(()=>{window.open(m,"_blank")},[m]),$=h.useCallback(M=>{const R=i==null?void 0:i.find(U=>U.id===M.id);R&&k(R)},[i]),_=((D=dd.find(M=>M.type===c))==null?void 0:D.width)??"100%",C=(i==null?void 0:i.map(M=>({id:M.id,label:M.label})))??[];return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsx("div",{className:"p-4 border-b border-border",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Preview"}),a.jsx("span",{className:"text-sm text-text-secondary",children:m})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[i&&i.length>0&&a.jsx(vs,{items:C,onSelect:$,trigger:(w==null?void 0:w.label)??"Select Service"}),a.jsx("div",{className:"flex items-center gap-1 border-l border-border pl-2 ml-2",children:dd.map(M=>a.jsx(Me,{variant:c===M.type?"primary":"ghost",size:"sm",onClick:()=>y(M.type),"aria-label":M.label,leftIcon:M.icon,children:M.label},M.type))}),a.jsxs("div",{className:"flex items-center gap-1 border-l border-border pl-2 ml-2",children:[a.jsx(Me,{variant:"ghost",size:"sm",onClick:T,"aria-label":"Refresh",leftIcon:a.jsx(Ci,{className:"w-4 h-4"}),children:"Refresh"}),a.jsx(Me,{variant:"ghost",size:"sm",onClick:b,"aria-label":"Open in new tab",leftIcon:a.jsx(Kh,{className:"w-4 h-4"}),children:"Open in new tab"})]})]})]})}),a.jsx("div",{className:"flex-1 overflow-hidden bg-surface-secondary p-4 flex justify-center",children:a.jsx("div",{"data-testid":"iframe-container",className:"h-full bg-white rounded-lg shadow-lg overflow-hidden transition-all duration-300",style:{width:_,maxWidth:"100%"},children:a.jsx("iframe",{src:m,title:"App Preview",className:"w-full h-full border-0",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups"},x)})})]})}const Ox="http://localhost:3147",$x=Ox.replace(/^http/,"ws")+"/ws";function Ax(){const l=Pi(),{isCommandPaletteOpen:i,closeCommandPalette:o,initFromStorage:c,toggleTheme:f}=St();h.useEffect(()=>{c()},[c]),$g({url:$x,autoConnect:!0});const m=h.useMemo(()=>[{id:"nav-dashboard",label:"Go to Dashboard",shortcut:"g d",action:()=>{l("/"),o()}},{id:"nav-projects",label:"Go to Projects",shortcut:"g p",action:()=>{l("/projects"),o()}},{id:"nav-tasks",label:"Go to Tasks",shortcut:"g t",action:()=>{l("/tasks"),o()}},{id:"nav-logs",label:"Go to Logs",shortcut:"g l",action:()=>{l("/logs"),o()}},{id:"nav-settings",label:"Go to Settings",shortcut:"g s",action:()=>{l("/settings"),o()}},{id:"nav-team",label:"Go to Team",shortcut:"g m",action:()=>{l("/team"),o()}},{id:"nav-health",label:"Go to Health",shortcut:"g h",action:()=>{l("/health"),o()}},{id:"nav-preview",label:"Go to Preview",shortcut:"g v",action:()=>{l("/preview"),o()}},{id:"toggle-theme",label:"Toggle Theme",shortcut:"t",action:()=>{f(),o()}}],[l,o,f]);return a.jsxs(a.Fragment,{children:[a.jsx(Gd,{children:a.jsxs(lh,{children:[a.jsx(Pt,{path:"/",element:a.jsx(ld,{})}),a.jsx(Pt,{path:"/dashboard",element:a.jsx(ld,{})}),a.jsx(Pt,{path:"/projects",element:a.jsx(Nx,{})}),a.jsx(Pt,{path:"/tasks",element:a.jsx(cx,{})}),a.jsx(Pt,{path:"/logs",element:a.jsx(hx,{})}),a.jsx(Pt,{path:"/settings",element:a.jsx(yx,{})}),a.jsx(Pt,{path:"/team",element:a.jsx(_x,{})}),a.jsx(Pt,{path:"/health",element:a.jsx(Fx,{})}),a.jsx(Pt,{path:"/preview",element:a.jsx(Ix,{})})]})}),a.jsx(hg,{commands:m,open:i,onClose:o})]})}function Ux(){return a.jsx(mg,{children:a.jsx(Ax,{})})}ip.createRoot(document.getElementById("root")).render(a.jsx(Vr.StrictMode,{children:a.jsx(Rh,{children:a.jsx(Ux,{})})}));
|
|
393
|
+
//# sourceMappingURL=index-B1I_joSL.js.map
|