@manojkmfsi/monodog 1.1.17 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/repositories/package-repository.js +8 -16
- package/monodog-dashboard/dist/assets/index-BCgtRT1v.css +1 -0
- package/monodog-dashboard/dist/assets/index-x6HJzHWK.js +12 -0
- package/monodog-dashboard/dist/index.html +2 -3
- package/package.json +1 -1
- package/monodog-dashboard/dist/assets/index-16320658.css +0 -1
- package/monodog-dashboard/dist/assets/index-f4941551.js +0 -71
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function Fm(s,a){for(var i=0;i<a.length;i++){const c=a[i];if(typeof c!="string"&&!Array.isArray(c)){for(const d in c)if(d!=="default"&&!(d in s)){const m=Object.getOwnPropertyDescriptor(c,d);m&&Object.defineProperty(s,d,m.get?m:{enumerable:!0,get:()=>c[d]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const f of m.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&c(f)}).observe(document,{childList:!0,subtree:!0});function i(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=i(d);fetch(d.href,m)}})();function Bm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var oi={exports:{}},Ar={},ci={exports:{}},ne={};var Tu;function Am(){if(Tu)return ne;Tu=1;var s=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),C=Symbol.iterator;function M(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,D={};function P(j,_,te){this.props=j,this.context=_,this.refs=D,this.updater=te||A}P.prototype.isReactComponent={},P.prototype.setState=function(j,_){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,_,"setState")},P.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function Y(){}Y.prototype=P.prototype;function T(j,_,te){this.props=j,this.context=_,this.refs=D,this.updater=te||A}var z=T.prototype=new Y;z.constructor=T,U(z,P.prototype),z.isPureReactComponent=!0;var G=Array.isArray,oe=Object.prototype.hasOwnProperty,me={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function de(j,_,te){var re,le={},ae=null,xe=null;if(_!=null)for(re in _.ref!==void 0&&(xe=_.ref),_.key!==void 0&&(ae=""+_.key),_)oe.call(_,re)&&!q.hasOwnProperty(re)&&(le[re]=_[re]);var ce=arguments.length-2;if(ce===1)le.children=te;else if(1<ce){for(var je=Array(ce),nt=0;nt<ce;nt++)je[nt]=arguments[nt+2];le.children=je}if(j&&j.defaultProps)for(re in ce=j.defaultProps,ce)le[re]===void 0&&(le[re]=ce[re]);return{$$typeof:s,type:j,key:ae,ref:xe,props:le,_owner:me.current}}function Ue(j,_){return{$$typeof:s,type:j.type,key:_,ref:j.ref,props:j.props,_owner:j._owner}}function he(j){return typeof j=="object"&&j!==null&&j.$$typeof===s}function Te(j){var _={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(te){return _[te]})}var _e=/\/+/g;function Se(j,_){return typeof j=="object"&&j!==null&&j.key!=null?Te(""+j.key):_.toString(36)}function fe(j,_,te,re,le){var ae=typeof j;(ae==="undefined"||ae==="boolean")&&(j=null);var xe=!1;if(j===null)xe=!0;else switch(ae){case"string":case"number":xe=!0;break;case"object":switch(j.$$typeof){case s:case a:xe=!0}}if(xe)return xe=j,le=le(xe),j=re===""?"."+Se(xe,0):re,G(le)?(te="",j!=null&&(te=j.replace(_e,"$&/")+"/"),fe(le,_,te,"",function(nt){return nt})):le!=null&&(he(le)&&(le=Ue(le,te+(!le.key||xe&&xe.key===le.key?"":(""+le.key).replace(_e,"$&/")+"/")+j)),_.push(le)),1;if(xe=0,re=re===""?".":re+":",G(j))for(var ce=0;ce<j.length;ce++){ae=j[ce];var je=re+Se(ae,ce);xe+=fe(ae,_,te,je,le)}else if(je=M(j),typeof je=="function")for(j=je.call(j),ce=0;!(ae=j.next()).done;)ae=ae.value,je=re+Se(ae,ce++),xe+=fe(ae,_,te,je,le);else if(ae==="object")throw _=String(j),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return xe}function Be(j,_,te){if(j==null)return j;var re=[],le=0;return fe(j,re,"","",function(ae){return _.call(te,ae,le++)}),re}function Ce(j){if(j._status===-1){var _=j._result;_=_(),_.then(function(te){(j._status===0||j._status===-1)&&(j._status=1,j._result=te)},function(te){(j._status===0||j._status===-1)&&(j._status=2,j._result=te)}),j._status===-1&&(j._status=0,j._result=_)}if(j._status===1)return j._result.default;throw j._result}var ye={current:null},F={transition:null},K={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:F,ReactCurrentOwner:me};function H(){throw Error("act(...) is not supported in production builds of React.")}return ne.Children={map:Be,forEach:function(j,_,te){Be(j,function(){_.apply(this,arguments)},te)},count:function(j){var _=0;return Be(j,function(){_++}),_},toArray:function(j){return Be(j,function(_){return _})||[]},only:function(j){if(!he(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},ne.Component=P,ne.Fragment=i,ne.Profiler=d,ne.PureComponent=T,ne.StrictMode=c,ne.Suspense=x,ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,ne.act=H,ne.cloneElement=function(j,_,te){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var re=U({},j.props),le=j.key,ae=j.ref,xe=j._owner;if(_!=null){if(_.ref!==void 0&&(ae=_.ref,xe=me.current),_.key!==void 0&&(le=""+_.key),j.type&&j.type.defaultProps)var ce=j.type.defaultProps;for(je in _)oe.call(_,je)&&!q.hasOwnProperty(je)&&(re[je]=_[je]===void 0&&ce!==void 0?ce[je]:_[je])}var je=arguments.length-2;if(je===1)re.children=te;else if(1<je){ce=Array(je);for(var nt=0;nt<je;nt++)ce[nt]=arguments[nt+2];re.children=ce}return{$$typeof:s,type:j.type,key:le,ref:ae,props:re,_owner:xe}},ne.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:m,_context:j},j.Consumer=j},ne.createElement=de,ne.createFactory=function(j){var _=de.bind(null,j);return _.type=j,_},ne.createRef=function(){return{current:null}},ne.forwardRef=function(j){return{$$typeof:g,render:j}},ne.isValidElement=he,ne.lazy=function(j){return{$$typeof:E,_payload:{_status:-1,_result:j},_init:Ce}},ne.memo=function(j,_){return{$$typeof:b,type:j,compare:_===void 0?null:_}},ne.startTransition=function(j){var _=F.transition;F.transition={};try{j()}finally{F.transition=_}},ne.unstable_act=H,ne.useCallback=function(j,_){return ye.current.useCallback(j,_)},ne.useContext=function(j){return ye.current.useContext(j)},ne.useDebugValue=function(){},ne.useDeferredValue=function(j){return ye.current.useDeferredValue(j)},ne.useEffect=function(j,_){return ye.current.useEffect(j,_)},ne.useId=function(){return ye.current.useId()},ne.useImperativeHandle=function(j,_,te){return ye.current.useImperativeHandle(j,_,te)},ne.useInsertionEffect=function(j,_){return ye.current.useInsertionEffect(j,_)},ne.useLayoutEffect=function(j,_){return ye.current.useLayoutEffect(j,_)},ne.useMemo=function(j,_){return ye.current.useMemo(j,_)},ne.useReducer=function(j,_,te){return ye.current.useReducer(j,_,te)},ne.useRef=function(j){return ye.current.useRef(j)},ne.useState=function(j){return ye.current.useState(j)},ne.useSyncExternalStore=function(j,_,te){return ye.current.useSyncExternalStore(j,_,te)},ne.useTransition=function(){return ye.current.useTransition()},ne.version="18.3.1",ne}var _u;function ji(){return _u||(_u=1,ci.exports=Am()),ci.exports}var Ru;function $m(){if(Ru)return Ar;Ru=1;var s=ji(),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function f(g,x,b){var E,C={},M=null,A=null;b!==void 0&&(M=""+b),x.key!==void 0&&(M=""+x.key),x.ref!==void 0&&(A=x.ref);for(E in x)c.call(x,E)&&!m.hasOwnProperty(E)&&(C[E]=x[E]);if(g&&g.defaultProps)for(E in x=g.defaultProps,x)C[E]===void 0&&(C[E]=x[E]);return{$$typeof:a,type:g,key:M,ref:A,props:C,_owner:d.current}}return Ar.Fragment=i,Ar.jsx=f,Ar.jsxs=f,Ar}var Iu;function Um(){return Iu||(Iu=1,oi.exports=$m()),oi.exports}var n=Um(),ll={},ui={exports:{}},tt={},di={exports:{}},mi={};var Ou;function Hm(){return Ou||(Ou=1,(function(s){function a(F,K){var H=F.length;F.push(K);e:for(;0<H;){var j=H-1>>>1,_=F[j];if(0<d(_,K))F[j]=K,F[H]=_,H=j;else break e}}function i(F){return F.length===0?null:F[0]}function c(F){if(F.length===0)return null;var K=F[0],H=F.pop();if(H!==K){F[0]=H;e:for(var j=0,_=F.length,te=_>>>1;j<te;){var re=2*(j+1)-1,le=F[re],ae=re+1,xe=F[ae];if(0>d(le,H))ae<_&&0>d(xe,le)?(F[j]=xe,F[ae]=H,j=ae):(F[j]=le,F[re]=H,j=re);else if(ae<_&&0>d(xe,H))F[j]=xe,F[ae]=H,j=ae;else break e}}return K}function d(F,K){var H=F.sortIndex-K.sortIndex;return H!==0?H:F.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var f=Date,g=f.now();s.unstable_now=function(){return f.now()-g}}var x=[],b=[],E=1,C=null,M=3,A=!1,U=!1,D=!1,P=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(F){for(var K=i(b);K!==null;){if(K.callback===null)c(b);else if(K.startTime<=F)c(b),K.sortIndex=K.expirationTime,a(x,K);else break;K=i(b)}}function G(F){if(D=!1,z(F),!U)if(i(x)!==null)U=!0,Ce(oe);else{var K=i(b);K!==null&&ye(G,K.startTime-F)}}function oe(F,K){U=!1,D&&(D=!1,Y(de),de=-1),A=!0;var H=M;try{for(z(K),C=i(x);C!==null&&(!(C.expirationTime>K)||F&&!Te());){var j=C.callback;if(typeof j=="function"){C.callback=null,M=C.priorityLevel;var _=j(C.expirationTime<=K);K=s.unstable_now(),typeof _=="function"?C.callback=_:C===i(x)&&c(x),z(K)}else c(x);C=i(x)}if(C!==null)var te=!0;else{var re=i(b);re!==null&&ye(G,re.startTime-K),te=!1}return te}finally{C=null,M=H,A=!1}}var me=!1,q=null,de=-1,Ue=5,he=-1;function Te(){return!(s.unstable_now()-he<Ue)}function _e(){if(q!==null){var F=s.unstable_now();he=F;var K=!0;try{K=q(!0,F)}finally{K?Se():(me=!1,q=null)}}else me=!1}var Se;if(typeof T=="function")Se=function(){T(_e)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,Be=fe.port2;fe.port1.onmessage=_e,Se=function(){Be.postMessage(null)}}else Se=function(){P(_e,0)};function Ce(F){q=F,me||(me=!0,Se())}function ye(F,K){de=P(function(){F(s.unstable_now())},K)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(F){F.callback=null},s.unstable_continueExecution=function(){U||A||(U=!0,Ce(oe))},s.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<F?Math.floor(1e3/F):5},s.unstable_getCurrentPriorityLevel=function(){return M},s.unstable_getFirstCallbackNode=function(){return i(x)},s.unstable_next=function(F){switch(M){case 1:case 2:case 3:var K=3;break;default:K=M}var H=M;M=K;try{return F()}finally{M=H}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(F,K){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var H=M;M=F;try{return K()}finally{M=H}},s.unstable_scheduleCallback=function(F,K,H){var j=s.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?j+H:j):H=j,F){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=H+_,F={id:E++,callback:K,priorityLevel:F,startTime:H,expirationTime:_,sortIndex:-1},H>j?(F.sortIndex=H,a(b,F),i(x)===null&&F===i(b)&&(D?(Y(de),de=-1):D=!0,ye(G,H-j))):(F.sortIndex=_,a(x,F),U||A||(U=!0,Ce(oe))),F},s.unstable_shouldYield=Te,s.unstable_wrapCallback=function(F){var K=M;return function(){var H=M;M=K;try{return F.apply(this,arguments)}finally{M=H}}}})(mi)),mi}var zu;function Vm(){return zu||(zu=1,di.exports=Hm()),di.exports}var Du;function Wm(){if(Du)return tt;Du=1;var s=ji(),a=Vm();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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,d={};function m(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(d[e]=t,e=0;e<t.length;e++)c.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,b=/^[: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]*$/,E={},C={};function M(e){return x.call(C,e)?!0:x.call(E,e)?!1:b.test(e)?C[e]=!0:(E[e]=!0,!1)}function A(e,t,r,l){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U(e,t,r,l){if(t===null||typeof t>"u"||A(e,t,r,l))return!0;if(l)return!1;if(r!==null)switch(r.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 D(e,t,r,l,o,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new D(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new D(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){P[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function T(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(Y,T);P[t]=new D(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(Y,T);P[t]=new D(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(Y,T);P[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function z(e,t,r,l){var o=P.hasOwnProperty(t)?P[t]:null;(o!==null?o.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(U(t,r,o,l)&&(r=null),l||o===null?M(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,l=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,l?e.setAttributeNS(l,t,r):e.setAttribute(t,r))))}var G=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oe=Symbol.for("react.element"),me=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),he=Symbol.for("react.provider"),Te=Symbol.for("react.context"),_e=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),F=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,j;function _(e){if(j===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return`
|
|
2
|
+
`+j+e}var te=!1;function re(e,t){if(!e||te)return"";te=!0;var r=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(k){var l=k}Reflect.construct(e,[],t)}else{try{t.call()}catch(k){l=k}e.call(t.prototype)}else{try{throw Error()}catch(k){l=k}e()}}catch(k){if(k&&l&&typeof k.stack=="string"){for(var o=k.stack.split(`
|
|
3
|
+
`),u=l.stack.split(`
|
|
4
|
+
`),h=o.length-1,p=u.length-1;1<=h&&0<=p&&o[h]!==u[p];)p--;for(;1<=h&&0<=p;h--,p--)if(o[h]!==u[p]){if(h!==1||p!==1)do if(h--,p--,0>p||o[h]!==u[p]){var v=`
|
|
5
|
+
`+o[h].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),v}while(1<=h&&0<=p);break}}}finally{te=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_(e):""}function le(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ae(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 q:return"Fragment";case me:return"Portal";case Ue:return"Profiler";case de:return"StrictMode";case Se:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Te:return(e.displayName||"Context")+".Consumer";case he:return(e._context.displayName||"Context")+".Provider";case _e:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case Ce:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}function xe(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 ae(t);case 8:return t===de?"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 ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nt(e){var t=je(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){l=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(h){l=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kr(e){e._valueTracker||(e._valueTracker=nt(e))}function zi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=je(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Zr(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 xl(e,t){var r=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Di(e,t){var r=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;r=ce(t.value!=null?t.value:r),e._wrapperState={initialChecked:l,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fi(e,t){t=t.checked,t!=null&&z(e,"checked",t,!1)}function pl(e,t){Fi(e,t);var r=ce(t.value),l=t.type;if(r!=null)l==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gl(e,t.type,r):t.hasOwnProperty("defaultValue")&&gl(e,t.type,ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bi(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function gl(e,t,r){(t!=="number"||Zr(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var tr=Array.isArray;function En(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+ce(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function vl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return H({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ai(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(i(92));if(tr(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ce(r)}}function $i(e,t){var r=ce(t.value),l=ce(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),l!=null&&(e.defaultValue=""+l)}function Ui(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hi(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 yl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hi(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xr,Vi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,l,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,l,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Xr=Xr||document.createElement("div"),Xr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rr={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},Ud=["Webkit","ms","Moz","O"];Object.keys(rr).forEach(function(e){Ud.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rr[t]=rr[e]})});function Wi(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rr.hasOwnProperty(e)&&rr[e]?(""+t).trim():t+"px"}function Qi(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var l=r.indexOf("--")===0,o=Wi(r,t[r],l);r==="float"&&(r="cssFloat"),l?e.setProperty(r,o):e[r]=o}}var Hd=H({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 jl(e,t){if(t){if(Hd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function wl(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 Nl=null;function bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kl=null,Pn=null,Ln=null;function Yi(e){if(e=Sr(e)){if(typeof kl!="function")throw Error(i(280));var t=e.stateNode;t&&(t=js(t),kl(e.stateNode,e.type,t))}}function Gi(e){Pn?Ln?Ln.push(e):Ln=[e]:Pn=e}function Ki(){if(Pn){var e=Pn,t=Ln;if(Ln=Pn=null,Yi(e),t)for(e=0;e<t.length;e++)Yi(t[e])}}function Zi(e,t){return e(t)}function Xi(){}var Sl=!1;function qi(e,t,r){if(Sl)return e(t,r);Sl=!0;try{return Zi(e,t,r)}finally{Sl=!1,(Pn!==null||Ln!==null)&&(Xi(),Ki())}}function sr(e,t){var r=e.stateNode;if(r===null)return null;var l=js(r);if(l===null)return null;r=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var Cl=!1;if(g)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){Cl=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{Cl=!1}function Vd(e,t,r,l,o,u,h,p,v){var k=Array.prototype.slice.call(arguments,3);try{t.apply(r,k)}catch(R){this.onError(R)}}var ar=!1,qr=null,Jr=!1,El=null,Wd={onError:function(e){ar=!0,qr=e}};function Qd(e,t,r,l,o,u,h,p,v){ar=!1,qr=null,Vd.apply(Wd,arguments)}function Yd(e,t,r,l,o,u,h,p,v){if(Qd.apply(this,arguments),ar){if(ar){var k=qr;ar=!1,qr=null}else throw Error(i(198));Jr||(Jr=!0,El=k)}}function dn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Ji(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 eo(e){if(dn(e)!==e)throw Error(i(188))}function Gd(e){var t=e.alternate;if(!t){if(t=dn(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===r)return eo(o),e;if(u===l)return eo(o),t;u=u.sibling}throw Error(i(188))}if(r.return!==l.return)r=o,l=u;else{for(var h=!1,p=o.child;p;){if(p===r){h=!0,r=o,l=u;break}if(p===l){h=!0,l=o,r=u;break}p=p.sibling}if(!h){for(p=u.child;p;){if(p===r){h=!0,r=u,l=o;break}if(p===l){h=!0,l=u,r=o;break}p=p.sibling}if(!h)throw Error(i(189))}}if(r.alternate!==l)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function to(e){return e=Gd(e),e!==null?no(e):null}function no(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=no(e);if(t!==null)return t;e=e.sibling}return null}var ro=a.unstable_scheduleCallback,so=a.unstable_cancelCallback,Kd=a.unstable_shouldYield,Zd=a.unstable_requestPaint,Ee=a.unstable_now,Xd=a.unstable_getCurrentPriorityLevel,Pl=a.unstable_ImmediatePriority,lo=a.unstable_UserBlockingPriority,es=a.unstable_NormalPriority,qd=a.unstable_LowPriority,ao=a.unstable_IdlePriority,ts=null,Nt=null;function Jd(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(ts,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:n0,e0=Math.log,t0=Math.LN2;function n0(e){return e>>>=0,e===0?32:31-(e0(e)/t0|0)|0}var ns=64,rs=4194304;function ir(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 ss(e,t){var r=e.pendingLanes;if(r===0)return 0;var l=0,o=e.suspendedLanes,u=e.pingedLanes,h=r&268435455;if(h!==0){var p=h&~o;p!==0?l=ir(p):(u&=h,u!==0&&(l=ir(u)))}else h=r&~o,h!==0?l=ir(h):u!==0&&(l=ir(u));if(l===0)return 0;if(t!==0&&t!==l&&(t&o)===0&&(o=l&-l,u=t&-t,o>=u||o===16&&(u&4194240)!==0))return t;if((l&4)!==0&&(l|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)r=31-xt(t),o=1<<r,l|=e[r],t&=~o;return l}function r0(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 s0(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var h=31-xt(u),p=1<<h,v=o[h];v===-1?((p&r)===0||(p&l)!==0)&&(o[h]=r0(p,t)):v<=t&&(e.expiredLanes|=p),u&=~p}}function Ll(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function io(){var e=ns;return ns<<=1,(ns&4194240)===0&&(ns=64),e}function Ml(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function or(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=r}function l0(e,t){var r=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 l=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-xt(r),u=1<<o;t[o]=0,l[o]=-1,e[o]=-1,r&=~u}}function Tl(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-xt(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}var ue=0;function oo(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var co,_l,uo,mo,ho,Rl=!1,ls=[],At=null,$t=null,Ut=null,cr=new Map,ur=new Map,Ht=[],a0="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 fo(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":$t=null;break;case"mouseover":case"mouseout":Ut=null;break;case"pointerover":case"pointerout":cr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ur.delete(t.pointerId)}}function dr(e,t,r,l,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Sr(t),t!==null&&_l(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function i0(e,t,r,l,o){switch(t){case"focusin":return At=dr(At,e,t,r,l,o),!0;case"dragenter":return $t=dr($t,e,t,r,l,o),!0;case"mouseover":return Ut=dr(Ut,e,t,r,l,o),!0;case"pointerover":var u=o.pointerId;return cr.set(u,dr(cr.get(u)||null,e,t,r,l,o)),!0;case"gotpointercapture":return u=o.pointerId,ur.set(u,dr(ur.get(u)||null,e,t,r,l,o)),!0}return!1}function xo(e){var t=mn(e.target);if(t!==null){var r=dn(t);if(r!==null){if(t=r.tag,t===13){if(t=Ji(r),t!==null){e.blockedOn=t,ho(e.priority,function(){uo(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ol(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Nl=l,r.target.dispatchEvent(l),Nl=null}else return t=Sr(r),t!==null&&_l(t),e.blockedOn=r,!1;t.shift()}return!0}function po(e,t,r){as(e)&&r.delete(t)}function o0(){Rl=!1,At!==null&&as(At)&&(At=null),$t!==null&&as($t)&&($t=null),Ut!==null&&as(Ut)&&(Ut=null),cr.forEach(po),ur.forEach(po)}function mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Rl||(Rl=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,o0)))}function hr(e){function t(o){return mr(o,e)}if(0<ls.length){mr(ls[0],e);for(var r=1;r<ls.length;r++){var l=ls[r];l.blockedOn===e&&(l.blockedOn=null)}}for(At!==null&&mr(At,e),$t!==null&&mr($t,e),Ut!==null&&mr(Ut,e),cr.forEach(t),ur.forEach(t),r=0;r<Ht.length;r++)l=Ht[r],l.blockedOn===e&&(l.blockedOn=null);for(;0<Ht.length&&(r=Ht[0],r.blockedOn===null);)xo(r),r.blockedOn===null&&Ht.shift()}var Mn=G.ReactCurrentBatchConfig,is=!0;function c0(e,t,r,l){var o=ue,u=Mn.transition;Mn.transition=null;try{ue=1,Il(e,t,r,l)}finally{ue=o,Mn.transition=u}}function u0(e,t,r,l){var o=ue,u=Mn.transition;Mn.transition=null;try{ue=4,Il(e,t,r,l)}finally{ue=o,Mn.transition=u}}function Il(e,t,r,l){if(is){var o=Ol(e,t,r,l);if(o===null)ql(e,t,l,os,r),fo(e,l);else if(i0(o,e,t,r,l))l.stopPropagation();else if(fo(e,l),t&4&&-1<a0.indexOf(e)){for(;o!==null;){var u=Sr(o);if(u!==null&&co(u),u=Ol(e,t,r,l),u===null&&ql(e,t,l,os,r),u===o)break;o=u}o!==null&&l.stopPropagation()}else ql(e,t,l,null,r)}}var os=null;function Ol(e,t,r,l){if(os=null,e=bl(l),e=mn(e),e!==null)if(t=dn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ji(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return os=e,null}function go(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(Xd()){case Pl:return 1;case lo:return 4;case es:case qd:return 16;case ao:return 536870912;default:return 16}default:return 16}}var Vt=null,zl=null,cs=null;function vo(){if(cs)return cs;var e,t=zl,r=t.length,l,o="value"in Vt?Vt.value:Vt.textContent,u=o.length;for(e=0;e<r&&t[e]===o[e];e++);var h=r-e;for(l=1;l<=h&&t[r-l]===o[u-l];l++);return cs=o.slice(e,1<l?1-l:void 0)}function us(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 ds(){return!0}function yo(){return!1}function rt(e){function t(r,l,o,u,h){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(r=e[p],this[p]=r?r(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ds:yo,this.isPropagationStopped=yo,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ds)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ds)},persist:function(){},isPersistent:ds}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dl=rt(Tn),fr=H({},Tn,{view:0,detail:0}),d0=rt(fr),Fl,Bl,xr,ms=H({},fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$l,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"?(Fl=e.screenX-xr.screenX,Bl=e.screenY-xr.screenY):Bl=Fl=0,xr=e),Fl)},movementY:function(e){return"movementY"in e?e.movementY:Bl}}),jo=rt(ms),m0=H({},ms,{dataTransfer:0}),h0=rt(m0),f0=H({},fr,{relatedTarget:0}),Al=rt(f0),x0=H({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),p0=rt(x0),g0=H({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v0=rt(g0),y0=H({},Tn,{data:0}),wo=rt(y0),j0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w0={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"},N0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function b0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=N0[e])?!!t[e]:!1}function $l(){return b0}var k0=H({},fr,{key:function(e){if(e.key){var t=j0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$l,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),S0=rt(k0),C0=H({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),No=rt(C0),E0=H({},fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$l}),P0=rt(E0),L0=H({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),M0=rt(L0),T0=H({},ms,{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}),_0=rt(T0),R0=[9,13,27,32],Ul=g&&"CompositionEvent"in window,pr=null;g&&"documentMode"in document&&(pr=document.documentMode);var I0=g&&"TextEvent"in window&&!pr,bo=g&&(!Ul||pr&&8<pr&&11>=pr),ko=" ",So=!1;function Co(e,t){switch(e){case"keyup":return R0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function O0(e,t){switch(e){case"compositionend":return Eo(t);case"keypress":return t.which!==32?null:(So=!0,ko);case"textInput":return e=t.data,e===ko&&So?null:e;default:return null}}function z0(e,t){if(_n)return e==="compositionend"||!Ul&&Co(e,t)?(e=vo(),cs=zl=Vt=null,_n=!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 bo&&t.locale!=="ko"?null:t.data;default:return null}}var D0={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 Po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!D0[e.type]:t==="textarea"}function Lo(e,t,r,l){Gi(l),t=gs(t,"onChange"),0<t.length&&(r=new Dl("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var gr=null,vr=null;function F0(e){Yo(e,0)}function hs(e){var t=Dn(e);if(zi(t))return e}function B0(e,t){if(e==="change")return t}var Mo=!1;if(g){var Hl;if(g){var Vl="oninput"in document;if(!Vl){var To=document.createElement("div");To.setAttribute("oninput","return;"),Vl=typeof To.oninput=="function"}Hl=Vl}else Hl=!1;Mo=Hl&&(!document.documentMode||9<document.documentMode)}function _o(){gr&&(gr.detachEvent("onpropertychange",Ro),vr=gr=null)}function Ro(e){if(e.propertyName==="value"&&hs(vr)){var t=[];Lo(t,vr,e,bl(e)),qi(F0,t)}}function A0(e,t,r){e==="focusin"?(_o(),gr=t,vr=r,gr.attachEvent("onpropertychange",Ro)):e==="focusout"&&_o()}function $0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(vr)}function U0(e,t){if(e==="click")return hs(t)}function H0(e,t){if(e==="input"||e==="change")return hs(t)}function V0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:V0;function yr(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!x.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function Io(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oo(e,t){var r=Io(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Io(r)}}function zo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Do(){for(var e=window,t=Zr();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Zr(e.document)}return t}function Wl(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 W0(e){var t=Do(),r=e.focusedElem,l=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&zo(r.ownerDocument.documentElement,r)){if(l!==null&&Wl(r)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,u=Math.min(l.start,o);l=l.end===void 0?u:Math.min(l.end,o),!e.extend&&u>l&&(o=l,l=u,u=o),o=Oo(r,u);var h=Oo(r,l);o&&h&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),u>l?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Q0=g&&"documentMode"in document&&11>=document.documentMode,Rn=null,Ql=null,jr=null,Yl=!1;function Fo(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yl||Rn==null||Rn!==Zr(l)||(l=Rn,"selectionStart"in l&&Wl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),jr&&yr(jr,l)||(jr=l,l=gs(Ql,"onSelect"),0<l.length&&(t=new Dl("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=Rn)))}function fs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var In={animationend:fs("Animation","AnimationEnd"),animationiteration:fs("Animation","AnimationIteration"),animationstart:fs("Animation","AnimationStart"),transitionend:fs("Transition","TransitionEnd")},Gl={},Bo={};g&&(Bo=document.createElement("div").style,"AnimationEvent"in window||(delete In.animationend.animation,delete In.animationiteration.animation,delete In.animationstart.animation),"TransitionEvent"in window||delete In.transitionend.transition);function xs(e){if(Gl[e])return Gl[e];if(!In[e])return e;var t=In[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Bo)return Gl[e]=t[r];return e}var Ao=xs("animationend"),$o=xs("animationiteration"),Uo=xs("animationstart"),Ho=xs("transitionend"),Vo=new Map,Wo="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 Wt(e,t){Vo.set(e,t),m(t,[e])}for(var Kl=0;Kl<Wo.length;Kl++){var Zl=Wo[Kl],Y0=Zl.toLowerCase(),G0=Zl[0].toUpperCase()+Zl.slice(1);Wt(Y0,"on"+G0)}Wt(Ao,"onAnimationEnd"),Wt($o,"onAnimationIteration"),Wt(Uo,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(Ho,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("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 wr="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(" "),K0=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Qo(e,t,r){var l=e.type||"unknown-event";e.currentTarget=r,Yd(l,t,void 0,e),e.currentTarget=null}function Yo(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var h=l.length-1;0<=h;h--){var p=l[h],v=p.instance,k=p.currentTarget;if(p=p.listener,v!==u&&o.isPropagationStopped())break e;Qo(o,p,k),u=v}else for(h=0;h<l.length;h++){if(p=l[h],v=p.instance,k=p.currentTarget,p=p.listener,v!==u&&o.isPropagationStopped())break e;Qo(o,p,k),u=v}}}if(Jr)throw e=El,Jr=!1,El=null,e}function ge(e,t){var r=t[sa];r===void 0&&(r=t[sa]=new Set);var l=e+"__bubble";r.has(l)||(Go(t,e,2,!1),r.add(l))}function Xl(e,t,r){var l=0;t&&(l|=4),Go(r,e,l,t)}var ps="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){if(!e[ps]){e[ps]=!0,c.forEach(function(r){r!=="selectionchange"&&(K0.has(r)||Xl(r,!1,e),Xl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ps]||(t[ps]=!0,Xl("selectionchange",!1,t))}}function Go(e,t,r,l){switch(go(t)){case 1:var o=c0;break;case 4:o=u0;break;default:o=Il}r=o.bind(null,t,r,e),o=void 0,!Cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function ql(e,t,r,l,o){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var p=l.stateNode.containerInfo;if(p===o||p.nodeType===8&&p.parentNode===o)break;if(h===4)for(h=l.return;h!==null;){var v=h.tag;if((v===3||v===4)&&(v=h.stateNode.containerInfo,v===o||v.nodeType===8&&v.parentNode===o))return;h=h.return}for(;p!==null;){if(h=mn(p),h===null)return;if(v=h.tag,v===5||v===6){l=u=h;continue e}p=p.parentNode}}l=l.return}qi(function(){var k=u,R=bl(r),I=[];e:{var L=Vo.get(e);if(L!==void 0){var B=Dl,V=e;switch(e){case"keypress":if(us(r)===0)break e;case"keydown":case"keyup":B=S0;break;case"focusin":V="focus",B=Al;break;case"focusout":V="blur",B=Al;break;case"beforeblur":case"afterblur":B=Al;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=jo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=h0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=P0;break;case Ao:case $o:case Uo:B=p0;break;case Ho:B=M0;break;case"scroll":B=d0;break;case"wheel":B=_0;break;case"copy":case"cut":case"paste":B=v0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=No}var W=(t&4)!==0,Pe=!W&&e==="scroll",w=W?L!==null?L+"Capture":null:L;W=[];for(var y=k,N;y!==null;){N=y;var O=N.stateNode;if(N.tag===5&&O!==null&&(N=O,w!==null&&(O=sr(y,w),O!=null&&W.push(br(y,O,N)))),Pe)break;y=y.return}0<W.length&&(L=new B(L,V,null,r,R),I.push({event:L,listeners:W}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",L&&r!==Nl&&(V=r.relatedTarget||r.fromElement)&&(mn(V)||V[Mt]))break e;if((B||L)&&(L=R.window===R?R:(L=R.ownerDocument)?L.defaultView||L.parentWindow:window,B?(V=r.relatedTarget||r.toElement,B=k,V=V?mn(V):null,V!==null&&(Pe=dn(V),V!==Pe||V.tag!==5&&V.tag!==6)&&(V=null)):(B=null,V=k),B!==V)){if(W=jo,O="onMouseLeave",w="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(W=No,O="onPointerLeave",w="onPointerEnter",y="pointer"),Pe=B==null?L:Dn(B),N=V==null?L:Dn(V),L=new W(O,y+"leave",B,r,R),L.target=Pe,L.relatedTarget=N,O=null,mn(R)===k&&(W=new W(w,y+"enter",V,r,R),W.target=N,W.relatedTarget=Pe,O=W),Pe=O,B&&V)t:{for(W=B,w=V,y=0,N=W;N;N=On(N))y++;for(N=0,O=w;O;O=On(O))N++;for(;0<y-N;)W=On(W),y--;for(;0<N-y;)w=On(w),N--;for(;y--;){if(W===w||w!==null&&W===w.alternate)break t;W=On(W),w=On(w)}W=null}else W=null;B!==null&&Ko(I,L,B,W,!1),V!==null&&Pe!==null&&Ko(I,Pe,V,W,!0)}}e:{if(L=k?Dn(k):window,B=L.nodeName&&L.nodeName.toLowerCase(),B==="select"||B==="input"&&L.type==="file")var Q=B0;else if(Po(L))if(Mo)Q=H0;else{Q=$0;var Z=A0}else(B=L.nodeName)&&B.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(Q=U0);if(Q&&(Q=Q(e,k))){Lo(I,Q,r,R);break e}Z&&Z(e,L,k),e==="focusout"&&(Z=L._wrapperState)&&Z.controlled&&L.type==="number"&&gl(L,"number",L.value)}switch(Z=k?Dn(k):window,e){case"focusin":(Po(Z)||Z.contentEditable==="true")&&(Rn=Z,Ql=k,jr=null);break;case"focusout":jr=Ql=Rn=null;break;case"mousedown":Yl=!0;break;case"contextmenu":case"mouseup":case"dragend":Yl=!1,Fo(I,r,R);break;case"selectionchange":if(Q0)break;case"keydown":case"keyup":Fo(I,r,R)}var X;if(Ul)e:{switch(e){case"compositionstart":var J="onCompositionStart";break e;case"compositionend":J="onCompositionEnd";break e;case"compositionupdate":J="onCompositionUpdate";break e}J=void 0}else _n?Co(e,r)&&(J="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(J="onCompositionStart");J&&(bo&&r.locale!=="ko"&&(_n||J!=="onCompositionStart"?J==="onCompositionEnd"&&_n&&(X=vo()):(Vt=R,zl="value"in Vt?Vt.value:Vt.textContent,_n=!0)),Z=gs(k,J),0<Z.length&&(J=new wo(J,e,null,r,R),I.push({event:J,listeners:Z}),X?J.data=X:(X=Eo(r),X!==null&&(J.data=X)))),(X=I0?O0(e,r):z0(e,r))&&(k=gs(k,"onBeforeInput"),0<k.length&&(R=new wo("onBeforeInput","beforeinput",null,r,R),I.push({event:R,listeners:k}),R.data=X))}Yo(I,t)})}function br(e,t,r){return{instance:e,listener:t,currentTarget:r}}function gs(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,u=o.stateNode;o.tag===5&&u!==null&&(o=u,u=sr(e,r),u!=null&&l.unshift(br(e,u,o)),u=sr(e,t),u!=null&&l.push(br(e,u,o))),e=e.return}return l}function On(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ko(e,t,r,l,o){for(var u=t._reactName,h=[];r!==null&&r!==l;){var p=r,v=p.alternate,k=p.stateNode;if(v!==null&&v===l)break;p.tag===5&&k!==null&&(p=k,o?(v=sr(r,u),v!=null&&h.unshift(br(r,v,p))):o||(v=sr(r,u),v!=null&&h.push(br(r,v,p)))),r=r.return}h.length!==0&&e.push({event:t,listeners:h})}var Z0=/\r\n?/g,X0=/\u0000|\uFFFD/g;function Zo(e){return(typeof e=="string"?e:""+e).replace(Z0,`
|
|
6
|
+
`).replace(X0,"")}function vs(e,t,r){if(t=Zo(t),Zo(e)!==t&&r)throw Error(i(425))}function ys(){}var Jl=null,ea=null;function ta(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 na=typeof setTimeout=="function"?setTimeout:void 0,q0=typeof clearTimeout=="function"?clearTimeout:void 0,Xo=typeof Promise=="function"?Promise:void 0,J0=typeof queueMicrotask=="function"?queueMicrotask:typeof Xo<"u"?function(e){return Xo.resolve(null).then(e).catch(em)}:na;function em(e){setTimeout(function(){throw e})}function ra(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(l===0){e.removeChild(o),hr(t);return}l--}else r!=="$"&&r!=="$?"&&r!=="$!"||l++;r=o}while(r);hr(t)}function Qt(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 qo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var zn=Math.random().toString(36).slice(2),bt="__reactFiber$"+zn,kr="__reactProps$"+zn,Mt="__reactContainer$"+zn,sa="__reactEvents$"+zn,tm="__reactListeners$"+zn,nm="__reactHandles$"+zn;function mn(e){var t=e[bt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Mt]||r[bt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=qo(e);e!==null;){if(r=e[bt])return r;e=qo(e)}return t}e=r,r=e.parentNode}return null}function Sr(e){return e=e[bt]||e[Mt],!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(i(33))}function js(e){return e[kr]||null}var la=[],Fn=-1;function Yt(e){return{current:e}}function ve(e){0>Fn||(e.current=la[Fn],la[Fn]=null,Fn--)}function pe(e,t){Fn++,la[Fn]=e.current,e.current=t}var Gt={},He=Yt(Gt),Ze=Yt(!1),hn=Gt;function Bn(e,t){var r=e.type.contextTypes;if(!r)return Gt;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var o={},u;for(u in r)o[u]=t[u];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function ws(){ve(Ze),ve(He)}function Jo(e,t,r){if(He.current!==Gt)throw Error(i(168));pe(He,t),pe(Ze,r)}function ec(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return r;l=l.getChildContext();for(var o in l)if(!(o in t))throw Error(i(108,xe(e)||"Unknown",o));return H({},r,l)}function Ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,hn=He.current,pe(He,e),pe(Ze,Ze.current),!0}function tc(e,t,r){var l=e.stateNode;if(!l)throw Error(i(169));r?(e=ec(e,t,hn),l.__reactInternalMemoizedMergedChildContext=e,ve(Ze),ve(He),pe(He,e)):ve(Ze),pe(Ze,r)}var Tt=null,bs=!1,aa=!1;function nc(e){Tt===null?Tt=[e]:Tt.push(e)}function rm(e){bs=!0,nc(e)}function Kt(){if(!aa&&Tt!==null){aa=!0;var e=0,t=ue;try{var r=Tt;for(ue=1;e<r.length;e++){var l=r[e];do l=l(!0);while(l!==null)}Tt=null,bs=!1}catch(o){throw Tt!==null&&(Tt=Tt.slice(e+1)),ro(Pl,Kt),o}finally{ue=t,aa=!1}}return null}var An=[],$n=0,ks=null,Ss=0,ot=[],ct=0,fn=null,_t=1,Rt="";function xn(e,t){An[$n++]=Ss,An[$n++]=ks,ks=e,Ss=t}function rc(e,t,r){ot[ct++]=_t,ot[ct++]=Rt,ot[ct++]=fn,fn=e;var l=_t;e=Rt;var o=32-xt(l)-1;l&=~(1<<o),r+=1;var u=32-xt(t)+o;if(30<u){var h=o-o%5;u=(l&(1<<h)-1).toString(32),l>>=h,o-=h,_t=1<<32-xt(t)+o|r<<o|l,Rt=u+e}else _t=1<<u|r<<o|l,Rt=e}function ia(e){e.return!==null&&(xn(e,1),rc(e,1,0))}function oa(e){for(;e===ks;)ks=An[--$n],An[$n]=null,Ss=An[--$n],An[$n]=null;for(;e===fn;)fn=ot[--ct],ot[ct]=null,Rt=ot[--ct],ot[ct]=null,_t=ot[--ct],ot[ct]=null}var st=null,lt=null,we=!1,gt=null;function sc(e,t){var r=ht(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function lc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,lt=Qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=fn!==null?{id:_t,overflow:Rt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ht(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,st=e,lt=null,!0):!1;default:return!1}}function ca(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ua(e){if(we){var t=lt;if(t){var r=t;if(!lc(e,t)){if(ca(e))throw Error(i(418));t=Qt(r.nextSibling);var l=st;t&&lc(e,t)?sc(l,r):(e.flags=e.flags&-4097|2,we=!1,st=e)}}else{if(ca(e))throw Error(i(418));e.flags=e.flags&-4097|2,we=!1,st=e}}}function ac(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function Cs(e){if(e!==st)return!1;if(!we)return ac(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ta(e.type,e.memoizedProps)),t&&(t=lt)){if(ca(e))throw ic(),Error(i(418));for(;t;)sc(e,t),t=Qt(t.nextSibling)}if(ac(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){lt=Qt(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=st?Qt(e.stateNode.nextSibling):null;return!0}function ic(){for(var e=lt;e;)e=Qt(e.nextSibling)}function Un(){lt=st=null,we=!1}function da(e){gt===null?gt=[e]:gt.push(e)}var sm=G.ReactCurrentBatchConfig;function Cr(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(i(309));var l=r.stateNode}if(!l)throw Error(i(147,e));var o=l,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var p=o.refs;h===null?delete p[u]:p[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function Es(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function oc(e){var t=e._init;return t(e._payload)}function cc(e){function t(w,y){if(e){var N=w.deletions;N===null?(w.deletions=[y],w.flags|=16):N.push(y)}}function r(w,y){if(!e)return null;for(;y!==null;)t(w,y),y=y.sibling;return null}function l(w,y){for(w=new Map;y!==null;)y.key!==null?w.set(y.key,y):w.set(y.index,y),y=y.sibling;return w}function o(w,y){return w=rn(w,y),w.index=0,w.sibling=null,w}function u(w,y,N){return w.index=N,e?(N=w.alternate,N!==null?(N=N.index,N<y?(w.flags|=2,y):N):(w.flags|=2,y)):(w.flags|=1048576,y)}function h(w){return e&&w.alternate===null&&(w.flags|=2),w}function p(w,y,N,O){return y===null||y.tag!==6?(y=ni(N,w.mode,O),y.return=w,y):(y=o(y,N),y.return=w,y)}function v(w,y,N,O){var Q=N.type;return Q===q?R(w,y,N.props.children,O,N.key):y!==null&&(y.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ce&&oc(Q)===y.type)?(O=o(y,N.props),O.ref=Cr(w,y,N),O.return=w,O):(O=Xs(N.type,N.key,N.props,null,w.mode,O),O.ref=Cr(w,y,N),O.return=w,O)}function k(w,y,N,O){return y===null||y.tag!==4||y.stateNode.containerInfo!==N.containerInfo||y.stateNode.implementation!==N.implementation?(y=ri(N,w.mode,O),y.return=w,y):(y=o(y,N.children||[]),y.return=w,y)}function R(w,y,N,O,Q){return y===null||y.tag!==7?(y=bn(N,w.mode,O,Q),y.return=w,y):(y=o(y,N),y.return=w,y)}function I(w,y,N){if(typeof y=="string"&&y!==""||typeof y=="number")return y=ni(""+y,w.mode,N),y.return=w,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case oe:return N=Xs(y.type,y.key,y.props,null,w.mode,N),N.ref=Cr(w,null,y),N.return=w,N;case me:return y=ri(y,w.mode,N),y.return=w,y;case Ce:var O=y._init;return I(w,O(y._payload),N)}if(tr(y)||K(y))return y=bn(y,w.mode,N,null),y.return=w,y;Es(w,y)}return null}function L(w,y,N,O){var Q=y!==null?y.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return Q!==null?null:p(w,y,""+N,O);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case oe:return N.key===Q?v(w,y,N,O):null;case me:return N.key===Q?k(w,y,N,O):null;case Ce:return Q=N._init,L(w,y,Q(N._payload),O)}if(tr(N)||K(N))return Q!==null?null:R(w,y,N,O,null);Es(w,N)}return null}function B(w,y,N,O,Q){if(typeof O=="string"&&O!==""||typeof O=="number")return w=w.get(N)||null,p(y,w,""+O,Q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case oe:return w=w.get(O.key===null?N:O.key)||null,v(y,w,O,Q);case me:return w=w.get(O.key===null?N:O.key)||null,k(y,w,O,Q);case Ce:var Z=O._init;return B(w,y,N,Z(O._payload),Q)}if(tr(O)||K(O))return w=w.get(N)||null,R(y,w,O,Q,null);Es(y,O)}return null}function V(w,y,N,O){for(var Q=null,Z=null,X=y,J=y=0,De=null;X!==null&&J<N.length;J++){X.index>J?(De=X,X=null):De=X.sibling;var ie=L(w,X,N[J],O);if(ie===null){X===null&&(X=De);break}e&&X&&ie.alternate===null&&t(w,X),y=u(ie,y,J),Z===null?Q=ie:Z.sibling=ie,Z=ie,X=De}if(J===N.length)return r(w,X),we&&xn(w,J),Q;if(X===null){for(;J<N.length;J++)X=I(w,N[J],O),X!==null&&(y=u(X,y,J),Z===null?Q=X:Z.sibling=X,Z=X);return we&&xn(w,J),Q}for(X=l(w,X);J<N.length;J++)De=B(X,w,J,N[J],O),De!==null&&(e&&De.alternate!==null&&X.delete(De.key===null?J:De.key),y=u(De,y,J),Z===null?Q=De:Z.sibling=De,Z=De);return e&&X.forEach(function(sn){return t(w,sn)}),we&&xn(w,J),Q}function W(w,y,N,O){var Q=K(N);if(typeof Q!="function")throw Error(i(150));if(N=Q.call(N),N==null)throw Error(i(151));for(var Z=Q=null,X=y,J=y=0,De=null,ie=N.next();X!==null&&!ie.done;J++,ie=N.next()){X.index>J?(De=X,X=null):De=X.sibling;var sn=L(w,X,ie.value,O);if(sn===null){X===null&&(X=De);break}e&&X&&sn.alternate===null&&t(w,X),y=u(sn,y,J),Z===null?Q=sn:Z.sibling=sn,Z=sn,X=De}if(ie.done)return r(w,X),we&&xn(w,J),Q;if(X===null){for(;!ie.done;J++,ie=N.next())ie=I(w,ie.value,O),ie!==null&&(y=u(ie,y,J),Z===null?Q=ie:Z.sibling=ie,Z=ie);return we&&xn(w,J),Q}for(X=l(w,X);!ie.done;J++,ie=N.next())ie=B(X,w,J,ie.value,O),ie!==null&&(e&&ie.alternate!==null&&X.delete(ie.key===null?J:ie.key),y=u(ie,y,J),Z===null?Q=ie:Z.sibling=ie,Z=ie);return e&&X.forEach(function(Dm){return t(w,Dm)}),we&&xn(w,J),Q}function Pe(w,y,N,O){if(typeof N=="object"&&N!==null&&N.type===q&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case oe:e:{for(var Q=N.key,Z=y;Z!==null;){if(Z.key===Q){if(Q=N.type,Q===q){if(Z.tag===7){r(w,Z.sibling),y=o(Z,N.props.children),y.return=w,w=y;break e}}else if(Z.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ce&&oc(Q)===Z.type){r(w,Z.sibling),y=o(Z,N.props),y.ref=Cr(w,Z,N),y.return=w,w=y;break e}r(w,Z);break}else t(w,Z);Z=Z.sibling}N.type===q?(y=bn(N.props.children,w.mode,O,N.key),y.return=w,w=y):(O=Xs(N.type,N.key,N.props,null,w.mode,O),O.ref=Cr(w,y,N),O.return=w,w=O)}return h(w);case me:e:{for(Z=N.key;y!==null;){if(y.key===Z)if(y.tag===4&&y.stateNode.containerInfo===N.containerInfo&&y.stateNode.implementation===N.implementation){r(w,y.sibling),y=o(y,N.children||[]),y.return=w,w=y;break e}else{r(w,y);break}else t(w,y);y=y.sibling}y=ri(N,w.mode,O),y.return=w,w=y}return h(w);case Ce:return Z=N._init,Pe(w,y,Z(N._payload),O)}if(tr(N))return V(w,y,N,O);if(K(N))return W(w,y,N,O);Es(w,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,y!==null&&y.tag===6?(r(w,y.sibling),y=o(y,N),y.return=w,w=y):(r(w,y),y=ni(N,w.mode,O),y.return=w,w=y),h(w)):r(w,y)}return Pe}var Hn=cc(!0),uc=cc(!1),Ps=Yt(null),Ls=null,Vn=null,ma=null;function ha(){ma=Vn=Ls=null}function fa(e){var t=Ps.current;ve(Ps),e._currentValue=t}function xa(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function Wn(e,t){Ls=e,ma=Vn=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(ma!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(Ls===null)throw Error(i(308));Vn=e,Ls.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var pn=null;function pa(e){pn===null?pn=[e]:pn.push(e)}function dc(e,t,r,l){var o=t.interleaved;return o===null?(r.next=r,pa(t)):(r.next=o.next,o.next=r),t.interleaved=r,It(e,l)}function It(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zt=!1;function ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mc(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 Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(se&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,It(e,r)}return o=l.interleaved,o===null?(t.next=t,pa(l)):(t.next=o.next,o.next=t),l.interleaved=t,It(e,r)}function Ms(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Tl(e,r)}}function hc(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,u=null;if(r=r.firstBaseUpdate,r!==null){do{var h={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};u===null?o=u=h:u=u.next=h,r=r.next}while(r!==null);u===null?o=u=t:u=u.next=t}else o=u=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,effects:l.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ts(e,t,r,l){var o=e.updateQueue;Zt=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var v=p,k=v.next;v.next=null,h===null?u=k:h.next=k,h=v;var R=e.alternate;R!==null&&(R=R.updateQueue,p=R.lastBaseUpdate,p!==h&&(p===null?R.firstBaseUpdate=k:p.next=k,R.lastBaseUpdate=v))}if(u!==null){var I=o.baseState;h=0,R=k=v=null,p=u;do{var L=p.lane,B=p.eventTime;if((l&L)===L){R!==null&&(R=R.next={eventTime:B,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var V=e,W=p;switch(L=t,B=r,W.tag){case 1:if(V=W.payload,typeof V=="function"){I=V.call(B,I,L);break e}I=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=W.payload,L=typeof V=="function"?V.call(B,I,L):V,L==null)break e;I=H({},I,L);break e;case 2:Zt=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,L=o.effects,L===null?o.effects=[p]:L.push(p))}else B={eventTime:B,lane:L,tag:p.tag,payload:p.payload,callback:p.callback,next:null},R===null?(k=R=B,v=I):R=R.next=B,h|=L;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;L=p,p=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);if(R===null&&(v=I),o.baseState=v,o.firstBaseUpdate=k,o.lastBaseUpdate=R,t=o.shared.interleaved,t!==null){o=t;do h|=o.lane,o=o.next;while(o!==t)}else u===null&&(o.shared.lanes=0);yn|=h,e.lanes=h,e.memoizedState=I}}function fc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],o=l.callback;if(o!==null){if(l.callback=null,l=r,typeof o!="function")throw Error(i(191,o));o.call(l)}}}var Er={},kt=Yt(Er),Pr=Yt(Er),Lr=Yt(Er);function gn(e){if(e===Er)throw Error(i(174));return e}function va(e,t){switch(pe(Lr,t),pe(Pr,e),pe(kt,Er),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yl(t,e)}ve(kt),pe(kt,t)}function Qn(){ve(kt),ve(Pr),ve(Lr)}function xc(e){gn(Lr.current);var t=gn(kt.current),r=yl(t,e.type);t!==r&&(pe(Pr,e),pe(kt,r))}function ya(e){Pr.current===e&&(ve(kt),ve(Pr))}var Ne=Yt(0);function _s(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 ja=[];function wa(){for(var e=0;e<ja.length;e++)ja[e]._workInProgressVersionPrimary=null;ja.length=0}var Rs=G.ReactCurrentDispatcher,Na=G.ReactCurrentBatchConfig,vn=0,be=null,Re=null,Oe=null,Is=!1,Mr=!1,Tr=0,lm=0;function Ve(){throw Error(i(321))}function ba(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!pt(e[r],t[r]))return!1;return!0}function ka(e,t,r,l,o,u){if(vn=u,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rs.current=e===null||e.memoizedState===null?cm:um,e=r(l,o),Mr){u=0;do{if(Mr=!1,Tr=0,25<=u)throw Error(i(301));u+=1,Oe=Re=null,t.updateQueue=null,Rs.current=dm,e=r(l,o)}while(Mr)}if(Rs.current=Ds,t=Re!==null&&Re.next!==null,vn=0,Oe=Re=be=null,Is=!1,t)throw Error(i(300));return e}function Sa(){var e=Tr!==0;return Tr=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?be.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function dt(){if(Re===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Oe===null?be.memoizedState:Oe.next;if(t!==null)Oe=t,Re=e;else{if(e===null)throw Error(i(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Oe===null?be.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function _r(e,t){return typeof t=="function"?t(e):t}function Ca(e){var t=dt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var l=Re,o=l.baseQueue,u=r.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}l.baseQueue=o=u,r.pending=null}if(o!==null){u=o.next,l=l.baseState;var p=h=null,v=null,k=u;do{var R=k.lane;if((vn&R)===R)v!==null&&(v=v.next={lane:0,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),l=k.hasEagerState?k.eagerState:e(l,k.action);else{var I={lane:R,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null};v===null?(p=v=I,h=l):v=v.next=I,be.lanes|=R,yn|=R}k=k.next}while(k!==null&&k!==u);v===null?h=l:v.next=p,pt(l,t.memoizedState)||(qe=!0),t.memoizedState=l,t.baseState=h,t.baseQueue=v,r.lastRenderedState=l}if(e=r.interleaved,e!==null){o=e;do u=o.lane,be.lanes|=u,yn|=u,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ea(e){var t=dt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,u=t.memoizedState;if(o!==null){r.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);pt(u,t.memoizedState)||(qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),r.lastRenderedState=u}return[u,l]}function pc(){}function gc(e,t){var r=be,l=dt(),o=t(),u=!pt(l.memoizedState,o);if(u&&(l.memoizedState=o,qe=!0),l=l.queue,Pa(jc.bind(null,r,l,e),[e]),l.getSnapshot!==t||u||Oe!==null&&Oe.memoizedState.tag&1){if(r.flags|=2048,Rr(9,yc.bind(null,r,l,o,t),void 0,null),ze===null)throw Error(i(349));(vn&30)!==0||vc(r,t,o)}return o}function vc(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function yc(e,t,r,l){t.value=r,t.getSnapshot=l,wc(t)&&Nc(e)}function jc(e,t,r){return r(function(){wc(t)&&Nc(e)})}function wc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!pt(e,r)}catch{return!0}}function Nc(e){var t=It(e,1);t!==null&&wt(t,e,1,-1)}function bc(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:e},t.queue=e,e=e.dispatch=om.bind(null,be,e),[t.memoizedState,e]}function Rr(e,t,r,l){return e={tag:e,create:t,destroy:r,deps:l,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e)),e}function kc(){return dt().memoizedState}function Os(e,t,r,l){var o=St();be.flags|=e,o.memoizedState=Rr(1|t,r,void 0,l===void 0?null:l)}function zs(e,t,r,l){var o=dt();l=l===void 0?null:l;var u=void 0;if(Re!==null){var h=Re.memoizedState;if(u=h.destroy,l!==null&&ba(l,h.deps)){o.memoizedState=Rr(t,r,u,l);return}}be.flags|=e,o.memoizedState=Rr(1|t,r,u,l)}function Sc(e,t){return Os(8390656,8,e,t)}function Pa(e,t){return zs(2048,8,e,t)}function Cc(e,t){return zs(4,2,e,t)}function Ec(e,t){return zs(4,4,e,t)}function Pc(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 Lc(e,t,r){return r=r!=null?r.concat([e]):null,zs(4,4,Pc.bind(null,t,e),r)}function La(){}function Mc(e,t){var r=dt();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&ba(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function Tc(e,t){var r=dt();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&ba(t,l[1])?l[0]:(e=e(),r.memoizedState=[e,t],e)}function _c(e,t,r){return(vn&21)===0?(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=r):(pt(r,t)||(r=io(),be.lanes|=r,yn|=r,e.baseState=!0),t)}function am(e,t){var r=ue;ue=r!==0&&4>r?r:4,e(!0);var l=Na.transition;Na.transition={};try{e(!1),t()}finally{ue=r,Na.transition=l}}function Rc(){return dt().memoizedState}function im(e,t,r){var l=tn(e);if(r={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null},Ic(e))Oc(t,r);else if(r=dc(e,t,r,l),r!==null){var o=Ke();wt(r,e,l,o),zc(r,t,l)}}function om(e,t,r){var l=tn(e),o={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ic(e))Oc(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,p=u(h,r);if(o.hasEagerState=!0,o.eagerState=p,pt(p,h)){var v=t.interleaved;v===null?(o.next=o,pa(t)):(o.next=v.next,v.next=o),t.interleaved=o;return}}catch{}r=dc(e,t,o,l),r!==null&&(o=Ke(),wt(r,e,l,o),zc(r,t,l))}}function Ic(e){var t=e.alternate;return e===be||t!==null&&t===be}function Oc(e,t){Mr=Is=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function zc(e,t,r){if((r&4194240)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Tl(e,r)}}var Ds={readContext:ut,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},cm={readContext:ut,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Sc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Os(4194308,4,Pc.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){return Os(4,2,e,t)},useMemo:function(e,t){var r=St();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var l=St();return t=r!==void 0?r(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=im.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:bc,useDebugValue:La,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=bc(!1),t=e[0];return e=am.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var l=be,o=St();if(we){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),ze===null)throw Error(i(349));(vn&30)!==0||vc(l,t,r)}o.memoizedState=r;var u={value:r,getSnapshot:t};return o.queue=u,Sc(jc.bind(null,l,u,e),[e]),l.flags|=2048,Rr(9,yc.bind(null,l,u,r,t),void 0,null),r},useId:function(){var e=St(),t=ze.identifierPrefix;if(we){var r=Rt,l=_t;r=(l&~(1<<32-xt(l)-1)).toString(32)+r,t=":"+t+"R"+r,r=Tr++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=lm++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},um={readContext:ut,useCallback:Mc,useContext:ut,useEffect:Pa,useImperativeHandle:Lc,useInsertionEffect:Cc,useLayoutEffect:Ec,useMemo:Tc,useReducer:Ca,useRef:kc,useState:function(){return Ca(_r)},useDebugValue:La,useDeferredValue:function(e){var t=dt();return _c(t,Re.memoizedState,e)},useTransition:function(){var e=Ca(_r)[0],t=dt().memoizedState;return[e,t]},useMutableSource:pc,useSyncExternalStore:gc,useId:Rc,unstable_isNewReconciler:!1},dm={readContext:ut,useCallback:Mc,useContext:ut,useEffect:Pa,useImperativeHandle:Lc,useInsertionEffect:Cc,useLayoutEffect:Ec,useMemo:Tc,useReducer:Ea,useRef:kc,useState:function(){return Ea(_r)},useDebugValue:La,useDeferredValue:function(e){var t=dt();return Re===null?t.memoizedState=e:_c(t,Re.memoizedState,e)},useTransition:function(){var e=Ea(_r)[0],t=dt().memoizedState;return[e,t]},useMutableSource:pc,useSyncExternalStore:gc,useId:Rc,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Ma(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:H({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Fs={isMounted:function(e){return(e=e._reactInternals)?dn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var l=Ke(),o=tn(e),u=Ot(l,o);u.payload=t,r!=null&&(u.callback=r),t=Xt(e,u,o),t!==null&&(wt(t,e,o,l),Ms(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=Ke(),o=tn(e),u=Ot(l,o);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=Xt(e,u,o),t!==null&&(wt(t,e,o,l),Ms(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ke(),l=tn(e),o=Ot(r,l);o.tag=2,t!=null&&(o.callback=t),t=Xt(e,o,l),t!==null&&(wt(t,e,l,r),Ms(t,e,l))}};function Dc(e,t,r,l,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,h):t.prototype&&t.prototype.isPureReactComponent?!yr(r,l)||!yr(o,u):!0}function Fc(e,t,r){var l=!1,o=Gt,u=t.contextType;return typeof u=="object"&&u!==null?u=ut(u):(o=Xe(t)?hn:He.current,l=t.contextTypes,u=(l=l!=null)?Bn(e,o):Gt),t=new t(r,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fs,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function Bc(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&Fs.enqueueReplaceState(t,t.state,null)}function Ta(e,t,r,l){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},ga(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=ut(u):(u=Xe(t)?hn:He.current,o.context=Bn(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Ma(e,t,u,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Fs.enqueueReplaceState(o,o.state,null),Ts(e,r,o,l),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Yn(e,t){try{var r="",l=t;do r+=le(l),l=l.return;while(l);var o=r}catch(u){o=`
|
|
7
|
+
Error generating stack: `+u.message+`
|
|
8
|
+
`+u.stack}return{value:e,source:t,stack:o,digest:null}}function _a(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ra(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var mm=typeof WeakMap=="function"?WeakMap:Map;function Ac(e,t,r){r=Ot(-1,r),r.tag=3,r.payload={element:null};var l=t.value;return r.callback=function(){Ws||(Ws=!0,Ga=l),Ra(e,t)},r}function $c(e,t,r){r=Ot(-1,r),r.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var o=t.value;r.payload=function(){return l(o)},r.callback=function(){Ra(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(r.callback=function(){Ra(e,t),typeof l!="function"&&(Jt===null?Jt=new Set([this]):Jt.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),r}function Uc(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new mm;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(o.add(r),e=Cm.bind(null,e,t,r),t.then(e,e))}function Hc(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 Vc(e,t,r,l,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ot(-1,1),t.tag=2,Xt(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var hm=G.ReactCurrentOwner,qe=!1;function Ge(e,t,r,l){t.child=e===null?uc(t,null,r,l):Hn(t,e.child,r,l)}function Wc(e,t,r,l,o){r=r.render;var u=t.ref;return Wn(t,o),l=ka(e,t,r,l,u,o),r=Sa(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zt(e,t,o)):(we&&r&&ia(t),t.flags|=1,Ge(e,t,l,o),t.child)}function Qc(e,t,r,l,o){if(e===null){var u=r.type;return typeof u=="function"&&!ti(u)&&u.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=u,Yc(e,t,u,l,o)):(e=Xs(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&o)===0){var h=u.memoizedProps;if(r=r.compare,r=r!==null?r:yr,r(h,l)&&e.ref===t.ref)return zt(e,t,o)}return t.flags|=1,e=rn(u,l),e.ref=t.ref,e.return=t,t.child=e}function Yc(e,t,r,l,o){if(e!==null){var u=e.memoizedProps;if(yr(u,l)&&e.ref===t.ref)if(qe=!1,t.pendingProps=l=u,(e.lanes&o)!==0)(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,zt(e,t,o)}return Ia(e,t,r,l,o)}function Gc(e,t,r){var l=t.pendingProps,o=l.children,u=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(Kn,at),at|=r;else{if((r&1073741824)===0)return e=u!==null?u.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(Kn,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=u!==null?u.baseLanes:r,pe(Kn,at),at|=l}else u!==null?(l=u.baseLanes|r,t.memoizedState=null):l=r,pe(Kn,at),at|=l;return Ge(e,t,o,r),t.child}function Kc(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ia(e,t,r,l,o){var u=Xe(r)?hn:He.current;return u=Bn(t,u),Wn(t,o),r=ka(e,t,r,l,u,o),l=Sa(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zt(e,t,o)):(we&&l&&ia(t),t.flags|=1,Ge(e,t,r,o),t.child)}function Zc(e,t,r,l,o){if(Xe(r)){var u=!0;Ns(t)}else u=!1;if(Wn(t,o),t.stateNode===null)As(e,t),Fc(t,r,l),Ta(t,r,l,o),l=!0;else if(e===null){var h=t.stateNode,p=t.memoizedProps;h.props=p;var v=h.context,k=r.contextType;typeof k=="object"&&k!==null?k=ut(k):(k=Xe(r)?hn:He.current,k=Bn(t,k));var R=r.getDerivedStateFromProps,I=typeof R=="function"||typeof h.getSnapshotBeforeUpdate=="function";I||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(p!==l||v!==k)&&Bc(t,h,l,k),Zt=!1;var L=t.memoizedState;h.state=L,Ts(t,l,h,o),v=t.memoizedState,p!==l||L!==v||Ze.current||Zt?(typeof R=="function"&&(Ma(t,r,R,l),v=t.memoizedState),(p=Zt||Dc(t,r,p,l,L,v,k))?(I||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=v),h.props=l,h.state=v,h.context=k,l=p):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{h=t.stateNode,mc(e,t),p=t.memoizedProps,k=t.type===t.elementType?p:vt(t.type,p),h.props=k,I=t.pendingProps,L=h.context,v=r.contextType,typeof v=="object"&&v!==null?v=ut(v):(v=Xe(r)?hn:He.current,v=Bn(t,v));var B=r.getDerivedStateFromProps;(R=typeof B=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(p!==I||L!==v)&&Bc(t,h,l,v),Zt=!1,L=t.memoizedState,h.state=L,Ts(t,l,h,o);var V=t.memoizedState;p!==I||L!==V||Ze.current||Zt?(typeof B=="function"&&(Ma(t,r,B,l),V=t.memoizedState),(k=Zt||Dc(t,r,k,l,L,V,v)||!1)?(R||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,V,v),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,V,v)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=V),h.props=l,h.state=V,h.context=v,l=k):(typeof h.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return Oa(e,t,r,l,u,o)}function Oa(e,t,r,l,o,u){Kc(e,t);var h=(t.flags&128)!==0;if(!l&&!h)return o&&tc(t,r,!1),zt(e,t,u);l=t.stateNode,hm.current=t;var p=h&&typeof r.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&h?(t.child=Hn(t,e.child,null,u),t.child=Hn(t,null,p,u)):Ge(e,t,p,u),t.memoizedState=l.state,o&&tc(t,r,!0),t.child}function Xc(e){var t=e.stateNode;t.pendingContext?Jo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jo(e,t.context,!1),va(e,t.containerInfo)}function qc(e,t,r,l,o){return Un(),da(o),t.flags|=256,Ge(e,t,r,l),t.child}var za={dehydrated:null,treeContext:null,retryLane:0};function Da(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jc(e,t,r){var l=t.pendingProps,o=Ne.current,u=!1,h=(t.flags&128)!==0,p;if((p=h)||(p=e!==null&&e.memoizedState===null?!1:(o&2)!==0),p?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),pe(Ne,o&1),e===null)return ua(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):(h=l.children,e=l.fallback,u?(l=t.mode,u=t.child,h={mode:"hidden",children:h},(l&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=h):u=qs(h,l,0,null),e=bn(e,l,r,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Da(r),t.memoizedState=za,e):Fa(t,h));if(o=e.memoizedState,o!==null&&(p=o.dehydrated,p!==null))return fm(e,t,h,l,p,o,r);if(u){u=l.fallback,h=t.mode,o=e.child,p=o.sibling;var v={mode:"hidden",children:l.children};return(h&1)===0&&t.child!==o?(l=t.child,l.childLanes=0,l.pendingProps=v,t.deletions=null):(l=rn(o,v),l.subtreeFlags=o.subtreeFlags&14680064),p!==null?u=rn(p,u):(u=bn(u,h,r,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,h=e.child.memoizedState,h=h===null?Da(r):{baseLanes:h.baseLanes|r,cachePool:null,transitions:h.transitions},u.memoizedState=h,u.childLanes=e.childLanes&~r,t.memoizedState=za,l}return u=e.child,e=u.sibling,l=rn(u,{mode:"visible",children:l.children}),(t.mode&1)===0&&(l.lanes=r),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Fa(e,t){return t=qs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bs(e,t,r,l){return l!==null&&da(l),Hn(t,e.child,null,r),e=Fa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fm(e,t,r,l,o,u,h){if(r)return t.flags&256?(t.flags&=-257,l=_a(Error(i(422))),Bs(e,t,h,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=l.fallback,o=t.mode,l=qs({mode:"visible",children:l.children},o,0,null),u=bn(u,o,h,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&1)!==0&&Hn(t,e.child,null,h),t.child.memoizedState=Da(h),t.memoizedState=za,u);if((t.mode&1)===0)return Bs(e,t,h,null);if(o.data==="$!"){if(l=o.nextSibling&&o.nextSibling.dataset,l)var p=l.dgst;return l=p,u=Error(i(419)),l=_a(u,l,void 0),Bs(e,t,h,l)}if(p=(h&e.childLanes)!==0,qe||p){if(l=ze,l!==null){switch(h&-h){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(l.suspendedLanes|h))!==0?0:o,o!==0&&o!==u.retryLane&&(u.retryLane=o,It(e,o),wt(l,e,o,-1))}return ei(),l=_a(Error(i(421))),Bs(e,t,h,l)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Em.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,lt=Qt(o.nextSibling),st=t,we=!0,gt=null,e!==null&&(ot[ct++]=_t,ot[ct++]=Rt,ot[ct++]=fn,_t=e.id,Rt=e.overflow,fn=t),t=Fa(t,l.children),t.flags|=4096,t)}function eu(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),xa(e.return,t,r)}function Ba(e,t,r,l,o){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=r,u.tailMode=o)}function tu(e,t,r){var l=t.pendingProps,o=l.revealOrder,u=l.tail;if(Ge(e,t,l.children,r),l=Ne.current,(l&2)!==0)l=l&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&&eu(e,r,t);else if(e.tag===19)eu(e,r,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}l&=1}if(pe(Ne,l),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&_s(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Ba(t,!1,o,r,u);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_s(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Ba(t,!0,r,null,u);break;case"together":Ba(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function As(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zt(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=rn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=rn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function xm(e,t,r){switch(t.tag){case 3:Xc(t),Un();break;case 5:xc(t);break;case 1:Xe(t.type)&&Ns(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,o=t.memoizedProps.value;pe(Ps,l._currentValue),l._currentValue=o;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(pe(Ne,Ne.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Jc(e,t,r):(pe(Ne,Ne.current&1),e=zt(e,t,r),e!==null?e.sibling:null);pe(Ne,Ne.current&1);break;case 19:if(l=(r&t.childLanes)!==0,(e.flags&128)!==0){if(l)return tu(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),pe(Ne,Ne.current),l)break;return null;case 22:case 23:return t.lanes=0,Gc(e,t,r)}return zt(e,t,r)}var nu,Aa,ru,su;nu=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Aa=function(){},ru=function(e,t,r,l){var o=e.memoizedProps;if(o!==l){e=t.stateNode,gn(kt.current);var u=null;switch(r){case"input":o=xl(e,o),l=xl(e,l),u=[];break;case"select":o=H({},o,{value:void 0}),l=H({},l,{value:void 0}),u=[];break;case"textarea":o=vl(e,o),l=vl(e,l),u=[];break;default:typeof o.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=ys)}jl(r,l);var h;r=null;for(k in o)if(!l.hasOwnProperty(k)&&o.hasOwnProperty(k)&&o[k]!=null)if(k==="style"){var p=o[k];for(h in p)p.hasOwnProperty(h)&&(r||(r={}),r[h]="")}else k!=="dangerouslySetInnerHTML"&&k!=="children"&&k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&k!=="autoFocus"&&(d.hasOwnProperty(k)?u||(u=[]):(u=u||[]).push(k,null));for(k in l){var v=l[k];if(p=o?.[k],l.hasOwnProperty(k)&&v!==p&&(v!=null||p!=null))if(k==="style")if(p){for(h in p)!p.hasOwnProperty(h)||v&&v.hasOwnProperty(h)||(r||(r={}),r[h]="");for(h in v)v.hasOwnProperty(h)&&p[h]!==v[h]&&(r||(r={}),r[h]=v[h])}else r||(u||(u=[]),u.push(k,r)),r=v;else k==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,p=p?p.__html:void 0,v!=null&&p!==v&&(u=u||[]).push(k,v)):k==="children"?typeof v!="string"&&typeof v!="number"||(u=u||[]).push(k,""+v):k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&(d.hasOwnProperty(k)?(v!=null&&k==="onScroll"&&ge("scroll",e),u||p===v||(u=[])):(u=u||[]).push(k,v))}r&&(u=u||[]).push("style",r);var k=u;(t.updateQueue=k)&&(t.flags|=4)}},su=function(e,t,r,l){r!==l&&(t.flags|=4)};function Ir(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&14680064,l|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function pm(e,t,r){var l=t.pendingProps;switch(oa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return Xe(t.type)&&ws(),We(t),null;case 3:return l=t.stateNode,Qn(),ve(Ze),ve(He),wa(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Cs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gt!==null&&(Xa(gt),gt=null))),Aa(e,t),We(t),null;case 5:ya(t);var o=gn(Lr.current);if(r=t.type,e!==null&&t.stateNode!=null)ru(e,t,r,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(i(166));return We(t),null}if(e=gn(kt.current),Cs(t)){l=t.stateNode,r=t.type;var u=t.memoizedProps;switch(l[bt]=t,l[kr]=u,e=(t.mode&1)!==0,r){case"dialog":ge("cancel",l),ge("close",l);break;case"iframe":case"object":case"embed":ge("load",l);break;case"video":case"audio":for(o=0;o<wr.length;o++)ge(wr[o],l);break;case"source":ge("error",l);break;case"img":case"image":case"link":ge("error",l),ge("load",l);break;case"details":ge("toggle",l);break;case"input":Di(l,u),ge("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!u.multiple},ge("invalid",l);break;case"textarea":Ai(l,u),ge("invalid",l)}jl(r,u),o=null;for(var h in u)if(u.hasOwnProperty(h)){var p=u[h];h==="children"?typeof p=="string"?l.textContent!==p&&(u.suppressHydrationWarning!==!0&&vs(l.textContent,p,e),o=["children",p]):typeof p=="number"&&l.textContent!==""+p&&(u.suppressHydrationWarning!==!0&&vs(l.textContent,p,e),o=["children",""+p]):d.hasOwnProperty(h)&&p!=null&&h==="onScroll"&&ge("scroll",l)}switch(r){case"input":Kr(l),Bi(l,u,!0);break;case"textarea":Kr(l),Ui(l);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(l.onclick=ys)}l=o,t.updateQueue=l,l!==null&&(t.flags|=4)}else{h=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Hi(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=h.createElement(r,{is:l.is}):(e=h.createElement(r),r==="select"&&(h=e,l.multiple?h.multiple=!0:l.size&&(h.size=l.size))):e=h.createElementNS(e,r),e[bt]=t,e[kr]=l,nu(e,t,!1,!1),t.stateNode=e;e:{switch(h=wl(r,l),r){case"dialog":ge("cancel",e),ge("close",e),o=l;break;case"iframe":case"object":case"embed":ge("load",e),o=l;break;case"video":case"audio":for(o=0;o<wr.length;o++)ge(wr[o],e);o=l;break;case"source":ge("error",e),o=l;break;case"img":case"image":case"link":ge("error",e),ge("load",e),o=l;break;case"details":ge("toggle",e),o=l;break;case"input":Di(e,l),o=xl(e,l),ge("invalid",e);break;case"option":o=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},o=H({},l,{value:void 0}),ge("invalid",e);break;case"textarea":Ai(e,l),o=vl(e,l),ge("invalid",e);break;default:o=l}jl(r,o),p=o;for(u in p)if(p.hasOwnProperty(u)){var v=p[u];u==="style"?Qi(e,v):u==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,v!=null&&Vi(e,v)):u==="children"?typeof v=="string"?(r!=="textarea"||v!=="")&&nr(e,v):typeof v=="number"&&nr(e,""+v):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(d.hasOwnProperty(u)?v!=null&&u==="onScroll"&&ge("scroll",e):v!=null&&z(e,u,v,h))}switch(r){case"input":Kr(e),Bi(e,l,!1);break;case"textarea":Kr(e),Ui(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ce(l.value));break;case"select":e.multiple=!!l.multiple,u=l.value,u!=null?En(e,!!l.multiple,u,!1):l.defaultValue!=null&&En(e,!!l.multiple,l.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ys)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)su(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(r=gn(Lr.current),gn(kt.current),Cs(t)){if(l=t.stateNode,r=t.memoizedProps,l[bt]=t,(u=l.nodeValue!==r)&&(e=st,e!==null))switch(e.tag){case 3:vs(l.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vs(l.nodeValue,r,(e.mode&1)!==0)}u&&(t.flags|=4)}else l=(r.nodeType===9?r:r.ownerDocument).createTextNode(l),l[bt]=t,t.stateNode=l}return We(t),null;case 13:if(ve(Ne),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&<!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ic(),Un(),t.flags|=98560,u=!1;else if(u=Cs(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[bt]=t}else Un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),u=!1}else gt!==null&&(Xa(gt),gt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ne.current&1)!==0?Ie===0&&(Ie=3):ei())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Qn(),Aa(e,t),e===null&&Nr(t.stateNode.containerInfo),We(t),null;case 10:return fa(t.type._context),We(t),null;case 17:return Xe(t.type)&&ws(),We(t),null;case 19:if(ve(Ne),u=t.memoizedState,u===null)return We(t),null;if(l=(t.flags&128)!==0,h=u.rendering,h===null)if(l)Ir(u,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=_s(e),h!==null){for(t.flags|=128,Ir(u,!1),l=h.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;r!==null;)u=r,e=l,u.flags&=14680066,h=u.alternate,h===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=h.childLanes,u.lanes=h.lanes,u.child=h.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=h.memoizedProps,u.memoizedState=h.memoizedState,u.updateQueue=h.updateQueue,u.type=h.type,e=h.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return pe(Ne,Ne.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ee()>Zn&&(t.flags|=128,l=!0,Ir(u,!1),t.lanes=4194304)}else{if(!l)if(e=_s(h),e!==null){if(t.flags|=128,l=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ir(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!we)return We(t),null}else 2*Ee()-u.renderingStartTime>Zn&&r!==1073741824&&(t.flags|=128,l=!0,Ir(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(r=u.last,r!==null?r.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ee(),t.sibling=null,r=Ne.current,pe(Ne,l?r&1|2:r&1),t):(We(t),null);case 22:case 23:return Ja(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&(t.mode&1)!==0?(at&1073741824)!==0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function gm(e,t){switch(oa(t),t.tag){case 1:return Xe(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),ve(Ze),ve(He),wa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ya(t),null;case 13:if(ve(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Ne),null;case 4:return Qn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return Ja(),null;case 24:return null;default:return null}}var $s=!1,Qe=!1,vm=typeof WeakSet=="function"?WeakSet:Set,$=null;function Gn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(l){ke(e,t,l)}else r.current=null}function $a(e,t,r){try{r()}catch(l){ke(e,t,l)}}var lu=!1;function ym(e,t){if(Jl=is,e=Do(),Wl(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{r.nodeType,u.nodeType}catch{r=null;break e}var h=0,p=-1,v=-1,k=0,R=0,I=e,L=null;t:for(;;){for(var B;I!==r||o!==0&&I.nodeType!==3||(p=h+o),I!==u||l!==0&&I.nodeType!==3||(v=h+l),I.nodeType===3&&(h+=I.nodeValue.length),(B=I.firstChild)!==null;)L=I,I=B;for(;;){if(I===e)break t;if(L===r&&++k===o&&(p=h),L===u&&++R===l&&(v=h),(B=I.nextSibling)!==null)break;I=L,L=I.parentNode}I=B}r=p===-1||v===-1?null:{start:p,end:v}}else r=null}r=r||{start:0,end:0}}else r=null;for(ea={focusedElem:e,selectionRange:r},is=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var V=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(V!==null){var W=V.memoizedProps,Pe=V.memoizedState,w=t.stateNode,y=w.getSnapshotBeforeUpdate(t.elementType===t.type?W:vt(t.type,W),Pe);w.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(O){ke(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return V=lu,lu=!1,V}function Or(e,t,r){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var o=l=l.next;do{if((o.tag&e)===e){var u=o.destroy;o.destroy=void 0,u!==void 0&&$a(t,r,u)}o=o.next}while(o!==l)}}function Us(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var l=r.create;r.destroy=l()}r=r.next}while(r!==t)}}function Ua(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function au(e){var t=e.alternate;t!==null&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[kr],delete t[sa],delete t[tm],delete t[nm])),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 iu(e){return e.tag===5||e.tag===3||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iu(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 Ha(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ys));else if(l!==4&&(e=e.child,e!==null))for(Ha(e,t,r),e=e.sibling;e!==null;)Ha(e,t,r),e=e.sibling}function Va(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(Va(e,t,r),e=e.sibling;e!==null;)Va(e,t,r),e=e.sibling}var Ae=null,yt=!1;function qt(e,t,r){for(r=r.child;r!==null;)cu(e,t,r),r=r.sibling}function cu(e,t,r){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(ts,r)}catch{}switch(r.tag){case 5:Qe||Gn(r,t);case 6:var l=Ae,o=yt;Ae=null,qt(e,t,r),Ae=l,yt=o,Ae!==null&&(yt?(e=Ae,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ae.removeChild(r.stateNode));break;case 18:Ae!==null&&(yt?(e=Ae,r=r.stateNode,e.nodeType===8?ra(e.parentNode,r):e.nodeType===1&&ra(e,r),hr(e)):ra(Ae,r.stateNode));break;case 4:l=Ae,o=yt,Ae=r.stateNode.containerInfo,yt=!0,qt(e,t,r),Ae=l,yt=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(l=r.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){o=l=l.next;do{var u=o,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&$a(r,t,h),o=o.next}while(o!==l)}qt(e,t,r);break;case 1:if(!Qe&&(Gn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=r.memoizedProps,l.state=r.memoizedState,l.componentWillUnmount()}catch(p){ke(r,t,p)}qt(e,t,r);break;case 21:qt(e,t,r);break;case 22:r.mode&1?(Qe=(l=Qe)||r.memoizedState!==null,qt(e,t,r),Qe=l):qt(e,t,r);break;default:qt(e,t,r)}}function uu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new vm),t.forEach(function(l){var o=Pm.bind(null,e,l);r.has(l)||(r.add(l),l.then(o,o))})}}function jt(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];try{var u=e,h=t,p=h;e:for(;p!==null;){switch(p.tag){case 5:Ae=p.stateNode,yt=!1;break e;case 3:Ae=p.stateNode.containerInfo,yt=!0;break e;case 4:Ae=p.stateNode.containerInfo,yt=!0;break e}p=p.return}if(Ae===null)throw Error(i(160));cu(u,h,o),Ae=null,yt=!1;var v=o.alternate;v!==null&&(v.return=null),o.return=null}catch(k){ke(o,t,k)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)du(t,e),t=t.sibling}function du(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),Ct(e),l&4){try{Or(3,e,e.return),Us(3,e)}catch(W){ke(e,e.return,W)}try{Or(5,e,e.return)}catch(W){ke(e,e.return,W)}}break;case 1:jt(t,e),Ct(e),l&512&&r!==null&&Gn(r,r.return);break;case 5:if(jt(t,e),Ct(e),l&512&&r!==null&&Gn(r,r.return),e.flags&32){var o=e.stateNode;try{nr(o,"")}catch(W){ke(e,e.return,W)}}if(l&4&&(o=e.stateNode,o!=null)){var u=e.memoizedProps,h=r!==null?r.memoizedProps:u,p=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{p==="input"&&u.type==="radio"&&u.name!=null&&Fi(o,u),wl(p,h);var k=wl(p,u);for(h=0;h<v.length;h+=2){var R=v[h],I=v[h+1];R==="style"?Qi(o,I):R==="dangerouslySetInnerHTML"?Vi(o,I):R==="children"?nr(o,I):z(o,R,I,k)}switch(p){case"input":pl(o,u);break;case"textarea":$i(o,u);break;case"select":var L=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var B=u.value;B!=null?En(o,!!u.multiple,B,!1):L!==!!u.multiple&&(u.defaultValue!=null?En(o,!!u.multiple,u.defaultValue,!0):En(o,!!u.multiple,u.multiple?[]:"",!1))}o[kr]=u}catch(W){ke(e,e.return,W)}}break;case 6:if(jt(t,e),Ct(e),l&4){if(e.stateNode===null)throw Error(i(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(W){ke(e,e.return,W)}}break;case 3:if(jt(t,e),Ct(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{hr(t.containerInfo)}catch(W){ke(e,e.return,W)}break;case 4:jt(t,e),Ct(e);break;case 13:jt(t,e),Ct(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(Ya=Ee())),l&4&&uu(e);break;case 22:if(R=r!==null&&r.memoizedState!==null,e.mode&1?(Qe=(k=Qe)||R,jt(t,e),Qe=k):jt(t,e),Ct(e),l&8192){if(k=e.memoizedState!==null,(e.stateNode.isHidden=k)&&!R&&(e.mode&1)!==0)for($=e,R=e.child;R!==null;){for(I=$=R;$!==null;){switch(L=$,B=L.child,L.tag){case 0:case 11:case 14:case 15:Or(4,L,L.return);break;case 1:Gn(L,L.return);var V=L.stateNode;if(typeof V.componentWillUnmount=="function"){l=L,r=L.return;try{t=l,V.props=t.memoizedProps,V.state=t.memoizedState,V.componentWillUnmount()}catch(W){ke(l,r,W)}}break;case 5:Gn(L,L.return);break;case 22:if(L.memoizedState!==null){fu(I);continue}}B!==null?(B.return=L,$=B):fu(I)}R=R.sibling}e:for(R=null,I=e;;){if(I.tag===5){if(R===null){R=I;try{o=I.stateNode,k?(u=o.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(p=I.stateNode,v=I.memoizedProps.style,h=v!=null&&v.hasOwnProperty("display")?v.display:null,p.style.display=Wi("display",h))}catch(W){ke(e,e.return,W)}}}else if(I.tag===6){if(R===null)try{I.stateNode.nodeValue=k?"":I.memoizedProps}catch(W){ke(e,e.return,W)}}else if((I.tag!==22&&I.tag!==23||I.memoizedState===null||I===e)&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===e)break e;for(;I.sibling===null;){if(I.return===null||I.return===e)break e;R===I&&(R=null),I=I.return}R===I&&(R=null),I.sibling.return=I.return,I=I.sibling}}break;case 19:jt(t,e),Ct(e),l&4&&uu(e);break;case 21:break;default:jt(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(iu(r)){var l=r;break e}r=r.return}throw Error(i(160))}switch(l.tag){case 5:var o=l.stateNode;l.flags&32&&(nr(o,""),l.flags&=-33);var u=ou(e);Va(e,u,o);break;case 3:case 4:var h=l.stateNode.containerInfo,p=ou(e);Ha(e,p,h);break;default:throw Error(i(161))}}catch(v){ke(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jm(e,t,r){$=e,mu(e)}function mu(e,t,r){for(var l=(e.mode&1)!==0;$!==null;){var o=$,u=o.child;if(o.tag===22&&l){var h=o.memoizedState!==null||$s;if(!h){var p=o.alternate,v=p!==null&&p.memoizedState!==null||Qe;p=$s;var k=Qe;if($s=h,(Qe=v)&&!k)for($=o;$!==null;)h=$,v=h.child,h.tag===22&&h.memoizedState!==null?xu(o):v!==null?(v.return=h,$=v):xu(o);for(;u!==null;)$=u,mu(u),u=u.sibling;$=o,$s=p,Qe=k}hu(e)}else(o.subtreeFlags&8772)!==0&&u!==null?(u.return=o,$=u):hu(e)}}function hu(e){for(;$!==null;){var t=$;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Qe||Us(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!Qe)if(r===null)l.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:vt(t.type,r.memoizedProps);l.componentDidUpdate(o,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&fc(t,u,l);break;case 3:var h=t.updateQueue;if(h!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}fc(t,h,r)}break;case 5:var p=t.stateNode;if(r===null&&t.flags&4){r=p;var v=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":v.autoFocus&&r.focus();break;case"img":v.src&&(r.src=v.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var k=t.alternate;if(k!==null){var R=k.memoizedState;if(R!==null){var I=R.dehydrated;I!==null&&hr(I)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Qe||t.flags&512&&Ua(t)}catch(L){ke(t,t.return,L)}}if(t===e){$=null;break}if(r=t.sibling,r!==null){r.return=t.return,$=r;break}$=t.return}}function fu(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var r=t.sibling;if(r!==null){r.return=t.return,$=r;break}$=t.return}}function xu(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Us(4,t)}catch(v){ke(t,r,v)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var o=t.return;try{l.componentDidMount()}catch(v){ke(t,o,v)}}var u=t.return;try{Ua(t)}catch(v){ke(t,u,v)}break;case 5:var h=t.return;try{Ua(t)}catch(v){ke(t,h,v)}}}catch(v){ke(t,t.return,v)}if(t===e){$=null;break}var p=t.sibling;if(p!==null){p.return=t.return,$=p;break}$=t.return}}var wm=Math.ceil,Hs=G.ReactCurrentDispatcher,Wa=G.ReactCurrentOwner,mt=G.ReactCurrentBatchConfig,se=0,ze=null,Le=null,$e=0,at=0,Kn=Yt(0),Ie=0,zr=null,yn=0,Vs=0,Qa=0,Dr=null,Je=null,Ya=0,Zn=1/0,Dt=null,Ws=!1,Ga=null,Jt=null,Qs=!1,en=null,Ys=0,Fr=0,Ka=null,Gs=-1,Ks=0;function Ke(){return(se&6)!==0?Ee():Gs!==-1?Gs:Gs=Ee()}function tn(e){return(e.mode&1)===0?1:(se&2)!==0&&$e!==0?$e&-$e:sm.transition!==null?(Ks===0&&(Ks=io()),Ks):(e=ue,e!==0||(e=window.event,e=e===void 0?16:go(e.type)),e)}function wt(e,t,r,l){if(50<Fr)throw Fr=0,Ka=null,Error(i(185));or(e,r,l),((se&2)===0||e!==ze)&&(e===ze&&((se&2)===0&&(Vs|=r),Ie===4&&nn(e,$e)),et(e,l),r===1&&se===0&&(t.mode&1)===0&&(Zn=Ee()+500,bs&&Kt()))}function et(e,t){var r=e.callbackNode;s0(e,t);var l=ss(e,e===ze?$e:0);if(l===0)r!==null&&so(r),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(r!=null&&so(r),t===1)e.tag===0?rm(gu.bind(null,e)):nc(gu.bind(null,e)),J0(function(){(se&6)===0&&Kt()}),r=null;else{switch(oo(l)){case 1:r=Pl;break;case 4:r=lo;break;case 16:r=es;break;case 536870912:r=ao;break;default:r=es}r=Su(r,pu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function pu(e,t){if(Gs=-1,Ks=0,(se&6)!==0)throw Error(i(327));var r=e.callbackNode;if(Xn()&&e.callbackNode!==r)return null;var l=ss(e,e===ze?$e:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||t)t=Zs(e,l);else{t=l;var o=se;se|=2;var u=yu();(ze!==e||$e!==t)&&(Dt=null,Zn=Ee()+500,wn(e,t));do try{km();break}catch(p){vu(e,p)}while(!0);ha(),Hs.current=u,se=o,Le!==null?t=0:(ze=null,$e=0,t=Ie)}if(t!==0){if(t===2&&(o=Ll(e),o!==0&&(l=o,t=Za(e,o))),t===1)throw r=zr,wn(e,0),nn(e,l),et(e,Ee()),r;if(t===6)nn(e,l);else{if(o=e.current.alternate,(l&30)===0&&!Nm(o)&&(t=Zs(e,l),t===2&&(u=Ll(e),u!==0&&(l=u,t=Za(e,u))),t===1))throw r=zr,wn(e,0),nn(e,l),et(e,Ee()),r;switch(e.finishedWork=o,e.finishedLanes=l,t){case 0:case 1:throw Error(i(345));case 2:Nn(e,Je,Dt);break;case 3:if(nn(e,l),(l&130023424)===l&&(t=Ya+500-Ee(),10<t)){if(ss(e,0)!==0)break;if(o=e.suspendedLanes,(o&l)!==l){Ke(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=na(Nn.bind(null,e,Je,Dt),t);break}Nn(e,Je,Dt);break;case 4:if(nn(e,l),(l&4194240)===l)break;for(t=e.eventTimes,o=-1;0<l;){var h=31-xt(l);u=1<<h,h=t[h],h>o&&(o=h),l&=~u}if(l=o,l=Ee()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*wm(l/1960))-l,10<l){e.timeoutHandle=na(Nn.bind(null,e,Je,Dt),l);break}Nn(e,Je,Dt);break;case 5:Nn(e,Je,Dt);break;default:throw Error(i(329))}}}return et(e,Ee()),e.callbackNode===r?pu.bind(null,e):null}function Za(e,t){var r=Dr;return e.current.memoizedState.isDehydrated&&(wn(e,t).flags|=256),e=Zs(e,t),e!==2&&(t=Je,Je=r,t!==null&&Xa(t)),e}function Xa(e){Je===null?Je=e:Je.push.apply(Je,e)}function Nm(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var l=0;l<r.length;l++){var o=r[l],u=o.getSnapshot;o=o.value;try{if(!pt(u(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 nn(e,t){for(t&=~Qa,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-xt(t),l=1<<r;e[r]=-1,t&=~l}}function gu(e){if((se&6)!==0)throw Error(i(327));Xn();var t=ss(e,0);if((t&1)===0)return et(e,Ee()),null;var r=Zs(e,t);if(e.tag!==0&&r===2){var l=Ll(e);l!==0&&(t=l,r=Za(e,l))}if(r===1)throw r=zr,wn(e,0),nn(e,t),et(e,Ee()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nn(e,Je,Dt),et(e,Ee()),null}function qa(e,t){var r=se;se|=1;try{return e(t)}finally{se=r,se===0&&(Zn=Ee()+500,bs&&Kt())}}function jn(e){en!==null&&en.tag===0&&(se&6)===0&&Xn();var t=se;se|=1;var r=mt.transition,l=ue;try{if(mt.transition=null,ue=1,e)return e()}finally{ue=l,mt.transition=r,se=t,(se&6)===0&&Kt()}}function Ja(){at=Kn.current,ve(Kn)}function wn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,q0(r)),Le!==null)for(r=Le.return;r!==null;){var l=r;switch(oa(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&ws();break;case 3:Qn(),ve(Ze),ve(He),wa();break;case 5:ya(l);break;case 4:Qn();break;case 13:ve(Ne);break;case 19:ve(Ne);break;case 10:fa(l.type._context);break;case 22:case 23:Ja()}r=r.return}if(ze=e,Le=e=rn(e.current,null),$e=at=t,Ie=0,zr=null,Qa=Vs=yn=0,Je=Dr=null,pn!==null){for(t=0;t<pn.length;t++)if(r=pn[t],l=r.interleaved,l!==null){r.interleaved=null;var o=l.next,u=r.pending;if(u!==null){var h=u.next;u.next=o,l.next=h}r.pending=l}pn=null}return e}function vu(e,t){do{var r=Le;try{if(ha(),Rs.current=Ds,Is){for(var l=be.memoizedState;l!==null;){var o=l.queue;o!==null&&(o.pending=null),l=l.next}Is=!1}if(vn=0,Oe=Re=be=null,Mr=!1,Tr=0,Wa.current=null,r===null||r.return===null){Ie=1,zr=t,Le=null;break}e:{var u=e,h=r.return,p=r,v=t;if(t=$e,p.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){var k=v,R=p,I=R.tag;if((R.mode&1)===0&&(I===0||I===11||I===15)){var L=R.alternate;L?(R.updateQueue=L.updateQueue,R.memoizedState=L.memoizedState,R.lanes=L.lanes):(R.updateQueue=null,R.memoizedState=null)}var B=Hc(h);if(B!==null){B.flags&=-257,Vc(B,h,p,u,t),B.mode&1&&Uc(u,k,t),t=B,v=k;var V=t.updateQueue;if(V===null){var W=new Set;W.add(v),t.updateQueue=W}else V.add(v);break e}else{if((t&1)===0){Uc(u,k,t),ei();break e}v=Error(i(426))}}else if(we&&p.mode&1){var Pe=Hc(h);if(Pe!==null){(Pe.flags&65536)===0&&(Pe.flags|=256),Vc(Pe,h,p,u,t),da(Yn(v,p));break e}}u=v=Yn(v,p),Ie!==4&&(Ie=2),Dr===null?Dr=[u]:Dr.push(u),u=h;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var w=Ac(u,v,t);hc(u,w);break e;case 1:p=v;var y=u.type,N=u.stateNode;if((u.flags&128)===0&&(typeof y.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Jt===null||!Jt.has(N)))){u.flags|=65536,t&=-t,u.lanes|=t;var O=$c(u,p,t);hc(u,O);break e}}u=u.return}while(u!==null)}wu(r)}catch(Q){t=Q,Le===r&&r!==null&&(Le=r=r.return);continue}break}while(!0)}function yu(){var e=Hs.current;return Hs.current=Ds,e===null?Ds:e}function ei(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),ze===null||(yn&268435455)===0&&(Vs&268435455)===0||nn(ze,$e)}function Zs(e,t){var r=se;se|=2;var l=yu();(ze!==e||$e!==t)&&(Dt=null,wn(e,t));do try{bm();break}catch(o){vu(e,o)}while(!0);if(ha(),se=r,Hs.current=l,Le!==null)throw Error(i(261));return ze=null,$e=0,Ie}function bm(){for(;Le!==null;)ju(Le)}function km(){for(;Le!==null&&!Kd();)ju(Le)}function ju(e){var t=ku(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?wu(e):Le=t,Wa.current=null}function wu(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=pm(r,t,at),r!==null){Le=r;return}}else{if(r=gm(r,t),r!==null){r.flags&=32767,Le=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Le=null;return}}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Ie===0&&(Ie=5)}function Nn(e,t,r){var l=ue,o=mt.transition;try{mt.transition=null,ue=1,Sm(e,t,r,l)}finally{mt.transition=o,ue=l}return null}function Sm(e,t,r,l){do Xn();while(en!==null);if((se&6)!==0)throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var u=r.lanes|r.childLanes;if(l0(e,u),e===ze&&(Le=ze=null,$e=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Qs||(Qs=!0,Su(es,function(){return Xn(),null})),u=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||u){u=mt.transition,mt.transition=null;var h=ue;ue=1;var p=se;se|=4,Wa.current=null,ym(e,r),du(r,e),W0(ea),is=!!Jl,ea=Jl=null,e.current=r,jm(r),Zd(),se=p,ue=h,mt.transition=u}else e.current=r;if(Qs&&(Qs=!1,en=e,Ys=o),u=e.pendingLanes,u===0&&(Jt=null),Jd(r.stateNode),et(e,Ee()),t!==null)for(l=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],l(o.value,{componentStack:o.stack,digest:o.digest});if(Ws)throw Ws=!1,e=Ga,Ga=null,e;return(Ys&1)!==0&&e.tag!==0&&Xn(),u=e.pendingLanes,(u&1)!==0?e===Ka?Fr++:(Fr=0,Ka=e):Fr=0,Kt(),null}function Xn(){if(en!==null){var e=oo(Ys),t=mt.transition,r=ue;try{if(mt.transition=null,ue=16>e?16:e,en===null)var l=!1;else{if(e=en,en=null,Ys=0,(se&6)!==0)throw Error(i(331));var o=se;for(se|=4,$=e.current;$!==null;){var u=$,h=u.child;if(($.flags&16)!==0){var p=u.deletions;if(p!==null){for(var v=0;v<p.length;v++){var k=p[v];for($=k;$!==null;){var R=$;switch(R.tag){case 0:case 11:case 15:Or(8,R,u)}var I=R.child;if(I!==null)I.return=R,$=I;else for(;$!==null;){R=$;var L=R.sibling,B=R.return;if(au(R),R===k){$=null;break}if(L!==null){L.return=B,$=L;break}$=B}}}var V=u.alternate;if(V!==null){var W=V.child;if(W!==null){V.child=null;do{var Pe=W.sibling;W.sibling=null,W=Pe}while(W!==null)}}$=u}}if((u.subtreeFlags&2064)!==0&&h!==null)h.return=u,$=h;else e:for(;$!==null;){if(u=$,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Or(9,u,u.return)}var w=u.sibling;if(w!==null){w.return=u.return,$=w;break e}$=u.return}}var y=e.current;for($=y;$!==null;){h=$;var N=h.child;if((h.subtreeFlags&2064)!==0&&N!==null)N.return=h,$=N;else e:for(h=y;$!==null;){if(p=$,(p.flags&2048)!==0)try{switch(p.tag){case 0:case 11:case 15:Us(9,p)}}catch(Q){ke(p,p.return,Q)}if(p===h){$=null;break e}var O=p.sibling;if(O!==null){O.return=p.return,$=O;break e}$=p.return}}if(se=o,Kt(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(ts,e)}catch{}l=!0}return l}finally{ue=r,mt.transition=t}}return!1}function Nu(e,t,r){t=Yn(r,t),t=Ac(e,t,1),e=Xt(e,t,1),t=Ke(),e!==null&&(or(e,1,t),et(e,t))}function ke(e,t,r){if(e.tag===3)Nu(e,e,r);else for(;t!==null;){if(t.tag===3){Nu(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Jt===null||!Jt.has(l))){e=Yn(r,e),e=$c(t,e,1),t=Xt(t,e,1),e=Ke(),t!==null&&(or(t,1,e),et(t,e));break}}t=t.return}}function Cm(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&r,ze===e&&($e&r)===r&&(Ie===4||Ie===3&&($e&130023424)===$e&&500>Ee()-Ya?wn(e,0):Qa|=r),et(e,t)}function bu(e,t){t===0&&((e.mode&1)===0?t=1:(t=rs,rs<<=1,(rs&130023424)===0&&(rs=4194304)));var r=Ke();e=It(e,t),e!==null&&(or(e,t,r),et(e,r))}function Em(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),bu(e,r)}function Pm(e,t){var r=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(t),bu(e,r)}var ku;ku=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)qe=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qe=!1,xm(e,t,r);qe=(e.flags&131072)!==0}else qe=!1,we&&(t.flags&1048576)!==0&&rc(t,Ss,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;As(e,t),e=t.pendingProps;var o=Bn(t,He.current);Wn(t,r),o=ka(null,t,l,e,o,r);var u=Sa();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(l)?(u=!0,Ns(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ga(t),o.updater=Fs,t.stateNode=o,o._reactInternals=t,Ta(t,l,e,r),t=Oa(null,t,l,!0,u,r)):(t.tag=0,we&&u&&ia(t),Ge(null,t,o,r),t=t.child),t;case 16:l=t.elementType;e:{switch(As(e,t),e=t.pendingProps,o=l._init,l=o(l._payload),t.type=l,o=t.tag=Mm(l),e=vt(l,e),o){case 0:t=Ia(null,t,l,e,r);break e;case 1:t=Zc(null,t,l,e,r);break e;case 11:t=Wc(null,t,l,e,r);break e;case 14:t=Qc(null,t,l,vt(l.type,e),r);break e}throw Error(i(306,l,""))}return t;case 0:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:vt(l,o),Ia(e,t,l,o,r);case 1:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:vt(l,o),Zc(e,t,l,o,r);case 3:e:{if(Xc(t),e===null)throw Error(i(387));l=t.pendingProps,u=t.memoizedState,o=u.element,mc(e,t),Ts(t,l,null,r);var h=t.memoizedState;if(l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){o=Yn(Error(i(423)),t),t=qc(e,t,l,r,o);break e}else if(l!==o){o=Yn(Error(i(424)),t),t=qc(e,t,l,r,o);break e}else for(lt=Qt(t.stateNode.containerInfo.firstChild),st=t,we=!0,gt=null,r=uc(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Un(),l===o){t=zt(e,t,r);break e}Ge(e,t,l,r)}t=t.child}return t;case 5:return xc(t),e===null&&ua(t),l=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,h=o.children,ta(l,o)?h=null:u!==null&&ta(l,u)&&(t.flags|=32),Kc(e,t),Ge(e,t,h,r),t.child;case 6:return e===null&&ua(t),null;case 13:return Jc(e,t,r);case 4:return va(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Hn(t,null,l,r):Ge(e,t,l,r),t.child;case 11:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:vt(l,o),Wc(e,t,l,o,r);case 7:return Ge(e,t,t.pendingProps,r),t.child;case 8:return Ge(e,t,t.pendingProps.children,r),t.child;case 12:return Ge(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(l=t.type._context,o=t.pendingProps,u=t.memoizedProps,h=o.value,pe(Ps,l._currentValue),l._currentValue=h,u!==null)if(pt(u.value,h)){if(u.children===o.children&&!Ze.current){t=zt(e,t,r);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var p=u.dependencies;if(p!==null){h=u.child;for(var v=p.firstContext;v!==null;){if(v.context===l){if(u.tag===1){v=Ot(-1,r&-r),v.tag=2;var k=u.updateQueue;if(k!==null){k=k.shared;var R=k.pending;R===null?v.next=v:(v.next=R.next,R.next=v),k.pending=v}}u.lanes|=r,v=u.alternate,v!==null&&(v.lanes|=r),xa(u.return,r,t),p.lanes|=r;break}v=v.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(i(341));h.lanes|=r,p=h.alternate,p!==null&&(p.lanes|=r),xa(h,r,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Ge(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,l=t.pendingProps.children,Wn(t,r),o=ut(o),l=l(o),t.flags|=1,Ge(e,t,l,r),t.child;case 14:return l=t.type,o=vt(l,t.pendingProps),o=vt(l.type,o),Qc(e,t,l,o,r);case 15:return Yc(e,t,t.type,t.pendingProps,r);case 17:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:vt(l,o),As(e,t),t.tag=1,Xe(l)?(e=!0,Ns(t)):e=!1,Wn(t,r),Fc(t,l,o),Ta(t,l,o,r),Oa(null,t,l,!0,e,r);case 19:return tu(e,t,r);case 22:return Gc(e,t,r)}throw Error(i(156,t.tag))};function Su(e,t){return ro(e,t)}function Lm(e,t,r,l){this.tag=e,this.key=r,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,r,l){return new Lm(e,t,r,l)}function ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mm(e){if(typeof e=="function")return ti(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_e)return 11;if(e===Be)return 14}return 2}function rn(e,t){var r=e.alternate;return r===null?(r=ht(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Xs(e,t,r,l,o,u){var h=2;if(l=e,typeof e=="function")ti(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case q:return bn(r.children,o,u,t);case de:h=8,o|=8;break;case Ue:return e=ht(12,r,t,o|2),e.elementType=Ue,e.lanes=u,e;case Se:return e=ht(13,r,t,o),e.elementType=Se,e.lanes=u,e;case fe:return e=ht(19,r,t,o),e.elementType=fe,e.lanes=u,e;case ye:return qs(r,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case he:h=10;break e;case Te:h=9;break e;case _e:h=11;break e;case Be:h=14;break e;case Ce:h=16,l=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=ht(h,r,t,o),t.elementType=e,t.type=l,t.lanes=u,t}function bn(e,t,r,l){return e=ht(7,e,l,t),e.lanes=r,e}function qs(e,t,r,l){return e=ht(22,e,l,t),e.elementType=ye,e.lanes=r,e.stateNode={isHidden:!1},e}function ni(e,t,r){return e=ht(6,e,null,t),e.lanes=r,e}function ri(e,t,r){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tm(e,t,r,l,o){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=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=l,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function si(e,t,r,l,o,u,h,p,v){return e=new Tm(e,t,r,p,v),t===1?(t=1,u===!0&&(t|=8)):t=0,u=ht(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:l,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ga(u),e}function _m(e,t,r){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:me,key:l==null?null:""+l,children:e,containerInfo:t,implementation:r}}function Cu(e){if(!e)return Gt;e=e._reactInternals;e:{if(dn(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var r=e.type;if(Xe(r))return ec(e,r,t)}return t}function Eu(e,t,r,l,o,u,h,p,v){return e=si(r,l,!0,e,o,u,h,p,v),e.context=Cu(null),r=e.current,l=Ke(),o=tn(r),u=Ot(l,o),u.callback=t??null,Xt(r,u,o),e.current.lanes=o,or(e,o,l),et(e,l),e}function Js(e,t,r,l){var o=t.current,u=Ke(),h=tn(o);return r=Cu(r),t.context===null?t.context=r:t.pendingContext=r,t=Ot(u,h),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=Xt(o,t,h),e!==null&&(wt(e,o,h,u),Ms(e,o,h)),h}function el(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Pu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function li(e,t){Pu(e,t),(e=e.alternate)&&Pu(e,t)}function Rm(){return null}var Lu=typeof reportError=="function"?reportError:function(e){console.error(e)};function ai(e){this._internalRoot=e}tl.prototype.render=ai.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Js(e,t,null,null)},tl.prototype.unmount=ai.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){Js(null,e,null,null)}),t[Mt]=null}};function tl(e){this._internalRoot=e}tl.prototype.unstable_scheduleHydration=function(e){if(e){var t=mo();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ht.length&&t!==0&&t<Ht[r].priority;r++);Ht.splice(r,0,e),r===0&&xo(e)}};function ii(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mu(){}function Im(e,t,r,l,o){if(o){if(typeof l=="function"){var u=l;l=function(){var k=el(h);u.call(k)}}var h=Eu(t,l,e,0,null,!1,!1,"",Mu);return e._reactRootContainer=h,e[Mt]=h.current,Nr(e.nodeType===8?e.parentNode:e),jn(),h}for(;o=e.lastChild;)e.removeChild(o);if(typeof l=="function"){var p=l;l=function(){var k=el(v);p.call(k)}}var v=si(e,0,!1,null,null,!1,!1,"",Mu);return e._reactRootContainer=v,e[Mt]=v.current,Nr(e.nodeType===8?e.parentNode:e),jn(function(){Js(t,v,r,l)}),v}function rl(e,t,r,l,o){var u=r._reactRootContainer;if(u){var h=u;if(typeof o=="function"){var p=o;o=function(){var v=el(h);p.call(v)}}Js(t,h,e,o)}else h=Im(r,t,e,o,l);return el(h)}co=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ir(t.pendingLanes);r!==0&&(Tl(t,r|1),et(t,Ee()),(se&6)===0&&(Zn=Ee()+500,Kt()))}break;case 13:jn(function(){var l=It(e,1);if(l!==null){var o=Ke();wt(l,e,1,o)}}),li(e,1)}},_l=function(e){if(e.tag===13){var t=It(e,134217728);if(t!==null){var r=Ke();wt(t,e,134217728,r)}li(e,134217728)}},uo=function(e){if(e.tag===13){var t=tn(e),r=It(e,t);if(r!==null){var l=Ke();wt(r,e,t,l)}li(e,t)}},mo=function(){return ue},ho=function(e,t){var r=ue;try{return ue=e,t()}finally{ue=r}},kl=function(e,t,r){switch(t){case"input":if(pl(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=js(l);if(!o)throw Error(i(90));zi(l),pl(l,o)}}}break;case"textarea":$i(e,r);break;case"select":t=r.value,t!=null&&En(e,!!r.multiple,t,!1)}},Zi=qa,Xi=jn;var Om={usingClientEntryPoint:!1,Events:[Sr,Dn,js,Gi,Ki,qa]},Br={findFiberByHostInstance:mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zm={bundleType:Br.bundleType,version:Br.version,rendererPackageName:Br.rendererPackageName,rendererConfig:Br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=to(e),e===null?null:e.stateNode},findFiberByHostInstance:Br.findFiberByHostInstance||Rm,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 sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{ts=sl.inject(zm),Nt=sl}catch{}}return tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Om,tt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ii(t))throw Error(i(200));return _m(e,t,null,r)},tt.createRoot=function(e,t){if(!ii(e))throw Error(i(299));var r=!1,l="",o=Lu;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=si(e,1,!1,null,null,r,!1,l,o),e[Mt]=t.current,Nr(e.nodeType===8?e.parentNode:e),new ai(t)},tt.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(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=to(t),e=e===null?null:e.stateNode,e},tt.flushSync=function(e){return jn(e)},tt.hydrate=function(e,t,r){if(!nl(t))throw Error(i(200));return rl(null,e,t,!0,r)},tt.hydrateRoot=function(e,t,r){if(!ii(e))throw Error(i(405));var l=r!=null&&r.hydratedSources||null,o=!1,u="",h=Lu;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onRecoverableError!==void 0&&(h=r.onRecoverableError)),t=Eu(t,null,e,1,r??null,o,!1,u,h),e[Mt]=t.current,Nr(e),l)for(e=0;e<l.length;e++)r=l[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new tl(t)},tt.render=function(e,t,r){if(!nl(t))throw Error(i(200));return rl(null,e,t,!1,r)},tt.unmountComponentAtNode=function(e){if(!nl(e))throw Error(i(40));return e._reactRootContainer?(jn(function(){rl(null,null,e,!1,function(){e._reactRootContainer=null,e[Mt]=null})}),!0):!1},tt.unstable_batchedUpdates=qa,tt.unstable_renderSubtreeIntoContainer=function(e,t,r,l){if(!nl(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return rl(e,t,r,!1,l)},tt.version="18.3.1-next-f1338f8080-20240426",tt}var Fu;function ud(){if(Fu)return ui.exports;Fu=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),ui.exports=Wm(),ui.exports}var Bu;function Qm(){if(Bu)return ll;Bu=1;var s=ud();return ll.createRoot=s.createRoot,ll.hydrateRoot=s.hydrateRoot,ll}var Ym=Qm(),S=ji();const Gm=Bm(S),Km=Fm({__proto__:null,default:Gm},[S]);ud();function $r(){return $r=Object.assign?Object.assign.bind():function(s){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])}return s},$r.apply(this,arguments)}var ln;(function(s){s.Pop="POP",s.Push="PUSH",s.Replace="REPLACE"})(ln||(ln={}));const Au="popstate";function Zm(s){s===void 0&&(s={});function a(c,d){let{pathname:m,search:f,hash:g}=c.location;return fi("",{pathname:m,search:f,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function i(c,d){return typeof d=="string"?d:al(d)}return qm(a,i,null,s)}function Me(s,a){if(s===!1||s===null||typeof s>"u")throw new Error(a)}function wi(s,a){if(!s){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Xm(){return Math.random().toString(36).substr(2,8)}function $u(s,a){return{usr:s.state,key:s.key,idx:a}}function fi(s,a,i,c){return i===void 0&&(i=null),$r({pathname:typeof s=="string"?s:s.pathname,search:"",hash:""},typeof a=="string"?er(a):a,{state:i,key:a&&a.key||c||Xm()})}function al(s){let{pathname:a="/",search:i="",hash:c=""}=s;return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(a+=c.charAt(0)==="#"?c:"#"+c),a}function er(s){let a={};if(s){let i=s.indexOf("#");i>=0&&(a.hash=s.substr(i),s=s.substr(0,i));let c=s.indexOf("?");c>=0&&(a.search=s.substr(c),s=s.substr(0,c)),s&&(a.pathname=s)}return a}function qm(s,a,i,c){c===void 0&&(c={});let{window:d=document.defaultView,v5Compat:m=!1}=c,f=d.history,g=ln.Pop,x=null,b=E();b==null&&(b=0,f.replaceState($r({},f.state,{idx:b}),""));function E(){return(f.state||{idx:null}).idx}function C(){g=ln.Pop;let P=E(),Y=P==null?null:P-b;b=P,x&&x({action:g,location:D.location,delta:Y})}function M(P,Y){g=ln.Push;let T=fi(D.location,P,Y);b=E()+1;let z=$u(T,b),G=D.createHref(T);try{f.pushState(z,"",G)}catch(oe){if(oe instanceof DOMException&&oe.name==="DataCloneError")throw oe;d.location.assign(G)}m&&x&&x({action:g,location:D.location,delta:1})}function A(P,Y){g=ln.Replace;let T=fi(D.location,P,Y);b=E();let z=$u(T,b),G=D.createHref(T);f.replaceState(z,"",G),m&&x&&x({action:g,location:D.location,delta:0})}function U(P){let Y=d.location.origin!=="null"?d.location.origin:d.location.href,T=typeof P=="string"?P:al(P);return T=T.replace(/ $/,"%20"),Me(Y,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,Y)}let D={get action(){return g},get location(){return s(d,f)},listen(P){if(x)throw new Error("A history only accepts one active listener");return d.addEventListener(Au,C),x=P,()=>{d.removeEventListener(Au,C),x=null}},createHref(P){return a(d,P)},createURL:U,encodeLocation(P){let Y=U(P);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:M,replace:A,go(P){return f.go(P)}};return D}var Uu;(function(s){s.data="data",s.deferred="deferred",s.redirect="redirect",s.error="error"})(Uu||(Uu={}));function Jm(s,a,i){return i===void 0&&(i="/"),eh(s,a,i)}function eh(s,a,i,c){let d=typeof a=="string"?er(a):a,m=Ni(d.pathname||"/",i);if(m==null)return null;let f=dd(s);th(f);let g=null;for(let x=0;g==null&&x<f.length;++x){let b=hh(m);g=uh(f[x],b)}return g}function dd(s,a,i,c){a===void 0&&(a=[]),i===void 0&&(i=[]),c===void 0&&(c="");let d=(m,f,g)=>{let x={relativePath:g===void 0?m.path||"":g,caseSensitive:m.caseSensitive===!0,childrenIndex:f,route:m};x.relativePath.startsWith("/")&&(Me(x.relativePath.startsWith(c),'Absolute route path "'+x.relativePath+'" nested under path '+('"'+c+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),x.relativePath=x.relativePath.slice(c.length));let b=an([c,x.relativePath]),E=i.concat(x);m.children&&m.children.length>0&&(Me(m.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+b+'".')),dd(m.children,a,E,b)),!(m.path==null&&!m.index)&&a.push({path:b,score:oh(b,m.index),routesMeta:E})};return s.forEach((m,f)=>{var g;if(m.path===""||!((g=m.path)!=null&&g.includes("?")))d(m,f);else for(let x of md(m.path))d(m,f,x)}),a}function md(s){let a=s.split("/");if(a.length===0)return[];let[i,...c]=a,d=i.endsWith("?"),m=i.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let f=md(c.join("/")),g=[];return g.push(...f.map(x=>x===""?m:[m,x].join("/"))),d&&g.push(...f),g.map(x=>s.startsWith("/")&&x===""?"/":x)}function th(s){s.sort((a,i)=>a.score!==i.score?i.score-a.score:ch(a.routesMeta.map(c=>c.childrenIndex),i.routesMeta.map(c=>c.childrenIndex)))}const nh=/^:[\w-]+$/,rh=3,sh=2,lh=1,ah=10,ih=-2,Hu=s=>s==="*";function oh(s,a){let i=s.split("/"),c=i.length;return i.some(Hu)&&(c+=ih),a&&(c+=sh),i.filter(d=>!Hu(d)).reduce((d,m)=>d+(nh.test(m)?rh:m===""?lh:ah),c)}function ch(s,a){return s.length===a.length&&s.slice(0,-1).every((c,d)=>c===a[d])?s[s.length-1]-a[a.length-1]:0}function uh(s,a,i){let{routesMeta:c}=s,d={},m="/",f=[];for(let g=0;g<c.length;++g){let x=c[g],b=g===c.length-1,E=m==="/"?a:a.slice(m.length)||"/",C=dh({path:x.relativePath,caseSensitive:x.caseSensitive,end:b},E),M=x.route;if(!C)return null;Object.assign(d,C.params),f.push({params:d,pathname:an([m,C.pathname]),pathnameBase:vh(an([m,C.pathnameBase])),route:M}),C.pathnameBase!=="/"&&(m=an([m,C.pathnameBase]))}return f}function dh(s,a){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[i,c]=mh(s.path,s.caseSensitive,s.end),d=a.match(i);if(!d)return null;let m=d[0],f=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((b,E,C)=>{let{paramName:M,isOptional:A}=E;if(M==="*"){let D=g[C]||"";f=m.slice(0,m.length-D.length).replace(/(.)\/+$/,"$1")}const U=g[C];return A&&!U?b[M]=void 0:b[M]=(U||"").replace(/%2F/g,"/"),b},{}),pathname:m,pathnameBase:f,pattern:s}}function mh(s,a,i){a===void 0&&(a=!1),i===void 0&&(i=!0),wi(s==="*"||!s.endsWith("*")||s.endsWith("/*"),'Route path "'+s+'" will be treated as if it were '+('"'+s.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+s.replace(/\*$/,"/*")+'".'));let c=[],d="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,g,x)=>(c.push({paramName:g,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)"));return s.endsWith("*")?(c.push({paramName:"*"}),d+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":s!==""&&s!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,a?void 0:"i"),c]}function hh(s){try{return s.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return wi(!1,'The URL path "'+s+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+a+").")),s}}function Ni(s,a){if(a==="/")return s;if(!s.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,c=s.charAt(i);return c&&c!=="/"?null:s.slice(i)||"/"}const fh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xh=s=>fh.test(s);function ph(s,a){a===void 0&&(a="/");let{pathname:i,search:c="",hash:d=""}=typeof s=="string"?er(s):s,m;if(i)if(xh(i))m=i;else{if(i.includes("//")){let f=i;i=i.replace(/\/\/+/g,"/"),wi(!1,"Pathnames cannot have embedded double slashes - normalizing "+(f+" -> "+i))}i.startsWith("/")?m=Vu(i.substring(1),"/"):m=Vu(i,a)}else m=a;return{pathname:m,search:yh(c),hash:jh(d)}}function Vu(s,a){let i=a.replace(/\/+$/,"").split("/");return s.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function hi(s,a,i,c){return"Cannot include a '"+s+"' character in a manually specified "+("`to."+a+"` field ["+JSON.stringify(c)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gh(s){return s.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function hd(s,a){let i=gh(s);return a?i.map((c,d)=>d===i.length-1?c.pathname:c.pathnameBase):i.map(c=>c.pathnameBase)}function fd(s,a,i,c){c===void 0&&(c=!1);let d;typeof s=="string"?d=er(s):(d=$r({},s),Me(!d.pathname||!d.pathname.includes("?"),hi("?","pathname","search",d)),Me(!d.pathname||!d.pathname.includes("#"),hi("#","pathname","hash",d)),Me(!d.search||!d.search.includes("#"),hi("#","search","hash",d)));let m=s===""||d.pathname==="",f=m?"/":d.pathname,g;if(f==null)g=i;else{let C=a.length-1;if(!c&&f.startsWith("..")){let M=f.split("/");for(;M[0]==="..";)M.shift(),C-=1;d.pathname=M.join("/")}g=C>=0?a[C]:"/"}let x=ph(d,g),b=f&&f!=="/"&&f.endsWith("/"),E=(m||f===".")&&i.endsWith("/");return!x.pathname.endsWith("/")&&(b||E)&&(x.pathname+="/"),x}const an=s=>s.join("/").replace(/\/\/+/g,"/"),vh=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),yh=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,jh=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s;function wh(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}const xd=["post","put","patch","delete"];new Set(xd);const Nh=["get",...xd];new Set(Nh);function Ur(){return Ur=Object.assign?Object.assign.bind():function(s){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])}return s},Ur.apply(this,arguments)}const bi=S.createContext(null),bh=S.createContext(null),Cn=S.createContext(null),dl=S.createContext(null),cn=S.createContext({outlet:null,matches:[],isDataRoute:!1}),pd=S.createContext(null);function kh(s,a){let{relative:i}=a===void 0?{}:a;Wr()||Me(!1);let{basename:c,navigator:d}=S.useContext(Cn),{hash:m,pathname:f,search:g}=vd(s,{relative:i}),x=f;return c!=="/"&&(x=f==="/"?c:an([c,f])),d.createHref({pathname:x,search:g,hash:m})}function Wr(){return S.useContext(dl)!=null}function Qr(){return Wr()||Me(!1),S.useContext(dl).location}function gd(s){S.useContext(Cn).static||S.useLayoutEffect(s)}function Sh(){let{isDataRoute:s}=S.useContext(cn);return s?Bh():Ch()}function Ch(){Wr()||Me(!1);let s=S.useContext(bi),{basename:a,future:i,navigator:c}=S.useContext(Cn),{matches:d}=S.useContext(cn),{pathname:m}=Qr(),f=JSON.stringify(hd(d,i.v7_relativeSplatPath)),g=S.useRef(!1);return gd(()=>{g.current=!0}),S.useCallback(function(b,E){if(E===void 0&&(E={}),!g.current)return;if(typeof b=="number"){c.go(b);return}let C=fd(b,JSON.parse(f),m,E.relative==="path");s==null&&a!=="/"&&(C.pathname=C.pathname==="/"?a:an([a,C.pathname])),(E.replace?c.replace:c.push)(C,E.state,E)},[a,c,f,m,s])}function Eh(){let{matches:s}=S.useContext(cn),a=s[s.length-1];return a?a.params:{}}function vd(s,a){let{relative:i}=a===void 0?{}:a,{future:c}=S.useContext(Cn),{matches:d}=S.useContext(cn),{pathname:m}=Qr(),f=JSON.stringify(hd(d,c.v7_relativeSplatPath));return S.useMemo(()=>fd(s,JSON.parse(f),m,i==="path"),[s,f,m,i])}function Ph(s,a){return Lh(s,a)}function Lh(s,a,i,c){Wr()||Me(!1);let{navigator:d}=S.useContext(Cn),{matches:m}=S.useContext(cn),f=m[m.length-1],g=f?f.params:{};f&&f.pathname;let x=f?f.pathnameBase:"/";f&&f.route;let b=Qr(),E;if(a){var C;let P=typeof a=="string"?er(a):a;x==="/"||(C=P.pathname)!=null&&C.startsWith(x)||Me(!1),E=P}else E=b;let M=E.pathname||"/",A=M;if(x!=="/"){let P=x.replace(/^\//,"").split("/");A="/"+M.replace(/^\//,"").split("/").slice(P.length).join("/")}let U=Jm(s,{pathname:A}),D=Ih(U&&U.map(P=>Object.assign({},P,{params:Object.assign({},g,P.params),pathname:an([x,d.encodeLocation?d.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?x:an([x,d.encodeLocation?d.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),m,i,c);return a&&D?S.createElement(dl.Provider,{value:{location:Ur({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:ln.Pop}},D):D}function Mh(){let s=Fh(),a=wh(s)?s.status+" "+s.statusText:s instanceof Error?s.message:JSON.stringify(s),i=s instanceof Error?s.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},a),i?S.createElement("pre",{style:d},i):null,null)}const Th=S.createElement(Mh,null);class _h extends S.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){console.error("React Router caught the following error during render",a,i)}render(){return this.state.error!==void 0?S.createElement(cn.Provider,{value:this.props.routeContext},S.createElement(pd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Rh(s){let{routeContext:a,match:i,children:c}=s,d=S.useContext(bi);return d&&d.static&&d.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(cn.Provider,{value:a},c)}function Ih(s,a,i,c){var d;if(a===void 0&&(a=[]),i===void 0&&(i=null),c===void 0&&(c=null),s==null){var m;if(!i)return null;if(i.errors)s=i.matches;else if((m=c)!=null&&m.v7_partialHydration&&a.length===0&&!i.initialized&&i.matches.length>0)s=i.matches;else return null}let f=s,g=(d=i)==null?void 0:d.errors;if(g!=null){let E=f.findIndex(C=>C.route.id&&g?.[C.route.id]!==void 0);E>=0||Me(!1),f=f.slice(0,Math.min(f.length,E+1))}let x=!1,b=-1;if(i&&c&&c.v7_partialHydration)for(let E=0;E<f.length;E++){let C=f[E];if((C.route.HydrateFallback||C.route.hydrateFallbackElement)&&(b=E),C.route.id){let{loaderData:M,errors:A}=i,U=C.route.loader&&M[C.route.id]===void 0&&(!A||A[C.route.id]===void 0);if(C.route.lazy||U){x=!0,b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}return f.reduceRight((E,C,M)=>{let A,U=!1,D=null,P=null;i&&(A=g&&C.route.id?g[C.route.id]:void 0,D=C.route.errorElement||Th,x&&(b<0&&M===0?(Ah("route-fallback"),U=!0,P=null):b===M&&(U=!0,P=C.route.hydrateFallbackElement||null)));let Y=a.concat(f.slice(0,M+1)),T=()=>{let z;return A?z=D:U?z=P:C.route.Component?z=S.createElement(C.route.Component,null):C.route.element?z=C.route.element:z=E,S.createElement(Rh,{match:C,routeContext:{outlet:E,matches:Y,isDataRoute:i!=null},children:z})};return i&&(C.route.ErrorBoundary||C.route.errorElement||M===0)?S.createElement(_h,{location:i.location,revalidation:i.revalidation,component:D,error:A,children:T(),routeContext:{outlet:null,matches:Y,isDataRoute:!0}}):T()},null)}var yd=(function(s){return s.UseBlocker="useBlocker",s.UseRevalidator="useRevalidator",s.UseNavigateStable="useNavigate",s})(yd||{}),jd=(function(s){return s.UseBlocker="useBlocker",s.UseLoaderData="useLoaderData",s.UseActionData="useActionData",s.UseRouteError="useRouteError",s.UseNavigation="useNavigation",s.UseRouteLoaderData="useRouteLoaderData",s.UseMatches="useMatches",s.UseRevalidator="useRevalidator",s.UseNavigateStable="useNavigate",s.UseRouteId="useRouteId",s})(jd||{});function Oh(s){let a=S.useContext(bi);return a||Me(!1),a}function zh(s){let a=S.useContext(bh);return a||Me(!1),a}function Dh(s){let a=S.useContext(cn);return a||Me(!1),a}function wd(s){let a=Dh(),i=a.matches[a.matches.length-1];return i.route.id||Me(!1),i.route.id}function Fh(){var s;let a=S.useContext(pd),i=zh(),c=wd();return a!==void 0?a:(s=i.errors)==null?void 0:s[c]}function Bh(){let{router:s}=Oh(yd.UseNavigateStable),a=wd(jd.UseNavigateStable),i=S.useRef(!1);return gd(()=>{i.current=!0}),S.useCallback(function(d,m){m===void 0&&(m={}),i.current&&(typeof d=="number"?s.navigate(d):s.navigate(d,Ur({fromRouteId:a},m)))},[s,a])}const Wu={};function Ah(s,a,i){Wu[s]||(Wu[s]=!0)}function $h(s,a){s?.v7_startTransition,s?.v7_relativeSplatPath}function xi(s){Me(!1)}function Uh(s){let{basename:a="/",children:i=null,location:c,navigationType:d=ln.Pop,navigator:m,static:f=!1,future:g}=s;Wr()&&Me(!1);let x=a.replace(/^\/*/,"/"),b=S.useMemo(()=>({basename:x,navigator:m,static:f,future:Ur({v7_relativeSplatPath:!1},g)}),[x,g,m,f]);typeof c=="string"&&(c=er(c));let{pathname:E="/",search:C="",hash:M="",state:A=null,key:U="default"}=c,D=S.useMemo(()=>{let P=Ni(E,x);return P==null?null:{location:{pathname:P,search:C,hash:M,state:A,key:U},navigationType:d}},[x,E,C,M,A,U,d]);return D==null?null:S.createElement(Cn.Provider,{value:b},S.createElement(dl.Provider,{children:i,value:D}))}function Hh(s){let{children:a,location:i}=s;return Ph(pi(a),i)}new Promise(()=>{});function pi(s,a){a===void 0&&(a=[]);let i=[];return S.Children.forEach(s,(c,d)=>{if(!S.isValidElement(c))return;let m=[...a,d];if(c.type===S.Fragment){i.push.apply(i,pi(c.props.children,m));return}c.type!==xi&&Me(!1),!c.props.index||!c.props.children||Me(!1);let f={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,loader:c.props.loader,action:c.props.action,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(f.children=pi(c.props.children,m)),i.push(f)}),i}function gi(){return gi=Object.assign?Object.assign.bind():function(s){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])}return s},gi.apply(this,arguments)}function Vh(s,a){if(s==null)return{};var i={},c=Object.keys(s),d,m;for(m=0;m<c.length;m++)d=c[m],!(a.indexOf(d)>=0)&&(i[d]=s[d]);return i}function Wh(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function Qh(s,a){return s.button===0&&(!a||a==="_self")&&!Wh(s)}const Yh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Gh="6";try{window.__reactRouterVersion=Gh}catch{}const Kh="startTransition",Qu=Km[Kh];function Zh(s){let{basename:a,children:i,future:c,window:d}=s,m=S.useRef();m.current==null&&(m.current=Zm({window:d,v5Compat:!0}));let f=m.current,[g,x]=S.useState({action:f.action,location:f.location}),{v7_startTransition:b}=c||{},E=S.useCallback(C=>{b&&Qu?Qu(()=>x(C)):x(C)},[x,b]);return S.useLayoutEffect(()=>f.listen(E),[f,E]),S.useEffect(()=>$h(c),[c]),S.createElement(Uh,{basename:a,children:i,location:g.location,navigationType:g.action,navigator:f,future:c})}const Xh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=S.forwardRef(function(a,i){let{onClick:c,relative:d,reloadDocument:m,replace:f,state:g,target:x,to:b,preventScrollReset:E,viewTransition:C}=a,M=Vh(a,Yh),{basename:A}=S.useContext(Cn),U,D=!1;if(typeof b=="string"&&qh.test(b)&&(U=b,Xh))try{let z=new URL(window.location.href),G=b.startsWith("//")?new URL(z.protocol+b):new URL(b),oe=Ni(G.pathname,A);G.origin===z.origin&&oe!=null?b=oe+G.search+G.hash:D=!0}catch{}let P=kh(b,{relative:d}),Y=Jh(b,{replace:f,state:g,target:x,preventScrollReset:E,relative:d,viewTransition:C});function T(z){c&&c(z),z.defaultPrevented||Y(z)}return S.createElement("a",gi({},M,{href:U||P,onClick:D||m?c:T,ref:i,target:x}))});var Yu;(function(s){s.UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState"})(Yu||(Yu={}));var Gu;(function(s){s.UseFetcher="useFetcher",s.UseFetchers="useFetchers",s.UseScrollRestoration="useScrollRestoration"})(Gu||(Gu={}));function Jh(s,a){let{target:i,replace:c,state:d,preventScrollReset:m,relative:f,viewTransition:g}=a===void 0?{}:a,x=Sh(),b=Qr(),E=vd(s,{relative:f});return S.useCallback(C=>{if(Qh(C,i)){C.preventDefault();let M=c!==void 0?c:al(b)===al(E);x(s,{replace:M,state:d,preventScrollReset:m,relative:f,viewTransition:g})}},[b,x,E,c,d,i,s,m,f,g])}const Nd=[{path:"/",name:"dashboard",component:"Dashboard",title:"Dashboard",description:"Main dashboard overview",exact:!0},{path:"/packages",name:"packages",component:"PackagesOverview",title:"Packages",description:"Package management and overview",exact:!0},{path:"/packages/:name",name:"package-detail",component:"PackageDetail",title:"Package Details",description:"Detailed view of a specific package"},{path:"/dependencies",name:"dependencies",component:"DependencyGraph",title:"Dependencies",description:"Dependency graph visualization"},{path:"/health",name:"health",component:"HealthStatus",title:"Health Status",description:"Monorepo health monitoring"},{path:"/config",name:"config",component:"ConfigInspector",title:"Configuration",description:"Configuration file inspector"}];Nd.filter(s=>!s.path.includes(":")&&s.path!=="/");function ef({isOpen:s,onClose:a,children:i}){return s?n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:n.jsx("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-hidden",onClick:c=>c.stopPropagation(),children:i})}):null}const ee="w-6 h-6",tf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M10.5 3.75H5.625a1.875 1.875 0 0 0-1.875 1.875V20.25a1.875 1.875 0 0 0 1.875 1.875h12.75a1.875 1.875 0 0 0 1.875-1.875V5.625a1.875 1.875 0 0 0-1.875-1.875H13.5m-3 0V3m0 .75H9m1.5 0h1.5m-9 6.75h12m-12 4.5h12"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})}),it=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"})}),ki=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}),Yr=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),nf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})}):n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:[n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}),rf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12c1.292 4.338 5.31 7.5 10.066 7.5.996 0 1.956-.11 2.895-.327m4.326-3.494a11.952 11.952 0 0 0 3.464-5.192c-1.292-4.338-5.31-7.5-10.066-7.5-.996 0-1.956.11-2.895.327m0 0a11.966 11.966 0 0 0-4.576 3.84m4.576-3.84a11.966 11.966 0 0 1 4.576 3.84M6.502 16.503a3 3 0 1 1 4.243-4.243m-4.243 4.243L3.75 19.75"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}),sf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:[n.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z"}),n.jsx("path",{d:"M20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})]}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})}),Si=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M8 5v14l11-7z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.591-.784l12 9c.54.406.54 1.358 0 1.764l-12 9c-.674.614-1.591.07-1.591-.784V5.653z"})}),Ci=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M7 14l5-5 5 5z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18"})}),bd=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M7 10l5 5 5-5z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3"})}),lf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})}),Ku=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5L15.75 12l-7.5 7.5"})}),af=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})}),Pt=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),Lt=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.3 10.3l-1.3 1.3L13.3 15l1.3 1.3-1.3 1.3L12 16.3l-1.3 1.3-1.3-1.3L10.7 15 9.4 13.7l1.3-1.3L10.7 11l-1.3-1.3 1.3-1.3L12 10.3l1.3-1.3 1.3 1.3L13.3 11l1.3 1.3z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),Gr=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75zM9.75 6.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v13.5c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V6.875zm6-4.5c-.621 0-1.125.504-1.125 1.125v15.75c0 .621.504 1.125 1.125 1.125h2.25a1.125 1.125 0 0 0 1.125-1.125V3.375c0-.621-.504-1.125-1.125-1.125h-2.25z"})}),Ei=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),of=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM16 16v-3.5h-3v3.5h-3l4 4 4-4h-2z"})}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.6 4.6 0 0 1-.88-9.1A5 5 0 1 1 15.9 6L16 6a5 5 0 1 1 .9 9.9m-5 5v-5m0 0L9.7 10.7M12 16l2.3-2.3"})}),cf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.75 7.5A2.25 2.25 0 0 1 8 5.25h8a2.25 2.25 0 0 1 2.25 2.25v8a2.25 2.25 0 0 1-2.25 2.25H8A2.25 2.25 0 0 1 5.75 15V7.5Z"})}),ml=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21v-8.25M15.75 21v-8.25M8.25 21v-8.25M3 9l9-6 9 6m-1.5 12V10.332A48.36 48.36 0 0 0 12 9.75c-2.551 0-5.056.2-7.5.582V21M3 21h18M12 6.75h.008v.008H12V6.75Z"})}),Pi=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2z"})}),il=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),Li=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 8h10M7 12h10m-7 4h7M9 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-4l-2-2z"})}),uf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"})}),df=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.185 0-2.25 1.065-2.25 2.25v5.338a2.25 2.25 0 0 0 .375 1.322l1.968 2.332c.494.583.745 1.379.745 2.191V17.5a2.25 2.25 0 0 0 2.25 2.25h5a2.25 2.25 0 0 0 2.25-2.25v-1.5a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 1-.75.75h-5a.75.75 0 0 1-.75-.75V9.991a.75.75 0 0 1-.75-.75V4.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 0 1.5 0V4.5c0-.647-.146-1.262-.406-1.812z"})}),Mi=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.402.402.937.629 1.531.629a2.16 2.16 0 0 0 1.532-.629l7.04-7.04a2.16 2.16 0 0 0 .628-1.532c0-.595-.227-1.129-.628-1.531l-9.58-9.581a2.25 2.25 0 0 0-1.592-.659H9.568z"})}),kd=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zM14.25 15h.008v.008H14.25V15zm0 2.25h.008v.008H14.25v-.008zM16.5 15h.008v.008H16.5V15zm0 2.25h.008v.008H16.5v-.008z"})}),Bt=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),hl=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.039l1.758-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})}),un=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5,variant:d="outline"})=>d==="solid"?n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:s,width:a,height:i,children:[n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.59 14.37a6 6 0 0 1-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 0 0 6.16-12.12A14.98 14.98 0 0 0 9.631 8.41m5.96 5.96a14.926 14.926 0 0 1-5.841 2.58m-.119-8.54a6 6 0 0 0-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 0 0-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 0 1-2.448-2.448 14.9 14.9 0 0 1 .06-.312m-2.24 2.39a4.493 4.493 0 0 0-1.757 4.306 4.493 4.493 0 0 0 4.306-1.758M16.5 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"})," "]}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.59 14.37a6 6 0 0 1-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 0 0 6.16-12.12A14.98 14.98 0 0 0 9.631 8.41m5.96 5.96a14.926 14.926 0 0 1-5.841 2.58m-.119-8.54a6 6 0 0 0-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 0 0-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 0 1-2.448-2.448 14.9 14.9 0 0 1 .06-.312m-2.24 2.39a4.493 4.493 0 0 0-1.757 4.306 4.493 4.493 0 0 0 4.306-1.758M16.5 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"})}),Ti=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.5 5.5a7.5 7.5 0 0 0 10.5 10.5z"})}),fl=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})}),Jn=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0zm-9-3.75h.008v.008H12V8.25z"})}),Fe=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})}),on=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z"})}),Sd=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:[n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),Sn=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:[n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),mf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 0H8.25m4.125 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 0H12.25m4.125 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"})}),Zu=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"})}),Xu=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.655.355-1.08.852-1.358 1.446-.201.416-.348.665-.518.923a2.712 2.712 0 0 0-.5 1.703c0 .462.1.946.348 1.384.245.531.645 1.046 1.28 1.696a.75.75 0 0 0 1.067-.03c.635-.64 1.035-1.165 1.28-1.696.248-.438.348-.922.348-1.384a2.712 2.712 0 0 0-.5-1.703c-.17-.258-.317-.507-.518-.923-.278-.594-.703-1.091-1.358-1.446m0 0C9.806 2.94 10.923 2.5 12 2.5c1.077 0 2.194.44 3.15 1.336m-1.8 0c.068.087.137.176.207.266.343.417.682.83 1.013 1.296.31.426.629.846 1.013 1.296a.75.75 0 0 0-.584 1.28 60.461 60.461 0 0 1-2.694-.449.75.75 0 0 0-.606.073c-.223.145-.456.366-.656.732a2.75 2.75 0 0 0-.426-1.26c0-.45.09-.88.258-1.28H9m0 0c.068.087.137.176.207.266.343.417.682.83 1.013 1.296.31.426.629.846 1.013 1.296M6.75 12a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm12 0a3 3 0 1 1 6 0 3 3 0 0 1-6 0z"})}),hf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25-4.5h17.25m-17.25-4.5h17.25m-17.25-4.5h17.25"})}),ff=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5.432 15.3a9.01 9.01 0 0 0-2.02 3.991v2.084a2.25 2.25 0 0 0 2.25 2.25h13.636a2.25 2.25 0 0 0 2.25-2.25v-2.084a9.01 9.01 0 0 0-2.02-3.991l-3.659-4.591A2.25 2.25 0 0 1 14.25 8.818v-5.714m0 0L9.75 3.104M14.25 3.104l4.5 0v5.714a2.25 2.25 0 0 1-.659 1.591L18.568 15.3"})}),xf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.75v10.5a.75.75 0 0 1-1.5 0V6.75m0 0a.75.75 0 0 1 1.5 0zm12 0v10.5a.75.75 0 0 1-1.5 0V6.75m0 0a.75.75 0 0 1 1.5 0z"})}),vi=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9z"})}),pf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.5 5.5a7.5 7.5 0 0 0 10.5 10.5zm-6-3.75h.008v.008H12v-.008zm0 2.25h.008v.008H12v-.008zm0-8.25h.008v.008H12V8.25z"})}),gf=({className:s=ee,width:a=24,height:i=24,strokeWidth:c=1.5})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:c,stroke:"currentColor",className:s,width:a,height:i,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.5 5.5a7.5 7.5 0 0 0 10.5 10.5zm-3-7.5h-3m0 0H9m0 0v3m0-3v-3"})});function vf({onSave:s,onClose:a}){return n.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Sd,{className:"w-6 h-6 text-gray-600"}),n.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Dashboard Configuration"})]}),n.jsxs("div",{className:"flex space-x-3",children:[n.jsxs("button",{onClick:s,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 flex items-center space-x-2",children:[n.jsx(ki,{className:"w-5 h-5"}),n.jsx("span",{children:"Save"})]}),n.jsxs("button",{onClick:a,className:"bg-gray-300 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-400 flex items-center space-x-2",children:[n.jsx(Yr,{className:"w-5 h-5"}),n.jsx("span",{children:"Cancel"})]})]})]})}const yf=()=>[{id:"general",label:"General",icon:n.jsx(Sn,{className:"w-6 h-6 text-primary-600"})},{id:"features",label:"Features",icon:n.jsx(un,{className:"w-6 h-6 text-primary-600"})},{id:"branding",label:"Branding",icon:"🎨"},{id:"monorepo",label:"Monorepo",icon:n.jsx(it,{className:"w-6 h-6 text-primary-600"})}],jf=()=>({title:"monodog Dashboard",description:"Visual management of our monorepo packages",packageTypes:["app","lib","tool","service"],customFields:["team","priority","environment"],features:{healthChecks:!0,ciIntegration:!0,dependencyGraph:!0,publishControl:!0,searchAndFilter:!0,configurationInspector:!0},branding:{logo:"",primaryColor:"#3B82F6",secondaryColor:"#1E40AF"},monorepo:{structure:"standard",packageManager:"pnpm",directories:["apps","packages","libs"],ignorePatterns:["node_modules","dist",".git"]}}),qu=s=>{const a=jf();return{...a,...s,features:{...a.features,...s.features},branding:{...a.branding,...s.branding},monorepo:{...a.monorepo,...s.monorepo}}},wf=s=>{const a=[];return(!s.title||s.title.trim()==="")&&a.push("Dashboard title is required"),s.monorepo?.directories&&s.monorepo.directories.length===0&&a.push("At least one package directory is required"),s.branding?.primaryColor&&!Ju(s.branding.primaryColor)&&a.push("Primary color must be a valid hex color"),s.branding?.secondaryColor&&!Ju(s.branding.secondaryColor)&&a.push("Secondary color must be a valid hex color"),{isValid:a.length===0,errors:a}},Ju=s=>/^#[0-9A-F]{6}$/i.test(s),ol=s=>s.split(",").map(a=>a.trim()).filter(a=>a.length>0),cl=s=>s?s.join(", "):"",Nf=s=>s.replace(/([A-Z])/g," $1").trim();function bf({activeTab:s,onTabChange:a}){const i=yf();return n.jsx("div",{className:"border-b border-gray-200",children:n.jsx("nav",{className:"flex space-x-8 px-6",children:i.map(c=>n.jsxs("button",{onClick:()=>a(c.id),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center space-x-2 ${s===c.id?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[n.jsx("span",{children:c.icon}),n.jsx("span",{children:c.label})]},c.id))})})}function ed({config:s,onConfigChange:a}){return n.jsx("div",{className:"space-y-6",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"General Settings"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Dashboard Title"}),n.jsx("input",{type:"text",value:s.title||"",onChange:i=>a({title:i.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"My Monorepo Dashboard"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Description"}),n.jsx("input",{type:"text",value:s.description||"",onChange:i=>a({description:i.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Visual management of our monorepo packages"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Package Types"}),n.jsx("input",{type:"text",value:cl(s.packageTypes),onChange:i=>a({packageTypes:ol(i.target.value)}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"app, lib, tool, service"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Comma-separated list of package types"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Custom Fields"}),n.jsx("input",{type:"text",value:cl(s.customFields),onChange:i=>a({customFields:ol(i.target.value)}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"team, priority, environment"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Additional fields to display for packages"})]})]})]})})}function kf({config:s,onConfigChange:a}){const i=(c,d)=>{a({features:{...s.features,[c]:d}})};return n.jsx("div",{className:"space-y-6",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Feature Toggles"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Object.entries(s.features||{}).map(([c,d])=>n.jsxs("label",{className:"flex items-center space-x-3",children:[n.jsx("input",{type:"checkbox",checked:d,onChange:m=>i(c,m.target.checked),className:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"}),n.jsx("span",{className:"text-sm font-medium text-gray-700 capitalize",children:Nf(c)})]},c))}),n.jsxs("div",{className:"mt-6 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[n.jsx("h4",{className:"text-sm font-medium text-blue-900 mb-2",children:"Feature Descriptions"}),n.jsxs("div",{className:"text-xs text-blue-800 space-y-1",children:[n.jsxs("div",{children:[n.jsx("strong",{children:"Health Checks:"})," Monitor package health and status"]}),n.jsxs("div",{children:[n.jsx("strong",{children:"CI Integration:"})," Connect with CI/CD providers"]}),n.jsxs("div",{children:[n.jsx("strong",{children:"Dependency Graph:"})," Visualize package dependencies"]}),n.jsxs("div",{children:[n.jsx("strong",{children:"Publish Control:"})," Manage package publishing and versioning"]}),n.jsxs("div",{children:[n.jsx("strong",{children:"Search And Filter:"})," Advanced search and filtering capabilities"]}),n.jsxs("div",{children:[n.jsx("strong",{children:"Configuration Inspector:"})," View and edit configuration files"]})]})]})]})})}function Sf({config:s,onConfigChange:a}){const i=(c,d)=>{a({branding:{...s.branding,[c]:d}})};return n.jsx("div",{className:"space-y-6",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Branding & Appearance"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Logo URL"}),n.jsx("input",{type:"text",value:s.branding?.logo||"",onChange:c=>i("logo",c.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"https://example.com/logo.png"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"URL to your company logo"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Primary Color"}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("input",{type:"color",value:s.branding?.primaryColor||"#3B82F6",onChange:c=>i("primaryColor",c.target.value),className:"h-10 w-20 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),n.jsx("input",{type:"text",value:s.branding?.primaryColor||"#3B82F6",onChange:c=>i("primaryColor",c.target.value),className:"flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"#3B82F6"})]}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Primary brand color for buttons and accents"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Secondary Color"}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("input",{type:"color",value:s.branding?.secondaryColor||"#1E40AF",onChange:c=>i("secondaryColor",c.target.value),className:"h-10 w-20 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),n.jsx("input",{type:"text",value:s.branding?.secondaryColor||"#1E40AF",onChange:c=>i("secondaryColor",c.target.value),className:"flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"#1E40AF"})]}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Secondary color for hover states and highlights"})]})]}),n.jsxs("div",{className:"mt-6 p-4 bg-gray-50 border border-gray-200 rounded-lg",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Color Preview"}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg border border-gray-300",style:{backgroundColor:s.branding?.primaryColor||"#3B82F6"}}),n.jsx("span",{className:"text-sm text-gray-600",children:"Primary"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg border border-gray-300",style:{backgroundColor:s.branding?.secondaryColor||"#1E40AF"}}),n.jsx("span",{className:"text-sm text-gray-600",children:"Secondary"})]}),n.jsx("button",{className:"px-4 py-2 rounded-lg text-white text-sm font-medium",style:{backgroundColor:s.branding?.primaryColor||"#3B82F6"},children:"Sample Button"})]})]})]})})}function Cf({config:s,onConfigChange:a}){const i=(c,d)=>{a({monorepo:{...s.monorepo,[c]:d}})};return n.jsx("div",{className:"space-y-6",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Monorepo Configuration"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Structure Type"}),n.jsxs("select",{value:s.monorepo?.structure||"standard",onChange:c=>i("structure",c.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"standard",children:"Standard (apps/packages/libs)"}),n.jsx("option",{value:"custom",children:"Custom Structure"})]}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Choose your monorepo directory structure"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Package Manager"}),n.jsxs("select",{value:s.monorepo?.packageManager||"pnpm",onChange:c=>i("packageManager",c.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"pnpm",children:"pnpm"}),n.jsx("option",{value:"npm",children:"npm"}),n.jsx("option",{value:"yarn",children:"Yarn"}),n.jsx("option",{value:"lerna",children:"Lerna"}),n.jsx("option",{value:"nx",children:"Nx"})]}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Package manager used in your monorepo"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Package Directories"}),n.jsx("input",{type:"text",value:cl(s.monorepo?.directories),onChange:c=>i("directories",ol(c.target.value)),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"apps, packages, libs, services"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Directories containing packages"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Ignore Patterns"}),n.jsx("input",{type:"text",value:cl(s.monorepo?.ignorePatterns),onChange:c=>i("ignorePatterns",ol(c.target.value)),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"node_modules, dist, .git"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Patterns to ignore when scanning"})]})]}),n.jsxs("div",{className:"mt-6 p-4 bg-gray-50 border border-gray-200 rounded-lg",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Configuration Preview"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-700",children:"Structure:"}),n.jsx("span",{className:"ml-2 text-gray-600 capitalize",children:s.monorepo?.structure||"standard"})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-700",children:"Package Manager:"}),n.jsx("span",{className:"ml-2 text-gray-600",children:s.monorepo?.packageManager||"pnpm"})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-700",children:"Directories:"}),n.jsxs("span",{className:"ml-2 text-gray-600",children:[s.monorepo?.directories?.length||0," configured"]})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-700",children:"Ignore Patterns:"}),n.jsxs("span",{className:"ml-2 text-gray-600",children:[s.monorepo?.ignorePatterns?.length||0," patterns"]})]})]})]}),s.monorepo?.packageManager&&n.jsxs("div",{className:"mt-4 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[n.jsxs("h4",{className:"text-sm font-medium text-blue-900 mb-2",children:[s.monorepo.packageManager.toUpperCase()," Configuration Tips"]}),n.jsxs("div",{className:"text-xs text-blue-800",children:[s.monorepo.packageManager==="pnpm"&&n.jsx("p",{children:"Make sure you have a pnpm-workspace.yaml file in your root directory."}),s.monorepo.packageManager==="npm"&&n.jsx("p",{children:'Configure workspaces in your package.json with the "workspaces" field.'}),s.monorepo.packageManager==="yarn"&&n.jsx("p",{children:"Ensure you have workspaces configured in your package.json."}),s.monorepo.packageManager==="lerna"&&n.jsx("p",{children:"Make sure you have a lerna.json configuration file in your root."}),s.monorepo.packageManager==="nx"&&n.jsx("p",{children:"Ensure you have an nx.json configuration file in your workspace root."})]})]})]})})}function Ef({isOpen:s,onClose:a,onSave:i,currentConfig:c}){const[d,m]=S.useState(qu(c)),[f,g]=S.useState("general");S.useEffect(()=>{m(qu(c))},[c]);const x=()=>{const C=wf(d);C.isValid||console.warn("Configuration validation errors:",C.errors),i(d),a()},b=C=>{m(M=>({...M,...C}))},E=()=>{const C={config:d,onConfigChange:b};switch(f){case"general":return n.jsx(ed,{...C});case"features":return n.jsx(kf,{...C});case"branding":return n.jsx(Sf,{...C});case"monorepo":return n.jsx(Cf,{...C});default:return n.jsx(ed,{...C})}};return n.jsxs(ef,{isOpen:s,onClose:a,children:[n.jsx(vf,{onSave:x,onClose:a}),n.jsx(bf,{activeTab:f,onTabChange:g}),n.jsx("div",{className:"p-6 overflow-y-auto max-h-[60vh]",children:E()})]})}function Pf({isOpen:s,onClose:a,children:i}){return s?n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:n.jsx("div",{className:"bg-white rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-hidden",onClick:c=>c.stopPropagation(),children:i})}):null}function Lf({onClose:s}){return n.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Setup Guide"}),n.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Configure your monorepo dashboard for optimal performance"})]}),n.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-600 transition-colors",children:n.jsx(Yr,{className:"w-6 h-6"})})]})}function Mf({progress:s}){const{currentStep:a,totalSteps:i,completedSteps:c}=s,d=(a+1)/i*100;return n.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsxs("span",{className:"text-sm font-medium text-gray-700",children:["Step ",a+1," of ",i]}),n.jsxs("span",{className:"text-sm text-gray-500",children:[c," completed"]})]}),n.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:n.jsx("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${d}%`}})})]})}function Tf({step:s,onStepComplete:a}){const i=()=>{switch(s.id){case"monorepo-structure":return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-blue-900 mb-2",children:"Quick Setup"}),n.jsx("p",{className:"text-blue-800 text-sm mb-3",children:"Choose your monorepo structure to get started quickly:"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[n.jsxs("button",{onClick:()=>a(s.id),className:"p-3 border border-blue-300 rounded-lg hover:bg-blue-100 text-left",children:[n.jsx("div",{className:"font-medium text-blue-900",children:"Standard Structure"}),n.jsx("div",{className:"text-sm text-blue-700",children:"apps/, packages/, libs/"})]}),n.jsxs("button",{onClick:()=>a(s.id),className:"p-3 border border-blue-300 rounded-lg hover:bg-blue-100 text-left",children:[n.jsx("div",{className:"font-medium text-blue-900",children:"Custom Structure"}),n.jsx("div",{className:"text-sm text-blue-700",children:"Define your own directories"})]})]})]}),n.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Manual Configuration"}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Root Directory"}),n.jsx("input",{type:"text",defaultValue:"/path/to/monorepo",className:"w-full px-3 py-2 border border-gray-300 rounded-md text-sm"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Package Manager"}),n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-md text-sm",children:[n.jsx("option",{value:"pnpm",children:"pnpm"}),n.jsx("option",{value:"npm",children:"npm"}),n.jsx("option",{value:"yarn",children:"yarn"})]})]})]})]})]});case"package-scanning":return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-green-900 mb-2",children:"Automatic Discovery"}),n.jsx("p",{className:"text-green-800 text-sm mb-3",children:"We'll scan your monorepo for packages automatically:"}),n.jsx("button",{onClick:()=>a(s.id),className:"bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 text-sm",children:"Start Package Scan"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Jn,{className:"w-4 h-4 mr-2"}),"Scans for package.json files"]}),n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Jn,{className:"w-4 h-4 mr-2"}),"Analyzes dependencies and relationships"]}),n.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[n.jsx(Jn,{className:"w-4 h-4 mr-2"}),"Detects build configurations"]})]})]});case"ci-integration":return n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{className:"bg-purple-50 border border-purple-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-purple-900 mb-2",children:"Connect CI/CD"}),n.jsx("p",{className:"text-purple-800 text-sm mb-3",children:"Choose your CI/CD provider to monitor builds and deployments:"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[n.jsxs("button",{onClick:()=>a(s.id),className:"p-3 border border-purple-300 rounded-lg hover:bg-purple-100 text-left",children:[n.jsx("div",{className:"font-medium text-purple-900",children:"GitHub Actions"}),n.jsx("div",{className:"text-sm text-purple-700",children:"Connect with GitHub"})]}),n.jsxs("button",{onClick:()=>a(s.id),className:"p-3 border border-purple-300 rounded-lg hover:bg-purple-100 text-left",children:[n.jsx("div",{className:"font-medium text-purple-900",children:"GitLab CI"}),n.jsx("div",{className:"text-sm text-purple-700",children:"Connect with GitLab"})]}),n.jsxs("button",{onClick:()=>a(s.id),className:"p-3 border border-purple-300 rounded-lg hover:bg-purple-100 text-left",children:[n.jsx("div",{className:"font-medium text-purple-900",children:"Jenkins"}),n.jsx("div",{className:"text-sm text-purple-700",children:"Connect with Jenkins"})]}),n.jsxs("button",{onClick:()=>a(s.id),className:"p-3 border border-purple-300 rounded-lg hover:bg-purple-100 text-left",children:[n.jsx("div",{className:"font-medium text-purple-900",children:"Skip for now"}),n.jsx("div",{className:"text-sm text-purple-700",children:"Configure later"})]})]})]})});case"health-checks":return n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-orange-900 mb-2",children:"Health Monitoring"}),n.jsx("p",{className:"text-orange-800 text-sm mb-3",children:"Configure how we monitor your package health:"}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2",defaultChecked:!0}),n.jsx("span",{className:"text-sm text-orange-900",children:"Monitor build status"})]}),n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2",defaultChecked:!0}),n.jsx("span",{className:"text-sm text-orange-900",children:"Track test coverage"})]}),n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2"}),n.jsx("span",{className:"text-sm text-orange-900",children:"Dependency vulnerability scanning"})]}),n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2"}),n.jsx("span",{className:"text-sm text-orange-900",children:"Performance monitoring"})]})]}),n.jsx("button",{onClick:()=>a(s.id),className:"mt-3 bg-orange-600 text-white px-4 py-2 rounded-lg hover:bg-orange-700 text-sm",children:"Save Settings"})]})});case"notifications":return n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{className:"bg-indigo-50 border border-indigo-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-indigo-900 mb-2",children:"Notification Preferences"}),n.jsx("p",{className:"text-indigo-800 text-sm mb-3",children:"Choose how you want to be notified about important events:"}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2",defaultChecked:!0}),n.jsx("span",{className:"text-sm text-indigo-900",children:"Build failures"})]}),n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2"}),n.jsx("span",{className:"text-sm text-indigo-900",children:"Security vulnerabilities"})]}),n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2"}),n.jsx("span",{className:"text-sm text-indigo-900",children:"Dependency updates"})]}),n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",className:"mr-2"}),n.jsx("span",{className:"text-sm text-indigo-900",children:"Performance degradation"})]})]}),n.jsx("button",{onClick:()=>a(s.id),className:"mt-3 bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 text-sm",children:"Save Preferences"})]})});default:return n.jsx("div",{className:"text-center py-8",children:n.jsx("p",{className:"text-gray-500",children:"Step content not found"})})}};return n.jsxs("div",{className:"p-6 overflow-y-auto max-h-[50vh]",children:[n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:s.title}),n.jsx("p",{className:"text-gray-600 mb-4",children:s.description})]}),i()]})}function _f({currentStep:s,totalSteps:a,canGoNext:i,canGoPrevious:c,onNext:d,onPrevious:m,onComplete:f,isLastStep:g}){return n.jsxs("div",{className:"flex items-center justify-between p-6 border-t border-gray-200",children:[n.jsx("button",{onClick:m,disabled:!c,className:`px-4 py-2 text-sm rounded-lg border transition-colors ${c?"border-gray-300 text-gray-700 hover:bg-gray-50":"border-gray-200 text-gray-400 cursor-not-allowed"}`,children:"Previous"}),n.jsx("div",{className:"flex space-x-2",children:Array.from({length:a},(x,b)=>n.jsx("div",{className:`w-2 h-2 rounded-full transition-colors ${b<=s?"bg-blue-600":"bg-gray-300"}`},b))}),g?n.jsxs("button",{onClick:f,className:"bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 flex items-center space-x-2 text-sm",children:[n.jsx(ki,{className:"w-4 h-4"}),n.jsx("span",{children:"Complete Setup"})]}):n.jsx("button",{onClick:d,disabled:!i,className:`px-4 py-2 text-sm rounded-lg transition-colors ${i?"bg-blue-600 text-white hover:bg-blue-700":"bg-gray-300 text-gray-500 cursor-not-allowed"}`,children:"Next"})]})}const Rf=()=>[{id:"monorepo-structure",title:"Monorepo Structure",description:"Configure your monorepo directory structure and package manager",completed:!1,required:!0},{id:"package-scanning",title:"Package Scanning",description:"Set up automatic package discovery and dependency analysis",completed:!1,required:!0},{id:"ci-integration",title:"CI/CD Integration",description:"Connect with your CI/CD providers (GitHub Actions, GitLab CI, etc.)",completed:!1,required:!1},{id:"health-checks",title:"Health Monitoring",description:"Configure package health checks and status monitoring",completed:!1,required:!1},{id:"notifications",title:"Notifications",description:"Set up alerts and notifications for important events",completed:!1,required:!1}],If=(s,a)=>({currentStep:a,totalSteps:s.length,completedSteps:s.filter(i=>i.completed).length}),Of=(s,a)=>{const i=s[a];return!i.required||i.completed},zf=s=>s.filter(i=>i.required).every(i=>i.completed),Df=(s,a)=>s.map(i=>i.id===a?{...i,completed:!0}:i);function Ff({isOpen:s,onClose:a,onComplete:i}){const[c,d]=S.useState(0),[m,f]=S.useState(Rf()),g=P=>{const Y=Df(m,P);f(Y),Y[c].completed&&c<m.length-1&&d(z=>z+1)},x=()=>{c<m.length-1&&d(P=>P+1)},b=()=>{c>0&&d(P=>P-1)},E=()=>{zf(m)&&(i(),a())},C=If(m,c),M=Of(m,c),A=c>0,U=c===m.length-1,D=m[c];return n.jsxs(Pf,{isOpen:s,onClose:a,children:[n.jsx(Lf,{onClose:a}),n.jsx(Mf,{progress:C}),n.jsx(Tf,{step:D,onStepComplete:g}),n.jsx(_f,{currentStep:c,totalSteps:m.length,canGoNext:M,canGoPrevious:A,onNext:x,onPrevious:b,onComplete:E,isLastStep:U})]})}function Bf({config:s,onShowSetupGuide:a,onShowConfig:i,onRefresh:c}){return n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-heading text-3xl",children:s.title}),n.jsx("p",{className:"text-body mt-2",children:s.description}),n.jsx("button",{onClick:a,className:"hidden text-primary-600 hover:text-primary-700 text-sm font-medium mt-2",children:"First time? Run the setup guide"})]}),n.jsxs("div",{className:"flex space-x-3",children:[n.jsxs("button",{onClick:c,className:"btn-primary flex items-center space-x-2",children:[n.jsx(on,{className:"w-5 h-5"}),n.jsx("span",{children:"Refresh"})]}),n.jsxs("button",{onClick:i,className:"hidden btn-ghost flex items-center space-x-2",children:[n.jsx(Sd,{className:"w-5 h-5"}),n.jsx("span",{children:"Configure"})]})]})]})}function Af({stats:s}){return n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[n.jsx("div",{className:"card p-6 bg-gray-100",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 rounded-lg",children:n.jsx(it,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Total Packages"}),n.jsx("p",{className:"text-heading text-2xl",children:s.total})]})]})}),n.jsx("div",{className:"card p-6 bg-green-100",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-secondary-100 rounded-lg",children:n.jsx(un,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Applications"}),n.jsx("p",{className:"text-heading text-2xl",children:s.apps})]})]})}),n.jsx("div",{className:"card p-6 bg-yellow-100",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-accent-100 rounded-lg",children:n.jsx(ml,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Libraries"}),n.jsx("p",{className:"text-heading text-2xl",children:s.libs})]})]})}),n.jsx("div",{className:"card p-6 bg-blue-100",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 rounded-lg",children:n.jsx(hl,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Dependencies"}),n.jsx("p",{className:"text-heading text-2xl",children:s.totalDependencies})]})]})})]})}function $f(){return n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow border",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Quick Actions"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[n.jsx(Ft,{to:"/dependencies",className:"p-4 border border-gray-200 rounded-lg hover:border-blue-300 hover:bg-blue-50 transition-colors",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"p-2 bg-blue-100 rounded-lg",children:n.jsx(Gr,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-medium text-gray-900",children:"Dependency Graph"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Visualize package relationships"})]})]})}),n.jsx(Ft,{to:"/health",className:"p-4 border border-gray-200 rounded-lg hover:border-green-300 hover:bg-green-50 transition-colors",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:n.jsx(Ei,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-medium text-gray-900",children:"Health Check"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Monitor package health"})]})]})}),n.jsx(Ft,{to:"/ci",className:"hidden p-4 border border-gray-200 rounded-lg hover:border-purple-300 hover:bg-purple-50 transition-colors",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"p-2 bg-purple-100 rounded-lg",children:n.jsx("span",{className:"text-2xl",children:"🧪"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-medium text-gray-900",children:"CI/CD Status"}),n.jsx("p",{className:"text-sm text-gray-600",children:"View build status"})]})]})})]})]})}function Uf({searchTerm:s,selectedType:a,packageTypes:i,onSearchChange:c,onTypeChange:d}){return n.jsxs("div",{className:"flex flex-col md:flex-row gap-4 mb-6",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(Ti,{className:"w-5 h-5 absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),n.jsx("input",{type:"text",placeholder:"Search packages...",value:s,onChange:m=>c(m.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(fl,{className:"w-5 h-5 text-gray-400"}),n.jsxs("select",{value:a,onChange:m=>d(m.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Types"}),i.map(m=>n.jsx("option",{value:m,className:"capitalize",children:m},m))]})]})]})}function Hf({packages:s,getTypeIcon:a,getStatusColor:i}){return n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Package"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Type"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Version"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Dependencies"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Description"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),n.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:s.map(c=>n.jsxs("tr",{className:"hover:bg-gray-50",children:[n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"text-2xl mr-3",children:a(c.type)}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-gray-900",children:c.name}),n.jsx("div",{className:"text-sm text-gray-500",children:c.path})]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${i(c.type)}`,children:c.type})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:c.version}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:Object.keys(c.dependencies).length+Object.keys(c.devDependencies).length+Object.keys(c.peerDependencies).length}),n.jsx("td",{className:"px-6 py-4 text-sm text-gray-900 max-w-xs truncate",children:c.description||"No description"}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:n.jsx(Ft,{to:`/packages/${encodeURIComponent(c.name)}`,className:"text-blue-600 hover:text-blue-500",children:"View Details"})})]},c.name))})]})})}const Vf=window.ENV?.API_URL??"http://localhost:8999",Et=`${Vf}/api`;class Wf{constructor(){this.mockPackages=[]}async getPackages(){try{const a=await fetch(`${Et}/packages`);if(a.ok)return await a.json();console.error(`getPackages: initial fetch failed with status ${a.status}. Attempting refresh...`);try{return await this.refreshPackages()}catch(i){return console.error("getPackages: refresh failed",i),[]}}catch(a){return console.error("getPackages: unexpected error",a),[]}}async getPackage(a){const i=await fetch(`${Et}/packages/`+encodeURIComponent(a));if(!i.ok)throw new Error(`Failed to fetch package details for "${a}" (Status: ${i.status})`);return await i.json()}async getDependencies(){await new Promise(i=>setTimeout(i,200));const a=new Set;try{return(await this.getPackages()).forEach(d=>{d.dependencies?.forEach(m=>a.add(m))}),Array.from(a).map(d=>({name:d,version:"unknown",type:"dependency",status:"active"}))}catch(i){return console.error("Error fetching dependencies:",i),[]}}async refreshPackages(){try{const a=await fetch(`${Et}/packages/refresh`,{method:"POST",headers:{"Content-Type":"application/json"}});return a.ok?await a.json():(console.error(`refreshPackages: fetch failed with status ${a.status}`),[])}catch(a){return console.error("refreshPackages: unexpected error",a),[]}}async getHealthStatus(){try{const a=await fetch(`${Et}/health/packages`);if(!a.ok){if(!(await fetch(`${Et}/health/refresh`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to refresh health data");await new Promise(f=>setTimeout(f,1e3));const d=await fetch(`${Et}/health/packages`);if(!d.ok)throw new Error("Failed to fetch health data after refresh");return await d.json()}return await a.json()}catch{}}async refreshHealthStatus(){try{const a=await fetch(`${Et}/health/refresh`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!a.ok)throw new Error("Failed to fetch health data");return await a.json()}catch(a){console.error("Error fetching health data:",a)}}async getFallbackHealthStatus(){await new Promise(d=>setTimeout(d,400));const a=[{name:"Package Count",value:this.mockPackages.length,status:"healthy",description:`${this.mockPackages.length} packages in monorepo`},{name:"Dependency Health",value:85,status:"healthy",description:"Dependencies are up to date"},{name:"Build Status",value:95,status:"healthy",description:"Most builds are successful"}],i=this.mockPackages.map(d=>({package:d.name,score:d.status==="healthy"?90:d.status==="warning"?70:50,issues:d.status==="healthy"?[]:["Needs attention"]}));return{overallScore:85,metrics:a,packageHealth:i}}async updatePackageConfiguration(a,i,c){try{const d=await fetch(`${Et}/packages/update-config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:a,config:i,packagePath:c})});if(!d.ok){const f=await d.text();console.error("📥 Error response:",f);let g=`HTTP error ${d.status}`;if(f)try{const x=JSON.parse(f);g=x.error||x.message||g}catch{g=f||g}throw new Error(g)}return await d.json()}catch(d){throw console.error("Error updating package configuration:",d),d}}async getBuildStatus(){await new Promise(i=>setTimeout(i,500));const a=[];for(const i of this.mockPackages){const c=i.scripts&&i.scripts.build,d=i.scripts&&i.scripts.test;if(c||d){const m=new Date(Date.now()-Math.random()*864e5).toISOString(),f=Math.random()>.8?"failed":Math.random()>.6?"building":Math.random()>.4?"queued":"success";a.push({id:`build-${i.name}-${Date.now()}`,package:i.name,status:f,startTime:m,endTime:f!=="building"?new Date(Date.now()-Math.random()*36e5).toISOString():void 0,duration:f!=="building"?Math.floor(Math.random()*300)+60:void 0,stages:this.generateBuildStages(i,f)})}}return a}async getConfigurationFiles(){try{const a=await fetch(`${Et}/config/files`);if(!a.ok)throw new Error(`Failed to fetch config files: ${a.status} ${a.statusText}`);const i=await a.json();if(i.success&&i.files)return i.files;throw new Error("Invalid response format from config files API")}catch(a){return console.error("Error fetching configuration files from backend:",a),[]}}async saveConfigurationFile(a,i){try{const c=await fetch(`${Et}/config/files/${encodeURIComponent(a)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})});if(!c.ok){const m=await c.json();throw new Error(m.error||`Failed to save file: ${c.status} ${c.statusText}`)}const d=await c.json();if(d.success&&d.file)return d.file;throw new Error("Invalid response format from save file API")}catch(c){throw console.error("Error saving configuration file:",c),c}}generateBuildStages(a,i){const c=[{name:"Install",status:"success",duration:Math.floor(Math.random()*30)+10,logs:["Installing dependencies...","Dependencies installed successfully"]},{name:"Lint",status:i==="failed"&&Math.random()>.7?"failed":"success",duration:Math.floor(Math.random()*20)+5,logs:["Running ESLint...","Linting completed"]},{name:"Test",status:i==="failed"&&Math.random()>.5?"failed":"success",duration:Math.floor(Math.random()*60)+30,logs:["Running tests...","Test suite completed"]},{name:"Build",status:i==="failed"?"failed":"success",duration:Math.floor(Math.random()*120)+60,logs:["Building package...","Build completed successfully"]}];if(i==="building"){const d=Math.floor(Math.random()*c.length);c[d].status="running",c.slice(d+1).forEach(m=>m.status="pending")}return c}}const ft=new Wf,Qf=s=>({total:s.length,apps:s.filter(a=>a.type==="app").length,libs:s.filter(a=>a.type==="lib").length,tools:s.filter(a=>a.type==="tool").length,custom:s.filter(a=>!["app","Plib","tool"].includes(a.type)).length,totalDependencies:s.reduce((a,i)=>a+Object.keys(i.dependencies).length+Object.keys(i.peerDependencies).length+Object.keys(i.devDependencies).length,0)}),Yf=s=>[...new Set(s.map(a=>a.type))],Gf=(s,a,i)=>s.filter(c=>{const d=c.name.toLowerCase().includes(a.toLowerCase())||c.description?.toLowerCase().includes(a.toLowerCase()),m=i==="all"||c.type===i;return d&&m}),Kf=s=>{switch(s){case"app":return"bg-blue-100 text-blue-800";case"lib":return"bg-green-100 text-green-800";case"tool":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},Zf=s=>{switch(s){case"app":return n.jsx(un,{className:"w-6 h-6 text-primary-600"});case"lib":return n.jsx(ml,{className:"w-6 h-6 text-primary-600"});case"tool":return"🔧";default:return n.jsx(it,{className:"w-6 h-6 text-primary-600"})}};function _i({message:s="Loading packages..."}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:s})]})})}function Cd({error:s,onRetry:a}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Fe,{className:"w-12 h-12 text-red-500 mx-auto"}),n.jsx("p",{className:"mt-4 text-red-600",children:s}),a&&n.jsx("button",{onClick:a,className:"mt-4 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})})}function Xf({stats:s}){return n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[n.jsx("div",{className:"bg-gray-100 p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 rounded-lg",children:n.jsx(it,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Total Packages"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.total})]})]})}),n.jsx("div",{className:"bg-green-100 p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:n.jsx(Pt,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Healthy"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-600",children:s.healthy})]})]})}),n.jsx("div",{className:"bg-yellow-100 p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-yellow-100 rounded-lg",children:n.jsx(Fe,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Warnings"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-600",children:s.warnings})]})]})}),n.jsx("div",{className:"bg-red-100 p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-red-100 rounded-lg",children:n.jsx(Lt,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Errors"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-600",children:s.errors})]})]})})]})}function qf({filters:s,onFiltersChange:a,availableTypes:i,availableStatuses:c}){return n.jsx("div",{className:"bg-white p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between space-y-4 md:space-y-0 md:space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(Ti,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 h-5 w-5"}),n.jsx("input",{type:"text",placeholder:"Search packages by name, description, or tags...",value:s.search,onChange:d=>a({...s,search:d.target.value}),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(fl,{className:"h-5 w-5 text-gray-400"}),n.jsxs("select",{value:s.type,onChange:d=>a({...s,type:d.target.value}),className:"border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Types"}),i.map(d=>n.jsx("option",{value:d,children:d.charAt(0).toUpperCase()+d.slice(1)},d))]})]}),n.jsxs("select",{value:s.status,onChange:d=>a({...s,status:d.target.value}),className:"border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Status"}),c.map(d=>n.jsx("option",{value:d,children:d.charAt(0).toUpperCase()+d.slice(1)},d))]})]})]})})}const Jf=s=>({total:s.length,healthy:s.filter(a=>a.status==="healthy").length,warnings:s.filter(a=>a.status==="warning").length,errors:s.filter(a=>a.status==="error").length}),ex=s=>[...new Set(s.map(a=>a.type))],tx=s=>[...new Set(s.map(a=>a.status))],nx=(s,a)=>s.filter(i=>{const c=i.name.toLowerCase().includes(a.search.toLowerCase())||i.description.toLowerCase().includes(a.search.toLowerCase()),d=a.type==="all"||i.type===a.type,m=a.status==="all"||i.status===a.status;return c&&d&&m}),rx=(s,a)=>[...s].sort((i,c)=>{let d,m;switch(a.field){case"name":d=i.name.toLowerCase(),m=c.name.toLowerCase();break;case"version":d=i.version,m=c.version;break;case"lastUpdated":d=new Date(i.lastUpdated),m=new Date(c.lastUpdated);break;case"dependencies":d=Object.keys(i.dependencies).length,m=Object.keys(c.dependencies).length;break;default:return 0}return d<m?a.order==="asc"?-1:1:d>m?a.order==="asc"?1:-1:0}),Ed=s=>{switch(s){case"healthy":return"bg-green-100 text-green-800";case"warning":return"bg-yellow-100 text-yellow-800";case"error":return"bg-red-100 text-red-800";case"building":return"bg-blue-100 text-blue-800";default:return"bg-gray-100 text-gray-800"}},Pd=s=>{switch(s){case"app":return"bg-blue-100 text-blue-800";case"lib":return"bg-purple-100 text-purple-800";case"tool":return"bg-orange-100 text-orange-800";case"service":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},sx=s=>{switch(s){case"up-to-date":return"bg-green-100 text-green-800";case"outdated":return"bg-yellow-100 text-yellow-800";case"major-update":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}},lx=s=>{switch(s){case"feature":return"bg-blue-100 text-blue-800";case"fix":return"bg-green-100 text-green-800";case"chore":return"bg-gray-100 text-gray-800";case"breaking":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}},Ri=s=>new Date(s).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),Ld=s=>s.startsWith("v")?s:`v${s}`,Md=s=>{switch(s){case"app":return n.jsx(un,{className:"w-6 h-6 text-primary-600"});case"lib":return n.jsx(ml,{className:"w-6 h-6 text-primary-600"});case"tool":return"🔧";case"service":return"🌐";default:return n.jsx(it,{className:"w-6 h-6 text-primary-600"})}};function ax({packages:s,sorting:a,onSortChange:i}){const c=m=>{const f=a.field===m&&a.order==="asc"?"desc":"asc";i({field:m,order:f})},d=m=>a.field!==m?null:a.order==="asc"?n.jsx(Ci,{className:"w-4 h-4"}):n.jsx(bd,{className:"w-4 h-4"});return n.jsx("div",{className:"bg-white rounded-lg shadow border overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>c("name"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Package"}),d("name")]})}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>c("version"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Version"}),d("version")]})}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Type"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>c("dependencies"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Dependencies"}),d("dependencies")]})}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>c("lastUpdated"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Last Updated"}),d("lastUpdated")]})}),n.jsx("th",{className:"hidden px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Maintainers"})]})}),n.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:s.map(m=>n.jsxs("tr",{className:"hover:bg-gray-50",children:[n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"text-2xl mr-3",children:Md(m.type)}),n.jsxs("div",{children:[n.jsx(Ft,{to:`/packages/${encodeURIComponent(m.name)}`,className:"text-sm font-medium text-blue-600 hover:text-blue-500",children:m.name}),n.jsx("div",{className:"text-sm text-gray-500",children:m.description})]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:"text-sm font-mono text-gray-900",children:Ld(m.version)})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Pd(m.type)}`,children:m.type})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Ed(m.status)}`,children:m.status})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:Object.keys(m.dependencies).length>0&&n.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[Object.keys(m.dependencies).slice(0,3).join(", "),Object.keys(m.dependencies).length>3&&` +${Object.keys(m.dependencies).length-3} more`]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:Ri(m.lastUpdated)}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex -space-x-1",children:[m.maintainers.slice(0,3).map((f,g)=>n.jsx("div",{className:"inline-flex items-center justify-center h-6 w-6 rounded-full bg-gray-500 text-xs font-medium text-white",title:f,children:f.charAt(0).toUpperCase()},f)),m.maintainers.length>3&&n.jsxs("div",{className:"inline-flex items-center justify-center h-6 w-6 rounded-full bg-gray-300 text-xs font-medium text-gray-600",children:["+",m.maintainers.length-3]})]})})]},m.name))})]})})})}function ix({packageData:s}){const a=i=>{switch(i){case"healthy":return n.jsx(Pt,{className:"h-5 w-5 text-green-500"});case"warning":return n.jsx(Fe,{className:"h-5 w-5 text-yellow-500"});case"error":return n.jsx(Fe,{className:"h-5 w-5 text-red-500"});default:return n.jsx(Bt,{className:"h-5 w-5 text-gray-500"})}};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"mb-6",children:n.jsxs(Ft,{to:"/packages",className:"inline-flex items-center text-sm text-gray-500 hover:text-gray-700",children:[n.jsx(lf,{className:"mr-2 h-4 w-4"}),"Back to Packages"]})}),n.jsxs("div",{className:"bg-white rounded-lg shadow border p-6 mb-6",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"text-4xl",children:Md(s.type)}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:s.name}),n.jsx("p",{className:"text-gray-600 mt-1",children:s.description}),n.jsxs("div",{className:"flex items-center space-x-4 mt-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm font-medium text-gray-500",children:"Version:"}),n.jsx("span",{className:"text-sm font-mono bg-gray-100 px-2 py-1 rounded",children:Ld(s.version)})]}),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Pd(s.type)}`,children:s.type}),n.jsxs("div",{className:"flex items-center space-x-1",children:[a(s.status),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Ed(s.status)}`,children:s.status})]})]})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("div",{className:"text-sm text-gray-500 mb-2",children:"Health Score"}),n.jsxs("div",{className:"text-2xl font-bold text-blue-600",children:[s.packageHealth?.packageOverallScore??"","%"]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mt-6 pt-6 border-t border-gray-200",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(kd,{className:"h-4 w-4 text-gray-400"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs text-gray-500",children:"Last Updated"}),n.jsx("div",{className:"text-sm font-medium",children:Ri(s.lastUpdated)})]})]}),n.jsxs("div",{className:"hidden flex items-center space-x-2",children:[n.jsx(af,{className:"h-4 w-4 text-gray-400"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs text-gray-500",children:"Maintainers"}),n.jsx("div",{className:"text-sm font-medium",children:s.maintainers.length})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Mi,{className:"h-4 w-4 text-gray-400"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs text-gray-500",children:"License"}),n.jsx("div",{className:"text-sm font-medium",children:s.license})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"h-4 w-4 text-gray-400",children:n.jsx(hl,{className:"h-4 w-4 text-gray-400"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs text-gray-500",children:"Repository"}),n.jsx("div",{className:"text-sm font-medium truncate",children:n.jsx("a",{href:s.repository.url||"",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-500",children:s.repository?.url?.split("/").pop()})})]})]})]}),s.tags?.length>0&&n.jsxs("div",{className:"mt-4",children:[n.jsx("div",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),n.jsx("div",{className:"flex flex-wrap gap-2",children:s.tags.map(i=>n.jsx("span",{className:"inline-flex px-2 py-1 text-xs bg-gray-100 text-gray-700 rounded-full",children:i},i))})]})]})]})}function ox({activeTab:s,onTabChange:a}){const i=[{id:"overview",label:"Overview",icon:it},{id:"dependencies",label:"Dependencies",icon:Li},{id:"commits",label:"Recent Commits",icon:Bt},{id:"health",label:"Health Metrics",icon:Ei},{id:"config",label:"Configuration",icon:Sn}];return n.jsx("div",{className:"border-b border-gray-200",children:n.jsx("nav",{className:"flex space-x-8",children:i.map(c=>{const d=c.icon;return n.jsxs("button",{onClick:()=>a(c.id),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center space-x-2 ${s===c.id?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[n.jsx(d,{className:"w-4 h-4"}),n.jsx("span",{children:c.label})]},c.id)})})})}function cx({packageData:s}){if(!s.dependenciesInfo.length)return n.jsx("p",{className:"py-6 text-gray-600",children:"No dependency found."});const a=(i,c)=>n.jsxs("div",{className:"mb-8",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:c}),n.jsx("div",{className:"bg-white border rounded-lg overflow-hidden",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Package"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Current"}),n.jsx("th",{className:"hidden px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Latest"}),n.jsx("th",{className:"hidden px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),n.jsx("th",{className:"hidden px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),n.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:i.map(d=>n.jsxs("tr",{className:"hover:bg-gray-50",children:[n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("div",{className:"text-sm font-medium text-gray-900",children:d.name})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:"text-sm font-mono text-gray-700",children:d.version})}),n.jsx("td",{className:"hidden px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:"text-sm font-mono text-gray-700",children:d.latest})}),n.jsx("td",{className:"hidden px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${sx(d.status)}`,children:d.status.replace("-"," ")})}),n.jsx("td",{className:"hidden px-6 py-4 whitespace-nowrap text-sm",children:d.status!=="up-to-date"&&n.jsxs("button",{className:"text-blue-600 hover:text-blue-500 flex items-center space-x-1",children:[n.jsx(Ci,{className:"w-4 h-4"}),n.jsx("span",{children:"Update"})]})})]},d.name))})]})})]});return n.jsxs("div",{className:"py-6",children:[a(s.dependenciesInfo.filter(i=>i.type=="dependency"),"Dependencies"),a(s.dependenciesInfo.filter(i=>i.type=="devDependency"),"Dev Dependencies"),a(s.dependenciesInfo.filter(i=>i.type=="peerDependency"),"Peer Dependencies"),n.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-blue-900 mb-2",children:"Dependency Summary"}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-blue-800",children:"Total Dependencies:"}),n.jsx("span",{className:"ml-2 text-blue-700",children:s.dependenciesInfo.filter(i=>i.type=="dependency").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-blue-800",children:"Dev Dependencies:"}),n.jsx("span",{className:"ml-2 text-blue-700",children:s.dependenciesInfo.filter(i=>i.type=="devDependency").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-blue-800",children:"Peer Dependencies:"}),n.jsx("span",{className:"ml-2 text-blue-700",children:s.dependenciesInfo.filter(i=>i.type=="peerDependency").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-blue-800",children:"Outdated:"}),n.jsx("span",{className:"ml-2 text-blue-700",children:s.dependenciesInfo.filter(i=>i.status==="outdated").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-blue-800",children:"Major Updates:"}),n.jsx("span",{className:"ml-2 text-blue-700",children:s.dependenciesInfo.filter(i=>i.status==="major-update").length})]})]})]})]})}function ux({packageData:s}){return n.jsxs("div",{className:"py-6",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Recent Commits"}),n.jsx("div",{className:"space-y-4",children:s.commits.map(a=>n.jsx("div",{className:"bg-white border rounded-lg p-4 hover:shadow-md transition-shadow",children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${lx(a.type)}`,children:a.type}),n.jsx("span",{className:"text-sm font-mono text-gray-500",children:a.hash})]}),n.jsx("p",{className:"text-sm font-medium text-gray-900 mb-2",children:a.message}),n.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-500",children:[n.jsxs("span",{children:["by ",a.author]}),n.jsx("span",{children:Ri(a.date)})]})]}),n.jsx("div",{className:"hidden ml-4",children:n.jsx("button",{className:"text-blue-600 hover:text-blue-500 text-sm",children:"View Diff"})})]})},a.hash))}),s.commits.length===0&&n.jsxs("div",{className:"text-center py-8",children:[n.jsx("div",{className:"text-gray-400 text-4xl mb-2",children:"📝"}),n.jsx("p",{className:"text-gray-500",children:"No recent commits found"})]}),n.jsxs("div",{className:"mt-6 bg-gray-50 border border-gray-200 rounded-lg p-4",children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Commit Summary"}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-800",children:"Features:"}),n.jsx("span",{className:"ml-2 text-gray-600",children:s.commits.filter(a=>a.type==="feat").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-800",children:"Fixes:"}),n.jsx("span",{className:"ml-2 text-gray-600",children:s.commits.filter(a=>a.type==="fix").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-800",children:"Chores:"}),n.jsx("span",{className:"ml-2 text-gray-600",children:s.commits.filter(a=>a.type==="chore").length})]}),n.jsxs("div",{children:[n.jsx("span",{className:"font-medium text-gray-800",children:"Breaking:"}),n.jsx("span",{className:"ml-2 text-gray-600",children:s.commits.filter(a=>a.type==="breaking").length})]})]})]})]})}function dx({packageData:s}){const a=m=>m>=80?"text-green-600":m>=60?"text-yellow-600":"text-red-600",i=m=>{switch(m){case"success":return n.jsx(Pt,{className:"w-5 h-5 text-green-500"});case"failed":return n.jsx(Lt,{className:"w-5 h-5 text-red-500"});case"running":return n.jsx("div",{className:"w-5 h-5 border-2 border-blue-500 border-t-transparent rounded-full animate-spin"});default:return n.jsx(Fe,{className:"w-5 h-5 text-gray-500"})}},c=m=>{switch(m){case"success":return"bg-green-100 text-green-800";case"failed":return"bg-red-100 text-red-800";case"running":return"bg-blue-100 text-blue-800";default:return"bg-gray-100 text-gray-800"}},d=m=>{switch(m){case"pass":return"bg-green-100 text-green-800";case"fail":return"bg-red-100 text-red-800";case"warning":return"bg-yellow-100 text-yellow-800";default:return"bg-gray-100 text-gray-800"}};return s.packageHealth?.packageOverallScore?n.jsxs("div",{className:"py-6",children:[n.jsxs("div",{className:"bg-white border rounded-lg p-6 mb-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Health Score"}),n.jsxs("div",{className:`text-3xl font-bold ${a(s.packageHealth.packageOverallScore)}`,children:[s.packageHealth.packageOverallScore,"%"]})]}),n.jsx("div",{className:"w-full bg-gray-200 rounded-full h-3 mb-4",children:n.jsx("div",{className:`h-3 rounded-full transition-all duration-300 ${s.packageHealth.packageOverallScore>=80?"bg-green-500":s.packageHealth.packageOverallScore>=60?"bg-yellow-500":"bg-red-500"}`,style:{width:`${s.packageHealth.packageOverallScore}%`}})}),n.jsxs("p",{className:"text-sm text-gray-600",children:[s.packageHealth.packageOverallScore>=80&&"Excellent health - package is in great condition",s.packageHealth.packageOverallScore>=60&&s.packageHealth.packageOverallScore<80&&"Good health - minor issues detected",s.packageHealth.packageOverallScore<60&&"Needs attention - several issues require fixing"]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-6",children:[n.jsxs("div",{className:"bg-white border rounded-lg p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Build Status"}),i(s.packageHealth.packageBuildStatus)]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${c(s.packageHealth.packageBuildStatus)}`,children:s.packageHealth.packageBuildStatus}),n.jsx("button",{className:"hidden text-blue-600 hover:text-blue-500 text-sm",children:"View Logs"})]})]}),n.jsxs("div",{className:"hidden bg-white border rounded-lg p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Test Coverage"}),n.jsxs("div",{className:`text-lg font-semibold ${s.packageHealth.packageTestCoverage>=80?"text-green-600":s.packageHealth.packageTestCoverage>=60?"text-yellow-600":"text-red-600"}`,children:[s.packageHealth.packageTestCoverage,"%"]})]}),n.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:n.jsx("div",{className:`h-2 rounded-full ${s.packageHealth.packageTestCoverage>=80?"bg-green-500":s.packageHealth.packageTestCoverage>=60?"bg-yellow-500":"bg-red-500"}`,style:{width:`${s.packageHealth.packageTestCoverage}%`}})})]}),n.jsxs("div",{className:"bg-white border rounded-lg p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Lint Status"}),s.packageHealth.packageLintStatus==="pass"&&n.jsx(Pt,{className:"w-5 h-5 text-green-500"}),s.packageHealth.packageLintStatus==="fail"&&n.jsx(Lt,{className:"w-5 h-5 text-red-500"}),s.packageHealth.packageLintStatus==="warning"&&n.jsx(Fe,{className:"w-5 h-5 text-yellow-500"})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${d(s.packageHealth.packageLintStatus)}`,children:s.packageHealth.packageLintStatus}),n.jsx("button",{className:"hidden text-blue-600 hover:text-blue-500 text-sm",children:"View Issues"})]})]})]}),n.jsxs("div",{className:"bg-white border rounded-lg p-6",children:[n.jsx("h4",{className:"text-lg font-medium text-gray-900 mb-4",children:"Detailed Metrics"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("h5",{className:"text-sm font-medium text-gray-700 mb-3",children:"Dependencies"}),n.jsxs("div",{className:"space-y-2 text-sm",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Total Dependencies:"}),n.jsx("span",{className:"font-medium",children:Object.keys(s.dependenciesInfo).length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Outdated:"}),n.jsx("span",{className:"font-medium text-yellow-600",children:s.dependenciesInfo.filter(m=>m.status==="outdated").length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Major Updates Available:"}),n.jsx("span",{className:"font-medium text-red-600",children:s.dependenciesInfo.filter(m=>m.status==="major-update").length})]})]})]}),n.jsxs("div",{children:[n.jsx("h5",{className:"text-sm font-medium text-gray-700 mb-3",children:"Code Quality"}),n.jsxs("div",{className:"space-y-2 text-sm",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Build Status:"}),n.jsx("span",{className:`font-medium ${s.packageHealth.packageBuildStatus==="success"?"text-green-600":s.packageHealth.packageBuildStatus==="failed"?"text-red-600":"text-yellow-600"}`,children:s.packageHealth.packageBuildStatus})]}),n.jsxs("div",{className:"hidden flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Test Coverage:"}),n.jsxs("span",{className:"font-medium",children:[s.packageHealth.packageTestCoverage,"%"]})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Lint Status:"}),n.jsx("span",{className:`font-medium ${s.packageHealth.packageLintStatus==="pass"?"text-green-600":s.packageHealth.packageLintStatus==="fail"?"text-red-600":"text-yellow-600"}`,children:s.packageHealth.packageLintStatus})]})]})]})]})]})]}):n.jsx("p",{className:"py-6 text-gray-600",children:"No health data available."})}function mx({packageData:s}){const[a,i]=S.useState(!1),[c,d]=S.useState(""),[m,f]=S.useState(!1),[g,x]=S.useState(""),[b,E]=S.useState(null),[C,M]=S.useState(!1),A=()=>{const z={name:s.name,version:s.version,description:s.description||"",license:s.license||"",repository:s.repository||{},scripts:s.scripts||{},dependencies:s.dependencies||{},devDependencies:s.devDependencies||{},peerDependencies:s.peerDependencies||{}};return JSON.stringify(z,null,2)};S.useState(()=>{d(A())});const U=()=>{i(!0),d(A()),x("")},D=()=>{i(!1),d(A()),x("")},P=async()=>{if(!c.trim()){x("Configuration cannot be empty");return}f(!0),x("");try{const z=await ft.updatePackageConfiguration(s.name,c,s.path);if(z.success)x("Configuration updated successfully!"),i(!1);else throw new Error(z.message||"Update failed")}catch(z){console.error("Error saving configuration:",z),x(z instanceof Error?z.message:"Failed to save configuration. Please try again.")}finally{f(!1)}},Y=z=>{d(z.target.value),g&&x("")},T=async(z,G,oe)=>{try{await navigator.clipboard.writeText(z),G==="config"?(M(!0),setTimeout(()=>M(!1),4e3)):G==="script"&&oe&&(E(oe),setTimeout(()=>E(null),4e3))}catch(me){console.error("Failed to copy to clipboard:",me);const q=document.createElement("textarea");q.value=z,document.body.appendChild(q),q.select();try{document.execCommand("copy"),G==="config"?(M(!0),setTimeout(()=>M(!1),2e3)):G==="script"&&oe&&(E(oe),setTimeout(()=>E(null),2e3))}catch(de){console.error("Fallback copy failed:",de),G==="config"&&x("Failed to copy to clipboard")}document.body.removeChild(q)}};return n.jsxs("div",{className:"py-6",children:[n.jsxs("div",{className:"bg-white border rounded-lg p-6 mb-6",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[n.jsx(Li,{className:"w-5 h-5 text-gray-600"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Package Scripts"})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Object.entries(s.scripts).map(([z,G])=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:z}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>T(G,"script",z),className:`text-sm flex items-center space-x-1 ${b===z?"text-green-600":"text-gray-600 hover:text-gray-700"}`,title:"Copy command to clipboard",children:b===z?n.jsxs(n.Fragment,{children:[n.jsx(Xu,{className:"w-4 h-4"}),n.jsx("span",{children:"Copied!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(Zu,{className:"w-4 h-4"}),n.jsx("span",{children:"Copy"})]})}),n.jsx("button",{className:"hidden text-blue-600 hover:text-blue-500 text-sm",children:"Run"})]})]}),n.jsx("code",{className:"text-xs text-gray-600 bg-gray-100 p-2 rounded block overflow-x-auto",children:G})]},z))}),Object.keys(s.scripts).length===0&&n.jsxs("div",{className:"text-center py-8",children:[n.jsx("div",{className:"text-gray-400 text-4xl mb-2",children:"📝"}),n.jsx("p",{className:"text-gray-500",children:"No scripts configured"})]})]}),n.jsxs("div",{className:"bg-white border rounded-lg p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Package Configuration"}),!a&&n.jsx("div",{className:"text-sm text-gray-500",children:"Read-only preview"})]}),a?n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"bg-gray-900 text-gray-100 p-4 rounded-lg",children:n.jsx("textarea",{value:c,onChange:Y,className:"w-full h-96 bg-gray-900 text-gray-100 text-sm font-mono resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 rounded",spellCheck:"false"})}),g&&n.jsx("div",{className:`p-3 rounded-lg text-sm ${g.includes("successfully")?"bg-green-50 text-green-700 border border-green-200":"bg-red-50 text-red-700 border border-red-200"}`,children:g}),n.jsxs("div",{className:"flex space-x-3",children:[n.jsx("button",{onClick:P,disabled:m,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 disabled:bg-blue-300 disabled:cursor-not-allowed text-sm flex items-center space-x-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),n.jsx("span",{children:"Saving..."})]}):n.jsx("span",{children:"Save Changes"})}),n.jsx("button",{onClick:D,disabled:m,className:"border border-gray-300 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed text-sm",children:"Cancel"})]})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto",children:n.jsx("pre",{className:"text-sm",children:c})}),n.jsxs("div",{className:"mt-4 flex space-x-3",children:[n.jsx("button",{onClick:U,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 text-sm",children:"Edit Configuration"}),n.jsx("button",{onClick:()=>T(a?c:A(),"config"),className:"border border-gray-300 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-50 text-sm flex items-center space-x-2",children:C?n.jsxs(n.Fragment,{children:[n.jsx(Xu,{className:"w-4 h-4 text-green-600"}),n.jsx("span",{children:"Copied!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(Zu,{className:"w-4 h-4"}),n.jsx("span",{children:"Copy"})]})})]})]})]})]})}const td={title:"Monorepo Dashboard",description:"Visual management and monitoring of your monorepo packages",packageTypes:["app","lib","tool"],features:{healthChecks:!0,ciIntegration:!0,dependencyGraph:!0,publishControl:!0,searchAndFilter:!0,configurationInspector:!0},branding:{primaryColor:"#3B82F6",secondaryColor:"#1E40AF"}};function hx(){const[s,a]=S.useState(),[i,c]=S.useState(""),[d,m]=S.useState("all"),[f,g]=S.useState(td),[x,b]=S.useState(!1),[E,C]=S.useState(!1),[M,A]=S.useState(!0),[U,D]=S.useState(null),[P,Y]=S.useState(!1);S.useEffect(()=>{(async()=>{try{A(!0);const de=await ft.getPackages();a(de),D(null)}catch(de){D("Failed to fetch packages"),console.error("Error fetching packages:",de)}finally{A(!1)}})()},[]),S.useEffect(()=>{const q=localStorage.getItem("monodog-config");q&&g({...td,...JSON.parse(q)})},[]);const T=q=>{g(q),localStorage.setItem("monodog-config",JSON.stringify(q))},z=async()=>{try{Y(!0),D(null),A(!0);try{const q=await ft.refreshPackages();a(q),D(null)}catch(q){D("Failed to fetch package data"),console.error("Error fetching package data:",q)}finally{A(!1)}}catch(q){D("Failed to refresh package data"),console.error("Error refreshing package data:",q)}finally{Y(!1)}};if(M&&!s)return n.jsx(_i,{});if(U)return n.jsx(Cd,{error:U,onRetry:z});const G=Gf(s??[],i,d),oe=Yf(s??[]),me=Qf(s??[]);return n.jsxs("div",{className:"p-6 space-y-6",children:[P&&s&&n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-700",children:"Refreshing packages..."})]})}),n.jsx(Bf,{config:f,onShowSetupGuide:()=>C(!0),onShowConfig:()=>b(!0),onRefresh:z}),n.jsx(Af,{stats:me}),n.jsx($f,{}),n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow border",children:[n.jsx(Uf,{searchTerm:i,selectedType:d,packageTypes:oe,onSearchChange:c,onTypeChange:m}),n.jsx(Hf,{packages:G,getTypeIcon:Zf,getStatusColor:Kf})]}),n.jsx(Ef,{isOpen:x,onClose:()=>b(!1),onSave:T,currentConfig:f}),n.jsx(Ff,{isOpen:E,onClose:()=>C(!1),onComplete:()=>C(!1)})]})}function fx(){const[s,a]=S.useState([]),[i,c]=S.useState(!0),[d,m]=S.useState(null),[f,g]=S.useState({search:"",type:"all",status:"all"}),[x,b]=S.useState({field:"name",order:"asc"});S.useEffect(()=>{(async()=>{try{c(!0);const Y=await ft.getPackages();a(Y),m(null)}catch(Y){m("Failed to fetch packages"),console.error("Error fetching packages:",Y)}finally{c(!1)}})()},[]);const E=()=>{window.location.reload()},C=nx(s,f),M=rx(C,x),A=Jf(s),U=ex(s),D=tx(s);return i?n.jsx(_i,{}):d?n.jsx(Cd,{error:d,onRetry:E}):n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-heading text-2xl",children:"Packages Overview"}),n.jsx("p",{className:"text-body mt-1",children:"Manage and monitor all packages in your monorepo"})]})}),n.jsx(Xf,{stats:A}),n.jsx(qf,{filters:f,onFiltersChange:g,availableTypes:U,availableStatuses:D}),n.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600",children:[n.jsxs("span",{children:["Showing ",M.length," of ",s.length," packages",f.search&&` matching "${f.search}"`]}),n.jsxs("span",{children:[f.type!=="all"&&`Filtered by type: ${f.type}`,f.status!=="all"&&` • status: ${f.status}`]})]}),n.jsx(ax,{packages:M,sorting:x,onSortChange:b}),M.length===0&&!i&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx("div",{className:"text-neutral-400 text-6xl mb-4 flex justify-center",children:n.jsx(it,{className:"w-6 h-6 text-primary-600"})}),n.jsx("h3",{className:"text-heading text-lg mb-2",children:"No packages found"}),n.jsx("p",{className:"text-body mb-4",children:f.search||f.type!=="all"||f.status!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first package to the monorepo."}),(f.search||f.type!=="all"||f.status!=="all")&&n.jsx("button",{onClick:()=>g({search:"",type:"all",status:"all"}),className:"text-primary-600 hover:text-primary-500",children:"Clear Filters"})]})]})}function xx(){const{name:s}=Eh(),[a,i]=S.useState(null),[c,d]=S.useState("overview");if(S.useEffect(()=>{(async()=>{try{const g=await ft.getPackage(s??"");i(g)}catch(g){console.error("Error fetching packages:",g)}})()},[s]),!a)return n.jsx(_i,{message:"Loading package details..."});const m=()=>{switch(c){case"overview":return n.jsx("div",{className:"py-6",children:n.jsxs("div",{className:"bg-white border rounded-lg p-6",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Package Overview"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Description"}),n.jsx("p",{className:"text-gray-600 mb-4",children:a.description}),n.jsx("h4",{className:"hidden text-sm font-medium text-gray-700 mb-2",children:"Maintainers"}),n.jsx("div",{className:"space-y-1",children:Object.keys(a.maintainers).map(f=>n.jsx("div",{className:"text-sm text-gray-600",children:f},f))})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Quick Stats"}),n.jsxs("div",{className:"space-y-2 text-sm",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Dependencies:"}),n.jsx("span",{className:"font-medium",children:a.dependenciesInfo.filter(f=>f.type=="dependency").length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Dev Dependencies:"}),n.jsx("span",{className:"font-medium",children:a.dependenciesInfo.filter(f=>f.type=="devDependency").length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Peer Dependencies:"}),n.jsx("span",{className:"font-medium",children:a.dependenciesInfo.filter(f=>f.type=="peerDependency").length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Scripts:"}),n.jsx("span",{className:"font-medium",children:Object.keys(a.scripts).length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Recent Commits:"}),n.jsx("span",{className:"font-medium",children:a.commits?.length})]})]})]})]})]})});case"dependencies":return n.jsx(cx,{packageData:a});case"commits":return n.jsx(ux,{packageData:a});case"health":return n.jsx(dx,{packageData:a});case"config":return n.jsx(mx,{packageData:a});default:return null}};return n.jsxs("div",{className:"space-y-6",children:[n.jsx(ix,{packageData:a}),n.jsxs("div",{className:"bg-white rounded-lg shadow border",children:[n.jsx(ox,{activeTab:c,onTabChange:d}),n.jsx("div",{className:"px-6",children:m()})]})]})}function px({message:s="Loading dependency graph..."}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:s})]})})}function gx({error:s,onRetry:a}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Fe,{className:"w-12 h-12 text-red-500 mx-auto"}),n.jsx("p",{className:"mt-4 text-red-600",children:s}),a&&n.jsx("button",{onClick:a,className:"mt-4 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})})}function vx({onRefresh:s,loading:a=!1}){return n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dependency Graph"}),n.jsx("p",{className:"text-gray-600 mt-1",children:"Visualize package dependencies and relationships"})]}),s&&n.jsxs("button",{onClick:s,disabled:a,className:"hidden bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center space-x-2 transition-colors",children:[n.jsx(on,{className:`w-5 h-5 ${a?"animate-spin":""}`}),n.jsx("span",{children:"Refresh"})]})]})}function yx({viewMode:s,onViewModeChange:a,layout:i,onLayoutChange:c,showLegend:d,onToggleLegend:m,zoomLevel:f,onZoomChange:g}){return n.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"View:"}),n.jsxs("div",{className:"flex rounded-lg border border-gray-300 overflow-hidden",children:[n.jsxs("button",{onClick:()=>a("graph"),className:`px-3 py-2 text-sm font-medium flex items-center space-x-1 ${s==="graph"?"bg-blue-600 text-white":"bg-white text-gray-700 hover:bg-gray-50"}`,children:[n.jsx(hf,{className:"w-4 h-4"}),n.jsx("span",{children:"Graph"})]}),n.jsxs("button",{onClick:()=>a("list"),className:`px-3 py-2 text-sm font-medium flex items-center space-x-1 ${s==="list"?"bg-blue-600 text-white":"bg-white text-gray-700 hover:bg-gray-50"}`,children:[n.jsx(mf,{className:"w-4 h-4"}),n.jsx("span",{children:"List"})]})]})]}),s==="graph"&&n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Layout:"}),n.jsxs("select",{value:i,onChange:x=>c(x.target.value),className:"border border-gray-300 rounded-md px-3 py-1 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"hierarchical",children:"Hierarchical"}),n.jsx("option",{value:"circular",children:"Circular"}),n.jsx("option",{value:"force",children:"Force-Directed"})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Zoom:"}),n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("button",{onClick:()=>g(Math.max(.5,f-.1)),className:"p-1 text-gray-600 hover:text-gray-800 disabled:opacity-50",disabled:f<=.5,children:n.jsx(gf,{className:"w-4 h-4"})}),n.jsxs("span",{className:"text-sm text-gray-600 min-w-[3rem] text-center",children:[Math.round(f*100),"%"]}),n.jsx("button",{onClick:()=>g(Math.min(2,f+.1)),className:"p-1 text-gray-600 hover:text-gray-800 disabled:opacity-50",disabled:f>=2,children:n.jsx(pf,{className:"w-4 h-4"})})]})]})]}),n.jsxs("button",{onClick:m,className:`px-3 py-2 text-sm font-medium rounded-lg flex items-center space-x-1 transition-colors ${d?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:[n.jsx(Jn,{className:"w-4 h-4"}),n.jsx("span",{children:"Legend"})]})]})}const Td=s=>{switch(s){case"healthy":return"text-green-600 bg-green-100";case"warning":return"text-yellow-600 bg-yellow-100";case"error":return"text-red-600 bg-red-100";default:return"text-gray-600 bg-gray-100"}},_d=s=>{switch(s){case"app":return"text-blue-600 bg-blue-100";case"lib":return"text-purple-600 bg-purple-100";case"tool":return"text-orange-600 bg-orange-100";default:return"text-gray-600 bg-gray-100"}},nd=(s,a)=>{const i=a.find(c=>c.name===s);if(!i)return"text-gray-400";switch(i.status){case"healthy":return"text-green-500";case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-gray-400"}},jx=s=>{const a=s.length,i=s.reduce((x,b)=>x+Object.keys(b.dependencies).length,0),c=s.filter(x=>Object.keys(x.dependencies).length===0).length,d=s.filter(x=>x.dependents.length===0).length,m=wx(s),f=a>0?i/a:0,g=Rd(s);return{totalPackages:a,totalDependencies:i,circularDependencies:g.length,leafPackages:c,rootPackages:d,maxDepth:m,avgDependencies:Math.round(f*10)/10}},wx=s=>{const a=new Set;let i=0;const c=(d,m)=>{if(a.has(d))return m;a.add(d);const f=s.find(x=>x.name===d);if(!f)return m;let g=m;for(const x of Object.keys(f.dependencies)){const b=c(x,m+1);g=Math.max(g,b)}return g};for(const d of s)if(!a.has(d.name)){const m=c(d.name,0);i=Math.max(i,m)}return i},Rd=s=>{const a=[],i=new Set,c=new Set,d=[],m=f=>{if(c.has(f)){const x=d.indexOf(f),b=d.slice(x).concat(f);return a.push({cycle:b,severity:b.length>5?"high":b.length>3?"medium":"low",impact:`Circular dependency involving ${b.length} packages`}),!0}if(i.has(f))return!1;i.add(f),c.add(f),d.push(f);const g=s.find(x=>x.name===f);if(g){for(const x of Object.keys(g.dependencies))if(m(x))return!0}return c.delete(f),d.pop(),!1};for(const f of s)i.has(f.name)||m(f.name);return a},Nx=(s,a,i)=>[...s].sort((c,d)=>{let m,f;switch(a){case"name":m=c.name.toLowerCase(),f=d.name.toLowerCase();break;case"dependencies":m=Object.keys(c.dependencies).length,f=Object.keys(d.dependencies).length;break;case"dependents":m=c.dependents.length,f=d.dependents.length;break;case"status":{const g={error:0,warning:1,healthy:2};m=g[c.status]||3,f=g[d.status]||3;break}default:return 0}return m<f?i==="asc"?-1:1:m>f?i==="asc"?1:-1:0}),bx=(s,a,i=800,c=600)=>{switch(a){case"hierarchical":return kx(s,i,c);case"circular":return Sx(s,i,c);case"force":return Cx(s,i,c);default:return s}},kx=(s,a,i)=>{const c=[],d=new Set,m=(f,g)=>{if(d.has(f))return;d.add(f),c[g]||(c[g]=[]),c[g].push(f);const x=s.find(b=>b.name===f);x&&x.dependents.forEach(b=>m(b,g+1))};return s.filter(f=>Object.keys(f.dependencies).length===0&&f.dependents.length>0).forEach(f=>{m(f.name,0)}),c.length===0&&s.filter(f=>Object.keys(f.dependencies).length>0&&f.dependents.length>0).forEach(f=>{m(f.name,0)}),s.map(f=>{const g=c.findIndex(E=>E.includes(f.name)),x=c[g]?.indexOf(f.name)||0,b=c[g]?.length||1;return{...f,x:a/(c.length+1)*(g+1)-50,y:i/(b+1)*(x+1)-25}})},Sx=(s,a,i)=>{const c=a/2,d=i/2,m=Math.min(a,i)/3;return s.map((f,g)=>{const x=2*Math.PI*g/s.length;return{...f,x:c+m*Math.cos(x)-50,y:d+m*Math.sin(x)-25}})},Cx=(s,a,i)=>{const c=s.map((d,m)=>({...d,x:Math.random()*(a-100),y:Math.random()*(i-50)}));for(let d=0;d<50;d++)c.forEach(m=>{let f=0,g=0;c.forEach(x=>{if(x.name!==m.name){const b=m.x-x.x,E=m.y-x.y,C=Math.sqrt(b*b+E*E)||1,M=1e3/(C*C);f+=b/C*M,g+=E/C*M}}),Object.keys(m.dependencies).forEach(x=>{const b=c.find(E=>E.name===x);if(b){const E=b.x-m.x,C=b.y-m.y,M=Math.sqrt(E*E+C*C)||1,A=M*.01;f+=E/M*A,g+=C/M*A}}),m.x+=f*.1,m.y+=g*.1,m.x=Math.max(50,Math.min(a-100,m.x)),m.y=Math.max(25,Math.min(i-50,m.y))});return c},Ex=s=>{switch(s){case"app":return n.jsx(un,{className:"w-6 h-6 text-primary-600"});case"lib":return n.jsx(ml,{className:"w-6 h-6 text-primary-600"});case"tool":return"🔧";default:return n.jsx(it,{className:"w-6 h-6 text-primary-600"})}},Px=s=>s.length>12?`${s.substring(0,12)}...`:s,Lx=s=>{const a={};return s.forEach(i=>{a[i.name]=[]}),s.forEach(i=>{const c=i.name;[...Object.keys(i.dependencies??{}),...Object.keys(i.devDependencies??{}),...Object.keys(i.peerDependencies??{})].forEach(m=>{a[m]||(a[m]=[]),a[m].includes(c)||a[m].push(c)})}),a};function Mx({packages:s,selectedPackage:a,hoveredPackage:i,onPackageSelect:c,onPackageHover:d,layout:m}){return n.jsxs("div",{className:"relative bg-white rounded-lg shadow-sm border border-gray-200 p-6 min-h-[600px]",children:[n.jsxs("svg",{className:"w-full h-full absolute inset-0",viewBox:"0 0 800 600",children:[s.map(f=>Object.keys(f.dependencies).map(g=>{const x=s.find(E=>E.name===g);if(!x)return null;const b=i===f.name||i===g||a===f.name||a===g;return n.jsxs("g",{children:[n.jsx("defs",{children:n.jsx("marker",{id:`arrow-${f.name}-${g}`,markerWidth:"10",markerHeight:"10",refX:"9",refY:"3",orient:"auto",markerUnits:"strokeWidth",children:n.jsx("path",{d:"M0,0 L0,6 L9,3 z",fill:b?"#3B82F6":"#6B7280"})})}),n.jsx("line",{x1:x.x+50,y1:x.y+25,x2:f.x,y2:f.y+25,stroke:b?"#3B82F6":"#6B7280",strokeWidth:b?"3":"2",markerEnd:`url(#arrow-${f.name}-${g})`,className:"transition-all duration-200",style:{opacity:b?1:.6}})]},`${f.name}-${g}`)})),s.map(f=>{const g=a===f.name,x=i===f.name,b=a&&(Object.keys(f.dependencies).includes(a)||Object.keys(f.dependents).includes(a));return n.jsxs("g",{children:[n.jsx("rect",{x:f.x,y:f.y,width:"100",height:"50",rx:"8",fill:"white",stroke:g?"#3B82F6":b?"#10B981":x?"#6B7280":"#E5E7EB",strokeWidth:g?"3":"2",className:"cursor-pointer transition-all duration-200",style:{filter:x||g||b?"drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1))":"none"},onMouseEnter:()=>d(f.name),onMouseLeave:()=>d(null),onClick:()=>c(g?null:f.name)}),n.jsx("text",{x:f.x+50,y:f.y+20,textAnchor:"middle",className:"text-xs font-medium fill-gray-900 pointer-events-none",children:Px(f.name)}),n.jsxs("text",{x:f.x+50,y:f.y+35,textAnchor:"middle",className:"text-xs fill-gray-500 pointer-events-none",children:["v",f.version]}),n.jsx("circle",{cx:f.x+85,cy:f.y+15,r:"6",fill:f.status==="healthy"?"#10B981":f.status==="warning"?"#F59E0B":"#EF4444",className:"pointer-events-none"}),n.jsx("rect",{x:f.x+5,y:f.y+5,width:"12",height:"8",rx:"2",fill:f.type==="app"?"#3B82F6":f.type==="lib"?"#8B5CF6":"#F97316",className:"pointer-events-none"})]},f.name)})]}),s.length===0&&n.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"flex justify-center text-gray-400 text-6xl mb-4",children:n.jsx(hl,{className:"w-6 h-6 text-primary-600"})}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No dependencies found"}),n.jsx("p",{className:"text-gray-600",children:"No package dependencies to display."})]})})]})}function Tx({packages:s,selectedPackage:a,onPackageSelect:i,sortBy:c,sortOrder:d,onSortChange:m}){const f=x=>{m(x,c===x&&d==="asc"?"desc":"asc")},g=x=>c!==x?null:d==="asc"?n.jsx(Ci,{className:"w-4 h-4"}):n.jsx(bd,{className:"w-4 h-4"});return n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200",children:[n.jsxs("div",{className:"p-6 border-b border-gray-200",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Package Dependencies"}),n.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Click on a view details to explore its dependencies, commits, configuration and health"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>f("name"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Package"}),g("name")]})}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Type"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>f("dependencies"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Dependencies"}),g("dependencies")]})}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>f("dependents"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Dependents"}),g("dependents")]})}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),n.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:s.map(x=>n.jsxs("tr",{className:`hover:bg-gray-50 cursor-pointer transition-colors ${a===x.name?"bg-blue-50":""}`,onClick:()=>i(x.name),children:[n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"text-2xl mr-3",children:Ex(x.type)}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-gray-900",children:x.name}),n.jsxs("div",{className:"text-sm text-gray-500",children:["v",x.version]})]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${_d(x.type)}`,children:x.type})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Td(x.status)}`,children:x.status})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"text-sm text-gray-900",children:[Object.keys(x.dependencies).length,Object.keys(x.dependencies).length>0&&n.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[Object.keys(x.dependencies).slice(0,3).join(", "),Object.keys(x.dependencies).length>3&&` +${Object.keys(x.dependencies).length-3} more`]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"text-sm text-gray-900",children:[x.dependents.length,x.dependents.length>0&&n.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[x.dependents.slice(0,3).join(", "),x.dependents.length>3&&` +${x.dependents.length-3} more`]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:n.jsx(Ft,{to:`/packages/${encodeURIComponent(x.name)}`,className:"text-blue-600 hover:text-blue-500",onClick:b=>b.stopPropagation(),children:"View Details"})})]},x.name))})]})}),s.length===0&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx("div",{className:"text-gray-400 text-4xl mb-2 flex justify-center",children:n.jsx(it,{className:"w-6 h-6 text-primary-600"})}),n.jsx("p",{className:"text-gray-500",children:"No packages found"})]})]})}function _x({package:s,packages:a,onClose:i}){return s?n.jsxs("div",{className:"absolute top-4 right-4 bg-white p-4 rounded-lg shadow-lg border border-gray-200 w-80 max-h-[80vh] overflow-y-auto",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:s.name}),n.jsx("button",{onClick:i,className:"text-gray-400 hover:text-gray-600 transition-colors",children:n.jsx(Yr,{className:"w-5 h-5"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${_d(s.type)}`,children:s.type}),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Td(s.status)}`,children:s.status})]}),n.jsxs("div",{className:"text-sm text-gray-600",children:["Version: ",n.jsx("span",{className:"font-mono",children:s.version})]})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-700",children:"Dependencies"}),n.jsxs("span",{className:"text-xs text-gray-500",children:["(",Object.keys(s.dependencies).length,")"]})]}),Object.keys(s.dependencies).length>0?n.jsx("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:Object.keys(s.dependencies).map(c=>{const d=a.find(m=>m.name===c);return d?n.jsxs("div",{className:"flex items-center justify-between text-sm py-1",children:[n.jsx("span",{className:"text-gray-600 truncate",children:d.name}),n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{className:"text-xs text-gray-400",children:d.version}),n.jsx("span",{className:`${nd(c,a)}`,children:d.status==="healthy"?"✓":d.status==="warning"?"⚠":"✗"})]})]},c):n.jsxs("div",{className:"text-sm text-gray-400 py-1",children:[c," (not found)"]},c)})}):n.jsx("div",{className:"text-sm text-gray-500 text-center py-2",children:"No dependencies"})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-700",children:"Dependents"}),n.jsxs("span",{className:"text-xs text-gray-500",children:["(",s.dependents.length,")"]})]}),s.dependents.length>0?n.jsx("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:s.dependents.map(c=>{const d=a.find(m=>m.name===c);return d?n.jsxs("div",{className:"flex items-center justify-between text-sm py-1",children:[n.jsx("span",{className:"text-gray-600 truncate",children:d.name}),n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{className:"text-xs text-gray-400",children:d.version}),n.jsx("span",{className:`${nd(c,a)}`,children:d.status==="healthy"?"✓":d.status==="warning"?"⚠":"✗"})]})]},c):n.jsxs("div",{className:"text-sm text-gray-400 py-1",children:[c," (not found)"]},c)})}):n.jsx("div",{className:"text-sm text-gray-500 text-center py-2",children:"No dependents"})]}),n.jsxs("div",{className:"pt-2 border-t border-gray-200",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Impact Analysis"}),n.jsxs("div",{className:"space-y-1 text-xs text-gray-600",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Direct dependencies:"}),n.jsx("span",{className:"font-medium",children:Object.keys(s.dependencies).length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Direct dependents:"}),n.jsx("span",{className:"font-medium",children:s.dependents.length})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Risk level:"}),n.jsx("span",{className:`font-medium ${s.dependents.length>5?"text-red-600":s.dependents.length>2?"text-yellow-600":"text-green-600"}`,children:s.dependents.length>5?"High":s.dependents.length>2?"Medium":"Low"})]})]})]}),n.jsx("div",{className:"pt-2 border-t border-gray-200",children:n.jsx(Ft,{to:`/packages/${encodeURIComponent(s.name)}`,className:"block w-full text-center bg-blue-600 text-white px-3 py-2 rounded-lg hover:bg-blue-700 text-sm font-medium transition-colors",children:"View Package Details →"})})]})]}):null}function Rx({stats:s,packages:a}){return n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[n.jsx("div",{className:"bg-gray-100 p-4 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 rounded-lg",children:n.jsx(it,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Total Packages"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.totalPackages})]})]})}),n.jsx("div",{className:"bg-blue-100 p-4 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 rounded-lg",children:n.jsx(hl,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Dependencies"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.totalDependencies})]})]})}),n.jsx("div",{className:`${s.circularDependencies>0?"bg-red-100":"bg-green-100"} p-4 rounded-lg shadow border`,children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:`p-2 rounded-lg ${s.circularDependencies>0?"bg-red-100":"bg-green-100"}`,children:n.jsx(Fe,{className:`w-6 h-6 ${s.circularDependencies>0?"text-red-600":"text-primary-600"}`})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Circular Deps"}),n.jsx("p",{className:`text-2xl font-semibold ${s.circularDependencies>0?"text-red-600":"text-gray-600"}`,children:s.circularDependencies})]})]})}),n.jsx("div",{className:"bg-purple-100 p-4 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-purple-100 rounded-lg",children:n.jsx(Gr,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Max Depth"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.maxDepth})]})]})}),n.jsxs("div",{className:"md:col-span-4 bg-white p-4 rounded-lg shadow border",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Dependency Analysis"}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"text-center bg-gray-100 p-2",children:[n.jsx("div",{className:"text-2xl font-bold text-blue-600",children:s.leafPackages}),n.jsx("div",{className:"text-sm text-gray-600",children:"Leaf Packages"}),n.jsx("div",{className:"text-xs text-gray-500",children:"No dependencies"})]}),n.jsxs("div",{className:"text-center bg-gray-100 p-2",children:[n.jsx("div",{className:"text-2xl font-bold text-green-600",children:s.rootPackages}),n.jsx("div",{className:"text-sm text-gray-600",children:"Root Packages"}),n.jsx("div",{className:"text-xs text-gray-500",children:"No dependents"})]}),n.jsxs("div",{className:"text-center bg-gray-100 p-2",children:[n.jsx("div",{className:"text-2xl font-bold text-purple-600",children:s.avgDependencies}),n.jsx("div",{className:"text-sm text-gray-600",children:"Avg Dependencies"}),n.jsx("div",{className:"text-xs text-gray-500",children:"Per package"})]}),n.jsxs("div",{className:"text-center bg-gray-100 p-2",children:[n.jsx("div",{className:"text-2xl font-bold text-orange-600",children:a.filter(i=>i.status==="healthy").length}),n.jsx("div",{className:"text-sm text-gray-600",children:"Healthy Packages"}),n.jsxs("div",{className:"text-xs text-gray-500",children:[Math.round(a.filter(i=>i.status==="healthy").length/a.length*100),"% of total"]})]})]})]})]})}function Ix({cycles:s,packages:a,onPackageSelect:i}){const c=m=>{switch(m){case"high":return"bg-red-100 text-red-800 border-red-200";case"medium":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"low":return"bg-blue-100 text-blue-800 border-blue-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},d=m=>{switch(m){case"high":return"🔴";case"medium":return"🟡";case"low":return"🔵";default:return"⚪"}};return s.length===0?n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow border",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[n.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:n.jsx(Fe,{className:"w-6 h-6 text-green-600"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Circular Dependencies"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Dependency cycle analysis"})]})]}),n.jsxs("div",{className:"text-center py-8",children:[n.jsx("div",{className:"text-green-400 text-4xl mb-2"}),n.jsx("h4",{className:"text-green-800 font-medium mb-1",children:"No Circular Dependencies!"}),n.jsx("p",{className:"text-green-700 text-sm",children:"Your dependency graph is clean and free of circular references."})]})]}):n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow border",children:[n.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[n.jsx("div",{className:"p-2 bg-red-100 rounded-lg",children:n.jsx(Fe,{className:"w-6 h-6 text-red-600"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Circular Dependencies"}),n.jsxs("p",{className:"text-sm text-gray-600",children:["Found ",s.length," circular dependency cycle",s.length>1?"s":""]})]})]}),n.jsx("div",{className:"space-y-4",children:s.map((m,f)=>n.jsxs("div",{className:`border rounded-lg p-4 ${c(m.severity)}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg",children:d(m.severity)}),n.jsxs("span",{className:"text-sm font-medium capitalize",children:[m.severity," Severity"]})]}),n.jsxs("span",{className:"text-xs opacity-75",children:[m.cycle.length," packages affected"]})]}),n.jsx("div",{className:"mb-3",children:n.jsx("p",{className:"text-sm mb-2",children:m.impact})}),n.jsx("div",{className:"bg-white bg-opacity-50 rounded-lg p-3",children:n.jsxs("div",{className:"flex items-center flex-wrap gap-2",children:[m.cycle.map((g,x)=>n.jsxs(S.Fragment,{children:[n.jsx("button",{onClick:()=>i(g),className:"px-3 py-1 bg-white rounded-lg text-sm font-medium hover:bg-gray-50 transition-colors border shadow-sm",children:g}),x<m.cycle.length-1&&n.jsx(Ku,{className:"w-4 h-4 text-gray-400"})]},`${g}-${x}`)),m.cycle.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ku,{className:"w-4 h-4 text-gray-400"}),n.jsxs("span",{className:"text-sm text-gray-500 italic",children:["(cycles back to ",m.cycle[0],")"]})]})]})}),n.jsxs("div",{className:"mt-3 pt-3 border-t border-current border-opacity-20",children:[n.jsx("h5",{className:"text-xs font-medium mb-1",children:"Recommendation:"}),n.jsxs("p",{className:"text-xs opacity-90",children:[m.severity==="high"&&"Critical: Refactor immediately to break this cycle. Consider dependency inversion or splitting packages.",m.severity==="medium"&&"Important: Plan to refactor this cycle. Review package boundaries and extract common dependencies.",m.severity==="low"&&"Minor: Monitor this cycle. Consider if these packages could be merged or dependencies restructured."]})]})]},f))}),n.jsx("div",{className:"mt-6 pt-4 border-t border-gray-200",children:n.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-lg font-bold text-red-600",children:s.filter(m=>m.severity==="high").length}),n.jsx("div",{className:"text-xs text-gray-600",children:"High Severity"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-lg font-bold text-yellow-600",children:s.filter(m=>m.severity==="medium").length}),n.jsx("div",{className:"text-xs text-gray-600",children:"Medium Severity"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-lg font-bold text-blue-600",children:s.filter(m=>m.severity==="low").length}),n.jsx("div",{className:"text-xs text-gray-600",children:"Low Severity"})]})]})})]})}function Ox({show:s}){return s?n.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Legend"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Package Types"}),n.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-3 h-2 bg-blue-500 rounded"}),n.jsx("span",{children:"App"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-3 h-2 bg-purple-500 rounded"}),n.jsx("span",{children:"Library"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-3 h-2 bg-orange-500 rounded"}),n.jsx("span",{children:"Tool"})]})]})]}),n.jsxs("div",{children:[n.jsx("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Health Status"}),n.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"}),n.jsx("span",{children:"Healthy"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full"}),n.jsx("span",{children:"Warning"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-3 h-3 bg-red-500 rounded-full"}),n.jsx("span",{children:"Error"})]})]})]}),n.jsxs("div",{children:[n.jsx("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Visual Elements"}),n.jsxs("div",{className:"space-y-1 text-xs",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsxs("svg",{width:"16",height:"8",children:[n.jsx("line",{x1:"0",y1:"4",x2:"16",y2:"4",stroke:"#6B7280",strokeWidth:"2",markerEnd:"url(#arrow)"}),n.jsx("defs",{children:n.jsx("marker",{id:"arrow",markerWidth:"10",markerHeight:"10",refX:"9",refY:"3",orient:"auto",markerUnits:"strokeWidth",children:n.jsx("path",{d:"M0,0 L0,6 L9,3 z",fill:"#6B7280"})})})]}),n.jsx("span",{children:"Dependency"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-4 h-3 border-2 border-blue-500 rounded bg-white"}),n.jsx("span",{children:"Selected"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-4 h-3 border-2 border-green-500 rounded bg-white"}),n.jsx("span",{children:"Connected"})]})]})]}),n.jsxs("div",{children:[n.jsx("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Interactions"}),n.jsxs("div",{className:"space-y-1 text-xs text-gray-600",children:[n.jsx("div",{children:"• Click a package to select and view details"}),n.jsx("div",{children:"• Hover to highlight connections"}),n.jsx("div",{children:"• Use toolbar to change layout and zoom"})]})]})]})]}):null}function zx(){S.useEffect(()=>{(async()=>{try{a(!0);const Ce=await ft.getPackages(),ye=Lx(Ce),F=Ce.map(K=>({...K,dependencies:{...K.dependencies,...K.devDependencies,...K.peerDependencies},dependents:ye[K.name]}));m(F),c(null)}catch(Ce){c("Failed to fetch packages"),console.error("Error fetching packages:",Ce)}finally{a(!1)}})()},[]);const[s,a]=S.useState(!1),[i,c]=S.useState(null),[d,m]=S.useState([]),[f,g]=S.useState("graph"),[x,b]=S.useState("hierarchical"),[E,C]=S.useState(null),[M,A]=S.useState(null),[U,D]=S.useState(!0),[P,Y]=S.useState(1),[T,z]=S.useState("name"),[G,oe]=S.useState("asc"),me=S.useMemo(()=>bx(d??[],x,800,600),[d,x]),q=S.useMemo(()=>Nx(d,T,G),[d,T,G]),de=S.useMemo(()=>jx(d),[d]),Ue=S.useMemo(()=>Rd(d),[d]),he=E&&d.find(Be=>Be.name===E)||null,Te=()=>{},_e=Be=>{C(Be)},Se=(Be,Ce)=>{z(Be),oe(Ce)},fe=()=>{window.location.reload()};return s?n.jsx(px,{}):i?n.jsx(gx,{error:i,onRetry:fe}):n.jsxs("div",{className:"space-y-6",children:[n.jsx(vx,{onRefresh:Te,loading:s}),n.jsx(Rx,{stats:de,packages:d??[]}),Ue.length>0&&n.jsx(Ix,{cycles:Ue,packages:d,onPackageSelect:_e}),n.jsx(yx,{viewMode:f,onViewModeChange:g,layout:x,onLayoutChange:b,showLegend:U,onToggleLegend:()=>D(!U),zoomLevel:P,onZoomChange:Y}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[n.jsx("div",{className:`${U?"lg:col-span-3":"lg:col-span-4"}`,children:f==="graph"?n.jsxs("div",{className:"relative",children:[n.jsx("div",{style:{transform:`scale(${P})`,transformOrigin:"top left"},children:n.jsx(Mx,{packages:me,selectedPackage:E,hoveredPackage:M,onPackageSelect:_e,onPackageHover:A,layout:x})}),n.jsx(_x,{package:he,packages:d,onClose:()=>C(null)})]}):n.jsx(Tx,{packages:q,selectedPackage:E,onPackageSelect:_e,sortBy:T,sortOrder:G,onSortChange:Se})}),U&&n.jsx("div",{className:"lg:col-span-1",children:n.jsx(Ox,{show:U})})]})]})}function Dx(){const[s,a]=S.useState(0),[i,c]=S.useState(null),[d,m]=S.useState(!0),[f,g]=S.useState(null),[x,b]=S.useState(!1);S.useEffect(()=>{(async()=>{try{m(!0);const z=await ft.getHealthStatus();c(z),g(null)}catch(z){g("Failed to fetch health data"),console.error("Error fetching health data:",z)}finally{m(!1)}})()},[s]);const E=async()=>{try{b(!0),g(null),m(!0);try{const T=await ft.refreshHealthStatus();c(T),g(null)}catch(T){g("Failed to fetch health data"),console.error("Error fetching health data:",T)}finally{m(!1)}}catch(T){g("Failed to refresh health data"),console.error("Error refreshing health data:",T)}finally{b(!1)}},C=()=>{a(T=>T+1)},M=T=>{switch(T){case"healthy":case"success":case"pass":case"up-to-date":return"bg-green-100 text-green-800";case"warning":case"warn":case"outdated":return"bg-yellow-100 text-yellow-800";case"error":case"failed":case"fail":case"vulnerable":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};if(d&&!i)return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:"Loading health data..."})]})});if(f)return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Fe,{className:"w-12 h-12 text-red-500 mx-auto"}),n.jsx("p",{className:"mt-4 text-red-600",children:f}),n.jsx("button",{onClick:C,className:"mt-4 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})});const A=i?i.summary?.averageScore:0,U=i?i?.packages?.filter(T=>T.health.overallScore>=80).length:0,D=i?i?.packages?.filter(T=>T.health.overallScore>=60&&T.health.overallScore<80).length:0,P=i?i?.packages?.filter(T=>T.health.overallScore<60).length:0,Y=[{name:"Package Health",value:U||0,status:(()=>{const T=U||0,z=i?.packages.length||0;if(z===0)return"healthy";const G=T/z;return G>=.8?"healthy":G>=.6?"warning":"error"})(),description:`${U||0} healthy packages out of ${i?.packages.length||0}`},{name:"Overall Score",value:Math.round(A),status:Math.round(A)>=80?"healthy":Math.round(A)>=60?"warning":"error",description:`Average health score: ${Math.round(A)}/100`},{name:"Unhealthy Packages",value:D+P||0,status:(D+P||0)===0?"healthy":(D+P||0)<=2?"warning":"error",description:`${D+P||0} packages need attention`}];return n.jsxs("div",{className:"",children:[n.jsxs("div",{className:"flex items-center justify-between my-3",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Health Status"}),n.jsx("p",{className:"text-gray-600 mt-1",children:"Monitor the health and performance of your monorepo packages"})]}),n.jsxs("button",{onClick:E,disabled:x,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 disabled:bg-blue-400 disabled:cursor-not-allowed flex items-center space-x-2 transition-colors",children:[x?n.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white"}):n.jsx(on,{className:"w-5 h-5"}),n.jsx("span",{children:x?"Refreshing...":"Refresh"})]})]}),x&&i&&n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-700",children:"Refreshing health data..."})]})}),n.jsxs("div",{className:"my-3 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg p-6 text-white",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"text-xl font-semibold",children:"Overall Monorepo Health"}),n.jsx("p",{className:"text-blue-100 mt-1",children:"Based on all package metrics and recent activity"})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("div",{className:"text-4xl font-bold",children:A?.toFixed(2)}),n.jsx("div",{className:"text-blue-100",children:"out of 100"})]})]}),n.jsxs("div",{className:"mt-4 flex space-x-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Pt,{className:"w-5 h-5 text-green-300"}),n.jsxs("span",{children:[U," Healthy"]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Fe,{className:"w-5 h-5 text-yellow-300"}),n.jsxs("span",{children:[D," Warnings"]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Lt,{className:"w-5 h-5 text-red-300"}),n.jsxs("span",{children:[P," Errors"]})]})]})]}),n.jsx("div",{className:"my-3 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Y.map(T=>n.jsxs("div",{className:"bg-white p-6 rounded-lg shadow border",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:T.name}),n.jsx("div",{className:`w-3 h-3 rounded-full ${T.status==="healthy"?"bg-green-500":T.status==="warning"?"bg-yellow-500":"bg-red-500"}`})]}),n.jsx("div",{className:"flex items-end space-x-2",children:n.jsx("span",{className:"text-3xl font-bold text-gray-900",children:T.value})}),n.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${M(T.status)}`,children:T.status}),n.jsx("span",{className:"text-sm text-gray-500",children:T.description})]})]},T.name))}),n.jsxs("div",{className:"my-3 bg-white rounded-lg shadow border overflow-hidden",children:[n.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Package Health Details"})}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Package"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Overall Score"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Build Status"}),n.jsx("th",{className:"hidden px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Test Coverage"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Lint Status"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Security"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Dependencies"}),n.jsx("th",{className:"hidden px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),n.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:i?.packages?.map(T=>n.jsxs("tr",{className:"hover:bg-gray-50",children:[n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"h-8 w-8 rounded-lg bg-gray-100 flex items-center justify-center",children:n.jsx("div",{className:"text-sm",children:n.jsx(it,{className:"w-6 h-6 text-primary-600"})})}),n.jsxs("div",{className:"ml-3",children:[n.jsx("div",{className:"text-sm font-medium text-gray-900",children:T.packageName}),n.jsxs("div",{className:"text-sm text-gray-500",children:["Score: ",T.health.overallScore,"/100"]})]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"w-16 bg-gray-200 rounded-full h-2 mr-2",children:n.jsx("div",{className:`h-2 rounded-full ${T.health.overallScore>=80?"bg-green-500":T.health.overallScore>=60?"bg-yellow-500":"bg-red-500"}`,style:{width:`${T.health.overallScore}%`}})}),n.jsx("span",{className:"text-sm font-medium text-gray-900",children:T.health.overallScore})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:`w-3 h-3 rounded-full ${T.health.buildStatus==="success"?"bg-green-500":T.health.buildStatus==="unknown"?"bg-yellow-500":"bg-red-500"}`}),n.jsx("span",{className:`ml-2 inline-flex px-2 py-1 text-xs font-semibold rounded-full ${M(T.health.buildStatus==="success"?"healthy":T.health.buildStatus==="unknown"?"warning":"error")}`,children:T.health.buildStatus==="success"?"healthy":T.health.buildStatus==="unknown"?"warning":"error"})]})}),n.jsx("td",{className:"hidden px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(ff,{className:"w-4 h-4 text-gray-400 mr-1"}),n.jsx("span",{className:"text-sm text-gray-900",children:"-"})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${M(T.health.lintStatus==="pass"?"pass":T.health.lintStatus==="unknown"?"warn":"fail")}`,children:T.health.lintStatus==="pass"?"pass":T.health.lintStatus==="unknown"?"warn":"fail"})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("div",{className:"flex items-center",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${M(T.health.securityAudit==="pass"?"pass":T.health.securityAudit==="unknown"?"warn":"fail")}`,children:T.health.securityAudit==="pass"?"pass":T.health.securityAudit==="unknown"?"warn":"fail"})})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${M(T.health.overallScore>=80?"up-to-date":T.health.overallScore>=60?"outdated":"vulnerable")}`,children:T.health.overallScore>=80?"up-to-date":T.health.overallScore>=60?"outdated":"vulnerable"})}),n.jsx("td",{className:"hidden px-6 py-4 whitespace-nowrap text-sm font-medium",children:n.jsx("div",{className:"flex space-x-2",children:n.jsx("button",{className:"text-blue-600 hover:text-blue-900",children:"Details"})})})]},T.packageName))})]})})]}),n.jsxs("div",{className:"hidden bg-white rounded-lg shadow border p-6",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Health Recommendations"}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-yellow-50 rounded-lg border border-yellow-200",children:[n.jsx(Fe,{className:"w-5 h-5 text-yellow-600 mt-0.5"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-yellow-800",children:"Test Coverage Below Target"}),n.jsx("p",{className:"text-sm text-yellow-700",children:"Consider adding more tests to improve coverage above 90%"})]})]}),n.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-red-50 rounded-lg border border-red-200",children:[n.jsx(Lt,{className:"w-5 h-5 text-red-600 mt-0.5"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-red-800",children:"Build Failures Detected"}),n.jsx("p",{className:"text-sm text-red-700",children:"monorepo-scanner package has build failures that need immediate attention"})]})]}),n.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-blue-50 rounded-lg border border-blue-200",children:[n.jsx(Gr,{className:"w-5 h-5 text-blue-600 mt-0.5"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-blue-800",children:"Performance Improvements Available"}),n.jsx("p",{className:"text-sm text-blue-700",children:"Consider optimizing build times and dependency resolution"})]})]})]})]})]})}function Fx({packageCount:s,onNewRelease:a}){return n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Publish Control"}),n.jsxs("p",{className:"text-gray-600 mt-1",children:["Manage package releases and versioning across your monorepo (",s," packages)"]})]}),n.jsxs("button",{onClick:a,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 flex items-center space-x-2",children:[n.jsx(of,{className:"w-5 h-5"}),n.jsx("span",{children:"New Release"})]})]})}function Bx({stats:s}){return n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[n.jsx("div",{className:"bg-white p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:n.jsx(Si,{className:"w-6 h-6 text-green-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Ready to Publish"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.readyToPublish})]})]})}),n.jsx("div",{className:"bg-white p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-blue-100 rounded-lg",children:n.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-blue-500 border-t-transparent"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"In Progress"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.inProgress})]})]})}),n.jsx("div",{className:"bg-white p-6 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-purple-100 rounded-lg",children:n.jsx("span",{className:"text-2xl",children:n.jsx(un,{className:"w-6 h-6 text-primary-600"})})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Published Today"}),n.jsx("p",{className:"text-2xl font-semibold text-gray-900",children:s.published})]})]})})]})}const Ax=s=>({readyToPublish:s.filter(a=>a.status==="ready").length,inProgress:s.filter(a=>a.status==="building"||a.status==="testing").length,published:s.filter(a=>a.status==="published").length}),Id=s=>{switch(s){case"ready":case"completed":return"bg-green-100 text-green-800";case"building":case"testing":case"in-progress":return"bg-blue-100 text-blue-800";case"published":return"bg-purple-100 text-purple-800";case"failed":return"bg-red-100 text-red-800";case"scheduled":return"bg-yellow-100 text-yellow-800";default:return"bg-gray-100 text-gray-800"}},$x=s=>{switch(s){case"patch":return"bg-green-100 text-green-800";case"minor":return"bg-blue-100 text-blue-800";case"major":return"bg-red-100 text-red-800";case"prerelease":return"bg-yellow-100 text-yellow-800";default:return"bg-gray-100 text-gray-800"}},Ux=(s,a)=>a==="all"?s:s.filter(i=>i.name===a);function Hx({packages:s,selectedPackage:a,onPackageChange:i}){return n.jsxs("div",{className:"bg-white rounded-lg shadow border overflow-hidden",children:[n.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Package Release Status"}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm text-gray-500",children:"Filter by package:"}),n.jsxs("select",{value:a,onChange:c=>i(c.target.value),className:"px-3 py-1 border border-gray-300 rounded text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Packages"}),[...new Set(s.map(c=>c.name))].map(c=>n.jsx("option",{value:c,children:c},c))]})]})]})}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[n.jsx("thead",{className:"bg-gray-50",children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Package"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Current Version"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Next Version"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Type"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Commits"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Last Published"}),n.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),n.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:s.map(c=>n.jsxs("tr",{className:"hover:bg-gray-50",children:[n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"h-8 w-8 rounded-lg bg-gray-100 flex items-center justify-center",children:n.jsx(Mi,{className:"w-4 h-4 text-gray-600"})}),n.jsxs("div",{className:"ml-3",children:[n.jsx("div",{className:"text-sm font-medium text-gray-900",children:c.name}),n.jsxs("div",{className:"text-sm text-gray-500",children:[Object.keys(c.dependencies).length," dependencies"]})]})]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:c.currentVersion}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:c.nextVersion}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${$x(c.publishType)}`,children:c.publishType})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Id(c.status)}`,children:c.status})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:c.commits}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:n.jsxs("div",{className:"flex items-center text-sm text-gray-900",children:[n.jsx(Bt,{className:"w-4 h-4 mr-1 text-gray-400"}),c.lastPublished]})}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:n.jsxs("div",{className:"flex space-x-2",children:[c.status==="ready"&&n.jsx("button",{className:"text-green-600 hover:text-green-900",children:"Publish"}),n.jsx("button",{className:"text-blue-600 hover:text-blue-900",children:"Details"}),n.jsx("button",{className:"text-purple-600 hover:text-purple-900",children:"Changelog"})]})})]},c.name))})]})})]})}function Vx({releases:s,selectedStatus:a,onStatusChange:i}){const c=[{id:"1",packageName:"dashboard",version:"1.0.1",status:"scheduled",scheduledFor:"2024-01-16 10:00 AM",changelog:"Bug fixes and performance improvements",author:"team-frontend"},{id:"2",packageName:"backend",version:"1.3.0",status:"in-progress",scheduledFor:"2024-01-16 11:00 AM",startedAt:"2024-01-16 11:05 AM",changelog:"New API endpoints and enhanced security",author:"team-backend"}];return n.jsxs("div",{className:"bg-white rounded-lg shadow border overflow-hidden",children:[n.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Release Schedule"}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-sm text-gray-500",children:"Filter by status:"}),n.jsxs("select",{value:a,onChange:d=>i(d.target.value),className:"px-3 py-1 border border-gray-300 rounded text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Status"}),n.jsx("option",{value:"scheduled",children:"Scheduled"}),n.jsx("option",{value:"in-progress",children:"In Progress"}),n.jsx("option",{value:"completed",children:"Completed"}),n.jsx("option",{value:"failed",children:"Failed"})]})]})]})}),n.jsx("div",{className:"p-6",children:n.jsx("div",{className:"space-y-4",children:c.map(d=>n.jsxs("div",{className:"border rounded-lg p-4 hover:bg-gray-50",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"h-8 w-8 rounded-lg bg-purple-100 flex items-center justify-center",children:n.jsx(kd,{className:"w-4 h-4 text-purple-600"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-sm font-medium text-gray-900",children:[d.packageName," v",d.version]}),n.jsxs("div",{className:"text-sm text-gray-500",children:["by ",d.author]})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Id(d.status)}`,children:d.status}),n.jsxs("div",{className:"text-sm text-gray-500 flex items-center",children:[n.jsx(Bt,{className:"w-4 h-4 mr-1"}),d.scheduledFor]})]})]}),n.jsx("div",{className:"mt-3 text-sm text-gray-700",children:d.changelog})]},d.id))})})]})}function Wx(){const s=[{id:"1",packageName:"dashboard",version:"1.0.0",date:"2024-01-15",changes:["Added new dashboard layout","Improved search functionality","Fixed responsive design issues"],author:"team-frontend",type:"feature"},{id:"2",packageName:"backend",version:"1.2.0",date:"2024-01-14",changes:["Added authentication middleware","Implemented rate limiting","Fixed database connection pool"],author:"team-backend",type:"feature"}],a=i=>{switch(i){case"feature":return"bg-green-100 text-green-800";case"bugfix":return"bg-blue-100 text-blue-800";case"breaking":return"bg-red-100 text-red-800";case"docs":return"bg-gray-100 text-gray-800";default:return"bg-gray-100 text-gray-800"}};return n.jsxs("div",{className:"bg-white rounded-lg shadow border overflow-hidden",children:[n.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Recent Changelogs"})}),n.jsx("div",{className:"p-6",children:n.jsx("div",{className:"space-y-6",children:s.map(i=>n.jsxs("div",{className:"border-l-4 border-blue-500 pl-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"h-8 w-8 rounded-lg bg-blue-100 flex items-center justify-center",children:n.jsx(Mi,{className:"w-4 h-4 text-blue-600"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-sm font-medium text-gray-900",children:[i.packageName," v",i.version]}),n.jsxs("div",{className:"text-sm text-gray-500",children:[i.date," • by ",i.author]})]})]}),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${a(i.type)}`,children:i.type})]}),n.jsx("div",{className:"space-y-1",children:i.changes.map((c,d)=>n.jsxs("div",{className:"flex items-start space-x-2",children:[n.jsx(Li,{className:"w-4 h-4 text-gray-400 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-sm text-gray-700",children:c})]},d))})]},i.id))})})]})}function Qx(){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:"Loading package data..."})]})})}function Yx({error:s,onRetry:a}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Fe,{className:"w-12 h-12 text-red-500 mx-auto"}),n.jsx("p",{className:"mt-4 text-red-600",children:s}),n.jsx("button",{onClick:a,className:"mt-4 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})})}const rd=[{name:"dashboard",currentVersion:"1.0.0",nextVersion:"1.0.1",status:"ready",lastPublished:"2024-01-10",changelog:"Bug fixes and performance improvements",commits:15,dependencies:["react","tailwindcss"],publishType:"patch"},{name:"backend",currentVersion:"1.2.0",nextVersion:"1.3.0",status:"building",lastPublished:"2024-01-08",changelog:"New API endpoints and enhanced security",commits:28,dependencies:["express","prisma"],publishType:"minor"},{name:"utils",currentVersion:"0.5.2",nextVersion:"1.0.0",status:"ready",lastPublished:"2024-01-05",changelog:"Major refactor with breaking changes",commits:42,dependencies:["lodash"],publishType:"major"},{name:"ci-status",currentVersion:"0.3.1",nextVersion:"0.4.0",status:"testing",lastPublished:"2024-01-12",changelog:"Enhanced CI monitoring and reporting",commits:18,dependencies:["axios","ws"],publishType:"minor"}],Gx=[{id:"1",packageName:"dashboard",version:"1.0.1",status:"scheduled",scheduledFor:"2024-01-16 10:00 AM",changelog:"Bug fixes and performance improvements",author:"team-frontend"},{id:"2",packageName:"backend",version:"1.3.0",status:"in-progress",scheduledFor:"2024-01-16 09:00 AM",startedAt:"2024-01-16 09:00 AM",changelog:"New API endpoints and enhanced security",author:"team-backend"},{id:"3",packageName:"utils",version:"1.0.0",status:"completed",scheduledFor:"2024-01-15 02:00 PM",startedAt:"2024-01-15 02:00 PM",completedAt:"2024-01-15 02:15 PM",changelog:"Major refactor with breaking changes",author:"team-shared"}];function Kx(){const[s,a]=S.useState("all"),[i,c]=S.useState("all"),[d,m]=S.useState(rd),[f,g]=S.useState(!1),[x,b]=S.useState(null);S.useEffect(()=>{(async()=>{try{g(!0);const z=(await ft.getPackages()).map(G=>({name:G.name,currentVersion:G.version,nextVersion:E(G.version),status:C(G.status),lastPublished:G.lastUpdated,changelog:G.description||"No changelog available",commits:Math.floor(Math.random()*20)+1,dependencies:G.dependencies||[],publishType:M()}));m(z),b(null)}catch(T){b("Failed to fetch package data"),console.error("Error fetching packages:",T),m(rd)}finally{g(!1)}})()},[]);const E=Y=>{const T=Y.split(".").map(Number);return T[2]+=1,T.join(".")},C=Y=>{switch(Y){case"healthy":return"ready";case"warning":return"testing";case"error":return"failed";case"building":return"building";default:return"ready"}},M=()=>{const Y=["patch","minor","major","prerelease"];return Y[Math.floor(Math.random()*Y.length)]},A=()=>{},U=()=>{window.location.reload()},D=Ux(d,s),P=Ax(d);return f?n.jsx(Qx,{}):x?n.jsx(Yx,{error:x,onRetry:U}):n.jsxs("div",{className:"space-y-6",children:[n.jsx(Fx,{packageCount:d.length,onNewRelease:A}),n.jsx(Bx,{stats:P}),n.jsx(Hx,{packages:D,selectedPackage:s,onPackageChange:a}),n.jsx(Vx,{releases:Gx,selectedStatus:i,onStatusChange:c}),n.jsx(Wx,{})]})}function Zx({message:s="Loading CI/CD data..."}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:s})]})})}function Xx({error:s,onRetry:a}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Fe,{className:"w-12 h-12 text-red-500 mx-auto"}),n.jsx("p",{className:"mt-4 text-red-600",children:s}),a&&n.jsx("button",{onClick:a,className:"mt-4 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})})}function qx({onTriggerBuild:s,onCreatePipeline:a}){return n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-heading text-2xl",children:"CI/CD Integration"}),n.jsx("p",{className:"text-body mt-1",children:"Monitor and manage continuous integration and deployment pipelines"})]}),n.jsxs("div",{className:"flex space-x-2",children:[n.jsxs("button",{onClick:s,className:"btn-secondary flex items-center space-x-2",children:[n.jsx(Si,{className:"w-5 h-5"}),n.jsx("span",{children:"Trigger Build"})]}),n.jsxs("button",{onClick:a,className:"btn-primary flex items-center space-x-2",children:[n.jsx(cf,{className:"w-5 h-5"}),n.jsx("span",{children:"New Pipeline"})]})]})]})}const ul=s=>{switch(s){case"success":case"active":return"bg-green-100 text-green-800";case"running":return"bg-blue-100 text-blue-800";case"pending":return"bg-yellow-100 text-yellow-800";case"failed":case"cancelled":return"bg-red-100 text-red-800";case"paused":return"bg-gray-100 text-gray-800";case"skipped":return"bg-gray-100 text-gray-600";default:return"bg-gray-100 text-gray-800"}},Jx=s=>{switch(s){case"success":return"bg-green-100 text-green-800";case"running":return"bg-blue-100 text-blue-800";case"pending":return"bg-gray-100 text-gray-800";case"failed":return"bg-red-100 text-red-800";case"skipped":return"bg-gray-100 text-gray-600";default:return"bg-gray-100 text-gray-800"}},ep=s=>{const a=s.length,i=s.filter(x=>x.status==="success").length,c=s.filter(x=>x.status==="failed").length,d=s.filter(x=>x.status==="running").length,m=a>0?Math.round(i/a*100):0,f=s.filter(x=>x.duration),g=f.length>0?Math.round(f.reduce((x,b)=>x+(b.duration||0),0)/f.length):0;return{total:a,successful:i,failed:c,running:d,successRate:m,avgDuration:g}},tp=(s,a)=>s.filter(i=>{const c=a.package==="all"||i.packageName===a.package,d=a.status==="all"||i.status===a.status;return c&&d&&!0}),np=s=>[...new Set(s.map(a=>a.packageName))],rp=s=>[...new Set(s.map(a=>a.status))],Hr=s=>{if(s<60)return`${s}s`;if(s<3600){const a=Math.floor(s/60),i=s%60;return i>0?`${a}m ${i}s`:`${a}m`}else{const a=Math.floor(s/3600),i=Math.floor(s%3600/60);return i>0?`${a}h ${i}m`:`${a}h`}},sd=s=>new Date(s).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),Od=s=>{const a=new Date(s),c=new Date().getTime()-a.getTime(),d=Math.floor(c/(1e3*60)),m=Math.floor(d/60),f=Math.floor(m/24);return d<1?"Just now":d<60?`${d} min ago`:m<24?`${m} hour${m>1?"s":""} ago`:`${f} day${f>1?"s":""} ago`},sp=s=>{if(s.status==="success"||s.status==="failed"||s.status==="cancelled")return 100;if(s.status==="pending")return 0;const a=s.stages.length;if(a===0)return 0;const i=s.stages.filter(m=>m.status==="success"||m.status==="failed"||m.status==="skipped").length,c=s.stages.filter(m=>m.status==="running").length,d=(i+c*.5)/a;return Math.round(d*100)},lp=s=>{const a=s.toLowerCase();return a.includes("build")||a.includes("compile")?"🔨":a.includes("test")?"🧪":a.includes("lint")||a.includes("format")?"✨":a.includes("deploy")||a.includes("publish")?n.jsx(un,{className:"w-6 h-6 text-primary-600"}):a.includes("security")||a.includes("audit")?"🔒":a.includes("install")||a.includes("dependencies")?n.jsx(it,{className:"w-6 h-6 text-primary-600"}):n.jsx(Sn,{className:"w-6 h-6 text-primary-600"})},ap=s=>s.status==="failed"?"critical":s.status==="paused"?"warning":s.successRate<70?"critical":s.successRate<85?"warning":"healthy",zd=s=>s.substring(0,8);function ip({stats:s,onRefresh:a,loading:i=!1}){return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-heading text-lg",children:"Build Statistics"}),n.jsxs("button",{onClick:a,disabled:i,className:"btn-ghost",children:[n.jsx(on,{className:`w-4 h-4 mr-2 ${i?"animate-spin":""}`}),"Refresh"]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-4",children:[n.jsx("div",{className:"card p-4",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-primary-100 rounded-lg",children:n.jsx(Gr,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Total Builds"}),n.jsx("p",{className:"text-heading text-2xl",children:s.total})]})]})}),n.jsx("div",{className:"card p-4",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-success-100 rounded-lg",children:n.jsx(Pt,{className:"w-6 h-6 text-success-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Successful"}),n.jsx("p",{className:"text-heading text-2xl text-success-600",children:s.successful})]})]})}),n.jsx("div",{className:"card p-4",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-error-100 rounded-lg",children:n.jsx(Lt,{className:"w-6 h-6 text-error-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Failed"}),n.jsx("p",{className:"text-heading text-2xl text-error-600",children:s.failed})]})]})}),n.jsx("div",{className:"card p-4",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"p-2 bg-info-100 rounded-lg",children:n.jsx(Bt,{className:"w-6 h-6 text-info-600"})}),n.jsxs("div",{className:"ml-4",children:[n.jsx("p",{className:"text-caption font-medium",children:"Running"}),n.jsx("p",{className:"text-heading text-2xl text-info-600",children:s.running})]})]})}),n.jsxs("div",{className:"card p-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsx("p",{className:"text-caption font-medium",children:"Success Rate"}),n.jsxs("span",{className:`text-lg font-bold ${s.successRate>=90?"text-success-600":s.successRate>=70?"text-warning-600":"text-error-600"}`,children:[s.successRate,"%"]})]}),n.jsx("div",{className:"w-full bg-neutral-200 rounded-full h-2",children:n.jsx("div",{className:`h-2 rounded-full transition-all duration-300 ${s.successRate>=90?"bg-success-500":s.successRate>=70?"bg-warning-500":"bg-error-500"}`,style:{width:`${s.successRate}%`}})})]})]}),n.jsxs("div",{className:"card p-6",children:[n.jsx("h3",{className:"text-heading text-lg mb-4",children:"Performance Metrics"}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-heading text-2xl text-primary-600",children:Hr(s.avgDuration)}),n.jsx("div",{className:"text-caption",children:"Avg Duration"})]}),n.jsxs("div",{className:"text-center",children:[n.jsxs("div",{className:"text-heading text-2xl text-success-600",children:[s.total>0?Math.round(s.successful/s.total*100):0,"%"]}),n.jsx("div",{className:"text-caption",children:"Success Rate"})]}),n.jsxs("div",{className:"text-center",children:[n.jsxs("div",{className:"text-heading text-2xl text-error-600",children:[s.total>0?Math.round(s.failed/s.total*100):0,"%"]}),n.jsx("div",{className:"text-caption",children:"Failure Rate"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-heading text-2xl text-accent-600",children:s.running}),n.jsx("div",{className:"text-caption",children:"Active Builds"})]})]})]})]})}function op({builds:s,selectedBuild:a,onBuildSelect:i,filters:c,onFiltersChange:d}){const m=np(s),f=rp(s),g=x=>{switch(x){case"success":return n.jsx(Pt,{className:"h-5 w-5 text-green-500"});case"running":return n.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-blue-500 border-t-transparent"});case"pending":return n.jsx(Bt,{className:"h-5 w-5 text-yellow-500"});case"failed":return n.jsx(Lt,{className:"h-5 w-5 text-red-500"});case"cancelled":return n.jsx(vi,{className:"h-5 w-5 text-red-500"});default:return n.jsx(Bt,{className:"h-5 w-5 text-gray-500"})}};return n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"bg-white p-4 rounded-lg shadow border",children:n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(fl,{className:"h-4 w-4 text-gray-400"}),n.jsxs("select",{value:c.package,onChange:x=>d({...c,package:x.target.value}),className:"border border-gray-300 rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Packages"}),m.map(x=>n.jsx("option",{value:x,children:x},x))]})]}),n.jsxs("select",{value:c.status,onChange:x=>d({...c,status:x.target.value}),className:"border border-gray-300 rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Statuses"}),f.map(x=>n.jsx("option",{value:x,children:x.charAt(0).toUpperCase()+x.slice(1)},x))]}),n.jsxs("select",{value:c.dateRange,onChange:x=>d({...c,dateRange:x.target.value}),className:"border border-gray-300 rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Time"}),n.jsx("option",{value:"today",children:"Today"}),n.jsx("option",{value:"week",children:"This Week"}),n.jsx("option",{value:"month",children:"This Month"})]})]})}),n.jsxs("div",{className:"bg-white rounded-lg shadow border",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Recent Builds"}),n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:[s.length," build",s.length!==1?"s":""," found"]})]}),s.length===0?n.jsxs("div",{className:"p-8 text-center",children:[n.jsx("div",{className:"text-gray-400 text-4xl mb-2",children:"🔨"}),n.jsx("p",{className:"text-gray-500",children:"No builds found matching your filters"})]}):n.jsx("div",{className:"divide-y divide-gray-200",children:s.map(x=>{const b=sp(x),E=a===x.id;return n.jsxs("div",{className:`p-4 cursor-pointer transition-colors ${E?"bg-blue-50 border-l-4 border-blue-500":"hover:bg-gray-50"}`,onClick:()=>i(E?null:x.id),children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[g(x.status),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:x.packageName}),n.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-gray-100 text-gray-800",children:x.branch}),n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:zd(x.commit)})]}),n.jsxs("div",{className:"flex items-center space-x-2 mt-1",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${ul(x.status)}`,children:x.status}),n.jsxs("span",{className:"text-xs text-gray-500",children:["by ",x.triggeredBy]}),n.jsx("span",{className:"text-xs text-gray-500",children:Od(x.startTime)})]})]})]}),n.jsxs("div",{className:"text-right",children:[x.duration&&n.jsx("div",{className:"text-sm font-medium text-gray-900",children:Hr(x.duration)}),x.status==="running"&&n.jsx("div",{className:"mt-1",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-20 bg-gray-200 rounded-full h-2",children:n.jsx("div",{className:"bg-blue-500 h-2 rounded-full transition-all duration-300",style:{width:`${b}%`}})}),n.jsxs("span",{className:"text-xs text-gray-500",children:[b,"%"]})]})})]})]}),E&&x.stages.length>0&&n.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:n.jsx("div",{className:"flex items-center space-x-2",children:x.stages.map((C,M)=>n.jsx("div",{className:`flex items-center px-2 py-1 text-xs rounded ${ul(C.status)}`,title:`${C.name}: ${C.status}`,children:C.name},C.name))})})]},x.id)})})]})]})}function cp({pipelines:s,onPipelineSelect:a,onPipelineToggle:i}){const c=m=>{switch(m){case"healthy":return n.jsx(Pt,{className:"w-5 h-5 text-green-500"});case"warning":return n.jsx(Fe,{className:"w-5 h-5 text-yellow-500"});case"critical":return n.jsx(Lt,{className:"w-5 h-5 text-red-500"});default:return n.jsx(Sn,{className:"w-5 h-5 text-gray-500"})}},d=m=>{switch(m){case"healthy":return"bg-green-100 text-green-800";case"warning":return"bg-yellow-100 text-yellow-800";case"critical":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};return s.length===0?n.jsx("div",{className:"bg-white rounded-lg shadow border p-6",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Sn,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No Pipelines Configured"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"Get started by creating your first CI/CD pipeline to automate builds and deployments."}),n.jsx("button",{className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Create Pipeline"})]})}):n.jsxs("div",{className:"bg-white rounded-lg shadow border",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Pipeline Status"}),n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:[s.length," pipeline",s.length!==1?"s":""," ","configured"]})]}),n.jsx("div",{className:"divide-y divide-gray-200",children:s.map(m=>{const f=ap(m);return n.jsxs("div",{className:"p-4 hover:bg-gray-50 transition-colors cursor-pointer",onClick:()=>a(m.id),children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[c(f),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:m.name}),n.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-gray-100 text-gray-800",children:m.packageName})]}),n.jsxs("div",{className:"flex items-center space-x-4 mt-1",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${ul(m.status)}`,children:m.status}),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${d(f)}`,children:f})]})]})]}),n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx("button",{onClick:g=>{g.stopPropagation(),i(m.id,m.status!=="active")},className:`p-2 rounded-lg transition-colors ${m.status==="active"?"text-green-600 hover:bg-green-100":"text-gray-400 hover:bg-gray-100"}`,title:m.status==="active"?"Pause Pipeline":"Activate Pipeline",children:m.status==="active"?n.jsx(xf,{className:"w-5 h-5"}):n.jsx(Si,{className:"w-5 h-5"})})})]}),n.jsxs("div",{className:"mt-3 grid grid-cols-4 gap-4 text-xs",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500",children:"Success Rate:"}),n.jsxs("div",{className:`font-medium ${m.successRate>=90?"text-green-600":m.successRate>=70?"text-yellow-600":"text-red-600"}`,children:[m.successRate,"%"]})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500",children:"Avg Duration:"}),n.jsx("div",{className:"font-medium text-gray-900",children:Hr(m.avgDuration)})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500",children:"Last Run:"}),n.jsx("div",{className:"font-medium text-gray-900",children:Od(m.lastRun)})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500",children:"Triggers:"}),n.jsx("div",{className:"font-medium text-gray-900",children:m.triggers.length})]})]}),n.jsxs("div",{className:"mt-3",children:[n.jsxs("div",{className:"flex items-center justify-between text-xs mb-1",children:[n.jsx("span",{className:"text-gray-500",children:"Pipeline Health"}),n.jsxs("span",{className:"font-medium text-gray-900",children:[m.successRate,"%"]})]}),n.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:n.jsx("div",{className:`h-2 rounded-full transition-all duration-300 ${m.successRate>=90?"bg-green-500":m.successRate>=70?"bg-yellow-500":"bg-red-500"}`,style:{width:`${m.successRate}%`}})})]}),n.jsx("div",{className:"mt-3",children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{className:"text-xs text-gray-500",children:"Triggers:"}),m.triggers.map(g=>n.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800",children:g},g))]})})]},m.id)})})]})}function up({build:s,onClose:a,onCancel:i,onRetry:c}){if(!s)return null;const d=m=>{switch(m){case"success":return n.jsx(Pt,{className:"h-5 w-5 text-green-500"});case"running":return n.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-blue-500 border-t-transparent"});case"pending":return n.jsx(Bt,{className:"h-5 w-5 text-yellow-500"});case"failed":return n.jsx(Lt,{className:"h-5 w-5 text-red-500"});case"cancelled":return n.jsx(vi,{className:"h-5 w-5 text-red-500"});default:return n.jsx(Bt,{className:"h-5 w-5 text-gray-500"})}};return n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-hidden",children:[n.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[d(s.status),n.jsxs("div",{children:[n.jsxs("h2",{className:"text-xl font-semibold text-gray-900",children:[s.packageName," Build"]}),n.jsxs("p",{className:"text-sm text-gray-600",children:[s.branch," • ",zd(s.commit)]})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[s.status==="running"&&i&&n.jsxs("button",{onClick:()=>i(s.id),className:"inline-flex items-center px-3 py-2 text-sm font-medium text-red-700 bg-red-100 rounded-lg hover:bg-red-200 transition-colors",children:[n.jsx(vi,{className:"w-4 h-4 mr-1"}),"Cancel"]}),(s.status==="failed"||s.status==="cancelled")&&c&&n.jsxs("button",{onClick:()=>c(s.id),className:"inline-flex items-center px-3 py-2 text-sm font-medium text-green-700 bg-green-100 rounded-lg hover:bg-green-200 transition-colors",children:[n.jsx(on,{className:"w-4 h-4 mr-1"}),"Retry"]}),n.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 transition-colors",children:n.jsx(Yr,{className:"w-6 h-6"})})]})]}),n.jsxs("div",{className:"p-6 overflow-y-auto max-h-[70vh]",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-medium text-gray-700 mb-2",children:"Build Information"}),n.jsxs("div",{className:"space-y-2 text-sm",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Status:"}),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${ul(s.status)}`,children:s.status})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Started:"}),n.jsx("span",{className:"font-medium",children:sd(s.startTime)})]}),s.endTime&&n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Ended:"}),n.jsx("span",{className:"font-medium",children:sd(s.endTime)})]}),s.duration&&n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Duration:"}),n.jsx("span",{className:"font-medium",children:Hr(s.duration)})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-600",children:"Triggered by:"}),n.jsx("span",{className:"font-medium",children:s.triggeredBy})]})]})]})}),n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-medium text-gray-700 mb-2",children:"Artifacts"}),s.artifacts.length>0?n.jsx("div",{className:"space-y-1",children:s.artifacts.map((m,f)=>n.jsx("div",{className:"text-sm",children:n.jsx("a",{href:"#",className:"text-blue-600 hover:text-blue-500 font-medium",children:m})},f))}):n.jsx("p",{className:"text-sm text-gray-500",children:"No artifacts generated"})]})})]}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Build Stages"}),n.jsx("div",{className:"space-y-4",children:s.stages.map((m,f)=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("span",{className:"text-2xl",children:lp(m.name)}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:m.name}),n.jsxs("div",{className:"flex items-center space-x-2 mt-1",children:[n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Jx(m.status)}`,children:m.status}),m.duration&&n.jsx("span",{className:"text-xs text-gray-500",children:Hr(m.duration)})]})]})]}),n.jsxs("div",{className:"text-sm text-gray-500",children:["Step ",f+1," of ",s.stages.length]})]}),m.logs&&m.logs.length>0&&n.jsxs("div",{className:"mt-3",children:[n.jsx("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Logs"}),n.jsx("div",{className:"bg-gray-900 text-gray-100 p-3 rounded-lg text-xs font-mono max-h-32 overflow-y-auto",children:m.logs.map((g,x)=>n.jsx("div",{className:"mb-1",children:g},x))})]})]},m.name))})]})]})]})})}const dp=[{id:"1",name:"Dashboard CI",packageName:"dashboard",status:"active",lastRun:"2024-01-16T09:00:00Z",nextRun:"2024-01-16T10:00:00Z",successRate:95,avgDuration:420,triggers:["push","pull_request"]},{id:"2",name:"Backend CI",packageName:"backend",status:"active",lastRun:"2024-01-16T08:30:00Z",nextRun:"2024-01-16T09:30:00Z",successRate:88,avgDuration:900,triggers:["push","pull_request","tag"]},{id:"3",name:"Utils CI",packageName:"utils",status:"paused",lastRun:"2024-01-16T08:00:00Z",successRate:75,avgDuration:600,triggers:["push","pull_request"]}];function mp(){const[s,a]=S.useState(!0),[i,c]=S.useState(null),[d,m]=S.useState([]),[f]=S.useState(dp),[g,x]=S.useState(null),[b,E]=S.useState({package:"all",status:"all",pipeline:"all",dateRange:"all"});S.useEffect(()=>{(async()=>{try{a(!0);const Ue=(await ft.getBuildStatus()).map(he=>({id:he.id||Math.random().toString(36).substr(2,9),packageName:he.package||he.packageName||"unknown",branch:he.branch||"main",commit:he.commit||"unknown",status:he.status||"pending",startTime:he.startTime||new Date().toISOString(),endTime:he.endTime,duration:he.duration,stages:he.stages||[],triggeredBy:he.triggeredBy||"system",artifacts:he.artifacts||[]}));m(Ue),c(null)}catch(de){c("Failed to fetch build data"),console.error("Error fetching build data:",de)}finally{a(!1)}})()},[]);const C=tp(d,b),M=ep(d),A=g&&d.find(q=>q.id===g)||null,U=()=>{window.location.reload()},D=()=>{console.log("Triggering new build...")},P=()=>{console.log("Creating new pipeline...")},Y=q=>{x(q)},T=q=>{console.log("Selected pipeline:",q)},z=(q,de)=>{console.log("Toggle pipeline:",q,"active:",de)},G=q=>{console.log("Cancelling build:",q),x(null)},oe=q=>{console.log("Retrying build:",q),x(null)},me=()=>{window.location.reload()};return s?n.jsx(Zx,{}):i?n.jsx(Xx,{error:i,onRetry:me}):n.jsxs("div",{className:"space-y-6",children:[n.jsx(qx,{onTriggerBuild:D,onCreatePipeline:P}),n.jsx(ip,{stats:M,onRefresh:U,loading:s}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n.jsx("div",{className:"lg:col-span-2",children:n.jsx(op,{builds:C,selectedBuild:g,onBuildSelect:Y,filters:b,onFiltersChange:E})}),n.jsx("div",{className:"lg:col-span-1",children:n.jsx(cp,{pipelines:f,onPipelineSelect:T,onPipelineToggle:z})})]}),n.jsx(up,{build:A,onClose:()=>x(null),onCancel:G,onRetry:oe}),C.length===0&&d.length>0&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx("div",{className:"text-gray-400 text-6xl mb-4",children:"🔨"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No builds found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"No builds match your current filters. Try adjusting your search criteria."}),n.jsx("button",{onClick:()=>E({package:"all",status:"all",pipeline:"all",dateRange:"all"}),className:"text-blue-600 hover:text-blue-500",children:"Clear Filters"})]}),d.length===0&&!s&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx("div",{className:"text-gray-400 text-6xl mb-4",children:n.jsx(un,{className:"w-6 h-6 text-primary-600"})}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No CI/CD data available"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"Get started by triggering your first build or setting up a pipeline."}),n.jsxs("div",{className:"flex justify-center space-x-4",children:[n.jsx("button",{onClick:D,className:"bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 transition-colors",children:"Trigger Build"}),n.jsx("button",{onClick:P,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Create Pipeline"})]})]})]})}function hp({message:s="Loading configuration files..."}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:s})]})})}function fp({error:s,onRetry:a}){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Fe,{className:"w-12 h-12 text-red-500 mx-auto"}),n.jsx("p",{className:"mt-4 text-red-600",children:s}),a&&n.jsx("button",{onClick:a,className:"mt-4 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})})}function xp({onRefresh:s,loading:a=!1}){return n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Configuration Inspector"}),n.jsx("p",{className:"text-gray-600 mt-1",children:"View and manage configuration files across your monorepo"})]}),s&&n.jsxs("button",{onClick:s,disabled:a,className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center space-x-2 transition-colors",children:[n.jsx(on,{className:`w-5 h-5 ${a?"animate-spin":""}`}),n.jsx("span",{children:"Refresh"})]})]})}function Dd(s){return typeof s>"u"||s===null}function pp(s){return typeof s=="object"&&s!==null}function gp(s){return Array.isArray(s)?s:Dd(s)?[]:[s]}function vp(s,a){var i,c,d,m;if(a)for(m=Object.keys(a),i=0,c=m.length;i<c;i+=1)d=m[i],s[d]=a[d];return s}function yp(s,a){var i="",c;for(c=0;c<a;c+=1)i+=s;return i}function jp(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}var wp=Dd,Np=pp,bp=gp,kp=yp,Sp=jp,Cp=vp,Ii={isNothing:wp,isObject:Np,toArray:bp,repeat:kp,isNegativeZero:Sp,extend:Cp};function Fd(s,a){var i="",c=s.reason||"(unknown reason)";return s.mark?(s.mark.name&&(i+='in "'+s.mark.name+'" '),i+="("+(s.mark.line+1)+":"+(s.mark.column+1)+")",!a&&s.mark.snippet&&(i+=`
|
|
9
|
+
|
|
10
|
+
`+s.mark.snippet),c+" "+i):c}function Vr(s,a){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=a,this.message=Fd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Vr.prototype=Object.create(Error.prototype);Vr.prototype.constructor=Vr;Vr.prototype.toString=function(a){return this.name+": "+Fd(this,a)};var kn=Vr,Ep=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Pp=["scalar","sequence","mapping"];function Lp(s){var a={};return s!==null&&Object.keys(s).forEach(function(i){s[i].forEach(function(c){a[String(c)]=i})}),a}function Mp(s,a){if(a=a||{},Object.keys(a).forEach(function(i){if(Ep.indexOf(i)===-1)throw new kn('Unknown option "'+i+'" is met in definition of "'+s+'" YAML type.')}),this.options=a,this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(i){return i},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=Lp(a.styleAliases||null),Pp.indexOf(this.kind)===-1)throw new kn('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}var Ye=Mp;function ld(s,a){var i=[];return s[a].forEach(function(c){var d=i.length;i.forEach(function(m,f){m.tag===c.tag&&m.kind===c.kind&&m.multi===c.multi&&(d=f)}),i[d]=c}),i}function Tp(){var s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,i;function c(d){d.multi?(s.multi[d.kind].push(d),s.multi.fallback.push(d)):s[d.kind][d.tag]=s.fallback[d.tag]=d}for(a=0,i=arguments.length;a<i;a+=1)arguments[a].forEach(c);return s}function yi(s){return this.extend(s)}yi.prototype.extend=function(a){var i=[],c=[];if(a instanceof Ye)c.push(a);else if(Array.isArray(a))c=c.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(i=i.concat(a.implicit)),a.explicit&&(c=c.concat(a.explicit));else throw new kn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(m){if(!(m instanceof Ye))throw new kn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(m.loadKind&&m.loadKind!=="scalar")throw new kn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(m.multi)throw new kn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),c.forEach(function(m){if(!(m instanceof Ye))throw new kn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var d=Object.create(yi.prototype);return d.implicit=(this.implicit||[]).concat(i),d.explicit=(this.explicit||[]).concat(c),d.compiledImplicit=ld(d,"implicit"),d.compiledExplicit=ld(d,"explicit"),d.compiledTypeMap=Tp(d.compiledImplicit,d.compiledExplicit),d};var _p=yi,Rp=new Ye("tag:yaml.org,2002:str",{kind:"scalar",construct:function(s){return s!==null?s:""}}),Ip=new Ye("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(s){return s!==null?s:[]}}),Op=new Ye("tag:yaml.org,2002:map",{kind:"mapping",construct:function(s){return s!==null?s:{}}}),zp=new _p({explicit:[Rp,Ip,Op]});function Dp(s){if(s===null)return!0;var a=s.length;return a===1&&s==="~"||a===4&&(s==="null"||s==="Null"||s==="NULL")}function Fp(){return null}function Bp(s){return s===null}var Ap=new Ye("tag:yaml.org,2002:null",{kind:"scalar",resolve:Dp,construct:Fp,predicate:Bp,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $p(s){if(s===null)return!1;var a=s.length;return a===4&&(s==="true"||s==="True"||s==="TRUE")||a===5&&(s==="false"||s==="False"||s==="FALSE")}function Up(s){return s==="true"||s==="True"||s==="TRUE"}function Hp(s){return Object.prototype.toString.call(s)==="[object Boolean]"}var Vp=new Ye("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$p,construct:Up,predicate:Hp,represent:{lowercase:function(s){return s?"true":"false"},uppercase:function(s){return s?"TRUE":"FALSE"},camelcase:function(s){return s?"True":"False"}},defaultStyle:"lowercase"});function Wp(s){return 48<=s&&s<=57||65<=s&&s<=70||97<=s&&s<=102}function Qp(s){return 48<=s&&s<=55}function Yp(s){return 48<=s&&s<=57}function Gp(s){if(s===null)return!1;var a=s.length,i=0,c=!1,d;if(!a)return!1;if(d=s[i],(d==="-"||d==="+")&&(d=s[++i]),d==="0"){if(i+1===a)return!0;if(d=s[++i],d==="b"){for(i++;i<a;i++)if(d=s[i],d!=="_"){if(d!=="0"&&d!=="1")return!1;c=!0}return c&&d!=="_"}if(d==="x"){for(i++;i<a;i++)if(d=s[i],d!=="_"){if(!Wp(s.charCodeAt(i)))return!1;c=!0}return c&&d!=="_"}if(d==="o"){for(i++;i<a;i++)if(d=s[i],d!=="_"){if(!Qp(s.charCodeAt(i)))return!1;c=!0}return c&&d!=="_"}}if(d==="_")return!1;for(;i<a;i++)if(d=s[i],d!=="_"){if(!Yp(s.charCodeAt(i)))return!1;c=!0}return!(!c||d==="_")}function Kp(s){var a=s,i=1,c;if(a.indexOf("_")!==-1&&(a=a.replace(/_/g,"")),c=a[0],(c==="-"||c==="+")&&(c==="-"&&(i=-1),a=a.slice(1),c=a[0]),a==="0")return 0;if(c==="0"){if(a[1]==="b")return i*parseInt(a.slice(2),2);if(a[1]==="x")return i*parseInt(a.slice(2),16);if(a[1]==="o")return i*parseInt(a.slice(2),8)}return i*parseInt(a,10)}function Zp(s){return Object.prototype.toString.call(s)==="[object Number]"&&s%1===0&&!Ii.isNegativeZero(s)}var Xp=new Ye("tag:yaml.org,2002:int",{kind:"scalar",resolve:Gp,construct:Kp,predicate:Zp,represent:{binary:function(s){return s>=0?"0b"+s.toString(2):"-0b"+s.toString(2).slice(1)},octal:function(s){return s>=0?"0o"+s.toString(8):"-0o"+s.toString(8).slice(1)},decimal:function(s){return s.toString(10)},hexadecimal:function(s){return s>=0?"0x"+s.toString(16).toUpperCase():"-0x"+s.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qp=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jp(s){return!(s===null||!qp.test(s)||s[s.length-1]==="_")}function eg(s){var a,i;return a=s.replace(/_/g,"").toLowerCase(),i=a[0]==="-"?-1:1,"+-".indexOf(a[0])>=0&&(a=a.slice(1)),a===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:i*parseFloat(a,10)}var tg=/^[-+]?[0-9]+e/;function ng(s,a){var i;if(isNaN(s))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===s)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===s)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ii.isNegativeZero(s))return"-0.0";return i=s.toString(10),tg.test(i)?i.replace("e",".e"):i}function rg(s){return Object.prototype.toString.call(s)==="[object Number]"&&(s%1!==0||Ii.isNegativeZero(s))}var sg=new Ye("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jp,construct:eg,predicate:rg,represent:ng,defaultStyle:"lowercase"}),lg=zp.extend({implicit:[Ap,Vp,Xp,sg]}),ag=lg,Bd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ad=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ig(s){return s===null?!1:Bd.exec(s)!==null||Ad.exec(s)!==null}function og(s){var a,i,c,d,m,f,g,x=0,b=null,E,C,M;if(a=Bd.exec(s),a===null&&(a=Ad.exec(s)),a===null)throw new Error("Date resolve error");if(i=+a[1],c=+a[2]-1,d=+a[3],!a[4])return new Date(Date.UTC(i,c,d));if(m=+a[4],f=+a[5],g=+a[6],a[7]){for(x=a[7].slice(0,3);x.length<3;)x+="0";x=+x}return a[9]&&(E=+a[10],C=+(a[11]||0),b=(E*60+C)*6e4,a[9]==="-"&&(b=-b)),M=new Date(Date.UTC(i,c,d,m,f,g,x)),b&&M.setTime(M.getTime()-b),M}function cg(s){return s.toISOString()}var ug=new Ye("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ig,construct:og,instanceOf:Date,represent:cg});function dg(s){return s==="<<"||s===null}var mg=new Ye("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dg}),Oi=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
11
|
+
\r`;function hg(s){if(s===null)return!1;var a,i,c=0,d=s.length,m=Oi;for(i=0;i<d;i++)if(a=m.indexOf(s.charAt(i)),!(a>64)){if(a<0)return!1;c+=6}return c%8===0}function fg(s){var a,i,c=s.replace(/[\r\n=]/g,""),d=c.length,m=Oi,f=0,g=[];for(a=0;a<d;a++)a%4===0&&a&&(g.push(f>>16&255),g.push(f>>8&255),g.push(f&255)),f=f<<6|m.indexOf(c.charAt(a));return i=d%4*6,i===0?(g.push(f>>16&255),g.push(f>>8&255),g.push(f&255)):i===18?(g.push(f>>10&255),g.push(f>>2&255)):i===12&&g.push(f>>4&255),new Uint8Array(g)}function xg(s){var a="",i=0,c,d,m=s.length,f=Oi;for(c=0;c<m;c++)c%3===0&&c&&(a+=f[i>>18&63],a+=f[i>>12&63],a+=f[i>>6&63],a+=f[i&63]),i=(i<<8)+s[c];return d=m%3,d===0?(a+=f[i>>18&63],a+=f[i>>12&63],a+=f[i>>6&63],a+=f[i&63]):d===2?(a+=f[i>>10&63],a+=f[i>>4&63],a+=f[i<<2&63],a+=f[64]):d===1&&(a+=f[i>>2&63],a+=f[i<<4&63],a+=f[64],a+=f[64]),a}function pg(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}var gg=new Ye("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hg,construct:fg,predicate:pg,represent:xg}),vg=Object.prototype.hasOwnProperty,yg=Object.prototype.toString;function jg(s){if(s===null)return!0;var a=[],i,c,d,m,f,g=s;for(i=0,c=g.length;i<c;i+=1){if(d=g[i],f=!1,yg.call(d)!=="[object Object]")return!1;for(m in d)if(vg.call(d,m))if(!f)f=!0;else return!1;if(!f)return!1;if(a.indexOf(m)===-1)a.push(m);else return!1}return!0}function wg(s){return s!==null?s:[]}var Ng=new Ye("tag:yaml.org,2002:omap",{kind:"sequence",resolve:jg,construct:wg}),bg=Object.prototype.toString;function kg(s){if(s===null)return!0;var a,i,c,d,m,f=s;for(m=new Array(f.length),a=0,i=f.length;a<i;a+=1){if(c=f[a],bg.call(c)!=="[object Object]"||(d=Object.keys(c),d.length!==1))return!1;m[a]=[d[0],c[d[0]]]}return!0}function Sg(s){if(s===null)return[];var a,i,c,d,m,f=s;for(m=new Array(f.length),a=0,i=f.length;a<i;a+=1)c=f[a],d=Object.keys(c),m[a]=[d[0],c[d[0]]];return m}var Cg=new Ye("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:kg,construct:Sg}),Eg=Object.prototype.hasOwnProperty;function Pg(s){if(s===null)return!0;var a,i=s;for(a in i)if(Eg.call(i,a)&&i[a]!==null)return!1;return!0}function Lg(s){return s!==null?s:{}}var Mg=new Ye("tag:yaml.org,2002:set",{kind:"mapping",resolve:Pg,construct:Lg});ag.extend({implicit:[ug,mg],explicit:[gg,Ng,Cg,Mg]});function ad(s){return s===48?"\0":s===97?"\x07":s===98?"\b":s===116||s===9?" ":s===110?`
|
|
12
|
+
`:s===118?"\v":s===102?"\f":s===114?"\r":s===101?"\x1B":s===32?" ":s===34?'"':s===47?"/":s===92?"\\":s===78?"
":s===95?" ":s===76?"\u2028":s===80?"\u2029":""}var Tg=new Array(256),_g=new Array(256);for(var qn=0;qn<256;qn++)Tg[qn]=ad(qn)?1:0,_g[qn]=ad(qn);const Rg=s=>{switch(s){case"workspace":return"bg-blue-100 text-blue-800";case"package":return"bg-green-100 text-green-800";case"environment":return"bg-purple-100 text-purple-800";case"tool":return"bg-orange-100 text-orange-800";default:return"bg-gray-100 text-gray-800"}},id=s=>{switch(s){case"valid":return"bg-green-100 text-green-800";case"warning":return"bg-yellow-100 text-yellow-800";case"error":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}},Ig=(s,a)=>s.filter(i=>{const c=a.section==="all"||i.id===a.section,d=a.type==="all"||i.type===a.type,m=a.status==="all"||a.status==="secrets"&&i.hasSecrets||a.status==="standard"&&!i.hasSecrets,f=!a.search||i.name.toLowerCase().includes(a.search.toLowerCase())||i.path.toLowerCase().includes(a.search.toLowerCase());return c&&d&&m&&f}),Og=s=>[...new Set(s.map(a=>a.type))],zg=s=>{if(s===0)return"0 Bytes";const a=1024,i=["Bytes","KB","MB","GB"],c=Math.floor(Math.log(s)/Math.log(a));return parseFloat((s/Math.pow(a,c)).toFixed(2))+" "+i[c]},Dg=s=>new Date(s).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),$d=s=>{const a=s.split(".").pop()?.toLowerCase(),i={json:"json",yaml:"yaml",yml:"yaml",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",env:"env",config:"text",rc:"text",lock:"text",md:"markdown",txt:"text"};return s==="package.json"?"json":s==="docker-compose.yml"||s==="docker-compose.yaml"?"yaml":s===".eslintrc.js"||s===".prettierrc.js"?"javascript":s==="tsconfig.json"?"json":i[a||""]||"text"},Fg=s=>{const a=[/^([A-Z_]+(?:PASSWORD|SECRET|KEY|TOKEN|AUTH)[A-Z_]*)\s*=\s*(.+)$/gim,/"([^"]*(?:password|secret|key|token|auth)[^"]*)"\s*:\s*"([^"]+)"/gi,/^(\s*[^:\s]*(?:password|secret|key|token|auth)[^:\s]*)\s*:\s*(.+)$/gim];let i=s;return a.forEach(c=>{i=i.replace(c,(d,m,f)=>{const g="*".repeat(Math.min(f.length,8));return d.replace(f,g)})}),i},Bg=s=>{switch($d(s)){case"json":return n.jsx(il,{className:"w-6 h-6 text-primary-600"});case"yaml":return n.jsx(il,{className:"w-6 h-6 text-primary-600"});case"javascript":case"typescript":return n.jsx(Sn,{className:"w-6 h-6 text-primary-600"});case"env":return"🔐";case"markdown":return"📝";default:return n.jsx(Pi,{className:"w-6 h-6 text-primary-600"})}};function Ag({configs:s,selectedConfig:a,onConfigSelect:i,filters:c,onFiltersChange:d}){const m=Og(s);return n.jsxs("div",{className:"bg-white rounded-lg shadow border h-full flex flex-col max-h-[calc(100vh-180px)]",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Configuration Files"}),n.jsxs("div",{className:"relative mb-4",children:[n.jsx(Ti,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 h-4 w-4"}),n.jsx("input",{type:"text",placeholder:"Search config files...",value:c.search,onChange:f=>d({...c,search:f.target.value}),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm"})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(fl,{className:"h-4 w-4 text-gray-400"}),n.jsxs("select",{value:c.type,onChange:f=>d({...c,type:f.target.value}),className:"flex-1 border border-gray-300 rounded-md px-3 py-1 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Types"}),m.map(f=>n.jsx("option",{value:f,children:f.charAt(0).toUpperCase()+f.slice(1)},f))]})]}),n.jsxs("select",{value:c.status,onChange:f=>d({...c,status:f.target.value}),className:"w-full border border-gray-300 rounded-md px-3 py-1 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[n.jsx("option",{value:"all",children:"All Files"}),n.jsx("option",{value:"standard",children:"Standard Files"}),n.jsx("option",{value:"secrets",children:"Files with Secrets"})]})]})]}),n.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?n.jsxs("div",{className:"p-4 text-center text-gray-500",children:[n.jsx("div",{className:"text-4xl mb-2",children:n.jsx(Pi,{className:"w-6 h-6 text-primary-600"})}),n.jsx("p",{className:"text-sm",children:"No configuration files found"})]}):n.jsx("div",{className:"p-2",children:s.map(f=>n.jsx("button",{onClick:()=>i(f.id),className:`w-full text-left p-3 rounded-lg mb-2 transition-colors ${a===f.id?"bg-blue-50 border border-blue-200":"hover:bg-gray-50 border border-transparent"}`,children:n.jsxs("div",{className:"flex items-start space-x-3",children:[n.jsx("div",{className:"text-2xl",children:Bg(f.name)}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[n.jsx("p",{className:"text-sm font-medium text-gray-900 truncate",children:f.name}),f.hasSecrets&&n.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800",children:"🔒"})]}),n.jsx("p",{className:"text-xs text-gray-500 truncate mb-1",children:f.path}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:`inline-flex px-2 py-0.5 text-xs font-semibold rounded-full ${Rg(f.type)}`,children:f.type}),n.jsx("span",{className:"text-xs text-gray-400",children:zg(f.size)})]}),n.jsx("p",{className:"text-xs text-gray-400 mt-1",children:Dg(f.lastModified)})]})]})},f.id))})}),n.jsx("div",{className:"p-4 border-t border-gray-200",children:n.jsxs("div",{className:"text-xs text-gray-500",children:[s.length," file",s.length!==1?"s":""," found"]})})]})}function $g({isEditing:s,canEdit:a,hasSecrets:i,showSecrets:c,saving:d,onStartEdit:m,onSaveEdit:f,onCancelEdit:g,onToggleSecrets:x,onRefresh:b,content:E}){const[C,M]=S.useState(!1),A=async()=>{try{const U=E||"No content available";await navigator.clipboard.writeText(U),M(!0),setTimeout(()=>{M(!1)},4e3)}catch(U){console.error("Failed to copy to clipboard:",U),M(!0),setTimeout(()=>M(!1),2e3)}};return d?n.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 border-b border-gray-200",children:[n.jsx("div",{className:"flex items-center space-x-2",children:n.jsxs("div",{className:"inline-flex items-center px-3 py-1.5 text-sm font-medium text-orange-600 bg-white border border-gray-300 rounded-lg",children:[n.jsx(on,{className:"w-4 h-4 mr-1 animate-spin"}),"Saving..."]})}),n.jsx("div",{className:"flex items-center space-x-2",children:n.jsxs("button",{onClick:b,className:"inline-flex items-center px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",children:[n.jsx(on,{className:"w-4 h-4 mr-1"}),"Refresh"]})})]}):n.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[s?n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:f,className:"inline-flex items-center px-3 py-1.5 text-sm font-medium text-white bg-green-600 rounded-lg hover:bg-green-700 transition-colors",children:[n.jsx(ki,{className:"w-4 h-4 mr-1"}),"Save"]}),n.jsxs("button",{onClick:g,className:"inline-flex items-center px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",children:[n.jsx(Yr,{className:"w-4 h-4 mr-1"}),"Cancel"]})]}):a&&n.jsxs("button",{onClick:m,className:"inline-flex items-center px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",children:[n.jsx(sf,{className:"w-4 h-4 mr-1"}),"Edit"]}),i&&n.jsx("button",{onClick:x,className:`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${c?"text-red-700 bg-red-100 hover:bg-red-200":"text-yellow-700 bg-yellow-100 hover:bg-yellow-200"}`,children:c?n.jsxs(n.Fragment,{children:[n.jsx(rf,{className:"w-4 h-4 mr-1"}),"Hide Secrets"]}):n.jsxs(n.Fragment,{children:[n.jsx(nf,{className:"w-4 h-4 mr-1"}),"Show Secrets"]})})]}),n.jsx("div",{className:"flex items-center space-x-2",children:n.jsx("button",{onClick:A,className:`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${C?"text-green-700 bg-green-100 border border-green-300":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:C?n.jsxs(n.Fragment,{children:[n.jsx(uf,{className:"w-4 h-4 mr-1"}),"Copied!"]}):n.jsxs(n.Fragment,{children:[n.jsx(df,{className:"w-4 h-4 mr-1"}),"Copy"]})})})]})}function Ug({config:s,isEditing:a,editValue:i,onStartEdit:c,onSaveEdit:d,onCancelEdit:m,onValueChange:f,showSecrets:g,onToggleSecrets:x}){if(!s)return n.jsx("div",{className:"flex items-center justify-center h-64 bg-gray-50 rounded-lg",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-gray-400 text-4xl mb-2",children:n.jsx(il,{className:"w-6 h-6 text-primary-600"})}),n.jsx("p",{className:"text-gray-500",children:"Select a configuration file to view or edit"})]})});const b=$d(s.name),E=g?s.content:Fg(s.content);return n.jsxs("div",{className:"bg-white rounded-lg shadow border h-full flex flex-col",children:[n.jsx("div",{className:"p-4 border-b border-gray-200",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"text-2xl",children:n.jsx(il,{className:"w-6 h-6 text-primary-600"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:s.name}),n.jsx("p",{className:"text-sm text-gray-500",children:s.path})]})]})}),n.jsx("div",{className:"flex-1 p-4",children:a?n.jsx("div",{className:"h-full",children:n.jsx("textarea",{value:i,onChange:C=>f(C.target.value),className:"w-full h-full font-mono text-sm border border-gray-300 rounded-lg p-4 focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Enter configuration content...",spellCheck:!1})}):n.jsx("div",{className:"h-full",children:n.jsx("pre",{className:"w-full h-full font-mono text-sm bg-gray-50 border border-gray-200 rounded-lg p-4 overflow-auto whitespace-pre-wrap",children:n.jsx("code",{className:`language-${b}`,children:E})})})}),n.jsx("div",{className:"p-4 border-t border-gray-200 bg-gray-50",children:n.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("span",{children:["Language: ",b.toUpperCase()]}),n.jsxs("span",{children:["Size: ",s.content.length," characters"]}),s.hasSecrets&&n.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800",children:"🔒 Contains secrets"})]}),n.jsx("div",{children:a?n.jsx("span",{className:"text-blue-600 font-medium",children:"Editing mode"}):s.isEditable?n.jsx("span",{className:"text-green-600",children:"Editable"}):n.jsx("span",{className:"text-gray-400",children:"Read-only"})})]})})]})}function Hg({validation:s,configName:a}){const i=x=>{switch(x){case"valid":return n.jsx(Pt,{className:"w-5 h-5 text-green-500"});case"warning":return n.jsx(Fe,{className:"w-5 h-5 text-yellow-500"});case"error":return n.jsx(Lt,{className:"w-5 h-5 text-red-500"});default:return n.jsx(Jn,{className:"w-5 h-5 text-gray-500"})}},d=s.some(x=>x.status==="error")?"error":s.some(x=>x.status==="warning")?"warning":"valid",m=s.filter(x=>x.status==="error").length,f=s.filter(x=>x.status==="warning").length,g=s.filter(x=>x.status==="valid").length;return s.length===0?n.jsx("div",{className:"bg-white rounded-lg shadow border p-6",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Jn,{className:"w-8 h-8 text-gray-400 mx-auto mb-2"}),n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-1",children:"No Validation Results"}),n.jsx("p",{className:"text-sm text-gray-500",children:"Select a configuration file to see validation results."})]})}):n.jsxs("div",{className:"bg-white rounded-lg shadow border",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Validation Results"}),n.jsxs("div",{className:"flex items-center space-x-2",children:[i(d),n.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${id(d)}`,children:d.toUpperCase()})]})]}),n.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["Validation results for ",a]})]}),n.jsx("div",{className:"p-4 border-b border-gray-200 bg-gray-50",children:n.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-lg font-bold text-green-600",children:g}),n.jsx("div",{className:"text-xs text-gray-600",children:"Valid"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-lg font-bold text-yellow-600",children:f}),n.jsx("div",{className:"text-xs text-gray-600",children:"Warnings"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-lg font-bold text-red-600",children:m}),n.jsx("div",{className:"text-xs text-gray-600",children:"Errors"})]})]})}),n.jsx("div",{className:"p-4",children:n.jsx("div",{className:"space-y-3",children:s.map((x,b)=>n.jsx("div",{className:`p-3 rounded-lg border ${x.status==="error"?"border-red-200 bg-red-50":x.status==="warning"?"border-yellow-200 bg-yellow-50":"border-green-200 bg-green-50"}`,children:n.jsxs("div",{className:"flex items-start space-x-3",children:[i(x.status),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900",children:x.field}),n.jsx("span",{className:`inline-flex px-2 py-0.5 text-xs font-semibold rounded-full ${id(x.status)}`,children:x.status})]}),n.jsx("p",{className:"text-sm text-gray-600",children:x.message})]})]})},b))})}),(m>0||f>0)&&n.jsx("div",{className:"p-4 border-t border-gray-200 bg-gray-50",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"text-sm text-gray-600",children:[m>0&&n.jsxs("span",{className:"text-red-600 font-medium",children:[m," error",m>1?"s":""," need attention"]}),f>0&&m===0&&n.jsxs("span",{className:"text-yellow-600 font-medium",children:[f," warning",f>1?"s":""," to review"]})]}),n.jsx("button",{className:"text-blue-600 hover:text-blue-500 text-sm font-medium",children:"View Details"})]})})]})}function Vg(){const[s,a]=S.useState(!0),[i,c]=S.useState(!1),[d,m]=S.useState(null),[f,g]=S.useState([]),[x,b]=S.useState(null),[E,C]=S.useState(!1),[M,A]=S.useState(""),[U,D]=S.useState(!1),[P,Y]=S.useState({section:"all",type:"all",status:"all",search:""});S.useEffect(()=>{(async()=>{try{a(!0);const Se=(await ft.getConfigurationFiles()).map(fe=>({id:fe.id||fe.name,name:fe.name,path:fe.path||fe.name,type:fe.type||"text",content:fe.content||"",size:fe.content?.length||0,lastModified:fe.lastModified||new Date().toISOString(),hasSecrets:fe.hasSecrets||!1,isEditable:fe.isEditable!==!1,validation:fe.validation||[]}));g(Se),m(null)}catch(_e){m("Failed to fetch configuration files"),console.error("Error fetching config files:",_e)}finally{a(!1)}})()},[]);const T=Ig(f,P),z=x&&f.find(Te=>Te.id===x)||null,G=()=>{window.location.reload()},oe=Te=>{b(Te),C(!1),A("")},me=()=>{z&&(C(!0),A(z.content))},q=async()=>{if(z&&!i)try{c(!0),m(null);const Te=await ft.saveConfigurationFile(z.id,M);g(_e=>_e.map(Se=>Se.id===x?{...Te,isEditable:Se.isEditable}:Se)),x===z.id&&b(z.id),C(!1),A("")}catch(Te){console.error("Error saving config file:",Te),m(`Failed to save configuration: ${Te.message}`)}finally{c(!1)}},de=()=>{C(!1),A("")},Ue=()=>{D(!U)},he=()=>{window.location.reload()};return s?n.jsx(hp,{}):d?n.jsx(fp,{error:d,onRetry:he}):n.jsxs("div",{className:"space-y-6",children:[n.jsx(xp,{onRefresh:G,loading:s}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-[800px]",children:[n.jsx("div",{className:"lg:col-span-1",children:n.jsx(Ag,{configs:T,selectedConfig:x,onConfigSelect:oe,filters:P,onFiltersChange:Y})}),n.jsxs("div",{className:"lg:col-span-2 flex flex-col",children:[z&&n.jsx("div",{className:"mb-4",children:n.jsx($g,{isEditing:E,canEdit:z.isEditable,hasSecrets:z.hasSecrets,showSecrets:U,saving:i,onStartEdit:me,onSaveEdit:q,onCancelEdit:de,onToggleSecrets:Ue,onRefresh:G,content:E?M:z?.content})}),n.jsx("div",{className:"flex-1",children:n.jsx(Ug,{config:z,isEditing:E,editValue:M,saving:i,onStartEdit:me,onSaveEdit:q,onCancelEdit:de,onValueChange:A,showSecrets:U,onToggleSecrets:Ue})})]}),n.jsx("div",{className:"lg:col-span-1 space-y-6",children:n.jsx(Hg,{validation:z?.validation||[],configName:z?.name||"No file selected"})})]}),T.length===0&&!s&&n.jsxs("div",{className:"text-center py-12",children:[n.jsx("div",{className:"flex justify-center text-gray-400 text-6xl mb-4",children:n.jsx(Pi,{className:"w-6 h-6 text-primary-600"})}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No configuration files found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:P.search||P.type!=="all"||P.status!=="all"?"Try adjusting your filters to see more results.":"No configuration files are available to inspect."}),(P.search||P.type!=="all"||P.status!=="all")&&n.jsx("button",{onClick:()=>Y({section:"all",type:"all",status:"all",search:""}),className:"text-blue-600 hover:text-blue-500",children:"Clear Filters"})]})]})}const od=[{name:"Dashboard",href:"/",icon:tf},{name:"Packages",href:"/packages",icon:it},{name:"Dependencies",href:"/dependencies",icon:Gr},{name:"Health Status",href:"/health",icon:Ei},{name:"Configuration",href:"/config",icon:Sn}];function Wg({children:s}){const a=Qr();return n.jsxs("div",{className:"min-h-screen bg-neutral-50",children:[n.jsxs("div",{className:"fixed inset-y-0 left-0 z-50 w-64 bg-white shadow-medium",children:[n.jsx("div",{className:"flex h-16 items-center justify-center border-b border-neutral-200",children:n.jsx("h1",{className:"text-heading text-xl text-primary-700",children:"MonoDog"})}),n.jsx("nav",{className:"mt-8 px-4",children:n.jsx("ul",{className:"space-y-2",children:od.map(i=>{const c=a.pathname===i.href;return n.jsx("li",{children:n.jsxs(Ft,{to:i.href,className:`nav-link ${c?"nav-link-active":"nav-link-inactive"}`,children:[n.jsx(i.icon,{className:"mr-3 h-5 w-5"}),i.name]})},i.name)})})})]}),n.jsxs("div",{className:"pl-64",children:[n.jsxs("header",{className:"bg-white shadow-soft border-b border-neutral-200 flex items-center justify-between px-6 py-4",children:[n.jsx("div",{className:"flex items-center gap-4",children:n.jsx("h2",{className:"text-heading text-lg font-semibold",children:od.find(i=>i.href===a.pathname)?.name||"Dashboard"})}),n.jsxs("div",{className:"hidden flex items-center gap-3",children:[n.jsxs("div",{className:"flex flex-col items-end text-sm",children:[n.jsx("span",{className:"font-medium text-primary-700",children:"John Doe"}),n.jsx("span",{className:"text-neutral-500",children:"Admin"})]}),n.jsx("img",{src:"",alt:"User Avatar",className:"h-8 w-8 rounded-full border border-neutral-200"})]})]}),n.jsx("main",{className:"p-6",children:s})]})]})}const Qg={Dashboard:hx,PackagesOverview:fx,PackageDetail:xx,DependencyGraph:zx,HealthStatus:Dx,PublishControl:Kx,CIIntegration:mp,ConfigInspector:Vg},Yg=({componentName:s})=>{const a=Qg[s];return a?n.jsx(a,{}):n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Page Not Found"}),n.jsx("p",{className:"text-gray-600",children:"The requested page could not be found."})]})})};function Gg(){return n.jsxs(Hh,{children:[Nd.map(s=>n.jsx(xi,{path:s.path,element:n.jsx(Yg,{componentName:s.component})},s.path)),n.jsx(xi,{path:"*",element:n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-gray-400 text-6xl mb-4",children:"🔍"}),n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"404 - Page Not Found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"The page you're looking for doesn't exist or has been moved."}),n.jsx("a",{href:"/",className:"text-blue-600 hover:text-blue-500 font-medium",children:"Go back to Dashboard"})]})})})]})}function Kg(){return n.jsx(Zh,{children:n.jsx(Wg,{children:n.jsx(Gg,{})})})}const cd=document.getElementById("root");cd&&Ym.createRoot(cd).render(n.jsx(Kg,{}));
|