@cardor/agent-harness-kit 1.4.1 → 1.4.2

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.
@@ -6,4 +6,4 @@
6
6
  `+T[l].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=l&&0<=i);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Xe(n):""}function Hs(t,e){switch(t.tag){case 26:case 27:case 5:return Xe(t.type);case 16:return Xe("Lazy");case 13:return t.child!==e&&e!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return Na(t.type,!1);case 11:return Na(t.type.render,!1);case 1:return Na(t.type,!0);case 31:return Xe("Activity");default:return""}}function nn(t){try{var e="",n=null;do e+=Hs(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
8
  `+l.stack}}var aa=Object.prototype.hasOwnProperty,He=a.unstable_scheduleCallback,Ml=a.unstable_cancelCallback,qs=a.unstable_shouldYield,Ru=a.unstable_requestPaint,ne=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ft=a.unstable_ImmediatePriority,Ve=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,u0=a.unstable_LowPriority,Rr=a.unstable_IdlePriority,c0=a.log,o0=a.unstable_setDisableYieldValue,Cl=null,pe=null;function En(t){if(typeof c0=="function"&&o0(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(Cl,t)}catch{}}var ye=Math.clz32?Math.clz32:d0,r0=Math.log,f0=Math.LN2;function d0(t){return t>>>=0,t===0?32:31-(r0(t)/f0|0)|0}var Qs=256,Ys=262144,Gs=4194304;function la(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Xs(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var i=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?i=la(l):(f&=v,f!==0?i=la(f):n||(n=v&~t,n!==0&&(i=la(n))))):(v=l&~c,v!==0?i=la(v):f!==0?i=la(f):n||(n=l&~t,n!==0&&(i=la(n)))),i===0?0:e!==0&&e!==i&&(e&c)===0&&(c=i&-i,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:i}function Al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function h0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Er(){var t=Gs;return Gs<<=1,(Gs&62914560)===0&&(Gs=4194304),t}function Eu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ol(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function m0(t,e,n,l,i,c){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=f&~n;0<n;){var U=31-ye(n),Y=1<<U;v[U]=0,T[U]=-1;var z=N[U];if(z!==null)for(N[U]=null,U=0;U<z.length;U++){var w=z[U];w!==null&&(w.lane&=-536870913)}n&=~Y}l!==0&&jr(t,l,0),c!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function jr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ye(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Mr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ye(n),i=1<<l;i&e|t[l]&e&&(t[l]|=e),n&=~i}}function Cr(t,e){var n=e&-e;return n=(n&42)!==0?1:ju(n),(n&(t.suspendedLanes|e))!==0?0:n}function ju(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Mu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ar(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:pm(t.type))}function Or(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var jn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+jn,ie="__reactProps$"+jn,Da="__reactContainer$"+jn,Cu="__reactEvents$"+jn,p0="__reactListeners$"+jn,y0="__reactHandles$"+jn,Nr="__reactResources$"+jn,Nl="__reactMarker$"+jn;function Au(t){delete t[Pt],delete t[ie],delete t[Cu],delete t[p0],delete t[y0]}function wa(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ih(t);t!==null;){if(n=t[Pt])return n;t=Ih(t)}return e}t=n,n=t.parentNode}return null}function La(t){if(t=t[Pt]||t[Da]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ua(t){var e=t[Nr];return e||(e=t[Nr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Nl]=!0}var zr=new Set,Dr={};function sa(t,e){Ba(t,e),Ba(t+"Capture",e)}function Ba(t,e){for(Dr[t]=e,t=0;t<e.length;t++)zr.add(e[t])}var v0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wr={},Lr={};function g0(t){return aa.call(Lr,t)?!0:aa.call(wr,t)?!1:v0.test(t)?Lr[t]=!0:(wr[t]=!0,!1)}function Vs(t,e,n){if(g0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ks(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function an(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ur(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function x0(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ou(t){if(!t._valueTracker){var e=Ur(t)?"checked":"value";t._valueTracker=x0(t,e,""+t[e])}}function Br(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Ur(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Zs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var b0=/[\n"\\]/g;function Ce(t){return t.replace(b0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Nu(t,e,n,l,i,c,f,v){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?zu(t,f,Me(e)):n!=null?zu(t,f,Me(n)):l!=null&&t.removeAttribute("value"),i==null&&c!=null&&(t.defaultChecked=!!c),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Me(v):t.removeAttribute("name")}function Hr(t,e,n,l,i,c,f,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Ou(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Ou(t)}function zu(t,e,n){e==="number"&&Zs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ha(t,e,n,l){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,l&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function qr(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function Qr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(o(92));if(Ht(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Me(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Ou(t)}function qa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var S0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yr(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||S0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Gr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var i in e)l=e[i],e.hasOwnProperty(i)&&n[i]!==l&&Yr(t,i,l)}else for(var c in e)e.hasOwnProperty(c)&&Yr(t,c,e[c])}function Du(t){if(t.indexOf("-")===-1)return!1;switch(t){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 _0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),T0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ks(t){return T0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ln(){}var wu=null;function Lu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qa=null,Ya=null;function Xr(t){var e=La(t);if(e&&(t=e.stateNode)){var n=t[ie]||null;t:switch(t=e.stateNode,e.type){case"input":if(Nu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var i=l[ie]||null;if(!i)throw Error(o(90));Nu(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Br(l)}break t;case"textarea":qr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ha(t,!!n.multiple,e,!1)}}}var Uu=!1;function Vr(t,e,n){if(Uu)return t(e,n);Uu=!0;try{var l=t(e);return l}finally{if(Uu=!1,(Qa!==null||Ya!==null)&&(wi(),Qa&&(e=Qa,t=Ya,Ya=Qa=null,Xr(e),t)))for(e=0;e<t.length;e++)Xr(t[e])}}function Dl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ie]||null;if(l===null)return null;n=l[e];t:switch(e){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)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(sn)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Bu=!1}var Mn=null,Hu=null,Js=null;function Kr(){if(Js)return Js;var t,e=Hu,n=e.length,l,i="value"in Mn?Mn.value:Mn.textContent,c=i.length;for(t=0;t<n&&e[t]===i[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===i[c-l];l++);return Js=i.slice(t,1<l?1-l:void 0)}function Fs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ps(){return!0}function Zr(){return!1}function ue(t){function e(n,l,i,c,f){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ps:Zr,this.isPropagationStopped=Zr,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ps)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ps)},persist:function(){},isPersistent:Ps}),e}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$s=ue(ia),Ll=g({},ia,{view:0,detail:0}),R0=ue(Ll),qu,Qu,Ul,Ws=g({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ul&&(Ul&&t.type==="mousemove"?(qu=t.screenX-Ul.screenX,Qu=t.screenY-Ul.screenY):Qu=qu=0,Ul=t),qu)},movementY:function(t){return"movementY"in t?t.movementY:Qu}}),kr=ue(Ws),E0=g({},Ws,{dataTransfer:0}),j0=ue(E0),M0=g({},Ll,{relatedTarget:0}),Yu=ue(M0),C0=g({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),A0=ue(C0),O0=g({},ia,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),N0=ue(O0),z0=g({},ia,{data:0}),Jr=ue(z0),D0={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"},L0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=L0[t])?!!e[t]:!1}function Gu(){return U0}var B0=g({},Ll,{key:function(t){if(t.key){var e=D0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?w0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(t){return t.type==="keypress"?Fs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),H0=ue(B0),q0=g({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=ue(q0),Q0=g({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),Y0=ue(Q0),G0=g({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),X0=ue(G0),V0=g({},Ws,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),K0=ue(V0),Z0=g({},ia,{newState:0,oldState:0}),k0=ue(Z0),J0=[9,13,27,32],Xu=sn&&"CompositionEvent"in window,Bl=null;sn&&"documentMode"in document&&(Bl=document.documentMode);var F0=sn&&"TextEvent"in window&&!Bl,Pr=sn&&(!Xu||Bl&&8<Bl&&11>=Bl),$r=" ",Wr=!1;function Ir(t,e){switch(t){case"keyup":return J0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function P0(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:(Wr=!0,$r);case"textInput":return t=e.data,t===$r&&Wr?null:t;default:return null}}function $0(t,e){if(Ga)return t==="compositionend"||!Xu&&Ir(t,e)?(t=Kr(),Js=Hu=Mn=null,Ga=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Pr&&e.locale!=="ko"?null:e.data;default:return null}}var W0={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 ef(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!W0[t.type]:e==="textarea"}function nf(t,e,n,l){Qa?Ya?Ya.push(l):Ya=[l]:Qa=l,e=Yi(e,"onChange"),0<e.length&&(n=new $s("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hl=null,ql=null;function I0(t){qh(t,0)}function Is(t){var e=zl(t);if(Br(e))return t}function af(t,e){if(t==="change")return e}var lf=!1;if(sn){var Vu;if(sn){var Ku="oninput"in document;if(!Ku){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Ku=typeof sf.oninput=="function"}Vu=Ku}else Vu=!1;lf=Vu&&(!document.documentMode||9<document.documentMode)}function uf(){Hl&&(Hl.detachEvent("onpropertychange",cf),ql=Hl=null)}function cf(t){if(t.propertyName==="value"&&Is(ql)){var e=[];nf(e,ql,t,Lu(t)),Vr(I0,e)}}function ty(t,e,n){t==="focusin"?(uf(),Hl=e,ql=n,Hl.attachEvent("onpropertychange",cf)):t==="focusout"&&uf()}function ey(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Is(ql)}function ny(t,e){if(t==="click")return Is(e)}function ay(t,e){if(t==="input"||t==="change")return Is(e)}function ly(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:ly;function Ql(t,e){if(ve(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!aa.call(e,i)||!ve(t[i],e[i]))return!1}return!0}function of(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rf(t,e){var n=of(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=of(n)}}function ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function df(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Zs(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Zs(t.document)}return e}function Zu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var sy=sn&&"documentMode"in document&&11>=document.documentMode,Xa=null,ku=null,Yl=null,Ju=!1;function hf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ju||Xa==null||Xa!==Zs(l)||(l=Xa,"selectionStart"in l&&Zu(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}),Yl&&Ql(Yl,l)||(Yl=l,l=Yi(ku,"onSelect"),0<l.length&&(e=new $s("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Xa)))}function ua(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Va={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},Fu={},mf={};sn&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function ca(t){if(Fu[t])return Fu[t];if(!Va[t])return t;var e=Va[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mf)return Fu[t]=e[n];return t}var pf=ca("animationend"),yf=ca("animationiteration"),vf=ca("animationstart"),iy=ca("transitionrun"),uy=ca("transitionstart"),cy=ca("transitioncancel"),gf=ca("transitionend"),xf=new Map,Pu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Pu.push("scrollEnd");function qe(t,e){xf.set(t,e),sa(e,[t])}var ti=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ka=0,$u=0;function ei(){for(var t=Ka,e=$u=Ka=0;e<t;){var n=Ae[e];Ae[e++]=null;var l=Ae[e];Ae[e++]=null;var i=Ae[e];Ae[e++]=null;var c=Ae[e];if(Ae[e++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}c!==0&&bf(n,i,c)}}function ni(t,e,n,l){Ae[Ka++]=t,Ae[Ka++]=e,Ae[Ka++]=n,Ae[Ka++]=l,$u|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Wu(t,e,n,l){return ni(t,e,n,l),ai(t)}function oa(t,e){return ni(t,null,null,e),ai(t)}function bf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var i=!1,c=t.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(i=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,i&&e!==null&&(i=31-ye(n),t=c.hiddenUpdates,l=t[i],l===null?t[i]=[e]:l.push(e),e.lane=n|536870912),c):null}function ai(t){if(50<os)throw os=0,uo=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function oy(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 ge(t,e,n,l){return new oy(t,e,n,l)}function Iu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function un(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Sf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function li(t,e,n,l,i,c){var f=0;if(l=t,typeof t=="function")Iu(t)&&(f=1);else if(typeof t=="string")f=mv(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case k:return t=ge(31,n,e,i),t.elementType=k,t.lanes=c,t;case C:return ra(n.children,i,c,e);case D:f=8,i|=24;break;case A:return t=ge(12,n,e,i|2),t.elementType=A,t.lanes=c,t;case I:return t=ge(13,n,e,i),t.elementType=I,t.lanes=c,t;case F:return t=ge(19,n,e,i),t.elementType=F,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:f=10;break t;case B:f=9;break t;case G:f=11;break t;case H:f=14;break t;case X:f=16,l=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=ge(f,n,e,i),e.elementType=t,e.type=l,e.lanes=c,e}function ra(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function tc(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function _f(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function ec(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tf=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var n=Tf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:nn(e)},Tf.set(t,e),e)}return{value:t,source:e,stack:nn(e)}}var ka=[],Ja=0,si=null,Gl=0,Ne=[],ze=0,Cn=null,Ke=1,Ze="";function cn(t,e){ka[Ja++]=Gl,ka[Ja++]=si,si=t,Gl=e}function Rf(t,e,n){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Cn=t;var l=Ke;t=Ze;var i=32-ye(l)-1;l&=~(1<<i),n+=1;var c=32-ye(e)+i;if(30<c){var f=i-i%5;c=(l&(1<<f)-1).toString(32),l>>=f,i-=f,Ke=1<<32-ye(e)+i|n<<i|l,Ze=c+t}else Ke=1<<c|n<<i|l,Ze=t}function nc(t){t.return!==null&&(cn(t,1),Rf(t,1,0))}function ac(t){for(;t===si;)si=ka[--Ja],ka[Ja]=null,Gl=ka[--Ja],ka[Ja]=null;for(;t===Cn;)Cn=Ne[--ze],Ne[ze]=null,Ze=Ne[--ze],Ne[ze]=null,Ke=Ne[--ze],Ne[ze]=null}function Ef(t,e){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Ke=e.id,Ze=e.overflow,Cn=t}var $t=null,Ot=null,pt=!1,An=null,De=!1,lc=Error(o(519));function On(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xl(Oe(e,t)),lc}function jf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Pt]=t,e[ie]=l,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<fs.length;n++)dt(fs[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Hr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Qr(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Xh(e.textContent,n)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=ln),e=!0):e=!1,e||On(t,!0)}function Mf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Fa(t){if(t!==$t)return!1;if(!pt)return Mf(t),pt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||To(t.type,t.memoizedProps)),n=!n),n&&Ot&&On(t),Mf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ot=Wh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ot=Wh(t)}else e===27?(e=Ot,Vn(t.type)?(t=Co,Co=null,Ot=t):Ot=e):Ot=$t?Le(t.stateNode.nextSibling):null;return!0}function fa(){Ot=$t=null,pt=!1}function sc(){var t=An;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),An=null),t}function Xl(t){An===null?An=[t]:An.push(t)}var ic=E(null),da=null,on=null;function Nn(t,e,n){Z(ic,e._currentValue),e._currentValue=n}function rn(t){t._currentValue=ic.current,Q(ic)}function uc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function cc(t,e,n,l){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){var f=i.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=i;for(var T=0;T<e.length;T++)if(v.context===e[T]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),uc(c.return,n,t),l||(f=null);break t}c=v.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),uc(f,n,t),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Pa(t,e,n,l){t=null;for(var i=e,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var v=i.type;ve(i.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}else if(i===yt.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(ys):t=[ys])}i=i.return}t!==null&&cc(e,t,n,l),e.flags|=262144}function ii(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,on=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Cf(da,t)}function ui(t,e){return da===null&&ha(t),Cf(t,e)}function Cf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},on===null){if(t===null)throw Error(o(308));on=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else on=on.next=e;return n}var ry=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},fy=a.unstable_scheduleCallback,dy=a.unstable_NormalPriority,Gt={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new ry,data:new Map,refCount:0}}function Vl(t){t.refCount--,t.refCount===0&&fy(dy,function(){t.controller.abort()})}var Kl=null,rc=0,$a=0,Wa=null;function hy(t,e){if(Kl===null){var n=Kl=[];rc=0,$a=mo(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return rc++,e.then(Af,Af),e}function Af(){if(--rc===0&&Kl!==null){Wa!==null&&(Wa.status="fulfilled");var t=Kl;Kl=null,$a=0,Wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function my(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var Of=L.S;L.S=function(t,e){hh=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&hy(t,e),Of!==null&&Of(t,e)};var ma=E(null);function fc(){var t=ma.current;return t!==null?t:Ct.pooledCache}function ci(t,e){e===null?Z(ma,ma.current):Z(ma,e.pool)}function Nf(){var t=fc();return t===null?null:{parent:Gt._currentValue,pool:t}}var Ia=Error(o(460)),dc=Error(o(474)),oi=Error(o(542)),ri={then:function(){}};function zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Df(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ln,ln),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t;default:if(typeof e.status=="string")e.then(ln,ln);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=l}},function(l){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t}throw ya=e,Ia}}function pa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ya=n,Ia):n}}var ya=null;function wf(){if(ya===null)throw Error(o(459));var t=ya;return ya=null,t}function Lf(t){if(t===Ia||t===oi)throw Error(o(483))}var tl=null,Zl=0;function fi(t){var e=Zl;return Zl+=1,tl===null&&(tl=[]),Df(tl,t,e)}function kl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function di(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Uf(t){function e(M,R){if(t){var O=M.deletions;O===null?(M.deletions=[R],M.flags|=16):O.push(R)}}function n(M,R){if(!t)return null;for(;R!==null;)e(M,R),R=R.sibling;return null}function l(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function i(M,R){return M=un(M,R),M.index=0,M.sibling=null,M}function c(M,R,O){return M.index=O,t?(O=M.alternate,O!==null?(O=O.index,O<R?(M.flags|=67108866,R):O):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function f(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function v(M,R,O,q){return R===null||R.tag!==6?(R=tc(O,M.mode,q),R.return=M,R):(R=i(R,O),R.return=M,R)}function T(M,R,O,q){var nt=O.type;return nt===C?U(M,R,O.props.children,q,O.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&pa(nt)===R.type)?(R=i(R,O.props),kl(R,O),R.return=M,R):(R=li(O.type,O.key,O.props,null,M.mode,q),kl(R,O),R.return=M,R)}function N(M,R,O,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==O.containerInfo||R.stateNode.implementation!==O.implementation?(R=ec(O,M.mode,q),R.return=M,R):(R=i(R,O.children||[]),R.return=M,R)}function U(M,R,O,q,nt){return R===null||R.tag!==7?(R=ra(O,M.mode,q,nt),R.return=M,R):(R=i(R,O),R.return=M,R)}function Y(M,R,O){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=tc(""+R,M.mode,O),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return O=li(R.type,R.key,R.props,null,M.mode,O),kl(O,R),O.return=M,O;case j:return R=ec(R,M.mode,O),R.return=M,R;case X:return R=pa(R),Y(M,R,O)}if(Ht(R)||et(R))return R=ra(R,M.mode,O,null),R.return=M,R;if(typeof R.then=="function")return Y(M,fi(R),O);if(R.$$typeof===V)return Y(M,ui(M,R),O);di(M,R)}return null}function z(M,R,O,q){var nt=R!==null?R.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return nt!==null?null:v(M,R,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return O.key===nt?T(M,R,O,q):null;case j:return O.key===nt?N(M,R,O,q):null;case X:return O=pa(O),z(M,R,O,q)}if(Ht(O)||et(O))return nt!==null?null:U(M,R,O,q,null);if(typeof O.then=="function")return z(M,R,fi(O),q);if(O.$$typeof===V)return z(M,R,ui(M,O),q);di(M,O)}return null}function w(M,R,O,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return M=M.get(O)||null,v(R,M,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return M=M.get(q.key===null?O:q.key)||null,T(R,M,q,nt);case j:return M=M.get(q.key===null?O:q.key)||null,N(R,M,q,nt);case X:return q=pa(q),w(M,R,O,q,nt)}if(Ht(q)||et(q))return M=M.get(O)||null,U(R,M,q,nt,null);if(typeof q.then=="function")return w(M,R,O,fi(q),nt);if(q.$$typeof===V)return w(M,R,O,ui(R,q),nt);di(R,q)}return null}function $(M,R,O,q){for(var nt=null,vt=null,W=R,ot=R=0,mt=null;W!==null&&ot<O.length;ot++){W.index>ot?(mt=W,W=null):mt=W.sibling;var gt=z(M,W,O[ot],q);if(gt===null){W===null&&(W=mt);break}t&&W&&gt.alternate===null&&e(M,W),R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt,W=mt}if(ot===O.length)return n(M,W),pt&&cn(M,ot),nt;if(W===null){for(;ot<O.length;ot++)W=Y(M,O[ot],q),W!==null&&(R=c(W,R,ot),vt===null?nt=W:vt.sibling=W,vt=W);return pt&&cn(M,ot),nt}for(W=l(W);ot<O.length;ot++)mt=w(W,M,ot,O[ot],q),mt!==null&&(t&&mt.alternate!==null&&W.delete(mt.key===null?ot:mt.key),R=c(mt,R,ot),vt===null?nt=mt:vt.sibling=mt,vt=mt);return t&&W.forEach(function(Fn){return e(M,Fn)}),pt&&cn(M,ot),nt}function it(M,R,O,q){if(O==null)throw Error(o(151));for(var nt=null,vt=null,W=R,ot=R=0,mt=null,gt=O.next();W!==null&&!gt.done;ot++,gt=O.next()){W.index>ot?(mt=W,W=null):mt=W.sibling;var Fn=z(M,W,gt.value,q);if(Fn===null){W===null&&(W=mt);break}t&&W&&Fn.alternate===null&&e(M,W),R=c(Fn,R,ot),vt===null?nt=Fn:vt.sibling=Fn,vt=Fn,W=mt}if(gt.done)return n(M,W),pt&&cn(M,ot),nt;if(W===null){for(;!gt.done;ot++,gt=O.next())gt=Y(M,gt.value,q),gt!==null&&(R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return pt&&cn(M,ot),nt}for(W=l(W);!gt.done;ot++,gt=O.next())gt=w(W,M,ot,gt.value,q),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ot:gt.key),R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return t&&W.forEach(function(Ev){return e(M,Ev)}),pt&&cn(M,ot),nt}function jt(M,R,O,q){if(typeof O=="object"&&O!==null&&O.type===C&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case _:t:{for(var nt=O.key;R!==null;){if(R.key===nt){if(nt=O.type,nt===C){if(R.tag===7){n(M,R.sibling),q=i(R,O.props.children),q.return=M,M=q;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&pa(nt)===R.type){n(M,R.sibling),q=i(R,O.props),kl(q,O),q.return=M,M=q;break t}n(M,R);break}else e(M,R);R=R.sibling}O.type===C?(q=ra(O.props.children,M.mode,q,O.key),q.return=M,M=q):(q=li(O.type,O.key,O.props,null,M.mode,q),kl(q,O),q.return=M,M=q)}return f(M);case j:t:{for(nt=O.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===O.containerInfo&&R.stateNode.implementation===O.implementation){n(M,R.sibling),q=i(R,O.children||[]),q.return=M,M=q;break t}else{n(M,R);break}else e(M,R);R=R.sibling}q=ec(O,M.mode,q),q.return=M,M=q}return f(M);case X:return O=pa(O),jt(M,R,O,q)}if(Ht(O))return $(M,R,O,q);if(et(O)){if(nt=et(O),typeof nt!="function")throw Error(o(150));return O=nt.call(O),it(M,R,O,q)}if(typeof O.then=="function")return jt(M,R,fi(O),q);if(O.$$typeof===V)return jt(M,R,ui(M,O),q);di(M,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,R!==null&&R.tag===6?(n(M,R.sibling),q=i(R,O),q.return=M,M=q):(n(M,R),q=tc(O,M.mode,q),q.return=M,M=q),f(M)):n(M,R)}return function(M,R,O,q){try{Zl=0;var nt=jt(M,R,O,q);return tl=null,nt}catch(W){if(W===Ia||W===oi)throw W;var vt=ge(29,W,null,M.mode);return vt.lanes=q,vt.return=M,vt}}}var va=Uf(!0),Bf=Uf(!1),zn=!1;function hc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var i=l.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),l.pending=e,e=ai(t),bf(t,null,n),e}return ni(t,l,e,n),ai(t)}function Jl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}function pc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?i=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?i=c=e:c=c.next=e}else i=c=e;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var yc=!1;function Fl(){if(yc){var t=Wa;if(t!==null)throw t}}function Pl(t,e,n,l){yc=!1;var i=t.updateQueue;zn=!1;var c=i.firstBaseUpdate,f=i.lastBaseUpdate,v=i.shared.pending;if(v!==null){i.shared.pending=null;var T=v,N=T.next;T.next=null,f===null?c=N:f.next=N,f=T;var U=t.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==f&&(v===null?U.firstBaseUpdate=N:v.next=N,U.lastBaseUpdate=T))}if(c!==null){var Y=i.baseState;f=0,U=N=T=null,v=c;do{var z=v.lane&-536870913,w=z!==v.lane;if(w?(ht&z)===z:(l&z)===z){z!==0&&z===$a&&(yc=!0),U!==null&&(U=U.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var $=t,it=v;z=e;var jt=n;switch(it.tag){case 1:if($=it.payload,typeof $=="function"){Y=$.call(jt,Y,z);break t}Y=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=it.payload,z=typeof $=="function"?$.call(jt,Y,z):$,z==null)break t;Y=g({},Y,z);break t;case 2:zn=!0}}z=v.callback,z!==null&&(t.flags|=64,w&&(t.flags|=8192),w=i.callbacks,w===null?i.callbacks=[z]:w.push(z))}else w={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(N=U=w,T=Y):U=U.next=w,f|=z;if(v=v.next,v===null){if(v=i.shared.pending,v===null)break;w=v,v=w.next,w.next=null,i.lastBaseUpdate=w,i.shared.pending=null}}while(!0);U===null&&(T=Y),i.baseState=T,i.firstBaseUpdate=N,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),qn|=f,t.lanes=f,t.memoizedState=Y}}function Hf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function qf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Hf(n[t],e)}var el=E(null),hi=E(0);function Qf(t,e){t=xn,Z(hi,t),Z(el,e),xn=t|e.baseLanes}function vc(){Z(hi,xn),Z(el,el.current)}function gc(){xn=hi.current,Q(el),Q(hi)}var xe=E(null),we=null;function Ln(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(xe,t),we===null&&(e===null||el.current!==null||e.memoizedState!==null)&&(we=t)}function xc(t){Z(Qt,Qt.current),Z(xe,t),we===null&&(we=t)}function Yf(t){t.tag===22?(Z(Qt,Qt.current),Z(xe,t),we===null&&(we=t)):Un()}function Un(){Z(Qt,Qt.current),Z(xe,xe.current)}function be(t){Q(xe),we===t&&(we=null),Q(Qt)}var Qt=E(0);function mi(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jo(n)||Mo(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fn=0,ct=null,Rt=null,Xt=null,pi=!1,nl=!1,ga=!1,yi=0,$l=0,al=null,py=0;function Ut(){throw Error(o(321))}function bc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ve(t[n],e[n]))return!1;return!0}function Sc(t,e,n,l,i,c){return fn=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?Rd:Uc,ga=!1,c=n(l,i),ga=!1,nl&&(c=Xf(e,n,l,i)),Gf(t),c}function Gf(t){L.H=ts;var e=Rt!==null&&Rt.next!==null;if(fn=0,Xt=Rt=ct=null,pi=!1,$l=0,al=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&ii(t)&&(Vt=!0))}function Xf(t,e,n,l){ct=t;var i=0;do{if(nl&&(al=null),$l=0,nl=!1,25<=i)throw Error(o(301));if(i+=1,Xt=Rt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Ed,c=e(n,l)}while(nl);return c}function yy(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?Wl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(ct.flags|=1024),e}function _c(){var t=yi!==0;return yi=0,t}function Tc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Rc(t){if(pi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}pi=!1}fn=0,Xt=Rt=ct=null,nl=!1,$l=yi=0,al=null}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Rt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Xt===null?ct.memoizedState:Xt.next;if(e!==null)Xt=e,Rt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wl(t){var e=$l;return $l+=1,al===null&&(al=[]),t=Df(al,t,e),e=ct,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?Rd:Uc),t}function gi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Wl(t);if(t.$$typeof===V)return Wt(t)}throw Error(o(438,String(t)))}function Ec(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=vi(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=st;return e.index++,n}function dn(t,e){return typeof e=="function"?e(t):e}function xi(t){var e=Yt();return jc(e,Rt,t)}function jc(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var i=t.baseQueue,c=l.pending;if(c!==null){if(i!==null){var f=i.next;i.next=c.next,c.next=f}e.baseQueue=i=c,l.pending=null}if(c=t.baseState,i===null)t.memoizedState=c;else{e=i.next;var v=f=null,T=null,N=e,U=!1;do{var Y=N.lane&-536870913;if(Y!==N.lane?(ht&Y)===Y:(fn&Y)===Y){var z=N.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Y===$a&&(U=!0);else if((fn&z)===z){N=N.next,z===$a&&(U=!0);continue}else Y={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(v=T=Y,f=c):T=T.next=Y,ct.lanes|=z,qn|=z;Y=N.action,ga&&n(c,Y),c=N.hasEagerState?N.eagerState:n(c,Y)}else z={lane:Y,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(v=T=z,f=c):T=T.next=z,ct.lanes|=Y,qn|=Y;N=N.next}while(N!==null&&N!==e);if(T===null?f=c:T.next=v,!ve(c,t.memoizedState)&&(Vt=!0,U&&(n=Wa,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=T,l.lastRenderedState=c}return i===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Mc(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,i=n.pending,c=e.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do c=t(c,f.action),f=f.next;while(f!==i);ve(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,l]}function Vf(t,e,n){var l=ct,i=Yt(),c=pt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ve((Rt||i).memoizedState,n);if(f&&(i.memoizedState=n,Vt=!0),i=i.queue,Oc(kf.bind(null,l,i,t),[t]),i.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,i,n,e),null),Ct===null)throw Error(o(349));c||(fn&127)!==0||Kf(l,e,n)}return n}function Kf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=vi(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Zf(t,e,n,l){e.value=n,e.getSnapshot=l,Jf(e)&&Ff(t)}function kf(t,e,n){return n(function(){Jf(e)&&Ff(t)})}function Jf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ve(t,n)}catch{return!0}}function Ff(t){var e=oa(t,2);e!==null&&de(e,t,2)}function Cc(t){var e=se();if(typeof t=="function"){var n=t;if(t=n(),ga){En(!0);try{n()}finally{En(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:t},e}function Pf(t,e,n,l){return t.baseState=n,jc(t,Rt,typeof l=="function"?l:dn)}function vy(t,e,n,l,i){if(_i(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};L.T!==null?n(!0):c.isTransition=!1,l(c),n=e.pending,n===null?(c.next=e.pending=c,$f(e,c)):(c.next=n.next,e.pending=n.next=c)}}function $f(t,e){var n=e.action,l=e.payload,i=t.state;if(e.isTransition){var c=L.T,f={};L.T=f;try{var v=n(i,l),T=L.S;T!==null&&T(f,v),Wf(t,e,v)}catch(N){Ac(t,e,N)}finally{c!==null&&f.types!==null&&(c.types=f.types),L.T=c}}else try{c=n(i,l),Wf(t,e,c)}catch(N){Ac(t,e,N)}}function Wf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){If(t,e,l)},function(l){return Ac(t,e,l)}):If(t,e,n)}function If(t,e,n){e.status="fulfilled",e.value=n,td(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$f(t,n)))}function Ac(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,td(e),e=e.next;while(e!==l)}t.action=null}function td(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ed(t,e){return e}function nd(t,e){if(pt){var n=Ct.formState;if(n!==null){t:{var l=ct;if(pt){if(Ot){e:{for(var i=Ot,c=De;i.nodeType!==8;){if(!c){i=null;break e}if(i=Le(i.nextSibling),i===null){i=null;break e}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Ot=Le(i.nextSibling),l=i.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=se(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ed,lastRenderedState:e},n.queue=l,n=Sd.bind(null,ct,l),l.dispatch=n,l=Cc(!1),c=Lc.bind(null,ct,!1,l.queue),l=se(),i={state:e,dispatch:null,action:t,pending:null},l.queue=i,n=vy.bind(null,ct,i,c,n),i.dispatch=n,l.memoizedState=t,[e,n,!1]}function ad(t){var e=Yt();return ld(e,Rt,t)}function ld(t,e,n){if(e=jc(t,e,ed)[0],t=xi(dn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Wl(e)}catch(f){throw f===Ia?oi:f}else l=e;e=Yt();var i=e.queue,c=i.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,ll(9,{destroy:void 0},gy.bind(null,i,n),null)),[l,c,t]}function gy(t,e){t.action=e}function sd(t){var e=Yt(),n=Rt;if(n!==null)return ld(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ll(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=vi(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function id(){return Yt().memoizedState}function bi(t,e,n,l){var i=se();ct.flags|=t,i.memoizedState=ll(1|e,{destroy:void 0},n,l===void 0?null:l)}function Si(t,e,n,l){var i=Yt();l=l===void 0?null:l;var c=i.memoizedState.inst;Rt!==null&&l!==null&&bc(l,Rt.memoizedState.deps)?i.memoizedState=ll(e,c,n,l):(ct.flags|=t,i.memoizedState=ll(1|e,c,n,l))}function ud(t,e){bi(8390656,8,t,e)}function Oc(t,e){Si(2048,8,t,e)}function xy(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=vi(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function cd(t){var e=Yt().memoizedState;return xy({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function od(t,e){return Si(4,2,t,e)}function rd(t,e){return Si(4,4,t,e)}function fd(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function dd(t,e,n){n=n!=null?n.concat([t]):null,Si(4,4,fd.bind(null,e,t),n)}function Nc(){}function hd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&bc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function md(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&bc(e,l[1]))return l[0];if(l=t(),ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l}function zc(t,e,n){return n===void 0||(fn&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ph(),ct.lanes|=t,qn|=t,n)}function pd(t,e,n,l){return ve(n,e)?n:el.current!==null?(t=zc(t,n,l),ve(t,e)||(Vt=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(ht&261930)===0?(Vt=!0,t.memoizedState=n):(t=ph(),ct.lanes|=t,qn|=t,e)}function yd(t,e,n,l,i){var c=K.p;K.p=c!==0&&8>c?c:8;var f=L.T,v={};L.T=v,Lc(t,!1,e,n);try{var T=i(),N=L.S;if(N!==null&&N(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=my(T,l);Il(t,e,U,Te(t))}else Il(t,e,l,Te(t))}catch(Y){Il(t,e,{then:function(){},status:"rejected",reason:Y},Te())}finally{K.p=c,f!==null&&v.types!==null&&(f.types=v.types),L.T=f}}function by(){}function Dc(t,e,n,l){if(t.tag!==5)throw Error(o(476));var i=vd(t).queue;yd(t,i,e,lt,n===null?by:function(){return gd(t),n(l)})}function vd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gd(t){var e=vd(t);e.next===null&&(e=t.alternate.memoizedState),Il(t,e.next.queue,{},Te())}function wc(){return Wt(ys)}function xd(){return Yt().memoizedState}function bd(){return Yt().memoizedState}function Sy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=Dn(n);var l=wn(e,t,n);l!==null&&(de(l,e,n),Jl(l,e,n)),e={cache:oc()},t.payload=e;return}e=e.return}}function _y(t,e,n){var l=Te();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_i(t)?_d(e,n):(n=Wu(t,e,n,l),n!==null&&(de(n,t,l),Td(n,e,l)))}function Sd(t,e,n){var l=Te();Il(t,e,n,l)}function Il(t,e,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_i(t))_d(e,i);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,v=c(f,n);if(i.hasEagerState=!0,i.eagerState=v,ve(v,f))return ni(t,e,i,0),Ct===null&&ei(),!1}catch{}if(n=Wu(t,e,i,l),n!==null)return de(n,t,l),Td(n,e,l),!0}return!1}function Lc(t,e,n,l){if(l={lane:2,revertLane:mo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(t)){if(e)throw Error(o(479))}else e=Wu(t,n,l,2),e!==null&&de(e,t,2)}function _i(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function _d(t,e){nl=pi=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Td(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}var ts={readContext:Wt,use:gi,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};ts.useEffectEvent=Ut;var Rd={readContext:Wt,use:gi,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:ud,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,bi(4194308,4,fd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return bi(4194308,4,t,e)},useInsertionEffect:function(t,e){bi(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var l=t();if(ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=se();if(n!==void 0){var i=n(e);if(ga){En(!0);try{n(e)}finally{En(!1)}}}else i=e;return l.memoizedState=l.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},l.queue=t,t=t.dispatch=_y.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=Cc(t);var e=t.queue,n=Sd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Nc,useDeferredValue:function(t,e){var n=se();return zc(n,t,e)},useTransition:function(){var t=Cc(!1);return t=yd.bind(null,ct,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,i=se();if(pt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ct===null)throw Error(o(349));(ht&127)!==0||Kf(l,e,n)}i.memoizedState=n;var c={value:n,getSnapshot:e};return i.queue=c,ud(kf.bind(null,l,c,t),[t]),l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,c,n,e),null),n},useId:function(){var t=se(),e=Ct.identifierPrefix;if(pt){var n=Ze,l=Ke;n=(l&~(1<<32-ye(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=yi++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=py++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:wc,useFormState:nd,useActionState:nd,useOptimistic:function(t){var e=se();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Lc.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Ec,useCacheRefresh:function(){return se().memoizedState=Sy.bind(null,ct)},useEffectEvent:function(t){var e=se(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Uc={readContext:Wt,use:gi,useCallback:hd,useContext:Wt,useEffect:Oc,useImperativeHandle:dd,useInsertionEffect:od,useLayoutEffect:rd,useMemo:md,useReducer:xi,useRef:id,useState:function(){return xi(dn)},useDebugValue:Nc,useDeferredValue:function(t,e){var n=Yt();return pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=xi(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Vf,useId:xd,useHostTransitionStatus:wc,useFormState:ad,useActionState:ad,useOptimistic:function(t,e){var n=Yt();return Pf(n,Rt,t,e)},useMemoCache:Ec,useCacheRefresh:bd};Uc.useEffectEvent=cd;var Ed={readContext:Wt,use:gi,useCallback:hd,useContext:Wt,useEffect:Oc,useImperativeHandle:dd,useInsertionEffect:od,useLayoutEffect:rd,useMemo:md,useReducer:Mc,useRef:id,useState:function(){return Mc(dn)},useDebugValue:Nc,useDeferredValue:function(t,e){var n=Yt();return Rt===null?zc(n,t,e):pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Mc(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Vf,useId:xd,useHostTransitionStatus:wc,useFormState:sd,useActionState:sd,useOptimistic:function(t,e){var n=Yt();return Rt!==null?Pf(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:bd};Ed.useEffectEvent=cd;function Bc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Hc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Te(),i=Dn(l);i.payload=e,n!=null&&(i.callback=n),e=wn(t,i,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Te(),i=Dn(l);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=wn(t,i,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),l=Dn(n);l.tag=2,e!=null&&(l.callback=e),e=wn(t,l,n),e!==null&&(de(e,t,n),Jl(e,t,n))}};function jd(t,e,n,l,i,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,f):e.prototype&&e.prototype.isPureReactComponent?!Ql(n,l)||!Ql(i,c):!0}function Md(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Hc.enqueueReplaceState(e,e.state,null)}function xa(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Cd(t){ti(t)}function Ad(t){console.error(t)}function Od(t){ti(t)}function Ti(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Nd(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function qc(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ti(t,e)},n}function zd(t){return t=Dn(t),t.tag=3,t}function Dd(t,e,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var c=l.value;t.payload=function(){return i(c)},t.callback=function(){Nd(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Nd(e,n,l),typeof i!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function Ty(t,e,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,i,!0),n=xe.current,n!==null){switch(n.tag){case 31:case 13:return we===null?Li():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===ri?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),ro(t,l,i)),!1;case 22:return n.flags|=65536,l===ri?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),ro(t,l,i)),!1}throw Error(o(435,n.tag))}return ro(t,l,i),Li(),!1}if(pt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,l!==lc&&(t=Error(o(422),{cause:l}),Xl(Oe(t,n)))):(l!==lc&&(e=Error(o(423),{cause:l}),Xl(Oe(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,l=Oe(l,n),i=qc(t.stateNode,l,i),pc(t,i),Bt!==4&&(Bt=2)),!1;var c=Error(o(520),{cause:l});if(c=Oe(c,n),cs===null?cs=[c]:cs.push(c),Bt!==4&&(Bt=2),e===null)return!0;l=Oe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=qc(n.stateNode,l,t),pc(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Qn===null||!Qn.has(c))))return n.flags|=65536,i&=-i,n.lanes|=i,i=zd(i),Dd(i,t,n,l),pc(n,i),!1}n=n.return}while(n!==null);return!1}var Qc=Error(o(461)),Vt=!1;function It(t,e,n,l){e.child=t===null?Bf(e,null,n,l):va(e,t.child,n,l)}function wd(t,e,n,l,i){n=n.render;var c=e.ref;if("ref"in l){var f={};for(var v in l)v!=="ref"&&(f[v]=l[v])}else f=l;return ha(e),l=Sc(t,e,n,f,c,i),v=_c(),t!==null&&!Vt?(Tc(t,e,i),hn(t,e,i)):(pt&&v&&nc(e),e.flags|=1,It(t,e,l,i),e.child)}function Ld(t,e,n,l,i){if(t===null){var c=n.type;return typeof c=="function"&&!Iu(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Ud(t,e,c,l,i)):(t=li(n.type,null,l,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Jc(t,i)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(f,l)&&t.ref===e.ref)return hn(t,e,i)}return e.flags|=1,t=un(c,l),t.ref=e.ref,t.return=e,e.child=t}function Ud(t,e,n,l,i){if(t!==null){var c=t.memoizedProps;if(Ql(c,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=c,Jc(t,i))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,hn(t,e,i)}return Yc(t,e,n,l,i)}function Bd(t,e,n,l){var i=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(l=e.child=t.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~c}else l=0,e.child=null;return Hd(t,e,c,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ci(e,c!==null?c.cachePool:null),c!==null?Qf(e,c):vc(),Yf(e);else return l=e.lanes=536870912,Hd(t,e,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(ci(e,c.cachePool),Qf(e,c),Un(),e.memoizedState=null):(t!==null&&ci(e,null),vc(),Un());return It(t,e,i,n),e.child}function es(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hd(t,e,n,l,i){var c=fc();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&ci(e,null),vc(),Yf(e),t!==null&&Pa(t,e,l,!0),e.childLanes=i,null}function Ri(t,e){return e=ji({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qd(t,e,n){return va(e,t.child,null,n),t=Ri(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function Ry(t,e,n){var l=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(pt){if(l.mode==="hidden")return t=Ri(e,l),e.lanes=536870912,es(null,t);if(xc(e),(t=Ot)?(t=$h(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=_f(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Ri(e,l)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(xc(e),i)if(e.flags&256)e.flags&=-257,e=qd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Vt||Pa(t,e,n,!1),i=(n&t.childLanes)!==0,Vt||i){if(l=Ct,l!==null&&(f=Cr(l,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,oa(t,f),de(l,t,f),Qc;Li(),e=qd(t,e,n)}else t=c.treeContext,Ot=Le(f.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Ef(e,t),e=Ri(e,l),e.flags|=4096;return e}return t=un(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ei(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Yc(t,e,n,l,i){return ha(e),n=Sc(t,e,n,l,void 0,i),l=_c(),t!==null&&!Vt?(Tc(t,e,i),hn(t,e,i)):(pt&&l&&nc(e),e.flags|=1,It(t,e,n,i),e.child)}function Qd(t,e,n,l,i,c){return ha(e),e.updateQueue=null,n=Xf(e,l,n,i),Gf(t),l=_c(),t!==null&&!Vt?(Tc(t,e,c),hn(t,e,c)):(pt&&l&&nc(e),e.flags|=1,It(t,e,n,c),e.child)}function Yd(t,e,n,l,i){if(ha(e),e.stateNode===null){var c=Za,f=n.contextType;typeof f=="object"&&f!==null&&(c=Wt(f)),c=new n(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Hc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},hc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?Wt(f):Za,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Bc(e,n,f,l),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Hc.enqueueReplaceState(c,c.state,null),Pl(e,l,c,i),Fl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,T=xa(n,v);c.props=T;var N=c.context,U=n.contextType;f=Za,typeof U=="object"&&U!==null&&(f=Wt(U));var Y=n.getDerivedStateFromProps;U=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,U||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||N!==f)&&Md(e,c,l,f),zn=!1;var z=e.memoizedState;c.state=z,Pl(e,l,c,i),Fl(),N=e.memoizedState,v||z!==N||zn?(typeof Y=="function"&&(Bc(e,n,Y,l),N=e.memoizedState),(T=zn||jd(e,n,T,l,z,N,f))?(U||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=N),c.props=l,c.state=N,c.context=f,l=T):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,mc(t,e),f=e.memoizedProps,U=xa(n,f),c.props=U,Y=e.pendingProps,z=c.context,N=n.contextType,T=Za,typeof N=="object"&&N!==null&&(T=Wt(N)),v=n.getDerivedStateFromProps,(N=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==Y||z!==T)&&Md(e,c,l,T),zn=!1,z=e.memoizedState,c.state=z,Pl(e,l,c,i),Fl();var w=e.memoizedState;f!==Y||z!==w||zn||t!==null&&t.dependencies!==null&&ii(t.dependencies)?(typeof v=="function"&&(Bc(e,n,v,l),w=e.memoizedState),(U=zn||jd(e,n,U,l,z,w,T)||t!==null&&t.dependencies!==null&&ii(t.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,w,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,w,T)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=w),c.props=l,c.state=w,c.context=T,l=U):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,Ei(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,i),e.child=va(e,null,n,i)):It(t,e,n,i),e.memoizedState=c.state,t=e.child):t=hn(t,e,i),t}function Gd(t,e,n,l){return fa(),e.flags|=256,It(t,e,n,l),e.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(t){return{baseLanes:t,cachePool:Nf()}}function Vc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function Xd(t,e,n){var l=e.pendingProps,i=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(i=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(pt){if(i?Ln(e):Un(),(t=Ot)?(t=$h(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=_f(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return Mo(t)?e.lanes=32:e.lanes=536870912,null}var v=l.children;return l=l.fallback,i?(Un(),i=e.mode,v=ji({mode:"hidden",children:v},i),l=ra(l,i,n,null),v.return=e,l.return=e,v.sibling=l,e.child=v,l=e.child,l.memoizedState=Xc(n),l.childLanes=Vc(t,f,n),e.memoizedState=Gc,es(null,l)):(Ln(e),Kc(e,v))}var T=t.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(c)e.flags&256?(Ln(e),e.flags&=-257,e=Zc(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),v=l.fallback,i=e.mode,l=ji({mode:"visible",children:l.children},i),v=ra(v,i,n,null),v.flags|=2,l.return=e,v.return=e,l.sibling=v,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=Xc(n),l.childLanes=Vc(t,f,n),e.memoizedState=Gc,e=es(null,l));else if(Ln(e),Mo(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var N=f.dgst;f=N,l=Error(o(419)),l.stack="",l.digest=f,Xl({value:l,source:null,stack:null}),e=Zc(t,e,n)}else if(Vt||Pa(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=Ct,f!==null&&(l=Cr(f,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,oa(t,l),de(f,t,l),Qc;jo(v)||Li(),e=Zc(t,e,n)}else jo(v)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ot=Le(v.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Ef(e,t),e=Kc(e,l.children),e.flags|=4096);return e}return i?(Un(),v=l.fallback,i=e.mode,T=t.child,N=T.sibling,l=un(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,N!==null?v=un(N,v):(v=ra(v,i,n,null),v.flags|=2),v.return=e,l.return=e,l.sibling=v,e.child=l,es(null,l),l=e.child,v=t.child.memoizedState,v===null?v=Xc(n):(i=v.cachePool,i!==null?(T=Gt._currentValue,i=i.parent!==T?{parent:T,pool:T}:i):i=Nf(),v={baseLanes:v.baseLanes|n,cachePool:i}),l.memoizedState=v,l.childLanes=Vc(t,f,n),e.memoizedState=Gc,es(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=un(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Kc(t,e){return e=ji({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ji(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function Zc(t,e,n){return va(e,t.child,null,n),t=Kc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Vd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),uc(t.return,e,n)}function kc(t,e,n,l,i,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=i,f.treeForkCount=c)}function Kd(t,e,n){var l=e.pendingProps,i=l.revealOrder,c=l.tail;l=l.children;var f=Qt.current,v=(f&2)!==0;if(v?(f=f&1|2,e.flags|=128):f&=1,Z(Qt,f),It(t,e,l,n),l=pt?Gl:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vd(t,n,e);else if(t.tag===19)Vd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&mi(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),kc(e,!1,i,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&mi(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}kc(e,!0,n,null,c,l);break;case"together":kc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function hn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=un(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=un(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Jc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ii(t)))}function Ey(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Nn(e,Gt,t.memoizedState.cache),fa();break;case 27:case 5:tn(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Nn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,xc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Xd(t,e,n):(Ln(e),t=hn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var i=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Pa(t,e,n,!1),l=(n&e.childLanes)!==0),i){if(l)return Kd(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Z(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,Bd(t,e,n,e.pendingProps);case 24:Nn(e,Gt,t.memoizedState.cache)}return hn(t,e,n)}function Zd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Jc(t,n)&&(e.flags&128)===0)return Vt=!1,Ey(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,pt&&(e.flags&1048576)!==0&&Rf(e,Gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")Iu(t)?(l=xa(t,l),e.tag=1,e=Yd(null,e,t,l,n)):(e.tag=0,e=Yc(null,e,t,l,n));else{if(t!=null){var i=t.$$typeof;if(i===G){e.tag=11,e=wd(null,e,t,l,n);break t}else if(i===H){e.tag=14,e=Ld(null,e,t,l,n);break t}}throw e=zt(t)||t,Error(o(306,e,""))}}return e;case 0:return Yc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,i=xa(l,e.pendingProps),Yd(t,e,l,i,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var c=e.memoizedState;i=c.element,mc(t,e),Pl(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Nn(e,Gt,l),l!==c.cache&&cc(e,[Gt],n,!0),Fl(),l=f.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Gd(t,e,l,n);break t}else if(l!==i){i=Oe(Error(o(424)),e),Xl(i),e=Gd(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ot=Le(t.firstChild),$t=e,pt=!0,An=null,De=!0,n=Bf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),l===i){e=hn(t,e,n);break t}It(t,e,l,n)}e=e.child}return e;case 26:return Ei(t,e),t===null?(n=am(e.type,null,e.pendingProps,null))?e.memoizedState=n:pt||(n=e.type,t=e.pendingProps,l=Gi(rt.current).createElement(n),l[Pt]=e,l[ie]=t,te(l,n,t),kt(l),e.stateNode=l):e.memoizedState=am(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return tn(e),t===null&&pt&&(l=e.stateNode=tm(e.type,e.pendingProps,rt.current),$t=e,De=!0,i=Ot,Vn(e.type)?(Co=i,Ot=Le(l.firstChild)):Ot=i),It(t,e,e.pendingProps.children,n),Ei(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&pt&&((i=l=Ot)&&(l=ev(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,$t=e,Ot=Le(l.firstChild),De=!1,i=!0):i=!1),i||On(e)),tn(e),i=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,l=c.children,To(i,c)?l=null:f!==null&&To(i,f)&&(e.flags|=32),e.memoizedState!==null&&(i=Sc(t,e,yy,null,null,n),ys._currentValue=i),Ei(t,e),It(t,e,l,n),e.child;case 6:return t===null&&pt&&((t=n=Ot)&&(n=nv(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ot=null,t=!0):t=!1),t||On(e)),null;case 13:return Xd(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):It(t,e,l,n),e.child;case 11:return wd(t,e,e.type,e.pendingProps,n);case 7:return It(t,e,e.pendingProps,n),e.child;case 8:return It(t,e,e.pendingProps.children,n),e.child;case 12:return It(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Nn(e,e.type,l.value),It(t,e,l.children,n),e.child;case 9:return i=e.type._context,l=e.pendingProps.children,ha(e),i=Wt(i),l=l(i),e.flags|=1,It(t,e,l,n),e.child;case 14:return Ld(t,e,e.type,e.pendingProps,n);case 15:return Ud(t,e,e.type,e.pendingProps,n);case 19:return Kd(t,e,n);case 31:return Ry(t,e,n);case 22:return Bd(t,e,n,e.pendingProps);case 24:return ha(e),l=Wt(Gt),t===null?(i=fc(),i===null&&(i=Ct,c=oc(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=n),i=c),e.memoizedState={parent:l,cache:i},hc(e),Nn(e,Gt,i)):((t.lanes&n)!==0&&(mc(t,e),Pl(e,null,null,n),Fl()),i=t.memoizedState,c=e.memoizedState,i.parent!==l?(i={parent:l,cache:l},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Nn(e,Gt,l)):(l=c.cache,Nn(e,Gt,l),l!==i.cache&&cc(e,[Gt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function mn(t){t.flags|=4}function Fc(t,e,n,l,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(xh())t.flags|=8192;else throw ya=ri,dc}else t.flags&=-16777217}function kd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!cm(e))if(xh())t.flags|=8192;else throw ya=ri,dc}function Mi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Er():536870912,t.lanes|=e,cl|=e)}function ns(t,e){if(!pt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function jy(t,e,n){var l=e.pendingProps;switch(ac(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),rn(Gt),Mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Fa(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,sc())),Nt(e),null;case 26:var i=e.type,c=e.memoizedState;return t===null?(mn(e),c!==null?(Nt(e),kd(e,c)):(Nt(e),Fc(e,i,null,l,n))):c?c!==t.memoizedState?(mn(e),Nt(e),kd(e,c)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),Nt(e),Fc(e,i,t,l,n)),null;case 27:if(en(e),n=rt.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Nt(e),null}t=P.current,Fa(e)?jf(e):(t=tm(i,l,n),e.stateNode=t,mn(e))}return Nt(e),null;case 5:if(en(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Nt(e),null}if(c=P.current,Fa(e))jf(e);else{var f=Gi(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}c[Pt]=e,c[ie]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(te(c,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&mn(e)}}return Nt(e),Fc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Fa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,i=$t,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Xh(t.nodeValue,n)),t||On(e,!0)}else t=Gi(t).createTextNode(l),t[Pt]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Fa(e),n!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Nt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Fa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!i)throw Error(o(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),i=!1}else i=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==i&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Mi(e,e.updateQueue),Nt(e),null);case 4:return Mt(),t===null&&go(e.stateNode.containerInfo),Nt(e),null;case 10:return rn(e.type),Nt(e),null;case 19:if(Q(Qt),l=e.memoizedState,l===null)return Nt(e),null;if(i=(e.flags&128)!==0,c=l.rendering,c===null)if(i)ns(l,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=mi(t),c!==null){for(e.flags|=128,ns(l,!1),t=c.updateQueue,e.updateQueue=t,Mi(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sf(n,t),n=n.sibling;return Z(Qt,Qt.current&1|2),pt&&cn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ne()>zi&&(e.flags|=128,i=!0,ns(l,!1),e.lanes=4194304)}else{if(!i)if(t=mi(c),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,Mi(e,t),ns(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!pt)return Nt(e),null}else 2*ne()-l.renderingStartTime>zi&&n!==536870912&&(e.flags|=128,i=!0,ns(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=Qt.current,Z(Qt,i?n&1|2:n&1),pt&&cn(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return be(e),gc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&Mi(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Q(ma),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),rn(Gt),Nt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function My(t,e){switch(ac(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return rn(Gt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return en(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(o(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Qt),null;case 4:return Mt(),null;case 10:return rn(e.type),null;case 22:case 23:return be(e),gc(),t!==null&&Q(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return rn(Gt),null;case 25:return null;default:return null}}function Jd(t,e){switch(ac(e),e.tag){case 3:rn(Gt),Mt();break;case 26:case 27:case 5:en(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:Q(Qt);break;case 10:rn(e.type);break;case 22:case 23:be(e),gc(),t!==null&&Q(ma);break;case 24:rn(Gt)}}function as(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&t)===t){l=void 0;var c=n.create,f=n.inst;l=c(),f.destroy=l}n=n.next}while(n!==i)}}catch(v){Tt(e,e.return,v)}}function Bn(t,e,n){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var c=i.next;l=c;do{if((l.tag&t)===t){var f=l.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,i=e;var T=n,N=v;try{N()}catch(U){Tt(i,T,U)}}}l=l.next}while(l!==c)}}catch(U){Tt(e,e.return,U)}}function Fd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{qf(e,n)}catch(l){Tt(t,t.return,l)}}}function Pd(t,e,n){n.props=xa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function ls(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(i){Tt(t,e,i)}}function ke(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Tt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Tt(t,e,i)}else n.current=null}function $d(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Tt(t,t.return,i)}}function Pc(t,e,n){try{var l=t.stateNode;Fy(l,t.type,n,e),l[ie]=e}catch(i){Tt(t,t.return,i)}}function Wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vn(t.type)||t.tag===4}function $c(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Wd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Wc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ln));else if(l!==4&&(l===27&&Vn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Wc(t,e,n),t=t.sibling;t!==null;)Wc(t,e,n),t=t.sibling}function Ci(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Vn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ci(t,e,n),t=t.sibling;t!==null;)Ci(t,e,n),t=t.sibling}function Id(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);te(e,l,n),e[Pt]=t,e[ie]=n}catch(c){Tt(t,t.return,c)}}var pn=!1,Kt=!1,Ic=!1,th=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Cy(t,e){if(t=t.containerInfo,So=Fi,t=df(t),Zu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,v=-1,T=-1,N=0,U=0,Y=t,z=null;e:for(;;){for(var w;Y!==n||i!==0&&Y.nodeType!==3||(v=f+i),Y!==c||l!==0&&Y.nodeType!==3||(T=f+l),Y.nodeType===3&&(f+=Y.nodeValue.length),(w=Y.firstChild)!==null;)z=Y,Y=w;for(;;){if(Y===t)break e;if(z===n&&++N===i&&(v=f),z===c&&++U===l&&(T=f),(w=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=w}n=v===-1||T===-1?null:{start:v,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(_o={focusedElem:t,selectionRange:n},Fi=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,i=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var $=xa(n.type,i);t=l.getSnapshotBeforeUpdate($,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(it){Tt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Eo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Eo(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Jt=t;break}Jt=e.return}}function eh(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:vn(t,n),l&4&&as(5,n);break;case 1:if(vn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var i=xa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&Fd(n),l&512&&ls(n,n.return);break;case 3:if(vn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{qf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Id(n);case 26:case 5:vn(t,n),e===null&&l&4&&$d(n),l&512&&ls(n,n.return);break;case 12:vn(t,n);break;case 31:vn(t,n),l&4&&lh(t,n);break;case 13:vn(t,n),l&4&&sh(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=By.bind(null,n),av(t,n))));break;case 22:if(l=n.memoizedState!==null||pn,!l){e=e!==null&&e.memoizedState!==null||Kt,i=pn;var c=Kt;pn=l,(Kt=e)&&!c?gn(t,n,(n.subtreeFlags&8772)!==0):vn(t,n),pn=i,Kt=c}break;case 30:break;default:vn(t,n)}}function nh(t){var e=t.alternate;e!==null&&(t.alternate=null,nh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Au(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Dt=null,ce=!1;function yn(t,e,n){for(n=n.child;n!==null;)ah(t,e,n),n=n.sibling}function ah(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:Kt||ke(n,e),yn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||ke(n,e);var l=Dt,i=ce;Vn(n.type)&&(Dt=n.stateNode,ce=!1),yn(t,e,n),hs(n.stateNode),Dt=l,ce=i;break;case 5:Kt||ke(n,e);case 6:if(l=Dt,i=ce,Dt=null,yn(t,e,n),Dt=l,ce=i,Dt!==null)if(ce)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(n.stateNode)}catch(c){Tt(n,e,c)}else try{Dt.removeChild(n.stateNode)}catch(c){Tt(n,e,c)}break;case 18:Dt!==null&&(ce?(t=Dt,Fh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),yl(t)):Fh(Dt,n.stateNode));break;case 4:l=Dt,i=ce,Dt=n.stateNode.containerInfo,ce=!0,yn(t,e,n),Dt=l,ce=i;break;case 0:case 11:case 14:case 15:Bn(2,n,e),Kt||Bn(4,n,e),yn(t,e,n);break;case 1:Kt||(ke(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Pd(n,e,l)),yn(t,e,n);break;case 21:yn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,yn(t,e,n),Kt=l;break;default:yn(t,e,n)}}function lh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{yl(t)}catch(n){Tt(e,e.return,n)}}}function sh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{yl(t)}catch(n){Tt(e,e.return,n)}}function Ay(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new th),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new th),e;default:throw Error(o(435,t.tag))}}function Ai(t,e){var n=Ay(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var i=Hy.bind(null,t,l);l.then(i,i)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],c=t,f=e,v=f;t:for(;v!==null;){switch(v.tag){case 27:if(Vn(v.type)){Dt=v.stateNode,ce=!1;break t}break;case 5:Dt=v.stateNode,ce=!1;break t;case 3:case 4:Dt=v.stateNode.containerInfo,ce=!0;break t}v=v.return}if(Dt===null)throw Error(o(160));ah(c,f,i),Dt=null,ce=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ih(e,t),e=e.sibling}var Qe=null;function ih(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),re(t),l&4&&(Bn(3,t,t.return),as(3,t),Bn(5,t,t.return));break;case 1:oe(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&64&&pn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=Qe;if(oe(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(l){case"title":c=i.getElementsByTagName("title")[0],(!c||c[Nl]||c[Pt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(l),i.head.insertBefore(c,i.querySelector("head > title"))),te(c,l,n),c[Pt]=t,kt(c),l=c;break t;case"link":var f=im("link","href",i).get(l+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(c=f[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break e}}c=i.createElement(l),te(c,l,n),i.head.appendChild(c);break;case"meta":if(f=im("meta","content",i).get(l+(n.content||""))){for(v=0;v<f.length;v++)if(c=f[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break e}}c=i.createElement(l),te(c,l,n),i.head.appendChild(c);break;default:throw Error(o(468,l))}c[Pt]=t,kt(c),l=c}t.stateNode=l}else um(i,t.type,t.stateNode);else t.stateNode=sm(i,l,t.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?um(i,t.type,t.stateNode):sm(i,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Pc(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),n!==null&&l&4&&Pc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),t.flags&32){i=t.stateNode;try{qa(i,"")}catch($){Tt(t,t.return,$)}}l&4&&t.stateNode!=null&&(i=t.memoizedProps,Pc(t,i,n!==null?n.memoizedProps:i)),l&1024&&(Ic=!0);break;case 6:if(oe(e,t),re(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Tt(t,t.return,$)}}break;case 3:if(Ki=null,i=Qe,Qe=Xi(e.containerInfo),oe(e,t),Qe=i,re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{yl(e.containerInfo)}catch($){Tt(t,t.return,$)}Ic&&(Ic=!1,uh(t));break;case 4:l=Qe,Qe=Xi(t.stateNode.containerInfo),oe(e,t),re(t),Qe=l;break;case 12:oe(e,t),re(t);break;case 31:oe(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ai(t,l)));break;case 13:oe(e,t),re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ni=ne()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ai(t,l)));break;case 22:i=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=pn,U=Kt;if(pn=N||i,Kt=U||T,oe(e,t),Kt=U,pn=N,re(t),l&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||T||pn||Kt||ba(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(c=T.stateNode,i)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=T.stateNode;var Y=T.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch($){Tt(T,T.return,$)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=i?"":T.memoizedProps}catch($){Tt(T,T.return,$)}}}else if(e.tag===18){if(n===null){T=e;try{var w=T.stateNode;i?Ph(w,!0):Ph(T.stateNode,!1)}catch($){Tt(T,T.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ai(t,n))));break;case 19:oe(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ai(t,l)));break;case 30:break;case 21:break;default:oe(e,t),re(t)}}function re(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Wd(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,c=$c(t);Ci(t,c,i);break;case 5:var f=n.stateNode;n.flags&32&&(qa(f,""),n.flags&=-33);var v=$c(t);Ci(t,v,f);break;case 3:case 4:var T=n.stateNode.containerInfo,N=$c(t);Wc(t,N,T);break;default:throw Error(o(161))}}catch(U){Tt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function uh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;uh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function vn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)eh(t,e.alternate,e),e=e.sibling}function ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Bn(4,e,e.return),ba(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Pd(e,e.return,n),ba(e);break;case 27:hs(e.stateNode);case 26:case 5:ke(e,e.return),ba(e);break;case 22:e.memoizedState===null&&ba(e);break;case 30:ba(e);break;default:ba(e)}t=t.sibling}}function gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,i=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:gn(i,c,n),as(4,c);break;case 1:if(gn(i,c,n),l=c,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(N){Tt(l,l.return,N)}if(l=c,i=l.updateQueue,i!==null){var v=l.stateNode;try{var T=i.shared.hiddenCallbacks;if(T!==null)for(i.shared.hiddenCallbacks=null,i=0;i<T.length;i++)Hf(T[i],v)}catch(N){Tt(l,l.return,N)}}n&&f&64&&Fd(c),ls(c,c.return);break;case 27:Id(c);case 26:case 5:gn(i,c,n),n&&l===null&&f&4&&$d(c),ls(c,c.return);break;case 12:gn(i,c,n);break;case 31:gn(i,c,n),n&&f&4&&lh(i,c);break;case 13:gn(i,c,n),n&&f&4&&sh(i,c);break;case 22:c.memoizedState===null&&gn(i,c,n),ls(c,c.return);break;case 30:break;default:gn(i,c,n)}e=e.sibling}}function to(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Vl(n))}function eo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vl(t))}function Ye(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ch(t,e,n,l),e=e.sibling}function ch(t,e,n,l){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,l),i&2048&&as(9,e);break;case 1:Ye(t,e,n,l);break;case 3:Ye(t,e,n,l),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vl(t)));break;case 12:if(i&2048){Ye(t,e,n,l),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,v=c.onPostCommit;typeof v=="function"&&v(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Tt(e,e.return,T)}}else Ye(t,e,n,l);break;case 31:Ye(t,e,n,l);break;case 13:Ye(t,e,n,l);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Ye(t,e,n,l):ss(t,e):c._visibility&2?Ye(t,e,n,l):(c._visibility|=2,sl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),i&2048&&to(f,e);break;case 24:Ye(t,e,n,l),i&2048&&eo(e.alternate,e);break;default:Ye(t,e,n,l)}}function sl(t,e,n,l,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,v=n,T=l,N=f.flags;switch(f.tag){case 0:case 11:case 15:sl(c,f,v,T,i),as(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?sl(c,f,v,T,i):ss(c,f):(U._visibility|=2,sl(c,f,v,T,i)),i&&N&2048&&to(f.alternate,f);break;case 24:sl(c,f,v,T,i),i&&N&2048&&eo(f.alternate,f);break;default:sl(c,f,v,T,i)}e=e.sibling}}function ss(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,i=l.flags;switch(l.tag){case 22:ss(n,l),i&2048&&to(l.alternate,l);break;case 24:ss(n,l),i&2048&&eo(l.alternate,l);break;default:ss(n,l)}e=e.sibling}}var is=8192;function il(t,e,n){if(t.subtreeFlags&is)for(t=t.child;t!==null;)oh(t,e,n),t=t.sibling}function oh(t,e,n){switch(t.tag){case 26:il(t,e,n),t.flags&is&&t.memoizedState!==null&&pv(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:il(t,e,n);break;case 3:case 4:var l=Qe;Qe=Xi(t.stateNode.containerInfo),il(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=is,is=16777216,il(t,e,n),is=l):il(t,e,n));break;default:il(t,e,n)}}function rh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function us(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Jt=l,dh(l,t)}rh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fh(t),t=t.sibling}function fh(t){switch(t.tag){case 0:case 11:case 15:us(t),t.flags&2048&&Bn(9,t,t.return);break;case 3:us(t);break;case 12:us(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Oi(t)):us(t);break;default:us(t)}}function Oi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Jt=l,dh(l,t)}rh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Bn(8,e,e.return),Oi(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Oi(e));break;default:Oi(e)}t=t.sibling}}function dh(t,e){for(;Jt!==null;){var n=Jt;switch(n.tag){case 0:case 11:case 15:Bn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Vl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Jt=l;else t:for(n=t;Jt!==null;){l=Jt;var i=l.sibling,c=l.return;if(nh(l),l===n){Jt=null;break t}if(i!==null){i.return=c,Jt=i;break t}Jt=c}}}var Oy={getCacheForType:function(t){var e=Wt(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Gt).controller.signal}},Ny=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ct=null,ft=null,ht=0,_t=0,Se=null,Hn=!1,ul=!1,no=!1,xn=0,Bt=0,qn=0,Sa=0,ao=0,_e=0,cl=0,cs=null,fe=null,lo=!1,Ni=0,hh=0,zi=1/0,Di=null,Qn=null,Zt=0,Yn=null,ol=null,bn=0,so=0,io=null,mh=null,os=0,uo=null;function Te(){return(bt&2)!==0&&ht!==0?ht&-ht:L.T!==null?mo():Ar()}function ph(){if(_e===0)if((ht&536870912)===0||pt){var t=Ys;Ys<<=1,(Ys&3932160)===0&&(Ys=262144),_e=t}else _e=536870912;return t=xe.current,t!==null&&(t.flags|=32),_e}function de(t,e,n){(t===Ct&&(_t===2||_t===9)||t.cancelPendingCommit!==null)&&(rl(t,0),Gn(t,ht,_e,!1)),Ol(t,n),((bt&2)===0||t!==Ct)&&(t===Ct&&((bt&2)===0&&(Sa|=n),Bt===4&&Gn(t,ht,_e,!1)),Je(t))}function yh(t,e,n){if((bt&6)!==0)throw Error(o(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Al(t,e),i=l?wy(t,e):oo(t,e,!0),c=l;do{if(i===0){ul&&!l&&Gn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!zy(n)){i=oo(t,e,!1),c=!1;continue}if(i===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var v=t;i=cs;var T=v.current.memoizedState.isDehydrated;if(T&&(rl(v,f).flags|=256),f=oo(v,f,!1),f!==2){if(no&&!T){v.errorRecoveryDisabledLanes|=c,Sa|=c,i=4;break t}c=fe,fe=i,c!==null&&(fe===null?fe=c:fe.push.apply(fe,c))}i=f}if(c=!1,i!==2)continue}}if(i===1){rl(t,0),Gn(t,e,0,!0);break}t:{switch(l=t,c=i,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Gn(l,e,_e,!Hn);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(i=Ni+300-ne(),10<i)){if(Gn(l,e,_e,!Hn),Xs(l,0,!0)!==0)break t;bn=e,l.timeoutHandle=kh(vh.bind(null,l,n,fe,Di,lo,e,_e,Sa,cl,Hn,c,"Throttled",-0,0),i);break t}vh(l,n,fe,Di,lo,e,_e,Sa,cl,Hn,c,null,-0,0)}}break}while(!0);Je(t)}function vh(t,e,n,l,i,c,f,v,T,N,U,Y,z,w){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},oh(e,c,Y);var $=(c&62914560)===c?Ni-ne():(c&4194048)===c?hh-ne():0;if($=yv(Y,$),$!==null){bn=c,t.cancelPendingCommit=$(Eh.bind(null,t,e,c,n,l,i,f,v,T,U,Y,null,z,w)),Gn(t,c,f,!N);return}}Eh(t,e,c,n,l,i,f,v,T)}function zy(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],c=i.getSnapshot;i=i.value;try{if(!ve(c(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Gn(t,e,n,l){e&=~ao,e&=~Sa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var i=e;0<i;){var c=31-ye(i),f=1<<c;l[c]=-1,i&=~f}n!==0&&jr(t,n,e)}function wi(){return(bt&6)===0?(rs(0),!1):!0}function co(){if(ft!==null){if(_t===0)var t=ft.return;else t=ft,on=da=null,Rc(t),tl=null,Zl=0,t=ft;for(;t!==null;)Jd(t.alternate,t),t=t.return;ft=null}}function rl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Wy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),bn=0,co(),Ct=t,ft=n=un(t.current,null),ht=e,_t=0,Se=null,Hn=!1,ul=Al(t,e),no=!1,cl=_e=ao=Sa=qn=Bt=0,fe=cs=null,lo=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var i=31-ye(l),c=1<<i;e|=t[i],l&=~c}return xn=e,ei(),n}function gh(t,e){ct=null,L.H=ts,e===Ia||e===oi?(e=wf(),_t=3):e===dc?(e=wf(),_t=4):_t=e===Qc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,ft===null&&(Bt=1,Ti(t,Oe(e,t.current)))}function xh(){var t=xe.current;return t===null?!0:(ht&4194048)===ht?we===null:(ht&62914560)===ht||(ht&536870912)!==0?t===we:!1}function bh(){var t=L.H;return L.H=ts,t===null?ts:t}function Sh(){var t=L.A;return L.A=Oy,t}function Li(){Bt=4,Hn||(ht&4194048)!==ht&&xe.current!==null||(ul=!0),(qn&134217727)===0&&(Sa&134217727)===0||Ct===null||Gn(Ct,ht,_e,!1)}function oo(t,e,n){var l=bt;bt|=2;var i=bh(),c=Sh();(Ct!==t||ht!==e)&&(Di=null,rl(t,e)),e=!1;var f=Bt;t:do try{if(_t!==0&&ft!==null){var v=ft,T=Se;switch(_t){case 8:co(),f=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var N=_t;if(_t=0,Se=null,fl(t,v,T,N),n&&ul){f=0;break t}break;default:N=_t,_t=0,Se=null,fl(t,v,T,N)}}Dy(),f=Bt;break}catch(U){gh(t,U)}while(!0);return e&&t.shellSuspendCounter++,on=da=null,bt=l,L.H=i,L.A=c,ft===null&&(Ct=null,ht=0,ei()),f}function Dy(){for(;ft!==null;)_h(ft)}function wy(t,e){var n=bt;bt|=2;var l=bh(),i=Sh();Ct!==t||ht!==e?(Di=null,zi=ne()+500,rl(t,e)):ul=Al(t,e);t:do try{if(_t!==0&&ft!==null){e=ft;var c=Se;e:switch(_t){case 1:_t=0,Se=null,fl(t,e,c,1);break;case 2:case 9:if(zf(c)){_t=0,Se=null,Th(e);break}e=function(){_t!==2&&_t!==9||Ct!==t||(_t=7),Je(t)},c.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:zf(c)?(_t=0,Se=null,Th(e)):(_t=0,Se=null,fl(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var v=ft;if(f?cm(f):v.stateNode.complete){_t=0,Se=null;var T=v.sibling;if(T!==null)ft=T;else{var N=v.return;N!==null?(ft=N,Ui(N)):ft=null}break e}}_t=0,Se=null,fl(t,e,c,5);break;case 6:_t=0,Se=null,fl(t,e,c,6);break;case 8:co(),Bt=6;break t;default:throw Error(o(462))}}Ly();break}catch(U){gh(t,U)}while(!0);return on=da=null,L.H=l,L.A=i,bt=n,ft!==null?0:(Ct=null,ht=0,ei(),Bt)}function Ly(){for(;ft!==null&&!qs();)_h(ft)}function _h(t){var e=Zd(t.alternate,t,xn);t.memoizedProps=t.pendingProps,e===null?Ui(t):ft=e}function Th(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Qd(n,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=Qd(n,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:Rc(e);default:Jd(n,e),e=ft=Sf(e,xn),e=Zd(n,e,xn)}t.memoizedProps=t.pendingProps,e===null?Ui(t):ft=e}function fl(t,e,n,l){on=da=null,Rc(e),tl=null,Zl=0;var i=e.return;try{if(Ty(t,i,e,n,ht)){Bt=1,Ti(t,Oe(n,t.current)),ft=null;return}}catch(c){if(i!==null)throw ft=i,c;Bt=1,Ti(t,Oe(n,t.current)),ft=null;return}e.flags&32768?(pt||l===1?t=!0:ul||(ht&536870912)!==0?t=!1:(Hn=t=!0,(l===2||l===9||l===3||l===6)&&(l=xe.current,l!==null&&l.tag===13&&(l.flags|=16384))),Rh(e,t)):Ui(e)}function Ui(t){var e=t;do{if((e.flags&32768)!==0){Rh(e,Hn);return}t=e.return;var n=jy(e.alternate,e,xn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Bt===0&&(Bt=5)}function Rh(t,e){do{var n=My(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Bt=6,ft=null}function Eh(t,e,n,l,i,c,f,v,T){t.cancelPendingCommit=null;do Bi();while(Zt!==0);if((bt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=$u,m0(t,n,c,f,v,T),t===Ct&&(ft=Ct=null,ht=0),ol=e,Yn=t,bn=n,so=c,io=i,mh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qy(za,function(){return Oh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,i=K.p,K.p=2,f=bt,bt|=4;try{Cy(t,e,n)}finally{bt=f,K.p=i,L.T=l}}Zt=1,jh(),Mh(),Ch()}}function jh(){if(Zt===1){Zt=0;var t=Yn,e=ol,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var l=K.p;K.p=2;var i=bt;bt|=4;try{ih(e,t);var c=_o,f=df(t.containerInfo),v=c.focusedElem,T=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&ff(v.ownerDocument.documentElement,v)){if(T!==null&&Zu(v)){var N=T.start,U=T.end;if(U===void 0&&(U=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(U,v.value.length);else{var Y=v.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var w=z.getSelection(),$=v.textContent.length,it=Math.min(T.start,$),jt=T.end===void 0?it:Math.min(T.end,$);!w.extend&&it>jt&&(f=jt,jt=it,it=f);var M=rf(v,it),R=rf(v,jt);if(M&&R&&(w.rangeCount!==1||w.anchorNode!==M.node||w.anchorOffset!==M.offset||w.focusNode!==R.node||w.focusOffset!==R.offset)){var O=Y.createRange();O.setStart(M.node,M.offset),w.removeAllRanges(),it>jt?(w.addRange(O),w.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),w.addRange(O))}}}}for(Y=[],w=v;w=w.parentNode;)w.nodeType===1&&Y.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Y.length;v++){var q=Y[v];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Fi=!!So,_o=So=null}finally{bt=i,K.p=l,L.T=n}}t.current=e,Zt=2}}function Mh(){if(Zt===2){Zt=0;var t=Yn,e=ol,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var l=K.p;K.p=2;var i=bt;bt|=4;try{eh(t,e.alternate,e)}finally{bt=i,K.p=l,L.T=n}}Zt=3}}function Ch(){if(Zt===4||Zt===3){Zt=0,Ru();var t=Yn,e=ol,n=bn,l=mh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,ol=Yn=null,Ah(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Qn=null),Mu(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=L.T,i=K.p,K.p=2,L.T=null;try{for(var c=t.onRecoverableError,f=0;f<l.length;f++){var v=l[f];c(v.value,{componentStack:v.stack})}}finally{L.T=e,K.p=i}}(bn&3)!==0&&Bi(),Je(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===uo?os++:(os=0,uo=t):os=0,rs(0)}}function Ah(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vl(e)))}function Bi(){return jh(),Mh(),Ch(),Oh()}function Oh(){if(Zt!==5)return!1;var t=Yn,e=so;so=0;var n=Mu(bn),l=L.T,i=K.p;try{K.p=32>n?32:n,L.T=null,n=io,io=null;var c=Yn,f=bn;if(Zt=0,ol=Yn=null,bn=0,(bt&6)!==0)throw Error(o(331));var v=bt;if(bt|=4,fh(c.current),ch(c,c.current,f,n),bt=v,rs(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(Cl,c)}catch{}return!0}finally{K.p=i,L.T=l,Ah(t,e)}}function Nh(t,e,n){e=Oe(n,e),e=qc(t.stateNode,e,2),t=wn(t,e,2),t!==null&&(Ol(t,2),Je(t))}function Tt(t,e,n){if(t.tag===3)Nh(t,t,n);else for(;e!==null;){if(e.tag===3){Nh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qn===null||!Qn.has(l))){t=Oe(n,t),n=zd(2),l=wn(e,n,2),l!==null&&(Dd(n,l,e,t),Ol(l,2),Je(l));break}}e=e.return}}function ro(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Ny;var i=new Set;l.set(e,i)}else i=l.get(e),i===void 0&&(i=new Set,l.set(e,i));i.has(n)||(no=!0,i.add(n),t=Uy.bind(null,t,e,n),e.then(t,t))}function Uy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ht&n)===n&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>ne()-Ni?(bt&2)===0&&rl(t,0):ao|=n,cl===ht&&(cl=0)),Je(t)}function zh(t,e){e===0&&(e=Er()),t=oa(t,e),t!==null&&(Ol(t,e),Je(t))}function By(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zh(t,n)}function Hy(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),zh(t,n)}function qy(t,e){return He(t,e)}var Hi=null,dl=null,fo=!1,qi=!1,ho=!1,Xn=0;function Je(t){t!==dl&&t.next===null&&(dl===null?Hi=dl=t:dl=dl.next=t),qi=!0,fo||(fo=!0,Yy())}function rs(t,e){if(!ho&&qi){ho=!0;do for(var n=!1,l=Hi;l!==null;){if(t!==0){var i=l.pendingLanes;if(i===0)var c=0;else{var f=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-ye(42|t)+1)-1,c&=i&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Uh(l,c))}else c=ht,c=Xs(l,l===Ct?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Al(l,c)||(n=!0,Uh(l,c));l=l.next}while(n);ho=!1}}function Qy(){Dh()}function Dh(){qi=fo=!1;var t=0;Xn!==0&&$y()&&(t=Xn);for(var e=ne(),n=null,l=Hi;l!==null;){var i=l.next,c=wh(l,e);c===0?(l.next=null,n===null?Hi=i:n.next=i,i===null&&(dl=n)):(n=l,(t!==0||(c&3)!==0)&&(qi=!0)),l=i}Zt!==0&&Zt!==5||rs(t),Xn!==0&&(Xn=0)}function wh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,i=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ye(c),v=1<<f,T=i[f];T===-1?((v&n)===0||(v&l)!==0)&&(i[f]=h0(v,e)):T<=e&&(t.expiredLanes|=v),c&=~v}if(e=Ct,n=ht,n=Xs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(_t===2||_t===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ml(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Al(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ml(l),Mu(n)){case 2:case 8:n=Ve;break;case 32:n=za;break;case 268435456:n=Rr;break;default:n=za}return l=Lh.bind(null,t),n=He(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ml(l),t.callbackPriority=2,t.callbackNode=null,2}function Lh(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Bi()&&t.callbackNode!==n)return null;var l=ht;return l=Xs(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(yh(t,l,e),wh(t,ne()),t.callbackNode!=null&&t.callbackNode===n?Lh.bind(null,t):null)}function Uh(t,e){if(Bi())return null;yh(t,e,!0)}function Yy(){Iy(function(){(bt&6)!==0?He(Ft,Qy):Dh()})}function mo(){if(Xn===0){var t=$a;t===0&&(t=Qs,Qs<<=1,(Qs&261888)===0&&(Qs=256)),Xn=t}return Xn}function Bh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ks(""+t)}function Hh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Gy(t,e,n,l,i){if(e==="submit"&&n&&n.stateNode===i){var c=Bh((i[ie]||null).action),f=l.submitter;f&&(e=(e=f[ie]||null)?Bh(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var v=new $s("action","action",null,l,i);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xn!==0){var T=f?Hh(i,f):new FormData(i);Dc(n,{pending:!0,data:T,method:i.method,action:c},null,T)}}else typeof c=="function"&&(v.preventDefault(),T=f?Hh(i,f):new FormData(i),Dc(n,{pending:!0,data:T,method:i.method,action:c},c,T))},currentTarget:i}]})}}for(var po=0;po<Pu.length;po++){var yo=Pu[po],Xy=yo.toLowerCase(),Vy=yo[0].toUpperCase()+yo.slice(1);qe(Xy,"on"+Vy)}qe(pf,"onAnimationEnd"),qe(yf,"onAnimationIteration"),qe(vf,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(iy,"onTransitionRun"),qe(uy,"onTransitionStart"),qe(cy,"onTransitionCancel"),qe(gf,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="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(" "),Ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fs));function qh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],i=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var f=l.length-1;0<=f;f--){var v=l[f],T=v.instance,N=v.currentTarget;if(v=v.listener,T!==c&&i.isPropagationStopped())break t;c=v,i.currentTarget=N;try{c(i)}catch(U){ti(U)}i.currentTarget=null,c=T}else for(f=0;f<l.length;f++){if(v=l[f],T=v.instance,N=v.currentTarget,v=v.listener,T!==c&&i.isPropagationStopped())break t;c=v,i.currentTarget=N;try{c(i)}catch(U){ti(U)}i.currentTarget=null,c=T}}}}function dt(t,e){var n=e[Cu];n===void 0&&(n=e[Cu]=new Set);var l=t+"__bubble";n.has(l)||(Qh(e,t,2,!1),n.add(l))}function vo(t,e,n){var l=0;e&&(l|=4),Qh(n,t,l,e)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function go(t){if(!t[Qi]){t[Qi]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Ky.has(n)||vo(n,!1,t),vo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qi]||(e[Qi]=!0,vo("selectionchange",!1,e))}}function Qh(t,e,n,l){switch(pm(e)){case 2:var i=xv;break;case 8:i=bv;break;default:i=Do}n=i.bind(null,e,n,t),i=void 0,!Bu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),l?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function xo(t,e,n,l,i){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var v=l.stateNode.containerInfo;if(v===i)break;if(f===4)for(f=l.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;v!==null;){if(f=wa(v),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){l=c=f;continue t}v=v.parentNode}}l=l.return}Vr(function(){var N=c,U=Lu(n),Y=[];t:{var z=xf.get(t);if(z!==void 0){var w=$s,$=t;switch(t){case"keypress":if(Fs(n)===0)break t;case"keydown":case"keyup":w=H0;break;case"focusin":$="focus",w=Yu;break;case"focusout":$="blur",w=Yu;break;case"beforeblur":case"afterblur":w=Yu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=j0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Y0;break;case pf:case yf:case vf:w=A0;break;case gf:w=X0;break;case"scroll":case"scrollend":w=R0;break;case"wheel":w=K0;break;case"copy":case"cut":case"paste":w=N0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Fr;break;case"toggle":case"beforetoggle":w=k0}var it=(e&4)!==0,jt=!it&&(t==="scroll"||t==="scrollend"),M=it?z!==null?z+"Capture":null:z;it=[];for(var R=N,O;R!==null;){var q=R;if(O=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||O===null||M===null||(q=Dl(R,M),q!=null&&it.push(ds(R,q,O))),jt)break;R=R.return}0<it.length&&(z=new w(z,$,null,n,U),Y.push({event:z,listeners:it}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",w=t==="mouseout"||t==="pointerout",z&&n!==wu&&($=n.relatedTarget||n.fromElement)&&(wa($)||$[Da]))break t;if((w||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,w?($=n.relatedTarget||n.toElement,w=N,$=$?wa($):null,$!==null&&(jt=d($),it=$.tag,$!==jt||it!==5&&it!==27&&it!==6)&&($=null)):(w=null,$=N),w!==$)){if(it=kr,q="onMouseLeave",M="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(it=Fr,q="onPointerLeave",M="onPointerEnter",R="pointer"),jt=w==null?z:zl(w),O=$==null?z:zl($),z=new it(q,R+"leave",w,n,U),z.target=jt,z.relatedTarget=O,q=null,wa(U)===N&&(it=new it(M,R+"enter",$,n,U),it.target=O,it.relatedTarget=jt,q=it),jt=q,w&&$)e:{for(it=Zy,M=w,R=$,O=0,q=M;q;q=it(q))O++;q=0;for(var nt=R;nt;nt=it(nt))q++;for(;0<O-q;)M=it(M),O--;for(;0<q-O;)R=it(R),q--;for(;O--;){if(M===R||R!==null&&M===R.alternate){it=M;break e}M=it(M),R=it(R)}it=null}else it=null;w!==null&&Yh(Y,z,w,it,!1),$!==null&&jt!==null&&Yh(Y,jt,$,it,!0)}}t:{if(z=N?zl(N):window,w=z.nodeName&&z.nodeName.toLowerCase(),w==="select"||w==="input"&&z.type==="file")var vt=af;else if(ef(z))if(lf)vt=ay;else{vt=ey;var W=ty}else w=z.nodeName,!w||w.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&Du(N.elementType)&&(vt=af):vt=ny;if(vt&&(vt=vt(t,N))){nf(Y,vt,n,U);break t}W&&W(t,z,N),t==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&zu(z,"number",z.value)}switch(W=N?zl(N):window,t){case"focusin":(ef(W)||W.contentEditable==="true")&&(Xa=W,ku=N,Yl=null);break;case"focusout":Yl=ku=Xa=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,hf(Y,n,U);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":hf(Y,n,U)}var ot;if(Xu)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Ga?Ir(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Pr&&n.locale!=="ko"&&(Ga||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Ga&&(ot=Kr()):(Mn=U,Hu="value"in Mn?Mn.value:Mn.textContent,Ga=!0)),W=Yi(N,mt),0<W.length&&(mt=new Jr(mt,t,null,n,U),Y.push({event:mt,listeners:W}),ot?mt.data=ot:(ot=tf(n),ot!==null&&(mt.data=ot)))),(ot=F0?P0(t,n):$0(t,n))&&(mt=Yi(N,"onBeforeInput"),0<mt.length&&(W=new Jr("onBeforeInput","beforeinput",null,n,U),Y.push({event:W,listeners:mt}),W.data=ot)),Gy(Y,t,N,n,U)}qh(Y,e)})}function ds(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Yi(t,e){for(var n=e+"Capture",l=[];t!==null;){var i=t,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=Dl(t,n),i!=null&&l.unshift(ds(t,i,c)),i=Dl(t,e),i!=null&&l.push(ds(t,i,c))),t.tag===3)return l;t=t.return}return[]}function Zy(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yh(t,e,n,l,i){for(var c=e._reactName,f=[];n!==null&&n!==l;){var v=n,T=v.alternate,N=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||N===null||(T=N,i?(N=Dl(n,c),N!=null&&f.unshift(ds(n,N,T))):i||(N=Dl(n,c),N!=null&&f.push(ds(n,N,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var ky=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function Gh(t){return(typeof t=="string"?t:""+t).replace(ky,`
9
- `).replace(Jy,"")}function Xh(t,e){return e=Gh(e),Gh(t)===e}function Et(t,e,n,l,i,c){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||qa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&qa(t,""+l);break;case"className":Ks(t,"class",l);break;case"tabIndex":Ks(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ks(t,n,l);break;case"style":Gr(t,l,c);break;case"data":if(e!=="object"){Ks(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ks(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",i.name,i,null),Et(t,e,"formEncType",i.formEncType,i,null),Et(t,e,"formMethod",i.formMethod,i,null),Et(t,e,"formTarget",i.formTarget,i,null)):(Et(t,e,"encType",i.encType,i,null),Et(t,e,"method",i.method,i,null),Et(t,e,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ks(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ln);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=ks(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Vs(t,"popover",l);break;case"xlinkActuate":an(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":an(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":an(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":an(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":an(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":an(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":an(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":an(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":an(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=_0.get(n)||n,Vs(t,n,l))}}function bo(t,e,n,l,i,c){switch(n){case"style":Gr(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?qa(t,l):(typeof l=="number"||typeof l=="bigint")&&qa(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),c=t[ie]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,i),typeof l=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,i);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Vs(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,i=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Et(t,e,c,f,n,null)}}i&&Et(t,e,"srcSet",n.srcSet,n,null),l&&Et(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var v=c=f=i=null,T=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var U=n[l];if(U!=null)switch(l){case"name":i=U;break;case"type":f=U;break;case"checked":T=U;break;case"defaultChecked":N=U;break;case"value":c=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:Et(t,e,l,U,n,null)}}Hr(t,c,v,T,N,f,i,!1);return;case"select":dt("invalid",t),l=f=c=null;for(i in n)if(n.hasOwnProperty(i)&&(v=n[i],v!=null))switch(i){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:Et(t,e,i,v,n,null)}e=c,n=f,t.multiple=!!l,e!=null?Ha(t,!!l,e,!1):n!=null&&Ha(t,!!l,n,!0);return;case"textarea":dt("invalid",t),c=i=l=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":i=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Et(t,e,f,v,n,null)}Qr(t,l,i,c);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Et(t,e,T,l,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<fs.length;l++)dt(fs[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Et(t,e,N,l,n,null)}return;default:if(Du(e)){for(U in n)n.hasOwnProperty(U)&&(l=n[U],l!==void 0&&bo(t,e,U,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Et(t,e,v,l,n,null))}function Fy(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,f=null,v=null,T=null,N=null,U=null;for(w in n){var Y=n[w];if(n.hasOwnProperty(w)&&Y!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(w)||Et(t,e,w,null,l,Y)}}for(var z in l){var w=l[z];if(Y=n[z],l.hasOwnProperty(z)&&(w!=null||Y!=null))switch(z){case"type":c=w;break;case"name":i=w;break;case"checked":N=w;break;case"defaultChecked":U=w;break;case"value":f=w;break;case"defaultValue":v=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:w!==Y&&Et(t,e,z,w,l,Y)}}Nu(t,f,v,T,N,U,c,i);return;case"select":w=f=v=z=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":w=T;default:l.hasOwnProperty(c)||Et(t,e,c,null,l,T)}for(i in l)if(c=l[i],T=n[i],l.hasOwnProperty(i)&&(c!=null||T!=null))switch(i){case"value":z=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==T&&Et(t,e,i,c,l,T)}e=v,n=f,l=w,z!=null?Ha(t,!!n,z,!1):!!l!=!!n&&(e!=null?Ha(t,!!n,e,!0):Ha(t,!!n,n?[]:"",!1));return;case"textarea":w=z=null;for(v in n)if(i=n[v],n.hasOwnProperty(v)&&i!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Et(t,e,v,null,l,i)}for(f in l)if(i=l[f],c=n[f],l.hasOwnProperty(f)&&(i!=null||c!=null))switch(f){case"value":z=i;break;case"defaultValue":w=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&Et(t,e,f,i,l,c)}qr(t,z,w);return;case"option":for(var $ in n)z=n[$],n.hasOwnProperty($)&&z!=null&&!l.hasOwnProperty($)&&($==="selected"?t.selected=!1:Et(t,e,$,null,l,z));for(T in l)z=l[T],w=n[T],l.hasOwnProperty(T)&&z!==w&&(z!=null||w!=null)&&(T==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Et(t,e,T,z,l,w));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in n)z=n[it],n.hasOwnProperty(it)&&z!=null&&!l.hasOwnProperty(it)&&Et(t,e,it,null,l,z);for(N in l)if(z=l[N],w=n[N],l.hasOwnProperty(N)&&z!==w&&(z!=null||w!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Et(t,e,N,z,l,w)}return;default:if(Du(e)){for(var jt in n)z=n[jt],n.hasOwnProperty(jt)&&z!==void 0&&!l.hasOwnProperty(jt)&&bo(t,e,jt,void 0,l,z);for(U in l)z=l[U],w=n[U],!l.hasOwnProperty(U)||z===w||z===void 0&&w===void 0||bo(t,e,U,z,l,w);return}}for(var M in n)z=n[M],n.hasOwnProperty(M)&&z!=null&&!l.hasOwnProperty(M)&&Et(t,e,M,null,l,z);for(Y in l)z=l[Y],w=n[Y],!l.hasOwnProperty(Y)||z===w||z==null&&w==null||Et(t,e,Y,z,l,w)}function Vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Py(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],c=i.transferSize,f=i.initiatorType,v=i.duration;if(c&&v&&Vh(f)){for(f=0,v=i.responseEnd,l+=1;l<n.length;l++){var T=n[l],N=T.startTime;if(N>v)break;var U=T.transferSize,Y=T.initiatorType;U&&Vh(Y)&&(T=T.responseEnd,f+=U*(T<v?1:(v-N)/(T-N)))}if(--l,e+=8*(c+f)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var So=null,_o=null;function Gi(t){return t.nodeType===9?t:t.ownerDocument}function Kh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function To(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ro=null;function $y(){var t=window.event;return t&&t.type==="popstate"?t===Ro?!1:(Ro=t,!0):(Ro=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,Iy=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(t){return Jh.resolve(null).then(t).catch(tv)}:kh;function tv(t){setTimeout(function(){throw t})}function Vn(t){return t==="head"}function Fh(t,e){var n=e,l=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(i),yl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")hs(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,hs(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[Nl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&hs(t.ownerDocument.body);n=i}while(n);yl(e)}function Ph(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Eo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Eo(n),Au(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function ev(t,e,n,l){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Nl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function nv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function $h(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function jo(t){return t.data==="$?"||t.data==="$~"}function Mo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function av(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Le(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Co=null;function Wh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ih(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function tm(t,e,n){switch(e=Gi(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function hs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Au(t)}var Ue=new Map,em=new Set;function Xi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sn=K.d;K.d={f:lv,r:sv,D:iv,C:uv,L:cv,m:ov,X:fv,S:rv,M:dv};function lv(){var t=Sn.f(),e=wi();return t||e}function sv(t){var e=La(t);e!==null&&e.tag===5&&e.type==="form"?gd(e):Sn.r(t)}var hl=typeof document>"u"?null:document;function nm(t,e,n){var l=hl;if(l&&typeof e=="string"&&e){var i=Ce(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),em.has(i)||(em.add(i),t={rel:t,crossOrigin:n,href:e},l.querySelector(i)===null&&(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function iv(t){Sn.D(t),nm("dns-prefetch",t,null)}function uv(t,e){Sn.C(t,e),nm("preconnect",t,e)}function cv(t,e,n){Sn.L(t,e,n);var l=hl;if(l&&t&&e){var i='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ce(n.imageSizes)+'"]')):i+='[href="'+Ce(t)+'"]';var c=i;switch(e){case"style":c=ml(t);break;case"script":c=pl(t)}Ue.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ue.set(c,t),l.querySelector(i)!==null||e==="style"&&l.querySelector(ms(c))||e==="script"&&l.querySelector(ps(c))||(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function ov(t,e){Sn.m(t,e);var n=hl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ce(l)+'"][href="'+Ce(t)+'"]',c=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pl(t)}if(!Ue.has(c)&&(t=g({rel:"modulepreload",href:t},e),Ue.set(c,t),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ps(c)))return}l=n.createElement("link"),te(l,"link",t),kt(l),n.head.appendChild(l)}}}function rv(t,e,n){Sn.S(t,e,n);var l=hl;if(l&&t){var i=Ua(l).hoistableStyles,c=ml(t);e=e||"default";var f=i.get(c);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(ms(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ue.get(c))&&Ao(t,n);var T=f=l.createElement("link");kt(T),te(T,"link",t),T._p=new Promise(function(N,U){T.onload=N,T.onerror=U}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Vi(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:v},i.set(c,f)}}}function fv(t,e){Sn.X(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,i=pl(t),c=l.get(i);c||(c=n.querySelector(ps(i)),c||(t=g({src:t,async:!0},e),(e=Ue.get(i))&&Oo(t,e),c=n.createElement("script"),kt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function dv(t,e){Sn.M(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,i=pl(t),c=l.get(i);c||(c=n.querySelector(ps(i)),c||(t=g({src:t,async:!0,type:"module"},e),(e=Ue.get(i))&&Oo(t,e),c=n.createElement("script"),kt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function am(t,e,n,l){var i=(i=rt.current)?Xi(i):null;if(!i)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ml(n.href),n=Ua(i).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ml(n.href);var c=Ua(i).hoistableStyles,f=c.get(t);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=i.querySelector(ms(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Ue.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ue.set(t,n),c||hv(i,t,n,f.state))),e&&l===null)throw Error(o(528,""));return f}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=pl(n),n=Ua(i).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ml(t){return'href="'+Ce(t)+'"'}function ms(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function hv(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),te(e,"link",n),kt(e),t.head.appendChild(e))}function pl(t){return'[src="'+Ce(t)+'"]'}function ps(t){return"script[async]"+t}function sm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var i=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),te(l,"style",i),Vi(l,n.precedence,t),e.instance=l;case"stylesheet":i=ml(n.href);var c=t.querySelector(ms(i));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;l=lm(n),(i=Ue.get(i))&&Ao(l,i),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(v,T){f.onload=v,f.onerror=T}),te(c,"link",l),e.state.loading|=4,Vi(c,n.precedence,t),e.instance=c;case"script":return c=pl(n.src),(i=t.querySelector(ps(c)))?(e.instance=i,kt(i),i):(l=n,(i=Ue.get(c))&&(l=g({},n),Oo(l,i)),t=t.ownerDocument||t,i=t.createElement("script"),kt(i),te(i,"link",l),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Vi(l,n.precedence,t));return e.instance}function Vi(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,c=i,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===e)c=v;else if(c!==i)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ao(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ki=null;function im(t,e,n){if(Ki===null){var l=new Map,i=Ki=new Map;i.set(n,l)}else i=Ki,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var c=n[i];if(!(c[Nl]||c[Pt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var v=l.get(f);v?v.push(c):l.set(f,[c])}}return l}function um(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function mv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function cm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function pv(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=ml(l.href),c=e.querySelector(ms(i));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Zi.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,l=lm(l),(i=Ue.get(i))&&Ao(l,i),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(v,T){f.onload=v,f.onerror=T}),te(c,"link",l),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Zi.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var No=0;function yv(t,e){return t.stylesheets&&t.count===0&&Ji(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Ji(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&No===0&&(No=62500*Py());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ji(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>No?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Zi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ji(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ki=null;function Ji(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ki=new Map,e.forEach(vv,t),ki=null,Zi.call(t))}function vv(t,e){if(!(e.state.loading&4)){var n=ki.get(t);if(n)var l=n.get(null);else{n=new Map,ki.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var f=i[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}i=e.instance,f=i.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,i),n.set(f,i),this.count++,l=Zi.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),c?c.parentNode.insertBefore(i,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var ys={$$typeof:V,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function gv(t,e,n,l,i,c,f,v,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.hiddenUpdates=Eu(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function om(t,e,n,l,i,c,f,v,T,N,U,Y){return t=new gv(t,e,n,f,T,N,U,Y,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=oc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:e},hc(c),t}function rm(t){return t?(t=Za,t):Za}function fm(t,e,n,l,i,c){i=rm(i),l.context===null?l.context=i:l.pendingContext=i,l=Dn(e),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=wn(t,l,e),n!==null&&(de(n,t,e),Jl(n,t,e))}function dm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zo(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function hm(t){if(t.tag===13||t.tag===31){var e=oa(t,67108864);e!==null&&de(e,t,67108864),zo(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Te();e=ju(e);var n=oa(t,e);n!==null&&de(n,t,e),zo(t,e)}}var Fi=!0;function xv(t,e,n,l){var i=L.T;L.T=null;var c=K.p;try{K.p=2,Do(t,e,n,l)}finally{K.p=c,L.T=i}}function bv(t,e,n,l){var i=L.T;L.T=null;var c=K.p;try{K.p=8,Do(t,e,n,l)}finally{K.p=c,L.T=i}}function Do(t,e,n,l){if(Fi){var i=wo(l);if(i===null)xo(t,e,l,Pi,n),ym(t,l);else if(_v(i,t,e,n,l))l.stopPropagation();else if(ym(t,l),e&4&&-1<Sv.indexOf(t)){for(;i!==null;){var c=La(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=la(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var T=1<<31-ye(f);v.entanglements[1]|=T,f&=~T}Je(c),(bt&6)===0&&(zi=ne()+500,rs(0))}}break;case 31:case 13:v=oa(c,2),v!==null&&de(v,c,2),wi(),zo(c,2)}if(c=wo(l),c===null&&xo(t,e,l,Pi,n),c===i)break;i=c}i!==null&&l.stopPropagation()}else xo(t,e,l,null,n)}}function wo(t){return t=Lu(t),Lo(t)}var Pi=null;function Lo(t){if(Pi=null,t=wa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=x(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Pi=t,null}function pm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(At()){case Ft:return 2;case Ve:return 8;case za:case u0:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Uo=!1,Kn=null,Zn=null,kn=null,vs=new Map,gs=new Map,Jn=[],Sv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ym(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":vs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gs.delete(e.pointerId)}}function xs(t,e,n,l,i,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[i]},e!==null&&(e=La(e),e!==null&&hm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function _v(t,e,n,l,i){switch(e){case"focusin":return Kn=xs(Kn,t,e,n,l,i),!0;case"dragenter":return Zn=xs(Zn,t,e,n,l,i),!0;case"mouseover":return kn=xs(kn,t,e,n,l,i),!0;case"pointerover":var c=i.pointerId;return vs.set(c,xs(vs.get(c)||null,t,e,n,l,i)),!0;case"gotpointercapture":return c=i.pointerId,gs.set(c,xs(gs.get(c)||null,t,e,n,l,i)),!0}return!1}function vm(t){var e=wa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===31){if(e=x(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function $i(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);wu=l,n.target.dispatchEvent(l),wu=null}else return e=La(n),e!==null&&hm(e),t.blockedOn=n,!1;e.shift()}return!0}function gm(t,e,n){$i(t)&&n.delete(e)}function Tv(){Uo=!1,Kn!==null&&$i(Kn)&&(Kn=null),Zn!==null&&$i(Zn)&&(Zn=null),kn!==null&&$i(kn)&&(kn=null),vs.forEach(gm),gs.forEach(gm)}function Wi(t,e){t.blockedOn===e&&(t.blockedOn=null,Uo||(Uo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Tv)))}var Ii=null;function xm(t){Ii!==t&&(Ii=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ii===t&&(Ii=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],i=t[e+2];if(typeof l!="function"){if(Lo(l||n)===null)continue;break}var c=La(n);c!==null&&(t.splice(e,3),e-=3,Dc(c,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function yl(t){function e(T){return Wi(T,t)}Kn!==null&&Wi(Kn,t),Zn!==null&&Wi(Zn,t),kn!==null&&Wi(kn,t),vs.forEach(e),gs.forEach(e);for(var n=0;n<Jn.length;n++){var l=Jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&Jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],c=n[l+1],f=i[ie]||null;if(typeof c=="function")f||xm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(i=c,f=c[ie]||null)v=f.formAction;else if(Lo(i)!==null)continue}else v=f.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),xm(n)}}}function bm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function Bo(t){this._internalRoot=t}tu.prototype.render=Bo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=Te();fm(n,l,t,e,null,null)},tu.prototype.unmount=Bo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fm(t.current,2,null,t,null,null),wi(),e[Da]=null}};function tu(t){this._internalRoot=t}tu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ar();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Jn.length&&e!==0&&e<Jn[n].priority;n++);Jn.splice(n,0,t),n===0&&vm(t)}};var Sm=s.version;if(Sm!=="19.2.6")throw Error(o(527,Sm,"19.2.6"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Rv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{Cl=eu.inject(Rv),pe=eu}catch{}}return Es.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,l="",i=Cd,c=Ad,f=Od;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=om(t,1,!1,null,null,n,l,null,i,c,f,bm),t[Da]=e.current,go(t),new Bo(e)},Es.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var l=!1,i="",c=Cd,f=Ad,v=Od,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=om(t,1,!0,e,n??null,l,i,T,c,f,v,bm),e.context=rm(null),n=e.current,l=Te(),l=ju(l),i=Dn(l),i.callback=null,wn(n,i,l),n=l,e.current.lanes=n,Ol(e,n),Je(e),t[Da]=e.current,go(t),new tu(e)},Es.version="19.2.6",Es}var mp;function hb(){if(mp)return Io.exports;mp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Io.exports=db(),Io.exports}var mb=hb();const Oa=Zx()({component:yb}),pb=[{to:"/",label:"Overview",exact:!0},{to:"/tasks",label:"Tasks",exact:!1},{to:"/agents",label:"Agents",exact:!1},{to:"/tools",label:"Tools",exact:!1},{to:"/files",label:"Files",exact:!1}];function yb(){return h.jsxs("div",{className:"flex h-screen bg-black text-[#fafafa] overflow-hidden",children:[h.jsxs("nav",{className:"w-48 border-r border-[#1f1f1f] flex flex-col shrink-0",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-[#1f1f1f]",children:[h.jsx("span",{className:"font-mono font-bold text-sm text-green-400",children:"ahk"}),h.jsx("span",{className:"font-mono text-sm text-neutral-600 ml-1.5",children:"dashboard"})]}),h.jsx("div",{className:"flex-1 py-2 flex flex-col gap-0.5 px-2 overflow-y-auto",children:pb.map(({to:a,label:s,exact:u})=>h.jsx(na,{to:a,activeOptions:{exact:u},className:"font-mono text-sm px-3 py-1.5 rounded text-neutral-500 hover:text-[#fafafa] hover:bg-[#0a0a0a] transition-colors",activeProps:{className:"font-mono text-sm px-3 py-1.5 rounded text-[#fafafa] bg-[#0a0a0a]"},children:s},a))}),h.jsx("div",{className:"px-4 py-3 border-t border-[#1f1f1f]",children:h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 inline-block"}),h.jsx("span",{className:"font-mono text-[10px] text-neutral-600",children:"live"})]})})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(n0,{})})]})}const vb={lead:"bg-violet-950 text-violet-400",explorer:"bg-sky-950 text-sky-300",builder:"bg-green-950 text-green-400",reviewer:"bg-amber-950 text-amber-400"};function gb(a){return a.startsWith("custom:")?"bg-neutral-900 text-neutral-300":vb[a]??"bg-neutral-900 text-neutral-400"}function Ge({agent:a,size:s="sm"}){const u=s==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${gb(a)} ${u} font-mono px-2 py-0.5 rounded-sm`,children:a})}function gu({cols:a,message:s="No data"}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-neutral-600",children:s})})}function a0(){return h.jsx("div",{className:"p-6 font-mono text-xs text-neutral-600",children:"Loading…"})}function xu({cols:a}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-neutral-600",children:"Loading…"})})}function Rl({title:a,subtitle:s,right:u}){return h.jsxs("div",{className:"flex items-start justify-between px-6 pt-6 pb-4 border-b border-[#1f1f1f]",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-mono font-semibold text-base text-[#fafafa]",children:a}),s&&h.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:s})]}),u!=null&&u!=null&&h.jsx("div",{children:u})]})}const pp="/api";async function Fe(a,s){const u=s?`${pp}${a}?${new URLSearchParams(s)}`:`${pp}${a}`,o=await fetch(u);if(!o.ok)throw new Error(`API ${a} → ${o.status}`);return o.json()}const Ee={stats:()=>Fe("/stats"),tasks:()=>Fe("/tasks"),allTasks:(a=!1)=>Fe("/tasks",{includeArchived:String(a)}),task:a=>Fe(`/tasks/${a}`),topTools:(a=20)=>Fe("/tools/top",{limit:String(a)}),recentTools:(a=50)=>Fe("/tools/recent",{limit:String(a)}),topFiles:(a=20)=>Fe("/files/top",{limit:String(a)}),recentFiles:(a=50)=>Fe("/files/recent",{limit:String(a)}),agentStats:()=>Fe("/agents/stats"),timeline:(a=50)=>Fe("/timeline",{limit:String(a)}),updateTask:(a,s)=>fetch(`/api/tasks/${a}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(u=>u.json()),archiveTask:a=>fetch(`/api/tasks/${a}/archive`,{method:"PATCH"}).then(s=>s.json()),unarchiveTask:a=>fetch(`/api/tasks/${a}/unarchive`,{method:"PATCH"}).then(s=>s.json())},Ie={stats:["stats"],tasks:["tasks"],allTasks:a=>["tasks",{includeArchived:a}],task:a=>["tasks",a],topTools:["tools","top"],recentTools:["tools","recent"],topFiles:["files","top"],recentFiles:["files","recent"],agentStats:["agents","stats"],timeline:["timeline"]};function $e(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function l0(a,s){if(!s)return"—";const u=new Date(s).getTime()-new Date(a).getTime(),o=Math.floor(u/1e3);if(o<60)return`${o}s`;const r=Math.floor(o/60);return r<60?`${r}m ${o%60}s`:`${Math.floor(r/60)}h ${r%60}m`}const xb=Tl("/tools")({component:bb});function bb(){const a=We({queryKey:Ie.topTools,queryFn:()=>Ee.topTools(25)}),s=We({queryKey:Ie.recentTools,queryFn:()=>Ee.recentTools(50)}),u=a.data?.[0]?.uses??1;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tools",subtitle:"Tool usage across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-4",children:"Top Tools"}),a.isLoading&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"Loading…"}),h.jsxs("div",{className:"space-y-1.5",children:[(a.data??[]).map(({tool_name:o,uses:r})=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-48 font-mono text-xs text-neutral-400 text-right shrink-0 truncate",children:o}),h.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-neutral-900 rounded-sm h-5 overflow-hidden",children:h.jsx("div",{className:"bg-violet-900 h-full transition-all flex items-center px-2",style:{width:`${r/u*100}%`}})}),h.jsx("span",{className:"font-mono text-xs text-neutral-500 w-8 text-right shrink-0",children:r})]})]},o)),!a.isLoading&&a.data?.length===0&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"No tool calls recorded yet."})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Recent Calls"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Tool","Agent","Task","Args","Result","Called"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[s.isLoading&&h.jsx(xu,{cols:6}),(s.data??[]).map(o=>h.jsx(Sb,{tool:o},o.id)),!s.isLoading&&s.data?.length===0&&h.jsx(gu,{cols:6,message:"No recent calls"})]})]})]})]})]})}function Sb({tool:a}){let s="—";if(a.args_json)try{const u=JSON.parse(a.args_json);s=JSON.stringify(u).slice(0,60)+(JSON.stringify(u).length>60?"…":"")}catch{s=a.args_json.slice(0,60)}return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-violet-400",children:a.tool_name}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-500 max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-600 max-w-[180px] truncate",children:s}),h.jsx("td",{className:"px-4 py-2 text-xs text-neutral-500 max-w-[180px] truncate",children:a.result_summary??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-neutral-700",children:$e(a.called_at)})]})}const _b={read:"text-neutral-400",created:"text-green-400",modified:"text-amber-400",deleted:"text-red-400"};function s0({op:a}){const s=_b[a]??"text-neutral-500";return h.jsx("span",{className:`${s} font-mono text-xs`,children:a})}const Tb=Tl("/files")({component:Rb});function Rb(){const a=We({queryKey:Ie.topFiles,queryFn:()=>Ee.topFiles(25)}),s=We({queryKey:Ie.recentFiles,queryFn:()=>Ee.recentFiles(60)});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Files",subtitle:"File operations across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Most Touched"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["File Path","Total","Read","Created","Modified","Deleted"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsxs("tbody",{children:[a.isLoading&&h.jsx(xu,{cols:6}),(a.data??[]).map(u=>h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-300 max-w-xs truncate",children:u.file_path}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-400",children:u.total}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-600",children:u.read||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-green-400",children:u.created||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-amber-400",children:u.modified||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-red-400",children:u.deleted||"—"})]},u.file_path)),!a.isLoading&&a.data?.length===0&&h.jsx(gu,{cols:6,message:"No file activity yet"})]})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Recent Operations"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Op","File Path","Agent","Task","Notes","When"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsxs("tbody",{children:[s.isLoading&&h.jsx(xu,{cols:6}),(s.data??[]).map(u=>h.jsx(Eb,{file:u},u.id)),!s.isLoading&&s.data?.length===0&&h.jsx(gu,{cols:6,message:"No recent operations"})]})]})]})]})]})}function Eb({file:a}){return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2",children:h.jsx(s0,{op:a.operation})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-300 max-w-[220px] truncate",children:a.file_path}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-500 max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 text-xs text-neutral-600 max-w-[160px] truncate",children:a.notes??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-neutral-700",children:$e(a.called_at)})]})}const jb=Tl("/agents")({component:Mb});function Mb(){const{data:a=[],isLoading:s}=We({queryKey:Ie.agentStats,queryFn:Ee.agentStats});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Agents",subtitle:"Activity breakdown per agent role"}),h.jsxs("div",{className:"p-6 space-y-4",children:[s&&h.jsx(a0,{}),h.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.map(u=>h.jsx(Cb,{stat:u},u.agent))}),a.length===0&&!s&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"No agent activity yet."}),a.length>0&&h.jsxs("div",{className:"mt-6",children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Summary Table"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Agent","Total Actions","Completed","Blocked","Tasks","Files"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsx("tbody",{children:a.map(u=>h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ge,{agent:u.agent})}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.actions_total}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-green-400",children:u.actions_done}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-red-400",children:u.actions_blocked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.tasks_worked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.files_touched})]},u.agent))})]})]})]})]})}function Cb({stat:a}){const s=a.actions_total>0?Math.round(a.actions_done/a.actions_total*100):0;return h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("span",{className:"font-mono text-xs text-neutral-600",children:[s,"% done"]})]}),h.jsx("div",{className:"w-full bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-700 h-1 rounded-full",style:{width:`${s}%`}})}),h.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[h.jsx(gl,{label:"Actions",value:a.actions_total}),h.jsx(gl,{label:"Completed",value:a.actions_done,color:"text-green-400"}),h.jsx(gl,{label:"Tasks",value:a.tasks_worked}),h.jsx(gl,{label:"Blocked",value:a.actions_blocked,color:a.actions_blocked>0?"text-red-400":void 0}),h.jsx(gl,{label:"Files touched",value:a.files_touched}),h.jsx(gl,{label:"In progress",value:a.actions_total-a.actions_done-a.actions_blocked,color:"text-amber-400"})]})]})}function gl({label:a,value:s,color:u}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-xs text-neutral-600",children:a}),h.jsx("span",{className:`font-mono text-xs ${u??"text-neutral-300"}`,children:s})]})}const Ab={pending:"bg-neutral-900 text-neutral-400",in_progress:"bg-amber-950 text-amber-400",done:"bg-green-950 text-green-400",blocked:"bg-red-950 text-red-400"},Ob={in_progress:"in progress"};function Tu({status:a,size:s="sm"}){const u=Ab[a]??"bg-neutral-900 text-neutral-500",o=Ob[a]??a,r=s==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${u} ${r} font-mono px-2 py-0.5 rounded-sm`,children:o})}const Nb=Tl("/")({component:zb});function zb(){const a=We({queryKey:Ie.stats,queryFn:Ee.stats}),s=We({queryKey:Ie.tasks,queryFn:Ee.tasks}),u=We({queryKey:Ie.timeline,queryFn:()=>Ee.timeline(15)}),o=s.data?.filter(d=>d.status==="in_progress")??[],r=a.data;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Overview",subtitle:"Harness state at a glance"}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Pending",key:"pending",color:"text-neutral-400"},{label:"In Progress",key:"in_progress",color:"text-amber-400"},{label:"Done",key:"done",color:"text-green-400"},{label:"Blocked",key:"blocked",color:"text-red-400"}].map(({label:d,key:m,color:x})=>h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-4",children:[h.jsx("div",{className:`font-mono text-2xl font-semibold ${x}`,children:r?r.byStatus[m]??0:"—"}),h.jsx("div",{className:"text-xs text-neutral-500 mt-1",children:d})]},m))}),h.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Total Actions",value:r?.totalActions},{label:"Files Touched",value:r?.totalFiles},{label:"Unique Tools",value:r?.uniqueTools}].map(({label:d,value:m})=>h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md px-4 py-3 flex items-center gap-3",children:[h.jsx("span",{className:"font-mono text-lg text-[#fafafa]",children:m??"—"}),h.jsx("span",{className:"text-xs text-neutral-500",children:d})]},d))}),h.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Active Tasks"}),o.length===0?h.jsx("p",{className:"text-xs text-neutral-600 font-mono",children:"No tasks in progress"}):h.jsx("div",{className:"space-y-2",children:o.map(d=>h.jsxs(na,{to:"/tasks/$id",params:{id:String(d.id)},className:"block bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-3 hover:border-neutral-700 transition-colors",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"font-mono text-sm text-[#fafafa] truncate",children:d.title}),h.jsx("div",{className:"font-mono text-xs text-neutral-600 mt-0.5",children:d.slug})]}),d.assigned_to&&h.jsx(Ge,{agent:d.assigned_to,size:"xs"})]}),d.acceptance_total>0&&h.jsxs("div",{className:"mt-2",children:[h.jsxs("div",{className:"flex justify-between text-[10px] font-mono text-neutral-600 mb-1",children:[h.jsx("span",{children:"acceptance"}),h.jsxs("span",{children:[d.acceptance_met,"/",d.acceptance_total]})]}),h.jsx("div",{className:"w-full bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full transition-all",style:{width:`${d.acceptance_met/d.acceptance_total*100}%`}})})]})]},d.id))})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Recent Activity"}),h.jsxs("div",{className:"space-y-1",children:[(u.data??[]).map(d=>h.jsx(Db,{entry:d},d.id)),u.data?.length===0&&h.jsx("p",{className:"text-xs text-neutral-600 font-mono",children:"No activity yet"})]})]})]})]})]})}function Db({entry:a}){return h.jsxs(na,{to:"/tasks/$id",params:{id:String(a.task_id)},className:"flex items-start gap-2 px-2 py-1.5 rounded hover:bg-[#0a0a0a] transition-colors group",children:[h.jsx(Ge,{agent:a.agent,size:"xs"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"text-xs text-neutral-300 truncate group-hover:text-white transition-colors",children:a.summary??a.task_title}),h.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[h.jsx("span",{className:"font-mono text-[10px] text-neutral-600",children:a.task_slug}),h.jsx(Tu,{status:a.status,size:"xs"})]})]}),h.jsx("span",{className:"font-mono text-[10px] text-neutral-700 shrink-0",children:$e(a.created_at)})]})}const wb=Tl("/tasks/")({component:Hb}),Lb=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In Progress"},{value:"done",label:"Done"},{value:"blocked",label:"Blocked"},{value:"archived",label:"Archived"}],Ub=[{value:"list",label:"List"},{value:"board",label:"Board"}],Bb=[{status:"pending",label:"Pending",color:"text-neutral-400"},{status:"in_progress",label:"In Progress",color:"text-amber-400"},{status:"done",label:"Done",color:"text-green-400"},{status:"blocked",label:"Blocked",color:"text-red-400"}];function yp(a){return a.completed_at??a.started_at??a.created_at}function Hb(){const[a,s]=J.useState("all"),[u,o]=J.useState("list"),[r,d]=J.useState({field:null,dir:"asc"}),{data:m=[],isLoading:x}=We({queryKey:Ie.allTasks(!0),queryFn:()=>Ee.allTasks(!0)}),p=a==="all"?m.filter(g=>!g.archived_at):a==="archived"?m.filter(g=>g.archived_at):m.filter(g=>g.status===a&&!g.archived_at),y=J.useMemo(()=>r.field?[...p].sort((g,S)=>{if(r.field==="status"){const _=g.status.localeCompare(S.status);return r.dir==="asc"?_:-_}if(r.field==="created"){const _=new Date(g.created_at).getTime()-new Date(S.created_at).getTime();return r.dir==="asc"?_:-_}return 0}):p,[p,r]),b=J.useMemo(()=>{const g={pending:[],in_progress:[],done:[],blocked:[]};for(const S of p)g[S.status]&&g[S.status].push(S);for(const S of Object.keys(g))g[S].sort((_,j)=>new Date(yp(j)).getTime()-new Date(yp(_)).getTime());return g},[p]);return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tasks",subtitle:`${p.length} task${p.length!==1?"s":""}`,right:h.jsxs("div",{className:"flex gap-1 items-center",children:[Ub.map(({value:g,label:S})=>h.jsx("button",{onClick:()=>o(g),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${u===g?"bg-[#0a0a0a] text-[#fafafa] border border-[#3a3a3a]":"text-neutral-500 hover:text-neutral-300 border border-transparent"}`,children:S},g)),h.jsx("span",{className:"w-px h-5 bg-[#1f1f1f] mx-1"}),Lb.map(({value:g,label:S})=>h.jsx("button",{onClick:()=>s(g),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${a===g?"bg-[#0a0a0a] text-[#fafafa] border border-[#3a3a3a]":"text-neutral-500 hover:text-neutral-300 border border-transparent"}`,children:S},g))]})}),u==="list"?h.jsx(qb,{tasks:y,sortConfig:r,onSortChange:d,isLoading:x}):h.jsx(Yb,{columns:b})]})}function qb({tasks:a,sortConfig:s,onSortChange:u,isLoading:o}){const r=m=>{s.field===m?u({field:m,dir:s.dir==="asc"?"desc":"asc"}):u({field:m,dir:"asc"})},d=m=>s.field!==m?"":s.dir==="asc"?" ▲":" ▼";return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-[#1f1f1f]",children:[h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"#"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Title"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Slug"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-neutral-400 transition-colors",onClick:()=>r("status"),children:["Status",d("status")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Assigned"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Acceptance"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-neutral-400 transition-colors",onClick:()=>r("created"),children:["Created",d("created")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Archived"})]})}),h.jsxs("tbody",{children:[o&&h.jsx(xu,{cols:8}),a.map(m=>h.jsx(Qb,{task:m},m.id)),!o&&a.length===0&&h.jsx(gu,{cols:8,message:"No tasks"})]})]})})}function Qb({task:a}){return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors group",children:[h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-600",children:a.id}),h.jsxs("td",{className:"px-4 py-3",children:[h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[#fafafa] hover:text-green-400 transition-colors",children:a.title}),a.description&&h.jsx("div",{className:"text-xs text-neutral-600 mt-0.5 truncate max-w-xs",children:a.description})]}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-500",children:a.slug}),h.jsx("td",{className:"px-4 py-3",children:h.jsx(Tu,{status:a.status})}),h.jsx("td",{className:"px-4 py-3",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3",children:a.acceptance_total>0?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-16 bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-neutral-600",children:[a.acceptance_met,"/",a.acceptance_total]})]}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-600",children:$e(a.created_at)}),h.jsx("td",{className:"px-4 py-3",children:a.archived_at?h.jsx("span",{className:"text-[10px] font-mono text-yellow-600/80 bg-yellow-500/5 px-2 py-0.5 rounded",children:"archived"}):h.jsx("span",{className:"text-neutral-800 text-xs",children:"—"})})]})}function Yb({columns:a}){return h.jsx("div",{className:"overflow-x-auto px-6 pb-6",children:h.jsx("div",{className:"flex gap-4 min-h-[calc(100vh-12rem)]",children:Bb.map(({status:s,label:u,color:o})=>{const r=a[s]??[];return h.jsxs("div",{className:"w-72 shrink-0 flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-2 px-1 py-3 border-b border-[#1f1f1f] mb-3",children:[h.jsx("h3",{className:`font-mono text-sm font-medium ${o}`,children:u}),h.jsxs("span",{className:"font-mono text-xs text-neutral-600",children:["(",r.length,")"]})]}),h.jsx("div",{className:"flex-1 overflow-y-auto max-h-[calc(100vh-16rem)] space-y-2 pr-1",children:r.length>0?r.map(d=>h.jsx(Gb,{task:d},d.id)):h.jsx("div",{className:"text-xs font-mono text-neutral-700 text-center py-8",children:"No tasks"})})]},s)})})})}function Gb({task:a}){return h.jsxs("div",{className:"border border-[#1f1f1f] rounded bg-black p-3 hover:bg-[#0a0a0a] transition-colors space-y-2",children:[h.jsxs("div",{className:"font-mono text-[10px] text-neutral-600",children:["#",a.id]}),h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[#fafafa] hover:text-green-400 transition-colors block",children:a.title}),h.jsx("div",{className:"flex items-center gap-2",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),a.acceptance_total>0&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-neutral-600",children:[a.acceptance_met,"/",a.acceptance_total]})]}),h.jsx("div",{className:"font-mono text-[10px] text-neutral-600",children:$e(a.created_at)})]})}function Xb({message:a="Something went wrong",backTo:s,backLabel:u="← Back"}){return h.jsxs("div",{className:"p-6",children:[s&&h.jsx(na,{to:s,className:"font-mono text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:u}),h.jsx("p",{className:"font-mono text-xs text-red-400 mt-4",children:a})]})}function Vb({action:a}){const[s,u]=J.useState(!1),o=a.sections.length>0,r=l0(a.created_at,a.completed_at);return h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md",children:[h.jsxs("button",{className:"w-full flex items-start gap-3 p-3 text-left hover:bg-[#0f0f0f] transition-colors rounded-md",onClick:()=>o&&u(!s),children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Tu,{status:a.status,size:"xs"}),h.jsx("span",{className:"font-mono text-xs text-neutral-600",children:r}),a.tools.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-neutral-700",children:[a.tools.length," tool",a.tools.length!==1?"s":""]}),a.files.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-neutral-700",children:[a.files.length," file",a.files.length!==1?"s":""]})]}),a.summary&&h.jsx("div",{className:"text-xs text-neutral-400 mt-1",children:a.summary})]}),h.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[h.jsx("span",{className:"font-mono text-[10px] text-neutral-700",children:$e(a.created_at)}),o&&h.jsx("span",{className:"text-neutral-600 text-xs",children:s?"▲":"▼"})]})]}),s&&o&&h.jsx("div",{className:"border-t border-[#1f1f1f] divide-y divide-[#1f1f1f]",children:a.sections.map(d=>h.jsx(Kb,{section:d},d.id))})]})}function Kb({section:a}){return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] text-neutral-600 uppercase tracking-wider mb-1",children:a.section_type.replace(/_/g," ")}),h.jsx("pre",{className:"text-xs text-neutral-400 whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]})}function uu({children:a}){return h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider",children:a})}function js({label:a,value:s}){return h.jsxs("div",{children:[h.jsx("div",{className:"text-neutral-600 text-[10px]",children:a}),h.jsx("div",{className:"text-neutral-300",children:s})]})}const i0=Tl("/tasks/$id")({component:Zb});function Zb(){const{id:a}=i0.useParams(),{data:s,isLoading:u,isError:o}=We({queryKey:Ie.task(Number(a)),queryFn:()=>Ee.task(Number(a))});if(u)return h.jsx(a0,{});if(o||!s)return h.jsx(Xb,{message:"Task not found",backTo:"/tasks",backLabel:"← Back to tasks"});const[r,d]=J.useState(!1),[m,x]=J.useState(s.title),[p,y]=J.useState(s.description??""),[b,g]=J.useState(s.acceptance.map(A=>A.criterion)),S=()=>g([...b,""]),_=async()=>{await Ee.updateTask(Number(a),{title:m,description:p||null,acceptance:b.filter(A=>A.trim()!=="")}),d(!1),window.location.reload()},j=s.acceptance.filter(A=>A.met).length,C=async()=>{await Ee.archiveTask(Number(a)),window.location.reload()},D=async()=>{await Ee.unarchiveTask(Number(a)),window.location.reload()};return h.jsxs("div",{children:[h.jsx(Rl,{title:s.title,subtitle:s.slug,right:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Tu,{status:s.status}),s.assigned_to&&h.jsx(Ge,{agent:s.assigned_to}),s.archived_at?h.jsx("button",{onClick:D,className:"text-xs font-mono text-yellow-500 hover:text-yellow-400 border border-yellow-900/50 px-3 py-1 rounded",children:"Unarchive"}):h.jsx("button",{onClick:C,className:"text-xs font-mono text-neutral-500 hover:text-red-400 border border-[#1f1f1f] px-3 py-1 rounded",children:"Archive"})]})}),h.jsx("div",{className:"px-6",children:h.jsx("button",{onClick:()=>d(!0),className:"text-xs font-mono text-neutral-500 hover:text-[#fafafa] border border-[#1f1f1f] px-3 py-1.5 rounded transition-colors",children:"Edit"})}),r&&h.jsx("div",{className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center",onClick:()=>d(!1),children:h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-lg p-6 w-full max-w-lg mx-4 max-h-[80vh] overflow-y-auto",onClick:A=>A.stopPropagation(),children:[h.jsx("h3",{className:"font-mono text-sm text-[#fafafa] mb-4",children:"Edit Task"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-neutral-500 font-mono block mb-1",children:"Title"}),h.jsx("input",{value:m,onChange:A=>x(A.target.value),className:"w-full bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-neutral-500 font-mono block mb-1",children:"Description"}),h.jsx("textarea",{value:p??"",onChange:A=>y(A.target.value),className:"w-full bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600 resize-none h-20"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("span",{className:"text-xs text-neutral-500 font-mono",children:"Acceptance Criteria"}),h.jsx("button",{onClick:S,className:"text-xs font-mono text-green-500 hover:text-green-400",children:"+ Add"})]}),h.jsx("div",{className:"space-y-2",children:b.map((A,B)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("span",{className:"text-xs text-neutral-600 font-mono mt-2 shrink-0",children:["#",B+1]}),h.jsx("input",{value:A,onChange:V=>{const G=[...b];G[B]=V.target.value,g(G)},className:"flex-1 bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600"}),h.jsx("button",{onClick:()=>g(b.filter((V,G)=>G!==B)),className:"text-xs text-red-500 hover:text-red-400 mt-2",children:"✕"})]},B))})]})]}),h.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[h.jsx("button",{onClick:()=>d(!1),className:"text-xs font-mono text-neutral-500 hover:text-neutral-300 px-3 py-1.5",children:"Cancel"}),h.jsx("button",{onClick:_,className:"text-xs font-mono bg-[#fafafa] text-black px-3 py-1.5 rounded hover:bg-white",children:"Save"})]})]})}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"flex gap-6 text-xs font-mono",children:[h.jsx(js,{label:"Created",value:$e(s.created_at)}),h.jsx("span",{className:"text-neutral-700",children:"→"}),h.jsx(js,{label:"Started",value:s.started_at?$e(s.started_at):"—"}),h.jsx("span",{className:"text-neutral-700",children:"→"}),h.jsx(js,{label:"Completed",value:s.completed_at?$e(s.completed_at):"—"}),s.started_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-neutral-700",children:"·"}),h.jsx(js,{label:"Duration",value:l0(s.started_at,s.completed_at)})]}),s.archived_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-neutral-700",children:"·"}),h.jsx(js,{label:"Archived",value:$e(s.archived_at)})]})]}),h.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.acceptance.length>0&&h.jsxs("div",{className:"col-span-1",children:[h.jsxs(uu,{children:["Acceptance Criteria"," ",h.jsxs("span",{className:"text-neutral-600",children:["(",j,"/",s.acceptance.length,")"]})]}),h.jsx("div",{className:"space-y-1.5 mt-2",children:s.acceptance.map(A=>h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx("span",{className:`mt-0.5 text-xs font-mono shrink-0 ${A.met?"text-green-400":"text-neutral-700"}`,children:A.met?"✓":"○"}),h.jsx("span",{className:`text-xs ${A.met?"text-neutral-300":"text-neutral-500"}`,children:A.criterion})]},A.id))})]}),s.description&&h.jsxs("div",{className:"col-span-2",children:[h.jsx(uu,{children:"Description"}),h.jsx("p",{className:"text-sm text-neutral-400 mt-2 leading-relaxed",children:s.description})]})]}),s.actions.length>0&&h.jsxs("div",{children:[h.jsxs(uu,{children:["Actions Timeline (",s.actions.length,")"]}),h.jsx("div",{className:"mt-3 space-y-2",children:s.actions.map(A=>h.jsx(Vb,{action:A},A.id))})]}),s.actions.some(A=>A.files.length>0)&&h.jsxs("div",{children:[h.jsx(uu,{children:"Files Touched"}),h.jsxs("table",{className:"w-full mt-2 text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Operation","File Path","Agent","Notes"].map(A=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-3 py-2",children:A},A))})}),h.jsx("tbody",{children:s.actions.flatMap(A=>A.files.map(B=>h.jsxs("tr",{className:"border-b border-[#1f1f1f]",children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx(s0,{op:B.operation})}),h.jsx("td",{className:"px-3 py-2 font-mono text-xs text-neutral-300",children:B.file_path}),h.jsx("td",{className:"px-3 py-2",children:h.jsx(Ge,{agent:A.agent,size:"xs"})}),h.jsx("td",{className:"px-3 py-2 text-xs text-neutral-600",children:B.notes??"—"})]},B.id)))})]})]})]})]})}const kb=xb.update({id:"/tools",path:"/tools",getParentRoute:()=>Oa}),Jb=Tb.update({id:"/files",path:"/files",getParentRoute:()=>Oa}),Fb=jb.update({id:"/agents",path:"/agents",getParentRoute:()=>Oa}),Pb=Nb.update({id:"/",path:"/",getParentRoute:()=>Oa}),$b=wb.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Oa}),Wb=i0.update({id:"/tasks/$id",path:"/tasks/$id",getParentRoute:()=>Oa}),Ib={IndexRoute:Pb,AgentsRoute:Fb,FilesRoute:Jb,ToolsRoute:kb,TasksIdRoute:Wb,TasksIndexRoute:$b},tS=Oa._addFileChildren(Ib)._addFileTypes(),Tr=new tg({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0,retry:1}}}),eS=ib({routeTree:tS,context:{queryClient:Tr}}),nS=new WebSocket(`ws://${location.host}/ws`);nS.onmessage=a=>{try{JSON.parse(a.data).type==="update"&&Tr.invalidateQueries()}catch{}};const aS=document.getElementById("root");mb.createRoot(aS).render(h.jsx(J.StrictMode,{children:h.jsx(ag,{client:Tr,children:h.jsx(ob,{router:eS})})}));
9
+ `).replace(Jy,"")}function Xh(t,e){return e=Gh(e),Gh(t)===e}function Et(t,e,n,l,i,c){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||qa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&qa(t,""+l);break;case"className":Ks(t,"class",l);break;case"tabIndex":Ks(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ks(t,n,l);break;case"style":Gr(t,l,c);break;case"data":if(e!=="object"){Ks(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ks(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",i.name,i,null),Et(t,e,"formEncType",i.formEncType,i,null),Et(t,e,"formMethod",i.formMethod,i,null),Et(t,e,"formTarget",i.formTarget,i,null)):(Et(t,e,"encType",i.encType,i,null),Et(t,e,"method",i.method,i,null),Et(t,e,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ks(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ln);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=ks(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Vs(t,"popover",l);break;case"xlinkActuate":an(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":an(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":an(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":an(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":an(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":an(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":an(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":an(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":an(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=_0.get(n)||n,Vs(t,n,l))}}function bo(t,e,n,l,i,c){switch(n){case"style":Gr(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?qa(t,l):(typeof l=="number"||typeof l=="bigint")&&qa(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),c=t[ie]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,i),typeof l=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,i);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Vs(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,i=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Et(t,e,c,f,n,null)}}i&&Et(t,e,"srcSet",n.srcSet,n,null),l&&Et(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var v=c=f=i=null,T=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var U=n[l];if(U!=null)switch(l){case"name":i=U;break;case"type":f=U;break;case"checked":T=U;break;case"defaultChecked":N=U;break;case"value":c=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:Et(t,e,l,U,n,null)}}Hr(t,c,v,T,N,f,i,!1);return;case"select":dt("invalid",t),l=f=c=null;for(i in n)if(n.hasOwnProperty(i)&&(v=n[i],v!=null))switch(i){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:Et(t,e,i,v,n,null)}e=c,n=f,t.multiple=!!l,e!=null?Ha(t,!!l,e,!1):n!=null&&Ha(t,!!l,n,!0);return;case"textarea":dt("invalid",t),c=i=l=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":i=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Et(t,e,f,v,n,null)}Qr(t,l,i,c);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Et(t,e,T,l,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<fs.length;l++)dt(fs[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Et(t,e,N,l,n,null)}return;default:if(Du(e)){for(U in n)n.hasOwnProperty(U)&&(l=n[U],l!==void 0&&bo(t,e,U,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Et(t,e,v,l,n,null))}function Fy(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,f=null,v=null,T=null,N=null,U=null;for(w in n){var Y=n[w];if(n.hasOwnProperty(w)&&Y!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(w)||Et(t,e,w,null,l,Y)}}for(var z in l){var w=l[z];if(Y=n[z],l.hasOwnProperty(z)&&(w!=null||Y!=null))switch(z){case"type":c=w;break;case"name":i=w;break;case"checked":N=w;break;case"defaultChecked":U=w;break;case"value":f=w;break;case"defaultValue":v=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:w!==Y&&Et(t,e,z,w,l,Y)}}Nu(t,f,v,T,N,U,c,i);return;case"select":w=f=v=z=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":w=T;default:l.hasOwnProperty(c)||Et(t,e,c,null,l,T)}for(i in l)if(c=l[i],T=n[i],l.hasOwnProperty(i)&&(c!=null||T!=null))switch(i){case"value":z=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==T&&Et(t,e,i,c,l,T)}e=v,n=f,l=w,z!=null?Ha(t,!!n,z,!1):!!l!=!!n&&(e!=null?Ha(t,!!n,e,!0):Ha(t,!!n,n?[]:"",!1));return;case"textarea":w=z=null;for(v in n)if(i=n[v],n.hasOwnProperty(v)&&i!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Et(t,e,v,null,l,i)}for(f in l)if(i=l[f],c=n[f],l.hasOwnProperty(f)&&(i!=null||c!=null))switch(f){case"value":z=i;break;case"defaultValue":w=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&Et(t,e,f,i,l,c)}qr(t,z,w);return;case"option":for(var $ in n)z=n[$],n.hasOwnProperty($)&&z!=null&&!l.hasOwnProperty($)&&($==="selected"?t.selected=!1:Et(t,e,$,null,l,z));for(T in l)z=l[T],w=n[T],l.hasOwnProperty(T)&&z!==w&&(z!=null||w!=null)&&(T==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Et(t,e,T,z,l,w));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in n)z=n[it],n.hasOwnProperty(it)&&z!=null&&!l.hasOwnProperty(it)&&Et(t,e,it,null,l,z);for(N in l)if(z=l[N],w=n[N],l.hasOwnProperty(N)&&z!==w&&(z!=null||w!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Et(t,e,N,z,l,w)}return;default:if(Du(e)){for(var jt in n)z=n[jt],n.hasOwnProperty(jt)&&z!==void 0&&!l.hasOwnProperty(jt)&&bo(t,e,jt,void 0,l,z);for(U in l)z=l[U],w=n[U],!l.hasOwnProperty(U)||z===w||z===void 0&&w===void 0||bo(t,e,U,z,l,w);return}}for(var M in n)z=n[M],n.hasOwnProperty(M)&&z!=null&&!l.hasOwnProperty(M)&&Et(t,e,M,null,l,z);for(Y in l)z=l[Y],w=n[Y],!l.hasOwnProperty(Y)||z===w||z==null&&w==null||Et(t,e,Y,z,l,w)}function Vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Py(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],c=i.transferSize,f=i.initiatorType,v=i.duration;if(c&&v&&Vh(f)){for(f=0,v=i.responseEnd,l+=1;l<n.length;l++){var T=n[l],N=T.startTime;if(N>v)break;var U=T.transferSize,Y=T.initiatorType;U&&Vh(Y)&&(T=T.responseEnd,f+=U*(T<v?1:(v-N)/(T-N)))}if(--l,e+=8*(c+f)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var So=null,_o=null;function Gi(t){return t.nodeType===9?t:t.ownerDocument}function Kh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function To(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ro=null;function $y(){var t=window.event;return t&&t.type==="popstate"?t===Ro?!1:(Ro=t,!0):(Ro=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,Iy=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(t){return Jh.resolve(null).then(t).catch(tv)}:kh;function tv(t){setTimeout(function(){throw t})}function Vn(t){return t==="head"}function Fh(t,e){var n=e,l=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(i),yl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")hs(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,hs(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[Nl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&hs(t.ownerDocument.body);n=i}while(n);yl(e)}function Ph(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Eo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Eo(n),Au(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function ev(t,e,n,l){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Nl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function nv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function $h(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function jo(t){return t.data==="$?"||t.data==="$~"}function Mo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function av(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Le(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Co=null;function Wh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ih(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function tm(t,e,n){switch(e=Gi(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function hs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Au(t)}var Ue=new Map,em=new Set;function Xi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sn=K.d;K.d={f:lv,r:sv,D:iv,C:uv,L:cv,m:ov,X:fv,S:rv,M:dv};function lv(){var t=Sn.f(),e=wi();return t||e}function sv(t){var e=La(t);e!==null&&e.tag===5&&e.type==="form"?gd(e):Sn.r(t)}var hl=typeof document>"u"?null:document;function nm(t,e,n){var l=hl;if(l&&typeof e=="string"&&e){var i=Ce(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),em.has(i)||(em.add(i),t={rel:t,crossOrigin:n,href:e},l.querySelector(i)===null&&(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function iv(t){Sn.D(t),nm("dns-prefetch",t,null)}function uv(t,e){Sn.C(t,e),nm("preconnect",t,e)}function cv(t,e,n){Sn.L(t,e,n);var l=hl;if(l&&t&&e){var i='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ce(n.imageSizes)+'"]')):i+='[href="'+Ce(t)+'"]';var c=i;switch(e){case"style":c=ml(t);break;case"script":c=pl(t)}Ue.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ue.set(c,t),l.querySelector(i)!==null||e==="style"&&l.querySelector(ms(c))||e==="script"&&l.querySelector(ps(c))||(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function ov(t,e){Sn.m(t,e);var n=hl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ce(l)+'"][href="'+Ce(t)+'"]',c=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pl(t)}if(!Ue.has(c)&&(t=g({rel:"modulepreload",href:t},e),Ue.set(c,t),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ps(c)))return}l=n.createElement("link"),te(l,"link",t),kt(l),n.head.appendChild(l)}}}function rv(t,e,n){Sn.S(t,e,n);var l=hl;if(l&&t){var i=Ua(l).hoistableStyles,c=ml(t);e=e||"default";var f=i.get(c);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(ms(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ue.get(c))&&Ao(t,n);var T=f=l.createElement("link");kt(T),te(T,"link",t),T._p=new Promise(function(N,U){T.onload=N,T.onerror=U}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Vi(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:v},i.set(c,f)}}}function fv(t,e){Sn.X(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,i=pl(t),c=l.get(i);c||(c=n.querySelector(ps(i)),c||(t=g({src:t,async:!0},e),(e=Ue.get(i))&&Oo(t,e),c=n.createElement("script"),kt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function dv(t,e){Sn.M(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,i=pl(t),c=l.get(i);c||(c=n.querySelector(ps(i)),c||(t=g({src:t,async:!0,type:"module"},e),(e=Ue.get(i))&&Oo(t,e),c=n.createElement("script"),kt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function am(t,e,n,l){var i=(i=rt.current)?Xi(i):null;if(!i)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ml(n.href),n=Ua(i).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ml(n.href);var c=Ua(i).hoistableStyles,f=c.get(t);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=i.querySelector(ms(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Ue.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ue.set(t,n),c||hv(i,t,n,f.state))),e&&l===null)throw Error(o(528,""));return f}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=pl(n),n=Ua(i).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ml(t){return'href="'+Ce(t)+'"'}function ms(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function hv(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),te(e,"link",n),kt(e),t.head.appendChild(e))}function pl(t){return'[src="'+Ce(t)+'"]'}function ps(t){return"script[async]"+t}function sm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var i=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),te(l,"style",i),Vi(l,n.precedence,t),e.instance=l;case"stylesheet":i=ml(n.href);var c=t.querySelector(ms(i));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;l=lm(n),(i=Ue.get(i))&&Ao(l,i),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(v,T){f.onload=v,f.onerror=T}),te(c,"link",l),e.state.loading|=4,Vi(c,n.precedence,t),e.instance=c;case"script":return c=pl(n.src),(i=t.querySelector(ps(c)))?(e.instance=i,kt(i),i):(l=n,(i=Ue.get(c))&&(l=g({},n),Oo(l,i)),t=t.ownerDocument||t,i=t.createElement("script"),kt(i),te(i,"link",l),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Vi(l,n.precedence,t));return e.instance}function Vi(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,c=i,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===e)c=v;else if(c!==i)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ao(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ki=null;function im(t,e,n){if(Ki===null){var l=new Map,i=Ki=new Map;i.set(n,l)}else i=Ki,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var c=n[i];if(!(c[Nl]||c[Pt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var v=l.get(f);v?v.push(c):l.set(f,[c])}}return l}function um(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function mv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function cm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function pv(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=ml(l.href),c=e.querySelector(ms(i));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Zi.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,l=lm(l),(i=Ue.get(i))&&Ao(l,i),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(v,T){f.onload=v,f.onerror=T}),te(c,"link",l),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Zi.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var No=0;function yv(t,e){return t.stylesheets&&t.count===0&&Ji(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Ji(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&No===0&&(No=62500*Py());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ji(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>No?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Zi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ji(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ki=null;function Ji(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ki=new Map,e.forEach(vv,t),ki=null,Zi.call(t))}function vv(t,e){if(!(e.state.loading&4)){var n=ki.get(t);if(n)var l=n.get(null);else{n=new Map,ki.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var f=i[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}i=e.instance,f=i.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,i),n.set(f,i),this.count++,l=Zi.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),c?c.parentNode.insertBefore(i,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var ys={$$typeof:V,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function gv(t,e,n,l,i,c,f,v,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.hiddenUpdates=Eu(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function om(t,e,n,l,i,c,f,v,T,N,U,Y){return t=new gv(t,e,n,f,T,N,U,Y,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=oc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:e},hc(c),t}function rm(t){return t?(t=Za,t):Za}function fm(t,e,n,l,i,c){i=rm(i),l.context===null?l.context=i:l.pendingContext=i,l=Dn(e),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=wn(t,l,e),n!==null&&(de(n,t,e),Jl(n,t,e))}function dm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zo(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function hm(t){if(t.tag===13||t.tag===31){var e=oa(t,67108864);e!==null&&de(e,t,67108864),zo(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Te();e=ju(e);var n=oa(t,e);n!==null&&de(n,t,e),zo(t,e)}}var Fi=!0;function xv(t,e,n,l){var i=L.T;L.T=null;var c=K.p;try{K.p=2,Do(t,e,n,l)}finally{K.p=c,L.T=i}}function bv(t,e,n,l){var i=L.T;L.T=null;var c=K.p;try{K.p=8,Do(t,e,n,l)}finally{K.p=c,L.T=i}}function Do(t,e,n,l){if(Fi){var i=wo(l);if(i===null)xo(t,e,l,Pi,n),ym(t,l);else if(_v(i,t,e,n,l))l.stopPropagation();else if(ym(t,l),e&4&&-1<Sv.indexOf(t)){for(;i!==null;){var c=La(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=la(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var T=1<<31-ye(f);v.entanglements[1]|=T,f&=~T}Je(c),(bt&6)===0&&(zi=ne()+500,rs(0))}}break;case 31:case 13:v=oa(c,2),v!==null&&de(v,c,2),wi(),zo(c,2)}if(c=wo(l),c===null&&xo(t,e,l,Pi,n),c===i)break;i=c}i!==null&&l.stopPropagation()}else xo(t,e,l,null,n)}}function wo(t){return t=Lu(t),Lo(t)}var Pi=null;function Lo(t){if(Pi=null,t=wa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=x(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Pi=t,null}function pm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(At()){case Ft:return 2;case Ve:return 8;case za:case u0:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Uo=!1,Kn=null,Zn=null,kn=null,vs=new Map,gs=new Map,Jn=[],Sv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ym(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":vs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gs.delete(e.pointerId)}}function xs(t,e,n,l,i,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[i]},e!==null&&(e=La(e),e!==null&&hm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function _v(t,e,n,l,i){switch(e){case"focusin":return Kn=xs(Kn,t,e,n,l,i),!0;case"dragenter":return Zn=xs(Zn,t,e,n,l,i),!0;case"mouseover":return kn=xs(kn,t,e,n,l,i),!0;case"pointerover":var c=i.pointerId;return vs.set(c,xs(vs.get(c)||null,t,e,n,l,i)),!0;case"gotpointercapture":return c=i.pointerId,gs.set(c,xs(gs.get(c)||null,t,e,n,l,i)),!0}return!1}function vm(t){var e=wa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===31){if(e=x(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function $i(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);wu=l,n.target.dispatchEvent(l),wu=null}else return e=La(n),e!==null&&hm(e),t.blockedOn=n,!1;e.shift()}return!0}function gm(t,e,n){$i(t)&&n.delete(e)}function Tv(){Uo=!1,Kn!==null&&$i(Kn)&&(Kn=null),Zn!==null&&$i(Zn)&&(Zn=null),kn!==null&&$i(kn)&&(kn=null),vs.forEach(gm),gs.forEach(gm)}function Wi(t,e){t.blockedOn===e&&(t.blockedOn=null,Uo||(Uo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Tv)))}var Ii=null;function xm(t){Ii!==t&&(Ii=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ii===t&&(Ii=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],i=t[e+2];if(typeof l!="function"){if(Lo(l||n)===null)continue;break}var c=La(n);c!==null&&(t.splice(e,3),e-=3,Dc(c,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function yl(t){function e(T){return Wi(T,t)}Kn!==null&&Wi(Kn,t),Zn!==null&&Wi(Zn,t),kn!==null&&Wi(kn,t),vs.forEach(e),gs.forEach(e);for(var n=0;n<Jn.length;n++){var l=Jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&Jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],c=n[l+1],f=i[ie]||null;if(typeof c=="function")f||xm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(i=c,f=c[ie]||null)v=f.formAction;else if(Lo(i)!==null)continue}else v=f.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),xm(n)}}}function bm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function Bo(t){this._internalRoot=t}tu.prototype.render=Bo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=Te();fm(n,l,t,e,null,null)},tu.prototype.unmount=Bo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fm(t.current,2,null,t,null,null),wi(),e[Da]=null}};function tu(t){this._internalRoot=t}tu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ar();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Jn.length&&e!==0&&e<Jn[n].priority;n++);Jn.splice(n,0,t),n===0&&vm(t)}};var Sm=s.version;if(Sm!=="19.2.6")throw Error(o(527,Sm,"19.2.6"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Rv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{Cl=eu.inject(Rv),pe=eu}catch{}}return Es.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,l="",i=Cd,c=Ad,f=Od;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=om(t,1,!1,null,null,n,l,null,i,c,f,bm),t[Da]=e.current,go(t),new Bo(e)},Es.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var l=!1,i="",c=Cd,f=Ad,v=Od,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=om(t,1,!0,e,n??null,l,i,T,c,f,v,bm),e.context=rm(null),n=e.current,l=Te(),l=ju(l),i=Dn(l),i.callback=null,wn(n,i,l),n=l,e.current.lanes=n,Ol(e,n),Je(e),t[Da]=e.current,go(t),new tu(e)},Es.version="19.2.6",Es}var mp;function hb(){if(mp)return Io.exports;mp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Io.exports=db(),Io.exports}var mb=hb();const Oa=Zx()({component:yb}),pb=[{to:"/",label:"Overview",exact:!0},{to:"/tasks",label:"Tasks",exact:!1},{to:"/agents",label:"Agents",exact:!1},{to:"/tools",label:"Tools",exact:!1},{to:"/files",label:"Files",exact:!1}];function yb(){return h.jsxs("div",{className:"flex h-screen bg-black text-[#fafafa] overflow-hidden",children:[h.jsxs("nav",{className:"w-48 border-r border-[#1f1f1f] flex flex-col shrink-0",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-[#1f1f1f]",children:[h.jsx("span",{className:"font-mono font-bold text-sm text-green-400",children:"ahk"}),h.jsx("span",{className:"font-mono text-sm text-neutral-600 ml-1.5",children:"dashboard"})]}),h.jsx("div",{className:"flex-1 py-2 flex flex-col gap-0.5 px-2 overflow-y-auto",children:pb.map(({to:a,label:s,exact:u})=>h.jsx(na,{to:a,activeOptions:{exact:u},className:"font-mono text-sm px-3 py-1.5 rounded text-neutral-500 hover:text-[#fafafa] hover:bg-[#0a0a0a] transition-colors",activeProps:{className:"font-mono text-sm px-3 py-1.5 rounded text-[#fafafa] bg-[#0a0a0a]"},children:s},a))}),h.jsx("div",{className:"px-4 py-3 border-t border-[#1f1f1f]",children:h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 inline-block"}),h.jsx("span",{className:"font-mono text-[10px] text-neutral-600",children:"live"})]})})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(n0,{})})]})}const vb={lead:"bg-violet-950 text-violet-400",explorer:"bg-sky-950 text-sky-300",builder:"bg-green-950 text-green-400",reviewer:"bg-amber-950 text-amber-400"};function gb(a){return a.startsWith("custom:")?"bg-neutral-900 text-neutral-300":vb[a]??"bg-neutral-900 text-neutral-400"}function Ge({agent:a,size:s="sm"}){const u=s==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${gb(a)} ${u} font-mono px-2 py-0.5 rounded-sm`,children:a})}function gu({cols:a,message:s="No data"}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-neutral-600",children:s})})}function a0(){return h.jsx("div",{className:"p-6 font-mono text-xs text-neutral-600",children:"Loading…"})}function xu({cols:a}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-neutral-600",children:"Loading…"})})}function Rl({title:a,subtitle:s,right:u}){return h.jsxs("div",{className:"flex items-start justify-between px-6 pt-6 pb-4 border-b border-[#1f1f1f]",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-mono font-semibold text-base text-[#fafafa]",children:a}),s&&h.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:s})]}),u!=null&&u!=null&&h.jsx("div",{children:u})]})}const pp="/api";async function Fe(a,s){const u=s?`${pp}${a}?${new URLSearchParams(s)}`:`${pp}${a}`,o=await fetch(u);if(!o.ok)throw new Error(`API ${a} → ${o.status}`);return o.json()}const Ee={stats:()=>Fe("/stats"),tasks:()=>Fe("/tasks"),allTasks:(a=!1)=>Fe("/tasks",{includeArchived:String(a)}),task:a=>Fe(`/tasks/${a}`),topTools:(a=20)=>Fe("/tools/top",{limit:String(a)}),recentTools:(a=50)=>Fe("/tools/recent",{limit:String(a)}),topFiles:(a=20)=>Fe("/files/top",{limit:String(a)}),recentFiles:(a=50)=>Fe("/files/recent",{limit:String(a)}),agentStats:()=>Fe("/agents/stats"),timeline:(a=50)=>Fe("/timeline",{limit:String(a)}),updateTask:(a,s)=>fetch(`/api/tasks/${a}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(u=>u.json()),archiveTask:a=>fetch(`/api/tasks/${a}/archive`,{method:"PATCH"}).then(s=>s.json()),unarchiveTask:a=>fetch(`/api/tasks/${a}/unarchive`,{method:"PATCH"}).then(s=>s.json())},Ie={stats:["stats"],tasks:["tasks"],allTasks:a=>["tasks",{includeArchived:a}],task:a=>["tasks",a],topTools:["tools","top"],recentTools:["tools","recent"],topFiles:["files","top"],recentFiles:["files","recent"],agentStats:["agents","stats"],timeline:["timeline"]};function $e(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function l0(a,s){if(!s)return"—";const u=new Date(s).getTime()-new Date(a).getTime(),o=Math.floor(u/1e3);if(o<60)return`${o}s`;const r=Math.floor(o/60);return r<60?`${r}m ${o%60}s`:`${Math.floor(r/60)}h ${r%60}m`}const xb=Tl("/tools")({component:bb});function bb(){const a=We({queryKey:Ie.topTools,queryFn:()=>Ee.topTools(25)}),s=We({queryKey:Ie.recentTools,queryFn:()=>Ee.recentTools(50)}),u=a.data?.[0]?.uses??1;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tools",subtitle:"Tool usage across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-4",children:"Top Tools"}),a.isLoading&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"Loading…"}),h.jsxs("div",{className:"space-y-1.5",children:[(a.data??[]).map(({tool_name:o,uses:r})=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-48 font-mono text-xs text-neutral-400 text-right shrink-0 truncate",children:o}),h.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-neutral-900 rounded-sm h-5 overflow-hidden",children:h.jsx("div",{className:"bg-violet-900 h-full transition-all flex items-center px-2",style:{width:`${r/u*100}%`}})}),h.jsx("span",{className:"font-mono text-xs text-neutral-500 w-8 text-right shrink-0",children:r})]})]},o)),!a.isLoading&&a.data?.length===0&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"No tool calls recorded yet."})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Recent Calls"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Tool","Agent","Task","Args","Result","Called"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[s.isLoading&&h.jsx(xu,{cols:6}),(s.data??[]).map(o=>h.jsx(Sb,{tool:o},o.id)),!s.isLoading&&s.data?.length===0&&h.jsx(gu,{cols:6,message:"No recent calls"})]})]})]})]})]})}function Sb({tool:a}){let s="—";if(a.args_json)try{const u=JSON.parse(a.args_json);s=JSON.stringify(u).slice(0,60)+(JSON.stringify(u).length>60?"…":"")}catch{s=a.args_json.slice(0,60)}return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-violet-400",children:a.tool_name}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-500 max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-600 max-w-[180px] truncate",children:s}),h.jsx("td",{className:"px-4 py-2 text-xs text-neutral-500 max-w-[180px] truncate",children:a.result_summary??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-neutral-700",children:$e(a.called_at)})]})}const _b={read:"text-neutral-400",created:"text-green-400",modified:"text-amber-400",deleted:"text-red-400"};function s0({op:a}){const s=_b[a]??"text-neutral-500";return h.jsx("span",{className:`${s} font-mono text-xs`,children:a})}const Tb=Tl("/files")({component:Rb});function Rb(){const a=We({queryKey:Ie.topFiles,queryFn:()=>Ee.topFiles(25)}),s=We({queryKey:Ie.recentFiles,queryFn:()=>Ee.recentFiles(60)});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Files",subtitle:"File operations across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Most Touched"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["File Path","Total","Read","Created","Modified","Deleted"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsxs("tbody",{children:[a.isLoading&&h.jsx(xu,{cols:6}),(a.data??[]).map(u=>h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-300 max-w-xs truncate",children:u.file_path}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-400",children:u.total}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-600",children:u.read||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-green-400",children:u.created||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-amber-400",children:u.modified||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-red-400",children:u.deleted||"—"})]},u.file_path)),!a.isLoading&&a.data?.length===0&&h.jsx(gu,{cols:6,message:"No file activity yet"})]})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Recent Operations"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Op","File Path","Agent","Task","Notes","When"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsxs("tbody",{children:[s.isLoading&&h.jsx(xu,{cols:6}),(s.data??[]).map(u=>h.jsx(Eb,{file:u},u.id)),!s.isLoading&&s.data?.length===0&&h.jsx(gu,{cols:6,message:"No recent operations"})]})]})]})]})]})}function Eb({file:a}){return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2",children:h.jsx(s0,{op:a.operation})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-300 max-w-[220px] truncate",children:a.file_path}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-500 max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 text-xs text-neutral-600 max-w-[160px] truncate",children:a.notes??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-neutral-700",children:$e(a.called_at)})]})}const jb=Tl("/agents")({component:Mb});function Mb(){const{data:a=[],isLoading:s}=We({queryKey:Ie.agentStats,queryFn:Ee.agentStats});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Agents",subtitle:"Activity breakdown per agent role"}),h.jsxs("div",{className:"p-6 space-y-4",children:[s&&h.jsx(a0,{}),h.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.map(u=>h.jsx(Cb,{stat:u},u.agent))}),a.length===0&&!s&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"No agent activity yet."}),a.length>0&&h.jsxs("div",{className:"mt-6",children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Summary Table"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Agent","Total Actions","Completed","Blocked","Tasks","Files"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsx("tbody",{children:a.map(u=>h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ge,{agent:u.agent})}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.actions_total}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-green-400",children:u.actions_done}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-red-400",children:u.actions_blocked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.tasks_worked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.files_touched})]},u.agent))})]})]})]})]})}function Cb({stat:a}){const s=a.actions_total>0?Math.round(a.actions_done/a.actions_total*100):0;return h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("span",{className:"font-mono text-xs text-neutral-600",children:[s,"% done"]})]}),h.jsx("div",{className:"w-full bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-700 h-1 rounded-full",style:{width:`${s}%`}})}),h.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[h.jsx(gl,{label:"Actions",value:a.actions_total}),h.jsx(gl,{label:"Completed",value:a.actions_done,color:"text-green-400"}),h.jsx(gl,{label:"Tasks",value:a.tasks_worked}),h.jsx(gl,{label:"Blocked",value:a.actions_blocked,color:a.actions_blocked>0?"text-red-400":void 0}),h.jsx(gl,{label:"Files touched",value:a.files_touched}),h.jsx(gl,{label:"In progress",value:a.actions_total-a.actions_done-a.actions_blocked,color:"text-amber-400"})]})]})}function gl({label:a,value:s,color:u}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-xs text-neutral-600",children:a}),h.jsx("span",{className:`font-mono text-xs ${u??"text-neutral-300"}`,children:s})]})}const Ab={pending:"bg-neutral-900 text-neutral-400",in_progress:"bg-amber-950 text-amber-400",done:"bg-green-950 text-green-400",blocked:"bg-red-950 text-red-400"},Ob={in_progress:"in progress"};function Tu({status:a,size:s="sm"}){const u=Ab[a]??"bg-neutral-900 text-neutral-500",o=Ob[a]??a,r=s==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${u} ${r} font-mono px-2 py-0.5 rounded-sm`,children:o})}const Nb=Tl("/")({component:zb});function zb(){const a=We({queryKey:Ie.stats,queryFn:Ee.stats}),s=We({queryKey:Ie.tasks,queryFn:Ee.tasks}),u=We({queryKey:Ie.timeline,queryFn:()=>Ee.timeline(15)}),o=s.data?.filter(d=>d.status==="in_progress")??[],r=a.data;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Overview",subtitle:"Harness state at a glance"}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Pending",key:"pending",color:"text-neutral-400"},{label:"In Progress",key:"in_progress",color:"text-amber-400"},{label:"Done",key:"done",color:"text-green-400"},{label:"Blocked",key:"blocked",color:"text-red-400"}].map(({label:d,key:m,color:x})=>h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-4",children:[h.jsx("div",{className:`font-mono text-2xl font-semibold ${x}`,children:r?r.byStatus[m]??0:"—"}),h.jsx("div",{className:"text-xs text-neutral-500 mt-1",children:d})]},m))}),h.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Total Actions",value:r?.totalActions},{label:"Files Touched",value:r?.totalFiles},{label:"Unique Tools",value:r?.uniqueTools}].map(({label:d,value:m})=>h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md px-4 py-3 flex items-center gap-3",children:[h.jsx("span",{className:"font-mono text-lg text-[#fafafa]",children:m??"—"}),h.jsx("span",{className:"text-xs text-neutral-500",children:d})]},d))}),h.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Active Tasks"}),o.length===0?h.jsx("p",{className:"text-xs text-neutral-600 font-mono",children:"No tasks in progress"}):h.jsx("div",{className:"space-y-2",children:o.map(d=>h.jsxs(na,{to:"/tasks/$id",params:{id:String(d.id)},className:"block bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-3 hover:border-neutral-700 transition-colors",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"font-mono text-sm text-[#fafafa] truncate",children:d.title}),h.jsx("div",{className:"font-mono text-xs text-neutral-600 mt-0.5",children:d.slug})]}),d.assigned_to&&h.jsx(Ge,{agent:d.assigned_to,size:"xs"})]}),d.acceptance_total>0&&h.jsxs("div",{className:"mt-2",children:[h.jsxs("div",{className:"flex justify-between text-[10px] font-mono text-neutral-600 mb-1",children:[h.jsx("span",{children:"acceptance"}),h.jsxs("span",{children:[d.acceptance_met,"/",d.acceptance_total]})]}),h.jsx("div",{className:"w-full bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full transition-all",style:{width:`${d.acceptance_met/d.acceptance_total*100}%`}})})]})]},d.id))})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider mb-3",children:"Recent Activity"}),h.jsxs("div",{className:"space-y-1",children:[(u.data??[]).map(d=>h.jsx(Db,{entry:d},d.id)),u.data?.length===0&&h.jsx("p",{className:"text-xs text-neutral-600 font-mono",children:"No activity yet"})]})]})]})]})]})}function Db({entry:a}){return h.jsxs(na,{to:"/tasks/$id",params:{id:String(a.task_id)},className:"flex items-start gap-2 px-2 py-1.5 rounded hover:bg-[#0a0a0a] transition-colors group",children:[h.jsx(Ge,{agent:a.agent,size:"xs"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"text-xs text-neutral-300 truncate group-hover:text-white transition-colors",children:a.summary??a.task_title}),h.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[h.jsx("span",{className:"font-mono text-[10px] text-neutral-600",children:a.task_slug}),h.jsx(Tu,{status:a.status,size:"xs"})]})]}),h.jsx("span",{className:"font-mono text-[10px] text-neutral-700 shrink-0",children:$e(a.created_at)})]})}const wb=Tl("/tasks/")({component:Hb}),Lb=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In Progress"},{value:"done",label:"Done"},{value:"blocked",label:"Blocked"},{value:"archived",label:"Archived"}],Ub=[{value:"list",label:"List"},{value:"board",label:"Board"}],Bb=[{status:"pending",label:"Pending",color:"text-neutral-400"},{status:"in_progress",label:"In Progress",color:"text-amber-400"},{status:"done",label:"Done",color:"text-green-400"},{status:"blocked",label:"Blocked",color:"text-red-400"}];function yp(a){return a.completed_at??a.started_at??a.created_at}function Hb(){const[a,s]=J.useState("all"),[u,o]=J.useState("list"),[r,d]=J.useState({field:null,dir:"asc"}),{data:m=[],isLoading:x}=We({queryKey:Ie.allTasks(!0),queryFn:()=>Ee.allTasks(!0)}),p=a==="all"?m.filter(g=>!g.archived_at):a==="archived"?m.filter(g=>g.archived_at):m.filter(g=>g.status===a&&!g.archived_at),y=J.useMemo(()=>r.field?[...p].sort((g,S)=>{if(r.field==="status"){const _=g.status.localeCompare(S.status);return r.dir==="asc"?_:-_}if(r.field==="created"){const _=new Date(g.created_at).getTime()-new Date(S.created_at).getTime();return r.dir==="asc"?_:-_}return 0}):p,[p,r]),b=J.useMemo(()=>{const g={pending:[],in_progress:[],done:[],blocked:[]};for(const S of p)g[S.status]&&g[S.status].push(S);for(const S of Object.keys(g))g[S].sort((_,j)=>new Date(yp(j)).getTime()-new Date(yp(_)).getTime());return g},[p]);return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tasks",subtitle:`${p.length} task${p.length!==1?"s":""}`,right:h.jsxs("div",{className:"flex gap-1 items-center",children:[Ub.map(({value:g,label:S})=>h.jsx("button",{onClick:()=>o(g),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${u===g?"bg-[#0a0a0a] text-[#fafafa] border border-[#3a3a3a]":"text-neutral-500 hover:text-neutral-300 border border-transparent"}`,children:S},g)),h.jsx("span",{className:"w-px h-5 bg-[#1f1f1f] mx-1"}),Lb.map(({value:g,label:S})=>h.jsx("button",{onClick:()=>s(g),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${a===g?"bg-[#0a0a0a] text-[#fafafa] border border-[#3a3a3a]":"text-neutral-500 hover:text-neutral-300 border border-transparent"}`,children:S},g))]})}),u==="list"?h.jsx(qb,{tasks:y,sortConfig:r,onSortChange:d,isLoading:x}):h.jsx(Yb,{columns:b})]})}function qb({tasks:a,sortConfig:s,onSortChange:u,isLoading:o}){const r=m=>{s.field===m?u({field:m,dir:s.dir==="asc"?"desc":"asc"}):u({field:m,dir:"asc"})},d=m=>s.field!==m?"":s.dir==="asc"?" ▲":" ▼";return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-[#1f1f1f]",children:[h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"#"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Title"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Slug"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-neutral-400 transition-colors",onClick:()=>r("status"),children:["Status",d("status")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Assigned"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Acceptance"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-neutral-400 transition-colors",onClick:()=>r("created"),children:["Created",d("created")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Archived"})]})}),h.jsxs("tbody",{children:[o&&h.jsx(xu,{cols:8}),a.map(m=>h.jsx(Qb,{task:m},m.id)),!o&&a.length===0&&h.jsx(gu,{cols:8,message:"No tasks"})]})]})})}function Qb({task:a}){return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors group",children:[h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-600",children:a.id}),h.jsxs("td",{className:"px-4 py-3",children:[h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[#fafafa] hover:text-green-400 transition-colors",children:a.title}),a.description&&h.jsx("div",{className:"text-xs text-neutral-600 mt-0.5 truncate max-w-xs",children:a.description})]}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-500",children:a.slug}),h.jsx("td",{className:"px-4 py-3",children:h.jsx(Tu,{status:a.status})}),h.jsx("td",{className:"px-4 py-3",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3",children:a.acceptance_total>0?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-16 bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-neutral-600",children:[a.acceptance_met,"/",a.acceptance_total]})]}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-600",children:$e(a.created_at)}),h.jsx("td",{className:"px-4 py-3",children:a.archived_at?h.jsx("span",{className:"text-[10px] font-mono text-yellow-600/80 bg-yellow-500/5 px-2 py-0.5 rounded",children:"archived"}):h.jsx("span",{className:"text-neutral-800 text-xs",children:"—"})})]})}function Yb({columns:a}){return h.jsx("div",{className:"overflow-x-auto px-6 pb-6",children:h.jsx("div",{className:"flex gap-4 min-h-[calc(100vh-12rem)]",children:Bb.map(({status:s,label:u,color:o})=>{const r=a[s]??[];return h.jsxs("div",{className:"w-72 shrink-0 flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-2 px-1 py-3 border-b border-[#1f1f1f] mb-3",children:[h.jsx("h3",{className:`font-mono text-sm font-medium ${o}`,children:u}),h.jsxs("span",{className:"font-mono text-xs text-neutral-600",children:["(",r.length,")"]})]}),h.jsx("div",{className:"flex-1 overflow-y-auto max-h-[calc(100vh-16rem)] space-y-2 pr-1",children:r.length>0?r.map(d=>h.jsx(Gb,{task:d},d.id)):h.jsx("div",{className:"text-xs font-mono text-neutral-700 text-center py-8",children:"No tasks"})})]},s)})})})}function Gb({task:a}){return h.jsxs("div",{className:"border border-[#1f1f1f] rounded bg-black p-3 hover:bg-[#0a0a0a] transition-colors space-y-2",children:[h.jsxs("div",{className:"font-mono text-[10px] text-neutral-600",children:["#",a.id]}),h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[#fafafa] hover:text-green-400 transition-colors block",children:a.title}),h.jsx("div",{className:"flex items-center gap-2",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),a.acceptance_total>0&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-neutral-900 rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-neutral-600",children:[a.acceptance_met,"/",a.acceptance_total]})]}),h.jsx("div",{className:"font-mono text-[10px] text-neutral-600",children:$e(a.created_at)})]})}function Xb({message:a="Something went wrong",backTo:s,backLabel:u="← Back"}){return h.jsxs("div",{className:"p-6",children:[s&&h.jsx(na,{to:s,className:"font-mono text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:u}),h.jsx("p",{className:"font-mono text-xs text-red-400 mt-4",children:a})]})}function Vb({action:a}){const[s,u]=J.useState(!1),o=a.sections.length>0,r=l0(a.created_at,a.completed_at);return h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md",children:[h.jsxs("button",{className:"w-full flex items-start gap-3 p-3 text-left hover:bg-[#0f0f0f] transition-colors rounded-md",onClick:()=>o&&u(!s),children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Tu,{status:a.status,size:"xs"}),h.jsx("span",{className:"font-mono text-xs text-neutral-600",children:r}),a.tools.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-neutral-700",children:[a.tools.length," tool",a.tools.length!==1?"s":""]}),a.files.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-neutral-700",children:[a.files.length," file",a.files.length!==1?"s":""]})]}),a.summary&&h.jsx("div",{className:"text-xs text-neutral-400 mt-1",children:a.summary})]}),h.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[h.jsx("span",{className:"font-mono text-[10px] text-neutral-700",children:$e(a.created_at)}),o&&h.jsx("span",{className:"text-neutral-600 text-xs",children:s?"▲":"▼"})]})]}),s&&o&&h.jsx("div",{className:"border-t border-[#1f1f1f] divide-y divide-[#1f1f1f]",children:a.sections.map(d=>h.jsx(Kb,{section:d},d.id))})]})}function Kb({section:a}){return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] text-neutral-600 uppercase tracking-wider mb-1",children:a.section_type.replace(/_/g," ")}),h.jsx("pre",{className:"text-xs text-neutral-400 whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]})}function uu({children:a}){return h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider",children:a})}function js({label:a,value:s}){return h.jsxs("div",{children:[h.jsx("div",{className:"text-neutral-600 text-[10px]",children:a}),h.jsx("div",{className:"text-neutral-300",children:s})]})}const i0=Tl("/tasks/$id")({component:Zb});function Zb(){const{id:a}=i0.useParams(),{data:s,isLoading:u,isError:o}=We({queryKey:Ie.task(Number(a)),queryFn:()=>Ee.task(Number(a))}),[r,d]=J.useState(!1),[m,x]=J.useState(s?.title),[p,y]=J.useState(s?.description??""),[b,g]=J.useState(s?.acceptance.map(A=>A.criterion)??[]);if(u)return h.jsx(a0,{});if(o||!s)return h.jsx(Xb,{message:"Task not found",backTo:"/tasks",backLabel:"← Back to tasks"});const S=()=>g([...b,""]),_=async()=>{await Ee.updateTask(Number(a),{title:m,description:p||null,acceptance:b.filter(A=>A.trim()!=="")}),d(!1),window.location.reload()},j=s.acceptance.filter(A=>A.met).length,C=async()=>{await Ee.archiveTask(Number(a)),window.location.reload()},D=async()=>{await Ee.unarchiveTask(Number(a)),window.location.reload()};return h.jsxs("div",{children:[h.jsx(Rl,{title:s.title,subtitle:s.slug,right:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Tu,{status:s.status}),s.assigned_to&&h.jsx(Ge,{agent:s.assigned_to}),s.archived_at?h.jsx("button",{onClick:D,className:"text-xs font-mono text-yellow-500 hover:text-yellow-400 border border-yellow-900/50 px-3 py-1 rounded",children:"Unarchive"}):h.jsx("button",{onClick:C,className:"text-xs font-mono text-neutral-500 hover:text-red-400 border border-[#1f1f1f] px-3 py-1 rounded",children:"Archive"})]})}),h.jsx("div",{className:"px-6",children:h.jsx("button",{onClick:()=>d(!0),className:"text-xs font-mono text-neutral-500 hover:text-[#fafafa] border border-[#1f1f1f] px-3 py-1.5 rounded transition-colors",children:"Edit"})}),r&&h.jsx("div",{className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center",onClick:()=>d(!1),children:h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-lg p-6 w-full max-w-lg mx-4 max-h-[80vh] overflow-y-auto",onClick:A=>A.stopPropagation(),children:[h.jsx("h3",{className:"font-mono text-sm text-[#fafafa] mb-4",children:"Edit Task"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-neutral-500 font-mono block mb-1",children:"Title"}),h.jsx("input",{value:m,onChange:A=>x(A.target.value),className:"w-full bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-neutral-500 font-mono block mb-1",children:"Description"}),h.jsx("textarea",{value:p??"",onChange:A=>y(A.target.value),className:"w-full bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600 resize-none h-20"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("span",{className:"text-xs text-neutral-500 font-mono",children:"Acceptance Criteria"}),h.jsx("button",{onClick:S,className:"text-xs font-mono text-green-500 hover:text-green-400",children:"+ Add"})]}),h.jsx("div",{className:"space-y-2",children:b.map((A,B)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("span",{className:"text-xs text-neutral-600 font-mono mt-2 shrink-0",children:["#",B+1]}),h.jsx("input",{value:A,onChange:V=>{const G=[...b];G[B]=V.target.value,g(G)},className:"flex-1 bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600"}),h.jsx("button",{onClick:()=>g(b.filter((V,G)=>G!==B)),className:"text-xs text-red-500 hover:text-red-400 mt-2",children:"✕"})]},`index-${B}`))})]})]}),h.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[h.jsx("button",{onClick:()=>d(!1),className:"text-xs font-mono text-neutral-500 hover:text-neutral-300 px-3 py-1.5",children:"Cancel"}),h.jsx("button",{onClick:_,className:"text-xs font-mono bg-[#fafafa] text-black px-3 py-1.5 rounded hover:bg-white",children:"Save"})]})]})}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"flex gap-6 text-xs font-mono",children:[h.jsx(js,{label:"Created",value:$e(s.created_at)}),h.jsx("span",{className:"text-neutral-700",children:"→"}),h.jsx(js,{label:"Started",value:s.started_at?$e(s.started_at):"—"}),h.jsx("span",{className:"text-neutral-700",children:"→"}),h.jsx(js,{label:"Completed",value:s.completed_at?$e(s.completed_at):"—"}),s.started_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-neutral-700",children:"·"}),h.jsx(js,{label:"Duration",value:l0(s.started_at,s.completed_at)})]}),s.archived_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-neutral-700",children:"·"}),h.jsx(js,{label:"Archived",value:$e(s.archived_at)})]})]}),h.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.acceptance.length>0&&h.jsxs("div",{className:"col-span-1",children:[h.jsxs(uu,{children:["Acceptance Criteria"," ",h.jsxs("span",{className:"text-neutral-600",children:["(",j,"/",s.acceptance.length,")"]})]}),h.jsx("div",{className:"space-y-1.5 mt-2",children:s.acceptance.map(A=>h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx("span",{className:`mt-0.5 text-xs font-mono shrink-0 ${A.met?"text-green-400":"text-neutral-700"}`,children:A.met?"✓":"○"}),h.jsx("span",{className:`text-xs ${A.met?"text-neutral-300":"text-neutral-500"}`,children:A.criterion})]},A.id))})]}),s.description&&h.jsxs("div",{className:"col-span-2",children:[h.jsx(uu,{children:"Description"}),h.jsx("p",{className:"text-sm text-neutral-400 mt-2 leading-relaxed",children:s.description})]})]}),s.actions.length>0&&h.jsxs("div",{children:[h.jsxs(uu,{children:["Actions Timeline (",s.actions.length,")"]}),h.jsx("div",{className:"mt-3 space-y-2",children:s.actions.map(A=>h.jsx(Vb,{action:A},A.id))})]}),s.actions.some(A=>A.files.length>0)&&h.jsxs("div",{children:[h.jsx(uu,{children:"Files Touched"}),h.jsxs("table",{className:"w-full mt-2 text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[#1f1f1f]",children:["Operation","File Path","Agent","Notes"].map(A=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-3 py-2",children:A},A))})}),h.jsx("tbody",{children:s.actions.flatMap(A=>A.files.map(B=>h.jsxs("tr",{className:"border-b border-[#1f1f1f]",children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx(s0,{op:B.operation})}),h.jsx("td",{className:"px-3 py-2 font-mono text-xs text-neutral-300",children:B.file_path}),h.jsx("td",{className:"px-3 py-2",children:h.jsx(Ge,{agent:A.agent,size:"xs"})}),h.jsx("td",{className:"px-3 py-2 text-xs text-neutral-600",children:B.notes??"—"})]},B.id)))})]})]})]})]})}const kb=xb.update({id:"/tools",path:"/tools",getParentRoute:()=>Oa}),Jb=Tb.update({id:"/files",path:"/files",getParentRoute:()=>Oa}),Fb=jb.update({id:"/agents",path:"/agents",getParentRoute:()=>Oa}),Pb=Nb.update({id:"/",path:"/",getParentRoute:()=>Oa}),$b=wb.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Oa}),Wb=i0.update({id:"/tasks/$id",path:"/tasks/$id",getParentRoute:()=>Oa}),Ib={IndexRoute:Pb,AgentsRoute:Fb,FilesRoute:Jb,ToolsRoute:kb,TasksIdRoute:Wb,TasksIndexRoute:$b},tS=Oa._addFileChildren(Ib)._addFileTypes(),Tr=new tg({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0,retry:1}}}),eS=ib({routeTree:tS,context:{queryClient:Tr}}),nS=new WebSocket(`ws://${location.host}/ws`);nS.onmessage=a=>{try{JSON.parse(a.data).type==="update"&&Tr.invalidateQueries()}catch{}};const aS=document.getElementById("root");mb.createRoot(aS).render(h.jsx(J.StrictMode,{children:h.jsx(ag,{client:Tr,children:h.jsx(ob,{router:eS})})}));
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/assets/index-C9jWcg_r.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-BwNgLvNE.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/assets/index-llHiI3A0.css">
15
15
  </head>
16
16
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cardor/agent-harness-kit",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "CLI scaffolding for multi-agent harness systems",
5
5
  "publishConfig": {
6
6
  "access": "public"