@rigour-labs/cli 6.14.0-rc.3 → 7.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/hooks.js +5 -1
- package/dist/commands/semantic.js +19 -5
- package/dist/commands/studio-learning.d.ts +22 -0
- package/dist/commands/studio-learning.js +23 -6
- package/package.json +3 -3
- package/studio-dist/assets/index-Ciq07cxl.css +1 -0
- package/studio-dist/assets/index-D5EEZJUE.js +166 -0
- package/studio-dist/index.html +2 -2
- package/studio-dist/assets/index-UWYx4t8T.css +0 -1
- package/studio-dist/assets/index-pu9kGWhF.js +0 -166
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
var Qc=Object.defineProperty;var Kc=(e,t,n)=>t in e?Qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bi=(e,t,n)=>Kc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function Yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sa={exports:{}},us={},Ca={exports:{}},L={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var nr=Symbol.for("react.element"),qc=Symbol.for("react.portal"),Gc=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),Jc=Symbol.for("react.profiler"),Zc=Symbol.for("react.provider"),bc=Symbol.for("react.context"),ed=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),nd=Symbol.for("react.memo"),rd=Symbol.for("react.lazy"),eo=Symbol.iterator;function sd(e){return e===null||typeof e!="object"?null:(e=eo&&e[eo]||e["@@iterator"],typeof e=="function"?e:null)}var Ta={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ea=Object.assign,_a={};function pn(e,t,n){this.props=e,this.context=t,this.refs=_a,this.updater=n||Ta}pn.prototype.isReactComponent={};pn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function za(){}za.prototype=pn.prototype;function si(e,t,n){this.props=e,this.context=t,this.refs=_a,this.updater=n||Ta}var li=si.prototype=new za;li.constructor=si;Ea(li,pn.prototype);li.isPureReactComponent=!0;var to=Array.isArray,Pa=Object.prototype.hasOwnProperty,ii={current:null},La={key:!0,ref:!0,__self:!0,__source:!0};function Ra(e,t,n){var r,s={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Pa.call(t,r)&&!La.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:nr,type:e,key:l,ref:o,props:s,_owner:ii.current}}function ld(e,t){return{$$typeof:nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oi(e){return typeof e=="object"&&e!==null&&e.$$typeof===nr}function id(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var no=/\/+/g;function Ls(e,t){return typeof e=="object"&&e!==null&&e.key!=null?id(""+e.key):t.toString(36)}function Tr(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case nr:case qc:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Ls(o,0):r,to(s)?(n="",e!=null&&(n=e.replace(no,"$&/")+"/"),Tr(s,t,n,"",function(d){return d})):s!=null&&(oi(s)&&(s=ld(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(no,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",to(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+Ls(l,a);o+=Tr(l,t,n,u,s)}else if(u=sd(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+Ls(l,a++),o+=Tr(l,t,n,u,s);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ur(e,t,n){if(e==null)return e;var r=[],s=0;return Tr(e,r,"","",function(l){return t.call(n,l,s++)}),r}function od(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ce={current:null},Er={transition:null},ad={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:Er,ReactCurrentOwner:ii};function $a(){throw Error("act(...) is not supported in production builds of React.")}L.Children={map:ur,forEach:function(e,t,n){ur(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ur(e,function(){t++}),t},toArray:function(e){return ur(e,function(t){return t})||[]},only:function(e){if(!oi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};L.Component=pn;L.Fragment=Gc;L.Profiler=Jc;L.PureComponent=si;L.StrictMode=Xc;L.Suspense=td;L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ad;L.act=$a;L.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ea({},e.props),s=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=ii.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Pa.call(t,u)&&!La.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:nr,type:e.type,key:s,ref:l,props:r,_owner:o}};L.createContext=function(e){return e={$$typeof:bc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zc,_context:e},e.Consumer=e};L.createElement=Ra;L.createFactory=function(e){var t=Ra.bind(null,e);return t.type=e,t};L.createRef=function(){return{current:null}};L.forwardRef=function(e){return{$$typeof:ed,render:e}};L.isValidElement=oi;L.lazy=function(e){return{$$typeof:rd,_payload:{_status:-1,_result:e},_init:od}};L.memo=function(e,t){return{$$typeof:nd,type:e,compare:t===void 0?null:t}};L.startTransition=function(e){var t=Er.transition;Er.transition={};try{e()}finally{Er.transition=t}};L.unstable_act=$a;L.useCallback=function(e,t){return ce.current.useCallback(e,t)};L.useContext=function(e){return ce.current.useContext(e)};L.useDebugValue=function(){};L.useDeferredValue=function(e){return ce.current.useDeferredValue(e)};L.useEffect=function(e,t){return ce.current.useEffect(e,t)};L.useId=function(){return ce.current.useId()};L.useImperativeHandle=function(e,t,n){return ce.current.useImperativeHandle(e,t,n)};L.useInsertionEffect=function(e,t){return ce.current.useInsertionEffect(e,t)};L.useLayoutEffect=function(e,t){return ce.current.useLayoutEffect(e,t)};L.useMemo=function(e,t){return ce.current.useMemo(e,t)};L.useReducer=function(e,t,n){return ce.current.useReducer(e,t,n)};L.useRef=function(e){return ce.current.useRef(e)};L.useState=function(e){return ce.current.useState(e)};L.useSyncExternalStore=function(e,t,n){return ce.current.useSyncExternalStore(e,t,n)};L.useTransition=function(){return ce.current.useTransition()};L.version="18.3.1";Ca.exports=L;var _=Ca.exports;const cs=Yc(_);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ud=_,cd=Symbol.for("react.element"),dd=Symbol.for("react.fragment"),fd=Object.prototype.hasOwnProperty,pd=ud.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hd={key:!0,ref:!0,__self:!0,__source:!0};function Oa(e,t,n){var r,s={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)fd.call(t,r)&&!hd.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:cd,type:e,key:l,ref:o,props:s,_owner:pd.current}}us.Fragment=dd;us.jsx=Oa;us.jsxs=Oa;Sa.exports=us;var i=Sa.exports,cl={},Ma={exports:{}},je={},Ia={exports:{}},Fa={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(S,z){var P=S.length;S.push(z);e:for(;0<P;){var K=P-1>>>1,Z=S[K];if(0<s(Z,z))S[K]=z,S[P]=Z,P=K;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var z=S[0],P=S.pop();if(P!==z){S[0]=P;e:for(var K=0,Z=S.length,or=Z>>>1;K<or;){var kt=2*(K+1)-1,Ps=S[kt],jt=kt+1,ar=S[jt];if(0>s(Ps,P))jt<Z&&0>s(ar,Ps)?(S[K]=ar,S[jt]=P,K=jt):(S[K]=Ps,S[kt]=P,K=kt);else if(jt<Z&&0>s(ar,P))S[K]=ar,S[jt]=P,K=jt;else break e}}return z}function s(S,z){var P=S.sortIndex-z.sortIndex;return P!==0?P:S.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],d=[],g=1,m=null,h=3,v=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(S){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=S)r(d),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(d)}}function y(S){if(k=!1,p(S),!w)if(n(u)!==null)w=!0,_s(j);else{var z=n(d);z!==null&&zs(y,z.startTime-S)}}function j(S,z){w=!1,k&&(k=!1,f(E),E=-1),v=!0;var P=h;try{for(p(z),m=n(u);m!==null&&(!(m.expirationTime>z)||S&&!Pe());){var K=m.callback;if(typeof K=="function"){m.callback=null,h=m.priorityLevel;var Z=K(m.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?m.callback=Z:m===n(u)&&r(u),p(z)}else r(u);m=n(u)}if(m!==null)var or=!0;else{var kt=n(d);kt!==null&&zs(y,kt.startTime-z),or=!1}return or}finally{m=null,h=P,v=!1}}var C=!1,T=null,E=-1,Q=5,R=-1;function Pe(){return!(e.unstable_now()-R<Q)}function gn(){if(T!==null){var S=e.unstable_now();R=S;var z=!0;try{z=T(!0,S)}finally{z?vn():(C=!1,T=null)}}else C=!1}var vn;if(typeof c=="function")vn=function(){c(gn)};else if(typeof MessageChannel<"u"){var Zi=new MessageChannel,Vc=Zi.port2;Zi.port1.onmessage=gn,vn=function(){Vc.postMessage(null)}}else vn=function(){O(gn,0)};function _s(S){T=S,C||(C=!0,vn())}function zs(S,z){E=O(function(){S(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,_s(j))},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(S){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var P=h;h=z;try{return S()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,z){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var P=h;h=S;try{return z()}finally{h=P}},e.unstable_scheduleCallback=function(S,z,P){var K=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?K+P:K):P=K,S){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=P+Z,S={id:g++,callback:z,priorityLevel:S,startTime:P,expirationTime:Z,sortIndex:-1},P>K?(S.sortIndex=P,t(d,S),n(u)===null&&S===n(d)&&(k?(f(E),E=-1):k=!0,zs(y,P-K))):(S.sortIndex=Z,t(u,S),w||v||(w=!0,_s(j))),S},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(S){var z=h;return function(){var P=h;h=z;try{return S.apply(this,arguments)}finally{h=P}}}})(Fa);Ia.exports=Fa;var md=Ia.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var gd=_,ke=md;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Da=new Set,Hn={};function It(e,t){ln(e,t),ln(e+"Capture",t)}function ln(e,t){for(Hn[e]=t,e=0;e<t.length;e++)Da.add(t[e])}var Ge=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dl=Object.prototype.hasOwnProperty,vd=/^[: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]*$/,ro={},so={};function yd(e){return dl.call(so,e)?!0:dl.call(ro,e)?!1:vd.test(e)?so[e]=!0:(ro[e]=!0,!1)}function xd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wd(e,t,n,r){if(t===null||typeof t>"u"||xd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,s,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-:]([a-z])/g;function ui(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ai,ui);re[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ai,ui);re[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ai,ui);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function ci(e,t,n,r){var s=re.hasOwnProperty(t)?re[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wd(t,n,s,r)&&(n=null),r||s===null?yd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var be=gd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cr=Symbol.for("react.element"),Wt=Symbol.for("react.portal"),Ut=Symbol.for("react.fragment"),di=Symbol.for("react.strict_mode"),fl=Symbol.for("react.profiler"),Ha=Symbol.for("react.provider"),Aa=Symbol.for("react.context"),fi=Symbol.for("react.forward_ref"),pl=Symbol.for("react.suspense"),hl=Symbol.for("react.suspense_list"),pi=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),Wa=Symbol.for("react.offscreen"),lo=Symbol.iterator;function yn(e){return e===null||typeof e!="object"?null:(e=lo&&e[lo]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,Rs;function Tn(e){if(Rs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rs=t&&t[1]||""}return`
|
|
34
|
-
`+Rs+e}var $s=!1;function Os(e,t){if(!e||$s)return"";$s=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var s=d.stack.split(`
|
|
35
|
-
`),l=r.stack.split(`
|
|
36
|
-
`),o=s.length-1,a=l.length-1;1<=o&&0<=a&&s[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==l[a]){var u=`
|
|
37
|
-
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{$s=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tn(e):""}function kd(e){switch(e.tag){case 5:return Tn(e.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 2:case 15:return e=Os(e.type,!1),e;case 11:return e=Os(e.type.render,!1),e;case 1:return e=Os(e.type,!0),e;default:return""}}function ml(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ut:return"Fragment";case Wt:return"Portal";case fl:return"Profiler";case di:return"StrictMode";case pl:return"Suspense";case hl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Aa:return(e.displayName||"Context")+".Consumer";case Ha:return(e._context.displayName||"Context")+".Provider";case fi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pi:return t=e.displayName||null,t!==null?t:ml(e.type)||"Memo";case tt:t=e._payload,e=e._init;try{return ml(e(t))}catch{}}return null}function jd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ml(t);case 8:return t===di?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ua(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nd(e){var t=Ua(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=Nd(e))}function Ba(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ua(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gl(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function io(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Va(e,t){t=t.checked,t!=null&&ci(e,"checked",t,!1)}function vl(e,t){Va(e,t);var n=mt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yl(e,t.type,n):t.hasOwnProperty("defaultValue")&&yl(e,t.type,mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yl(e,t,n){(t!=="number"||Dr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function bt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+mt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function xl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ao(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(En(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:mt(n)}}function Qa(e,t){var n=mt(t.value),r=mt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function uo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ka(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ka(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,Ya=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fr=fr||document.createElement("div"),fr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function An(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sd=["Webkit","ms","Moz","O"];Object.keys(Pn).forEach(function(e){Sd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pn[t]=Pn[e]})});function qa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pn.hasOwnProperty(e)&&Pn[e]?(""+t).trim():t+"px"}function Ga(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=qa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Cd=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function kl(e,t){if(t){if(Cd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function jl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nl=null;function hi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,en=null,tn=null;function co(e){if(e=lr(e)){if(typeof Sl!="function")throw Error(x(280));var t=e.stateNode;t&&(t=ms(t),Sl(e.stateNode,e.type,t))}}function Xa(e){en?tn?tn.push(e):tn=[e]:en=e}function Ja(){if(en){var e=en,t=tn;if(tn=en=null,co(e),t)for(e=0;e<t.length;e++)co(t[e])}}function Za(e,t){return e(t)}function ba(){}var Ms=!1;function eu(e,t,n){if(Ms)return e(t,n);Ms=!0;try{return Za(e,t,n)}finally{Ms=!1,(en!==null||tn!==null)&&(ba(),Ja())}}function Wn(e,t){var n=e.stateNode;if(n===null)return null;var r=ms(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Cl=!1;if(Ge)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){Cl=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{Cl=!1}function Td(e,t,n,r,s,l,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(g){this.onError(g)}}var Ln=!1,Hr=null,Ar=!1,Tl=null,Ed={onError:function(e){Ln=!0,Hr=e}};function _d(e,t,n,r,s,l,o,a,u){Ln=!1,Hr=null,Td.apply(Ed,arguments)}function zd(e,t,n,r,s,l,o,a,u){if(_d.apply(this,arguments),Ln){if(Ln){var d=Hr;Ln=!1,Hr=null}else throw Error(x(198));Ar||(Ar=!0,Tl=d)}}function Ft(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fo(e){if(Ft(e)!==e)throw Error(x(188))}function Pd(e){var t=e.alternate;if(!t){if(t=Ft(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return fo(s),e;if(l===r)return fo(s),t;l=l.sibling}throw Error(x(188))}if(n.return!==r.return)n=s,r=l;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function nu(e){return e=Pd(e),e!==null?ru(e):null}function ru(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ru(e);if(t!==null)return t;e=e.sibling}return null}var su=ke.unstable_scheduleCallback,po=ke.unstable_cancelCallback,Ld=ke.unstable_shouldYield,Rd=ke.unstable_requestPaint,Y=ke.unstable_now,$d=ke.unstable_getCurrentPriorityLevel,mi=ke.unstable_ImmediatePriority,lu=ke.unstable_UserBlockingPriority,Wr=ke.unstable_NormalPriority,Od=ke.unstable_LowPriority,iu=ke.unstable_IdlePriority,ds=null,Ue=null;function Md(e){if(Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(ds,e,void 0,(e.current.flags&128)===128)}catch{}}var Ie=Math.clz32?Math.clz32:Dd,Id=Math.log,Fd=Math.LN2;function Dd(e){return e>>>=0,e===0?32:31-(Id(e)/Fd|0)|0}var pr=64,hr=4194304;function _n(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=_n(a):(l&=o,l!==0&&(r=_n(l)))}else o=n&~s,o!==0?r=_n(o):l!==0&&(r=_n(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ie(t),s=1<<n,r|=e[n],t&=~s;return r}function Hd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ad(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ie(l),a=1<<o,u=s[o];u===-1?(!(a&n)||a&r)&&(s[o]=Hd(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function El(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ou(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function Is(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ie(t),e[t]=n}function Wd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Ie(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function gi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ie(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var I=0;function au(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uu,vi,cu,du,fu,_l=!1,mr=[],ot=null,at=null,ut=null,Un=new Map,Bn=new Map,rt=[],Ud="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ho(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bn.delete(t.pointerId)}}function wn(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=lr(t),t!==null&&vi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Bd(e,t,n,r,s){switch(t){case"focusin":return ot=wn(ot,e,t,n,r,s),!0;case"dragenter":return at=wn(at,e,t,n,r,s),!0;case"mouseover":return ut=wn(ut,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return Un.set(l,wn(Un.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,Bn.set(l,wn(Bn.get(l)||null,e,t,n,r,s)),!0}return!1}function pu(e){var t=Ct(e.target);if(t!==null){var n=Ft(t);if(n!==null){if(t=n.tag,t===13){if(t=tu(n),t!==null){e.blockedOn=t,fu(e.priority,function(){cu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Nl=r,n.target.dispatchEvent(r),Nl=null}else return t=lr(n),t!==null&&vi(t),e.blockedOn=n,!1;t.shift()}return!0}function mo(e,t,n){_r(e)&&n.delete(t)}function Vd(){_l=!1,ot!==null&&_r(ot)&&(ot=null),at!==null&&_r(at)&&(at=null),ut!==null&&_r(ut)&&(ut=null),Un.forEach(mo),Bn.forEach(mo)}function kn(e,t){e.blockedOn===t&&(e.blockedOn=null,_l||(_l=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Vd)))}function Vn(e){function t(s){return kn(s,e)}if(0<mr.length){kn(mr[0],e);for(var n=1;n<mr.length;n++){var r=mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ot!==null&&kn(ot,e),at!==null&&kn(at,e),ut!==null&&kn(ut,e),Un.forEach(t),Bn.forEach(t),n=0;n<rt.length;n++)r=rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rt.length&&(n=rt[0],n.blockedOn===null);)pu(n),n.blockedOn===null&&rt.shift()}var nn=be.ReactCurrentBatchConfig,Br=!0;function Qd(e,t,n,r){var s=I,l=nn.transition;nn.transition=null;try{I=1,yi(e,t,n,r)}finally{I=s,nn.transition=l}}function Kd(e,t,n,r){var s=I,l=nn.transition;nn.transition=null;try{I=4,yi(e,t,n,r)}finally{I=s,nn.transition=l}}function yi(e,t,n,r){if(Br){var s=zl(e,t,n,r);if(s===null)Ks(e,t,r,Vr,n),ho(e,r);else if(Bd(s,e,t,n,r))r.stopPropagation();else if(ho(e,r),t&4&&-1<Ud.indexOf(e)){for(;s!==null;){var l=lr(s);if(l!==null&&uu(l),l=zl(e,t,n,r),l===null&&Ks(e,t,r,Vr,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else Ks(e,t,r,null,n)}}var Vr=null;function zl(e,t,n,r){if(Vr=null,e=hi(r),e=Ct(e),e!==null)if(t=Ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vr=e,null}function hu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($d()){case mi:return 1;case lu:return 4;case Wr:case Od:return 16;case iu:return 536870912;default:return 16}default:return 16}}var lt=null,xi=null,zr=null;function mu(){if(zr)return zr;var e,t=xi,n=t.length,r,s="value"in lt?lt.value:lt.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[l-r];r++);return zr=s.slice(e,1<r?1-r:void 0)}function Pr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gr(){return!0}function go(){return!1}function Ne(e){function t(n,r,s,l,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?gr:go,this.isPropagationStopped=go,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gr)},persist:function(){},isPersistent:gr}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=Ne(hn),sr=B({},hn,{view:0,detail:0}),Yd=Ne(sr),Fs,Ds,jn,fs=B({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ki,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jn&&(jn&&e.type==="mousemove"?(Fs=e.screenX-jn.screenX,Ds=e.screenY-jn.screenY):Ds=Fs=0,jn=e),Fs)},movementY:function(e){return"movementY"in e?e.movementY:Ds}}),vo=Ne(fs),qd=B({},fs,{dataTransfer:0}),Gd=Ne(qd),Xd=B({},sr,{relatedTarget:0}),Hs=Ne(Xd),Jd=B({},hn,{animationName:0,elapsedTime:0,pseudoElement:0}),Zd=Ne(Jd),bd=B({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ef=Ne(bd),tf=B({},hn,{data:0}),yo=Ne(tf),nf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rf={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"},sf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sf[e])?!!t[e]:!1}function ki(){return lf}var of=B({},sr,{key:function(e){if(e.key){var t=nf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ki,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),af=Ne(of),uf=B({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xo=Ne(uf),cf=B({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ki}),df=Ne(cf),ff=B({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),pf=Ne(ff),hf=B({},fs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mf=Ne(hf),gf=[9,13,27,32],ji=Ge&&"CompositionEvent"in window,Rn=null;Ge&&"documentMode"in document&&(Rn=document.documentMode);var vf=Ge&&"TextEvent"in window&&!Rn,gu=Ge&&(!ji||Rn&&8<Rn&&11>=Rn),wo=" ",ko=!1;function vu(e,t){switch(e){case"keyup":return gf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bt=!1;function yf(e,t){switch(e){case"compositionend":return yu(t);case"keypress":return t.which!==32?null:(ko=!0,wo);case"textInput":return e=t.data,e===wo&&ko?null:e;default:return null}}function xf(e,t){if(Bt)return e==="compositionend"||!ji&&vu(e,t)?(e=mu(),zr=xi=lt=null,Bt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gu&&t.locale!=="ko"?null:t.data;default:return null}}var wf={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 jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wf[e.type]:t==="textarea"}function xu(e,t,n,r){Xa(r),t=Qr(t,"onChange"),0<t.length&&(n=new wi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Qn=null;function kf(e){Pu(e,0)}function ps(e){var t=Kt(e);if(Ba(t))return e}function jf(e,t){if(e==="change")return t}var wu=!1;if(Ge){var As;if(Ge){var Ws="oninput"in document;if(!Ws){var No=document.createElement("div");No.setAttribute("oninput","return;"),Ws=typeof No.oninput=="function"}As=Ws}else As=!1;wu=As&&(!document.documentMode||9<document.documentMode)}function So(){$n&&($n.detachEvent("onpropertychange",ku),Qn=$n=null)}function ku(e){if(e.propertyName==="value"&&ps(Qn)){var t=[];xu(t,Qn,e,hi(e)),eu(kf,t)}}function Nf(e,t,n){e==="focusin"?(So(),$n=t,Qn=n,$n.attachEvent("onpropertychange",ku)):e==="focusout"&&So()}function Sf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Qn)}function Cf(e,t){if(e==="click")return ps(t)}function Tf(e,t){if(e==="input"||e==="change")return ps(t)}function Ef(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var De=typeof Object.is=="function"?Object.is:Ef;function Kn(e,t){if(De(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!dl.call(t,s)||!De(e[s],t[s]))return!1}return!0}function Co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function To(e,t){var n=Co(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Co(n)}}function ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nu(){for(var e=window,t=Dr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function Ni(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _f(e){var t=Nu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ju(n.ownerDocument.documentElement,n)){if(r!==null&&Ni(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=To(n,l);var o=To(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zf=Ge&&"documentMode"in document&&11>=document.documentMode,Vt=null,Pl=null,On=null,Ll=!1;function Eo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ll||Vt==null||Vt!==Dr(r)||(r=Vt,"selectionStart"in r&&Ni(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),On&&Kn(On,r)||(On=r,r=Qr(Pl,"onSelect"),0<r.length&&(t=new wi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vt)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qt={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionend:vr("Transition","TransitionEnd")},Us={},Su={};Ge&&(Su=document.createElement("div").style,"AnimationEvent"in window||(delete Qt.animationend.animation,delete Qt.animationiteration.animation,delete Qt.animationstart.animation),"TransitionEvent"in window||delete Qt.transitionend.transition);function hs(e){if(Us[e])return Us[e];if(!Qt[e])return e;var t=Qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Su)return Us[e]=t[n];return e}var Cu=hs("animationend"),Tu=hs("animationiteration"),Eu=hs("animationstart"),_u=hs("transitionend"),zu=new Map,_o="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function yt(e,t){zu.set(e,t),It(t,[e])}for(var Bs=0;Bs<_o.length;Bs++){var Vs=_o[Bs],Pf=Vs.toLowerCase(),Lf=Vs[0].toUpperCase()+Vs.slice(1);yt(Pf,"on"+Lf)}yt(Cu,"onAnimationEnd");yt(Tu,"onAnimationIteration");yt(Eu,"onAnimationStart");yt("dblclick","onDoubleClick");yt("focusin","onFocus");yt("focusout","onBlur");yt(_u,"onTransitionEnd");ln("onMouseEnter",["mouseout","mouseover"]);ln("onMouseLeave",["mouseout","mouseover"]);ln("onPointerEnter",["pointerout","pointerover"]);ln("onPointerLeave",["pointerout","pointerover"]);It("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));It("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));It("onBeforeInput",["compositionend","keypress","textInput","paste"]);It("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));It("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));It("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zn="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(" "),Rf=new Set("cancel close invalid load scroll toggle".split(" ").concat(zn));function zo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,zd(r,t,void 0,e),e.currentTarget=null}function Pu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==l&&s.isPropagationStopped())break e;zo(s,a,d),l=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==l&&s.isPropagationStopped())break e;zo(s,a,d),l=u}}}if(Ar)throw e=Tl,Ar=!1,Tl=null,e}function D(e,t){var n=t[Il];n===void 0&&(n=t[Il]=new Set);var r=e+"__bubble";n.has(r)||(Lu(t,e,2,!1),n.add(r))}function Qs(e,t,n){var r=0;t&&(r|=4),Lu(n,e,r,t)}var yr="_reactListening"+Math.random().toString(36).slice(2);function Yn(e){if(!e[yr]){e[yr]=!0,Da.forEach(function(n){n!=="selectionchange"&&(Rf.has(n)||Qs(n,!1,e),Qs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yr]||(t[yr]=!0,Qs("selectionchange",!1,t))}}function Lu(e,t,n,r){switch(hu(t)){case 1:var s=Qd;break;case 4:s=Kd;break;default:s=yi}n=s.bind(null,t,n,e),s=void 0,!Cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ks(e,t,n,r,s){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Ct(a),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}a=a.parentNode}}r=r.return}eu(function(){var d=l,g=hi(n),m=[];e:{var h=zu.get(e);if(h!==void 0){var v=wi,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":v=af;break;case"focusin":w="focus",v=Hs;break;case"focusout":w="blur",v=Hs;break;case"beforeblur":case"afterblur":v=Hs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=vo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Gd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=df;break;case Cu:case Tu:case Eu:v=Zd;break;case _u:v=pf;break;case"scroll":v=Yd;break;case"wheel":v=mf;break;case"copy":case"cut":case"paste":v=ef;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=xo}var k=(t&4)!==0,O=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=d,p;c!==null;){p=c;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,f!==null&&(y=Wn(c,f),y!=null&&k.push(qn(c,y,p)))),O)break;c=c.return}0<k.length&&(h=new v(h,w,null,n,g),m.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&n!==Nl&&(w=n.relatedTarget||n.fromElement)&&(Ct(w)||w[Xe]))break e;if((v||h)&&(h=g.window===g?g:(h=g.ownerDocument)?h.defaultView||h.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=d,w=w?Ct(w):null,w!==null&&(O=Ft(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=d),v!==w)){if(k=vo,y="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=xo,y="onPointerLeave",f="onPointerEnter",c="pointer"),O=v==null?h:Kt(v),p=w==null?h:Kt(w),h=new k(y,c+"leave",v,n,g),h.target=O,h.relatedTarget=p,y=null,Ct(g)===d&&(k=new k(f,c+"enter",w,n,g),k.target=p,k.relatedTarget=O,y=k),O=y,v&&w)t:{for(k=v,f=w,c=0,p=k;p;p=Dt(p))c++;for(p=0,y=f;y;y=Dt(y))p++;for(;0<c-p;)k=Dt(k),c--;for(;0<p-c;)f=Dt(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=Dt(k),f=Dt(f)}k=null}else k=null;v!==null&&Po(m,h,v,k,!1),w!==null&&O!==null&&Po(m,O,w,k,!0)}}e:{if(h=d?Kt(d):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var j=jf;else if(jo(h))if(wu)j=Tf;else{j=Sf;var C=Nf}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=Cf);if(j&&(j=j(e,d))){xu(m,j,n,g);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&yl(h,"number",h.value)}switch(C=d?Kt(d):window,e){case"focusin":(jo(C)||C.contentEditable==="true")&&(Vt=C,Pl=d,On=null);break;case"focusout":On=Pl=Vt=null;break;case"mousedown":Ll=!0;break;case"contextmenu":case"mouseup":case"dragend":Ll=!1,Eo(m,n,g);break;case"selectionchange":if(zf)break;case"keydown":case"keyup":Eo(m,n,g)}var T;if(ji)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Bt?vu(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(gu&&n.locale!=="ko"&&(Bt||E!=="onCompositionStart"?E==="onCompositionEnd"&&Bt&&(T=mu()):(lt=g,xi="value"in lt?lt.value:lt.textContent,Bt=!0)),C=Qr(d,E),0<C.length&&(E=new yo(E,e,null,n,g),m.push({event:E,listeners:C}),T?E.data=T:(T=yu(n),T!==null&&(E.data=T)))),(T=vf?yf(e,n):xf(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(g=new yo("onBeforeInput","beforeinput",null,n,g),m.push({event:g,listeners:d}),g.data=T))}Pu(m,t)})}function qn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=Wn(e,n),l!=null&&r.unshift(qn(e,l,s)),l=Wn(e,t),l!=null&&r.push(qn(e,l,s))),e=e.return}return r}function Dt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Po(e,t,n,r,s){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,s?(u=Wn(n,l),u!=null&&o.unshift(qn(n,u,a))):s||(u=Wn(n,l),u!=null&&o.push(qn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var $f=/\r\n?/g,Of=/\u0000|\uFFFD/g;function Lo(e){return(typeof e=="string"?e:""+e).replace($f,`
|
|
38
|
-
`).replace(Of,"")}function xr(e,t,n){if(t=Lo(t),Lo(e)!==t&&n)throw Error(x(425))}function Kr(){}var Rl=null,$l=null;function Ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ml=typeof setTimeout=="function"?setTimeout:void 0,Mf=typeof clearTimeout=="function"?clearTimeout:void 0,Ro=typeof Promise=="function"?Promise:void 0,If=typeof queueMicrotask=="function"?queueMicrotask:typeof Ro<"u"?function(e){return Ro.resolve(null).then(e).catch(Ff)}:Ml;function Ff(e){setTimeout(function(){throw e})}function Ys(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Vn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Vn(t)}function ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $o(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var mn=Math.random().toString(36).slice(2),We="__reactFiber$"+mn,Gn="__reactProps$"+mn,Xe="__reactContainer$"+mn,Il="__reactEvents$"+mn,Df="__reactListeners$"+mn,Hf="__reactHandles$"+mn;function Ct(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$o(e);e!==null;){if(n=e[We])return n;e=$o(e)}return t}e=n,n=e.parentNode}return null}function lr(e){return e=e[We]||e[Xe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function ms(e){return e[Gn]||null}var Fl=[],Yt=-1;function xt(e){return{current:e}}function H(e){0>Yt||(e.current=Fl[Yt],Fl[Yt]=null,Yt--)}function F(e,t){Yt++,Fl[Yt]=e.current,e.current=t}var gt={},oe=xt(gt),he=xt(!1),Pt=gt;function on(e,t){var n=e.type.contextTypes;if(!n)return gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function me(e){return e=e.childContextTypes,e!=null}function Yr(){H(he),H(oe)}function Oo(e,t,n){if(oe.current!==gt)throw Error(x(168));F(oe,t),F(he,n)}function Ru(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(x(108,jd(e)||"Unknown",s));return B({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gt,Pt=oe.current,F(oe,e),F(he,he.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Ru(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,H(he),H(oe),F(oe,e)):H(he),F(he,n)}var Qe=null,gs=!1,qs=!1;function $u(e){Qe===null?Qe=[e]:Qe.push(e)}function Af(e){gs=!0,$u(e)}function wt(){if(!qs&&Qe!==null){qs=!0;var e=0,t=I;try{var n=Qe;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Qe=null,gs=!1}catch(s){throw Qe!==null&&(Qe=Qe.slice(e+1)),su(mi,wt),s}finally{I=t,qs=!1}}return null}var qt=[],Gt=0,Gr=null,Xr=0,Se=[],Ce=0,Lt=null,Ke=1,Ye="";function Nt(e,t){qt[Gt++]=Xr,qt[Gt++]=Gr,Gr=e,Xr=t}function Ou(e,t,n){Se[Ce++]=Ke,Se[Ce++]=Ye,Se[Ce++]=Lt,Lt=e;var r=Ke;e=Ye;var s=32-Ie(r)-1;r&=~(1<<s),n+=1;var l=32-Ie(t)+s;if(30<l){var o=s-s%5;l=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Ke=1<<32-Ie(t)+s|n<<s|r,Ye=l+e}else Ke=1<<l|n<<s|r,Ye=e}function Si(e){e.return!==null&&(Nt(e,1),Ou(e,1,0))}function Ci(e){for(;e===Gr;)Gr=qt[--Gt],qt[Gt]=null,Xr=qt[--Gt],qt[Gt]=null;for(;e===Lt;)Lt=Se[--Ce],Se[Ce]=null,Ye=Se[--Ce],Se[Ce]=null,Ke=Se[--Ce],Se[Ce]=null}var we=null,xe=null,A=!1,Oe=null;function Mu(e,t){var n=Te(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Io(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,xe=ct(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Lt!==null?{id:Ke,overflow:Ye}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Te(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,xe=null,!0):!1;default:return!1}}function Dl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Hl(e){if(A){var t=xe;if(t){var n=t;if(!Io(e,t)){if(Dl(e))throw Error(x(418));t=ct(n.nextSibling);var r=we;t&&Io(e,t)?Mu(r,n):(e.flags=e.flags&-4097|2,A=!1,we=e)}}else{if(Dl(e))throw Error(x(418));e.flags=e.flags&-4097|2,A=!1,we=e}}}function Fo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function wr(e){if(e!==we)return!1;if(!A)return Fo(e),A=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ol(e.type,e.memoizedProps)),t&&(t=xe)){if(Dl(e))throw Iu(),Error(x(418));for(;t;)Mu(e,t),t=ct(t.nextSibling)}if(Fo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=ct(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=we?ct(e.stateNode.nextSibling):null;return!0}function Iu(){for(var e=xe;e;)e=ct(e.nextSibling)}function an(){xe=we=null,A=!1}function Ti(e){Oe===null?Oe=[e]:Oe.push(e)}var Wf=be.ReactCurrentBatchConfig;function Nn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=s.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Do(e){var t=e._init;return t(e._payload)}function Fu(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function s(f,c){return f=ht(f,c),f.index=0,f.sibling=null,f}function l(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,p,y){return c===null||c.tag!==6?(c=tl(p,f.mode,y),c.return=f,c):(c=s(c,p),c.return=f,c)}function u(f,c,p,y){var j=p.type;return j===Ut?g(f,c,p.props.children,y,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===tt&&Do(j)===c.type)?(y=s(c,p.props),y.ref=Nn(f,c,p),y.return=f,y):(y=Fr(p.type,p.key,p.props,null,f.mode,y),y.ref=Nn(f,c,p),y.return=f,y)}function d(f,c,p,y){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=nl(p,f.mode,y),c.return=f,c):(c=s(c,p.children||[]),c.return=f,c)}function g(f,c,p,y,j){return c===null||c.tag!==7?(c=zt(p,f.mode,y,j),c.return=f,c):(c=s(c,p),c.return=f,c)}function m(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=tl(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=Fr(c.type,c.key,c.props,null,f.mode,p),p.ref=Nn(f,null,c),p.return=f,p;case Wt:return c=nl(c,f.mode,p),c.return=f,c;case tt:var y=c._init;return m(f,y(c._payload),p)}if(En(c)||yn(c))return c=zt(c,f.mode,p,null),c.return=f,c;kr(f,c)}return null}function h(f,c,p,y){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:a(f,c,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:return p.key===j?u(f,c,p,y):null;case Wt:return p.key===j?d(f,c,p,y):null;case tt:return j=p._init,h(f,c,j(p._payload),y)}if(En(p)||yn(p))return j!==null?null:g(f,c,p,y,null);kr(f,p)}return null}function v(f,c,p,y,j){if(typeof y=="string"&&y!==""||typeof y=="number")return f=f.get(p)||null,a(c,f,""+y,j);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case cr:return f=f.get(y.key===null?p:y.key)||null,u(c,f,y,j);case Wt:return f=f.get(y.key===null?p:y.key)||null,d(c,f,y,j);case tt:var C=y._init;return v(f,c,p,C(y._payload),j)}if(En(y)||yn(y))return f=f.get(p)||null,g(c,f,y,j,null);kr(c,y)}return null}function w(f,c,p,y){for(var j=null,C=null,T=c,E=c=0,Q=null;T!==null&&E<p.length;E++){T.index>E?(Q=T,T=null):Q=T.sibling;var R=h(f,T,p[E],y);if(R===null){T===null&&(T=Q);break}e&&T&&R.alternate===null&&t(f,T),c=l(R,c,E),C===null?j=R:C.sibling=R,C=R,T=Q}if(E===p.length)return n(f,T),A&&Nt(f,E),j;if(T===null){for(;E<p.length;E++)T=m(f,p[E],y),T!==null&&(c=l(T,c,E),C===null?j=T:C.sibling=T,C=T);return A&&Nt(f,E),j}for(T=r(f,T);E<p.length;E++)Q=v(T,f,E,p[E],y),Q!==null&&(e&&Q.alternate!==null&&T.delete(Q.key===null?E:Q.key),c=l(Q,c,E),C===null?j=Q:C.sibling=Q,C=Q);return e&&T.forEach(function(Pe){return t(f,Pe)}),A&&Nt(f,E),j}function k(f,c,p,y){var j=yn(p);if(typeof j!="function")throw Error(x(150));if(p=j.call(p),p==null)throw Error(x(151));for(var C=j=null,T=c,E=c=0,Q=null,R=p.next();T!==null&&!R.done;E++,R=p.next()){T.index>E?(Q=T,T=null):Q=T.sibling;var Pe=h(f,T,R.value,y);if(Pe===null){T===null&&(T=Q);break}e&&T&&Pe.alternate===null&&t(f,T),c=l(Pe,c,E),C===null?j=Pe:C.sibling=Pe,C=Pe,T=Q}if(R.done)return n(f,T),A&&Nt(f,E),j;if(T===null){for(;!R.done;E++,R=p.next())R=m(f,R.value,y),R!==null&&(c=l(R,c,E),C===null?j=R:C.sibling=R,C=R);return A&&Nt(f,E),j}for(T=r(f,T);!R.done;E++,R=p.next())R=v(T,f,E,R.value,y),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?E:R.key),c=l(R,c,E),C===null?j=R:C.sibling=R,C=R);return e&&T.forEach(function(gn){return t(f,gn)}),A&&Nt(f,E),j}function O(f,c,p,y){if(typeof p=="object"&&p!==null&&p.type===Ut&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:e:{for(var j=p.key,C=c;C!==null;){if(C.key===j){if(j=p.type,j===Ut){if(C.tag===7){n(f,C.sibling),c=s(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===tt&&Do(j)===C.type){n(f,C.sibling),c=s(C,p.props),c.ref=Nn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===Ut?(c=zt(p.props.children,f.mode,y,p.key),c.return=f,f=c):(y=Fr(p.type,p.key,p.props,null,f.mode,y),y.ref=Nn(f,c,p),y.return=f,f=y)}return o(f);case Wt:e:{for(C=p.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=s(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=nl(p,f.mode,y),c.return=f,f=c}return o(f);case tt:return C=p._init,O(f,c,C(p._payload),y)}if(En(p))return w(f,c,p,y);if(yn(p))return k(f,c,p,y);kr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=s(c,p),c.return=f,f=c):(n(f,c),c=tl(p,f.mode,y),c.return=f,f=c),o(f)):n(f,c)}return O}var un=Fu(!0),Du=Fu(!1),Jr=xt(null),Zr=null,Xt=null,Ei=null;function _i(){Ei=Xt=Zr=null}function zi(e){var t=Jr.current;H(Jr),e._currentValue=t}function Al(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rn(e,t){Zr=e,Ei=Xt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(Zr===null)throw Error(x(308));Xt=e,Zr.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var Tt=null;function Pi(e){Tt===null?Tt=[e]:Tt.push(e)}function Hu(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Pi(t)):(n.next=s.next,s.next=n),t.interleaved=n,Je(e,r)}function Je(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var nt=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Je(e,n)}return s=r.interleaved,s===null?(t.next=t,Pi(r)):(t.next=s.next,s.next=t),r.interleaved=t,Je(e,n)}function Lr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gi(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function br(e,t,n,r){var s=e.updateQueue;nt=!1;var l=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?l=d:o.next=d,o=u;var g=e.alternate;g!==null&&(g=g.updateQueue,a=g.lastBaseUpdate,a!==o&&(a===null?g.firstBaseUpdate=d:a.next=d,g.lastBaseUpdate=u))}if(l!==null){var m=s.baseState;o=0,g=d=u=null,a=l;do{var h=a.lane,v=a.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(h=t,v=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){m=w.call(v,m,h);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,h=typeof w=="function"?w.call(v,m,h):w,h==null)break e;m=B({},m,h);break e;case 2:nt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else v={eventTime:v,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},g===null?(d=g=v,u=m):g=g.next=v,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(g===null&&(u=m),s.baseState=u,s.firstBaseUpdate=d,s.lastBaseUpdate=g,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);$t|=o,e.lanes=o,e.memoizedState=m}}function Ao(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(x(191,s));s.call(r)}}}var ir={},Be=xt(ir),Xn=xt(ir),Jn=xt(ir);function Et(e){if(e===ir)throw Error(x(174));return e}function Ri(e,t){switch(F(Jn,t),F(Xn,e),F(Be,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wl(t,e)}H(Be),F(Be,t)}function cn(){H(Be),H(Xn),H(Jn)}function Wu(e){Et(Jn.current);var t=Et(Be.current),n=wl(t,e.type);t!==n&&(F(Xn,e),F(Be,n))}function $i(e){Xn.current===e&&(H(Be),H(Xn))}var W=xt(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gs=[];function Oi(){for(var e=0;e<Gs.length;e++)Gs[e]._workInProgressVersionPrimary=null;Gs.length=0}var Rr=be.ReactCurrentDispatcher,Xs=be.ReactCurrentBatchConfig,Rt=0,U=null,X=null,b=null,ts=!1,Mn=!1,Zn=0,Uf=0;function se(){throw Error(x(321))}function Mi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!De(e[n],t[n]))return!1;return!0}function Ii(e,t,n,r,s,l){if(Rt=l,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rr.current=e===null||e.memoizedState===null?Kf:Yf,e=n(r,s),Mn){l=0;do{if(Mn=!1,Zn=0,25<=l)throw Error(x(301));l+=1,b=X=null,t.updateQueue=null,Rr.current=qf,e=n(r,s)}while(Mn)}if(Rr.current=ns,t=X!==null&&X.next!==null,Rt=0,b=X=U=null,ts=!1,t)throw Error(x(300));return e}function Fi(){var e=Zn!==0;return Zn=0,e}function Ae(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?U.memoizedState=b=e:b=b.next=e,b}function ze(){if(X===null){var e=U.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=b===null?U.memoizedState:b.next;if(t!==null)b=t,X=e;else{if(e===null)throw Error(x(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},b===null?U.memoizedState=b=e:b=b.next=e}return b}function bn(e,t){return typeof t=="function"?t(e):t}function Js(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=X,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var o=s.next;s.next=l.next,l.next=o}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=o=null,u=null,d=l;do{var g=d.lane;if((Rt&g)===g)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var m={lane:g,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=m,o=r):u=u.next=m,U.lanes|=g,$t|=g}d=d.next}while(d!==null&&d!==l);u===null?o=r:u.next=a,De(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,U.lanes|=l,$t|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zs(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do l=e(l,o.action),o=o.next;while(o!==s);De(l,t.memoizedState)||(pe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Uu(){}function Bu(e,t){var n=U,r=ze(),s=t(),l=!De(r.memoizedState,s);if(l&&(r.memoizedState=s,pe=!0),r=r.queue,Di(Ku.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,er(9,Qu.bind(null,n,r,s,t),void 0,null),ee===null)throw Error(x(349));Rt&30||Vu(n,t,s)}return s}function Vu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qu(e,t,n,r){t.value=n,t.getSnapshot=r,Yu(t)&&qu(e)}function Ku(e,t,n){return n(function(){Yu(t)&&qu(e)})}function Yu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!De(e,n)}catch{return!0}}function qu(e){var t=Je(e,1);t!==null&&Fe(t,e,1,-1)}function Wo(e){var t=Ae();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t.queue=e,e=e.dispatch=Qf.bind(null,U,e),[t.memoizedState,e]}function er(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Gu(){return ze().memoizedState}function $r(e,t,n,r){var s=Ae();U.flags|=e,s.memoizedState=er(1|t,n,void 0,r===void 0?null:r)}function vs(e,t,n,r){var s=ze();r=r===void 0?null:r;var l=void 0;if(X!==null){var o=X.memoizedState;if(l=o.destroy,r!==null&&Mi(r,o.deps)){s.memoizedState=er(t,n,l,r);return}}U.flags|=e,s.memoizedState=er(1|t,n,l,r)}function Uo(e,t){return $r(8390656,8,e,t)}function Di(e,t){return vs(2048,8,e,t)}function Xu(e,t){return vs(4,2,e,t)}function Ju(e,t){return vs(4,4,e,t)}function Zu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bu(e,t,n){return n=n!=null?n.concat([e]):null,vs(4,4,Zu.bind(null,t,e),n)}function Hi(){}function ec(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tc(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nc(e,t,n){return Rt&21?(De(n,t)||(n=ou(),U.lanes|=n,$t|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Bf(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{I=n,Xs.transition=r}}function rc(){return ze().memoizedState}function Vf(e,t,n){var r=pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e))lc(t,n);else if(n=Hu(e,t,n,r),n!==null){var s=ue();Fe(n,e,r,s),ic(n,t,r)}}function Qf(e,t,n){var r=pt(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))lc(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(s.hasEagerState=!0,s.eagerState=a,De(a,o)){var u=t.interleaved;u===null?(s.next=s,Pi(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Hu(e,t,s,r),n!==null&&(s=ue(),Fe(n,e,r,s),ic(n,t,r))}}function sc(e){var t=e.alternate;return e===U||t!==null&&t===U}function lc(e,t){Mn=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ic(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gi(e,n)}}var ns={readContext:_e,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Kf={readContext:_e,useCallback:function(e,t){return Ae().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Uo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$r(4194308,4,Zu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){return $r(4,2,e,t)},useMemo:function(e,t){var n=Ae();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ae();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Ae();return e={current:e},t.memoizedState=e},useState:Wo,useDebugValue:Hi,useDeferredValue:function(e){return Ae().memoizedState=e},useTransition:function(){var e=Wo(!1),t=e[0];return e=Bf.bind(null,e[1]),Ae().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,s=Ae();if(A){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ee===null)throw Error(x(349));Rt&30||Vu(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Uo(Ku.bind(null,r,l,e),[e]),r.flags|=2048,er(9,Qu.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ae(),t=ee.identifierPrefix;if(A){var n=Ye,r=Ke;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Uf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yf={readContext:_e,useCallback:ec,useContext:_e,useEffect:Di,useImperativeHandle:bu,useInsertionEffect:Xu,useLayoutEffect:Ju,useMemo:tc,useReducer:Js,useRef:Gu,useState:function(){return Js(bn)},useDebugValue:Hi,useDeferredValue:function(e){var t=ze();return nc(t,X.memoizedState,e)},useTransition:function(){var e=Js(bn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Uu,useSyncExternalStore:Bu,useId:rc,unstable_isNewReconciler:!1},qf={readContext:_e,useCallback:ec,useContext:_e,useEffect:Di,useImperativeHandle:bu,useInsertionEffect:Xu,useLayoutEffect:Ju,useMemo:tc,useReducer:Zs,useRef:Gu,useState:function(){return Zs(bn)},useDebugValue:Hi,useDeferredValue:function(e){var t=ze();return X===null?t.memoizedState=e:nc(t,X.memoizedState,e)},useTransition:function(){var e=Zs(bn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Uu,useSyncExternalStore:Bu,useId:rc,unstable_isNewReconciler:!1};function Re(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Wl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ys={isMounted:function(e){return(e=e._reactInternals)?Ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ue(),s=pt(e),l=qe(r,s);l.payload=t,n!=null&&(l.callback=n),t=dt(e,l,s),t!==null&&(Fe(t,e,s,r),Lr(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ue(),s=pt(e),l=qe(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=dt(e,l,s),t!==null&&(Fe(t,e,s,r),Lr(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ue(),r=pt(e),s=qe(n,r);s.tag=2,t!=null&&(s.callback=t),t=dt(e,s,r),t!==null&&(Fe(t,e,r,n),Lr(t,e,r))}};function Bo(e,t,n,r,s,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Kn(n,r)||!Kn(s,l):!0}function oc(e,t,n){var r=!1,s=gt,l=t.contextType;return typeof l=="object"&&l!==null?l=_e(l):(s=me(t)?Pt:oe.current,r=t.contextTypes,l=(r=r!=null)?on(e,s):gt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function Vo(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function Ul(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Li(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=_e(l):(l=me(t)?Pt:oe.current,s.context=on(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Wl(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ys.enqueueReplaceState(s,s.state,null),br(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function dn(e,t){try{var n="",r=t;do n+=kd(r),r=r.return;while(r);var s=n}catch(l){s=`
|
|
39
|
-
Error generating stack: `+l.message+`
|
|
40
|
-
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function bs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Gf=typeof WeakMap=="function"?WeakMap:Map;function ac(e,t,n){n=qe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ss||(ss=!0,bl=r),Bl(e,t)},n}function uc(e,t,n){n=qe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Bl(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Bl(e,t),typeof r!="function"&&(ft===null?ft=new Set([this]):ft.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Qo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gf;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=up.bind(null,e,t,n),t.then(e,e))}function Ko(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Yo(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qe(-1,1),t.tag=2,dt(n,t,1))),n.lanes|=1),e)}var Xf=be.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?Du(t,null,n,r):un(t,e.child,n,r)}function qo(e,t,n,r,s){n=n.render;var l=t.ref;return rn(t,s),r=Ii(e,t,n,r,l,s),n=Fi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ze(e,t,s)):(A&&n&&Si(t),t.flags|=1,ae(e,t,r,s),t.child)}function Go(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Yi(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,cc(e,t,l,r,s)):(e=Fr(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Kn,n(o,r)&&e.ref===t.ref)return Ze(e,t,s)}return t.flags|=1,e=ht(l,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(Kn(l,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=l,(e.lanes&s)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Ze(e,t,s)}return Vl(e,t,n,r,s)}function dc(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(Zt,ye),ye|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(Zt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,F(Zt,ye),ye|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,F(Zt,ye),ye|=r;return ae(e,t,s,n),t.child}function fc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vl(e,t,n,r,s){var l=me(n)?Pt:oe.current;return l=on(t,l),rn(t,s),n=Ii(e,t,n,r,l,s),r=Fi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ze(e,t,s)):(A&&r&&Si(t),t.flags|=1,ae(e,t,n,s),t.child)}function Xo(e,t,n,r,s){if(me(n)){var l=!0;qr(t)}else l=!1;if(rn(t,s),t.stateNode===null)Or(e,t),oc(t,n,r),Ul(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=_e(d):(d=me(n)?Pt:oe.current,d=on(t,d));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==d)&&Vo(t,o,r,d),nt=!1;var h=t.memoizedState;o.state=h,br(t,r,o,s),u=t.memoizedState,a!==r||h!==u||he.current||nt?(typeof g=="function"&&(Wl(t,n,g,r),u=t.memoizedState),(a=nt||Bo(t,n,a,r,h,u,d))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Au(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Re(t.type,a),o.props=d,m=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=_e(u):(u=me(n)?Pt:oe.current,u=on(t,u));var v=n.getDerivedStateFromProps;(g=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==m||h!==u)&&Vo(t,o,r,u),nt=!1,h=t.memoizedState,o.state=h,br(t,r,o,s);var w=t.memoizedState;a!==m||h!==w||he.current||nt?(typeof v=="function"&&(Wl(t,n,v,r),w=t.memoizedState),(d=nt||Bo(t,n,d,r,h,w,u)||!1)?(g||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ql(e,t,n,r,l,s)}function Ql(e,t,n,r,s,l){fc(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Mo(t,n,!1),Ze(e,t,l);r=t.stateNode,Xf.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=un(t,e.child,null,l),t.child=un(t,null,a,l)):ae(e,t,a,l),t.memoizedState=r.state,s&&Mo(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?Oo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Oo(e,t.context,!1),Ri(e,t.containerInfo)}function Jo(e,t,n,r,s){return an(),Ti(s),t.flags|=256,ae(e,t,n,r),t.child}var Kl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,s=W.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),F(W,s&1),e===null)return Hl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=ks(o,r,0,null),e=zt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Yl(n),t.memoizedState=Kl,e):Ai(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Jf(e,t,o,r,a,s,n);if(l){l=r.fallback,o=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ht(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=ht(a,l):(l=zt(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Yl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Kl,r}return l=e.child,e=l.sibling,r=ht(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ai(e,t){return t=ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Ti(r),un(t,e.child,null,n),e=Ai(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jf(e,t,n,r,s,l,o){if(n)return t.flags&256?(t.flags&=-257,r=bs(Error(x(422))),jr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=ks({mode:"visible",children:r.children},s,0,null),l=zt(l,s,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&un(t,e.child,null,o),t.child.memoizedState=Yl(o),t.memoizedState=Kl,l);if(!(t.mode&1))return jr(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(x(419)),r=bs(l,r,void 0),jr(e,t,o,r)}if(a=(o&e.childLanes)!==0,pe||a){if(r=ee,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Je(e,s),Fe(r,e,s,-1))}return Ki(),r=bs(Error(x(421))),jr(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=cp.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,xe=ct(s.nextSibling),we=t,A=!0,Oe=null,e!==null&&(Se[Ce++]=Ke,Se[Ce++]=Ye,Se[Ce++]=Lt,Ke=e.id,Ye=e.overflow,Lt=t),t=Ai(t,r.children),t.flags|=4096,t)}function Zo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Al(e.return,t,n)}function el(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function mc(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(ae(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zo(e,n,t);else if(e.tag===19)Zo(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(F(W,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&es(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),el(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&es(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}el(t,!0,n,null,l);break;case"together":el(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$t|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Zf(e,t,n){switch(t.tag){case 3:pc(t),an();break;case 5:Wu(t);break;case 1:me(t.type)&&qr(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;F(Jr,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?hc(e,t,n):(F(W,W.current&1),e=Ze(e,t,n),e!==null?e.sibling:null);F(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mc(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),F(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,dc(e,t,n)}return Ze(e,t,n)}var gc,ql,vc,yc;gc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ql=function(){};vc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Et(Be.current);var l=null;switch(n){case"input":s=gl(e,s),r=gl(e,r),l=[];break;case"select":s=B({},s,{value:void 0}),r=B({},r,{value:void 0}),l=[];break;case"textarea":s=xl(e,s),r=xl(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}kl(n,r);var o;n=null;for(d in s)if(!r.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var a=s[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Hn.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var u=r[d];if(a=s!=null?s[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Hn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&D("scroll",e),l||a===u||(l=[])):(l=l||[]).push(d,u))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}};yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!A)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bf(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return me(t.type)&&Yr(),le(t),null;case 3:return r=t.stateNode,cn(),H(he),H(oe),Oi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oe!==null&&(ni(Oe),Oe=null))),ql(e,t),le(t),null;case 5:$i(t);var s=Et(Jn.current);if(n=t.type,e!==null&&t.stateNode!=null)vc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return le(t),null}if(e=Et(Be.current),wr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[We]=t,r[Gn]=l,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(s=0;s<zn.length;s++)D(zn[s],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":io(r,l),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},D("invalid",r);break;case"textarea":ao(r,l),D("invalid",r)}kl(n,l),s=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),s=["children",""+a]):Hn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&D("scroll",r)}switch(n){case"input":dr(r),oo(r,l,!0);break;case"textarea":dr(r),uo(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Kr)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ka(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[We]=t,e[Gn]=r,gc(e,t,!1,!1),t.stateNode=e;e:{switch(o=jl(n,r),n){case"dialog":D("cancel",e),D("close",e),s=r;break;case"iframe":case"object":case"embed":D("load",e),s=r;break;case"video":case"audio":for(s=0;s<zn.length;s++)D(zn[s],e);s=r;break;case"source":D("error",e),s=r;break;case"img":case"image":case"link":D("error",e),D("load",e),s=r;break;case"details":D("toggle",e),s=r;break;case"input":io(e,r),s=gl(e,r),D("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=B({},r,{value:void 0}),D("invalid",e);break;case"textarea":ao(e,r),s=xl(e,r),D("invalid",e);break;default:s=r}kl(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?Ga(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ya(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&An(e,u):typeof u=="number"&&An(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Hn.hasOwnProperty(l)?u!=null&&l==="onScroll"&&D("scroll",e):u!=null&&ci(e,l,u,o))}switch(n){case"input":dr(e),oo(e,r,!1);break;case"textarea":dr(e),uo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+mt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?bt(e,!!r.multiple,l,!1):r.defaultValue!=null&&bt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return le(t),null;case 6:if(e&&t.stateNode!=null)yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Et(Jn.current),Et(Be.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[We]=t,(l=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:xr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[We]=t,t.stateNode=r}return le(t),null;case 13:if(H(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(A&&xe!==null&&t.mode&1&&!(t.flags&128))Iu(),an(),t.flags|=98560,l=!1;else if(l=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(x(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(x(317));l[We]=t}else an(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;le(t),l=!1}else Oe!==null&&(ni(Oe),Oe=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?J===0&&(J=3):Ki())),t.updateQueue!==null&&(t.flags|=4),le(t),null);case 4:return cn(),ql(e,t),e===null&&Yn(t.stateNode.containerInfo),le(t),null;case 10:return zi(t.type._context),le(t),null;case 17:return me(t.type)&&Yr(),le(t),null;case 19:if(H(W),l=t.memoizedState,l===null)return le(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Sn(l,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=es(e),o!==null){for(t.flags|=128,Sn(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(W,W.current&1|2),t.child}e=e.sibling}l.tail!==null&&Y()>fn&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304)}else{if(!r)if(e=es(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!A)return le(t),null}else 2*Y()-l.renderingStartTime>fn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,n=W.current,F(W,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Qi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function ep(e,t){switch(Ci(t),t.tag){case 1:return me(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),H(he),H(oe),Oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $i(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return cn(),null;case 10:return zi(t.type._context),null;case 22:case 23:return Qi(),null;case 24:return null;default:return null}}var Nr=!1,ie=!1,tp=typeof WeakSet=="function"?WeakSet:Set,N=null;function Jt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Gl(e,t,n){try{n()}catch(r){V(e,t,r)}}var bo=!1;function np(e,t){if(Rl=Br,e=Nu(),Ni(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,d=0,g=0,m=e,h=null;t:for(;;){for(var v;m!==n||s!==0&&m.nodeType!==3||(a=o+s),m!==l||r!==0&&m.nodeType!==3||(u=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(v=m.firstChild)!==null;)h=m,m=v;for(;;){if(m===e)break t;if(h===n&&++d===s&&(a=o),h===l&&++g===r&&(u=o),(v=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=v}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($l={focusedElem:e,selectionRange:n},Br=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Re(t.type,k),O);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(y){V(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return w=bo,bo=!1,w}function In(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&Gl(t,n,l)}s=s.next}while(s!==r)}}function xs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xc(e){var t=e.alternate;t!==null&&(e.alternate=null,xc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[Gn],delete t[Il],delete t[Df],delete t[Hf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wc(e){return e.tag===5||e.tag===3||e.tag===4}function ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}function Zl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zl(e,t,n),e=e.sibling;e!==null;)Zl(e,t,n),e=e.sibling}var te=null,$e=!1;function et(e,t,n){for(n=n.child;n!==null;)kc(e,t,n),n=n.sibling}function kc(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(ds,n)}catch{}switch(n.tag){case 5:ie||Jt(n,t);case 6:var r=te,s=$e;te=null,et(e,t,n),te=r,$e=s,te!==null&&($e?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&($e?(e=te,n=n.stateNode,e.nodeType===8?Ys(e.parentNode,n):e.nodeType===1&&Ys(e,n),Vn(e)):Ys(te,n.stateNode));break;case 4:r=te,s=$e,te=n.stateNode.containerInfo,$e=!0,et(e,t,n),te=r,$e=s;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Gl(n,t,o),s=s.next}while(s!==r)}et(e,t,n);break;case 1:if(!ie&&(Jt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){V(n,t,a)}et(e,t,n);break;case 21:et(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,et(e,t,n),ie=r):et(e,t,n);break;default:et(e,t,n)}}function ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tp),t.forEach(function(r){var s=dp.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:te=a.stateNode,$e=!1;break e;case 3:te=a.stateNode.containerInfo,$e=!0;break e;case 4:te=a.stateNode.containerInfo,$e=!0;break e}a=a.return}if(te===null)throw Error(x(160));kc(l,o,s),te=null,$e=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(d){V(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jc(t,e),t=t.sibling}function jc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Le(t,e),He(e),r&4){try{In(3,e,e.return),xs(3,e)}catch(k){V(e,e.return,k)}try{In(5,e,e.return)}catch(k){V(e,e.return,k)}}break;case 1:Le(t,e),He(e),r&512&&n!==null&&Jt(n,n.return);break;case 5:if(Le(t,e),He(e),r&512&&n!==null&&Jt(n,n.return),e.flags&32){var s=e.stateNode;try{An(s,"")}catch(k){V(e,e.return,k)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Va(s,l),jl(a,o);var d=jl(a,l);for(o=0;o<u.length;o+=2){var g=u[o],m=u[o+1];g==="style"?Ga(s,m):g==="dangerouslySetInnerHTML"?Ya(s,m):g==="children"?An(s,m):ci(s,g,m,d)}switch(a){case"input":vl(s,l);break;case"textarea":Qa(s,l);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?bt(s,!!l.multiple,v,!1):h!==!!l.multiple&&(l.defaultValue!=null?bt(s,!!l.multiple,l.defaultValue,!0):bt(s,!!l.multiple,l.multiple?[]:"",!1))}s[Gn]=l}catch(k){V(e,e.return,k)}}break;case 6:if(Le(t,e),He(e),r&4){if(e.stateNode===null)throw Error(x(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(k){V(e,e.return,k)}}break;case 3:if(Le(t,e),He(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vn(t.containerInfo)}catch(k){V(e,e.return,k)}break;case 4:Le(t,e),He(e);break;case 13:Le(t,e),He(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Bi=Y())),r&4&&ta(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(ie=(d=ie)||g,Le(t,e),ie=d):Le(t,e),He(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!g&&e.mode&1)for(N=e,g=e.child;g!==null;){for(m=N=g;N!==null;){switch(h=N,v=h.child,h.tag){case 0:case 11:case 14:case 15:In(4,h,h.return);break;case 1:Jt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){V(r,n,k)}}break;case 5:Jt(h,h.return);break;case 22:if(h.memoizedState!==null){ra(m);continue}}v!==null?(v.return=h,N=v):ra(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{s=m.stateNode,d?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=m.stateNode,u=m.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=qa("display",o))}catch(k){V(e,e.return,k)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(k){V(e,e.return,k)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Le(t,e),He(e),r&4&&ta(e);break;case 21:break;default:Le(t,e),He(e)}}function He(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(An(s,""),r.flags&=-33);var l=ea(e);Zl(e,l,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ea(e);Jl(e,a,o);break;default:throw Error(x(161))}}catch(u){V(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rp(e,t,n){N=e,Nc(e)}function Nc(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var s=N,l=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Nr;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||ie;a=Nr;var d=ie;if(Nr=o,(ie=u)&&!d)for(N=s;N!==null;)o=N,u=o.child,o.tag===22&&o.memoizedState!==null?sa(s):u!==null?(u.return=o,N=u):sa(s);for(;l!==null;)N=l,Nc(l),l=l.sibling;N=s,Nr=a,ie=d}na(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,N=l):na(e)}}function na(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ie||xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ie)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Re(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ao(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ao(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var g=d.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Vn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ie||t.flags&512&&Xl(t)}catch(h){V(t,t.return,h)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function ra(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function sa(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xs(4,t)}catch(u){V(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){V(t,s,u)}}var l=t.return;try{Xl(t)}catch(u){V(t,l,u)}break;case 5:var o=t.return;try{Xl(t)}catch(u){V(t,o,u)}}}catch(u){V(t,t.return,u)}if(t===e){N=null;break}var a=t.sibling;if(a!==null){a.return=t.return,N=a;break}N=t.return}}var sp=Math.ceil,rs=be.ReactCurrentDispatcher,Wi=be.ReactCurrentOwner,Ee=be.ReactCurrentBatchConfig,$=0,ee=null,G=null,ne=0,ye=0,Zt=xt(0),J=0,tr=null,$t=0,ws=0,Ui=0,Fn=null,fe=null,Bi=0,fn=1/0,Ve=null,ss=!1,bl=null,ft=null,Sr=!1,it=null,ls=0,Dn=0,ei=null,Mr=-1,Ir=0;function ue(){return $&6?Y():Mr!==-1?Mr:Mr=Y()}function pt(e){return e.mode&1?$&2&&ne!==0?ne&-ne:Wf.transition!==null?(Ir===0&&(Ir=ou()),Ir):(e=I,e!==0||(e=window.event,e=e===void 0?16:hu(e.type)),e):1}function Fe(e,t,n,r){if(50<Dn)throw Dn=0,ei=null,Error(x(185));rr(e,n,r),(!($&2)||e!==ee)&&(e===ee&&(!($&2)&&(ws|=n),J===4&&st(e,ne)),ge(e,r),n===1&&$===0&&!(t.mode&1)&&(fn=Y()+500,gs&&wt()))}function ge(e,t){var n=e.callbackNode;Ad(e,t);var r=Ur(e,e===ee?ne:0);if(r===0)n!==null&&po(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&po(n),t===1)e.tag===0?Af(la.bind(null,e)):$u(la.bind(null,e)),If(function(){!($&6)&&wt()}),n=null;else{switch(au(r)){case 1:n=mi;break;case 4:n=lu;break;case 16:n=Wr;break;case 536870912:n=iu;break;default:n=Wr}n=Lc(n,Sc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sc(e,t){if(Mr=-1,Ir=0,$&6)throw Error(x(327));var n=e.callbackNode;if(sn()&&e.callbackNode!==n)return null;var r=Ur(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=is(e,r);else{t=r;var s=$;$|=2;var l=Tc();(ee!==e||ne!==t)&&(Ve=null,fn=Y()+500,_t(e,t));do try{op();break}catch(a){Cc(e,a)}while(!0);_i(),rs.current=l,$=s,G!==null?t=0:(ee=null,ne=0,t=J)}if(t!==0){if(t===2&&(s=El(e),s!==0&&(r=s,t=ti(e,s))),t===1)throw n=tr,_t(e,0),st(e,r),ge(e,Y()),n;if(t===6)st(e,r);else{if(s=e.current.alternate,!(r&30)&&!lp(s)&&(t=is(e,r),t===2&&(l=El(e),l!==0&&(r=l,t=ti(e,l))),t===1))throw n=tr,_t(e,0),st(e,r),ge(e,Y()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:St(e,fe,Ve);break;case 3:if(st(e,r),(r&130023424)===r&&(t=Bi+500-Y(),10<t)){if(Ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ml(St.bind(null,e,fe,Ve),t);break}St(e,fe,Ve);break;case 4:if(st(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Ie(r);l=1<<o,o=t[o],o>s&&(s=o),r&=~l}if(r=s,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sp(r/1960))-r,10<r){e.timeoutHandle=Ml(St.bind(null,e,fe,Ve),r);break}St(e,fe,Ve);break;case 5:St(e,fe,Ve);break;default:throw Error(x(329))}}}return ge(e,Y()),e.callbackNode===n?Sc.bind(null,e):null}function ti(e,t){var n=Fn;return e.current.memoizedState.isDehydrated&&(_t(e,t).flags|=256),e=is(e,t),e!==2&&(t=fe,fe=n,t!==null&&ni(t)),e}function ni(e){fe===null?fe=e:fe.push.apply(fe,e)}function lp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],l=s.getSnapshot;s=s.value;try{if(!De(l(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function st(e,t){for(t&=~Ui,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ie(t),r=1<<n;e[n]=-1,t&=~r}}function la(e){if($&6)throw Error(x(327));sn();var t=Ur(e,0);if(!(t&1))return ge(e,Y()),null;var n=is(e,t);if(e.tag!==0&&n===2){var r=El(e);r!==0&&(t=r,n=ti(e,r))}if(n===1)throw n=tr,_t(e,0),st(e,t),ge(e,Y()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,St(e,fe,Ve),ge(e,Y()),null}function Vi(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(fn=Y()+500,gs&&wt())}}function Ot(e){it!==null&&it.tag===0&&!($&6)&&sn();var t=$;$|=1;var n=Ee.transition,r=I;try{if(Ee.transition=null,I=1,e)return e()}finally{I=r,Ee.transition=n,$=t,!($&6)&&wt()}}function Qi(){ye=Zt.current,H(Zt)}function _t(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Mf(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(Ci(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yr();break;case 3:cn(),H(he),H(oe),Oi();break;case 5:$i(r);break;case 4:cn();break;case 13:H(W);break;case 19:H(W);break;case 10:zi(r.type._context);break;case 22:case 23:Qi()}n=n.return}if(ee=e,G=e=ht(e.current,null),ne=ye=t,J=0,tr=null,Ui=ws=$t=0,fe=Fn=null,Tt!==null){for(t=0;t<Tt.length;t++)if(n=Tt[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=s,r.next=o}n.pending=r}Tt=null}return e}function Cc(e,t){do{var n=G;try{if(_i(),Rr.current=ns,ts){for(var r=U.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ts=!1}if(Rt=0,b=X=U=null,Mn=!1,Zn=0,Wi.current=null,n===null||n.return===null){J=1,tr=t,G=null;break}e:{var l=e,o=n.return,a=n,u=t;if(t=ne,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,g=a,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var h=g.alternate;h?(g.updateQueue=h.updateQueue,g.memoizedState=h.memoizedState,g.lanes=h.lanes):(g.updateQueue=null,g.memoizedState=null)}var v=Ko(o);if(v!==null){v.flags&=-257,Yo(v,o,a,l,t),v.mode&1&&Qo(l,d,t),t=v,u=d;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if(!(t&1)){Qo(l,d,t),Ki();break e}u=Error(x(426))}}else if(A&&a.mode&1){var O=Ko(o);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Yo(O,o,a,l,t),Ti(dn(u,a));break e}}l=u=dn(u,a),J!==4&&(J=2),Fn===null?Fn=[l]:Fn.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=ac(l,u,t);Ho(l,f);break e;case 1:a=u;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ft===null||!ft.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var y=uc(l,a,t);Ho(l,y);break e}}l=l.return}while(l!==null)}_c(n)}catch(j){t=j,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function Tc(){var e=rs.current;return rs.current=ns,e===null?ns:e}function Ki(){(J===0||J===3||J===2)&&(J=4),ee===null||!($t&268435455)&&!(ws&268435455)||st(ee,ne)}function is(e,t){var n=$;$|=2;var r=Tc();(ee!==e||ne!==t)&&(Ve=null,_t(e,t));do try{ip();break}catch(s){Cc(e,s)}while(!0);if(_i(),$=n,rs.current=r,G!==null)throw Error(x(261));return ee=null,ne=0,J}function ip(){for(;G!==null;)Ec(G)}function op(){for(;G!==null&&!Ld();)Ec(G)}function Ec(e){var t=Pc(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?_c(e):G=t,Wi.current=null}function _c(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ep(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{J=6,G=null;return}}else if(n=bf(n,t,ye),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);J===0&&(J=5)}function St(e,t,n){var r=I,s=Ee.transition;try{Ee.transition=null,I=1,ap(e,t,n,r)}finally{Ee.transition=s,I=r}return null}function ap(e,t,n,r){do sn();while(it!==null);if($&6)throw Error(x(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Wd(e,l),e===ee&&(G=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Sr||(Sr=!0,Lc(Wr,function(){return sn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ee.transition,Ee.transition=null;var o=I;I=1;var a=$;$|=4,Wi.current=null,np(e,n),jc(n,e),_f($l),Br=!!Rl,$l=Rl=null,e.current=n,rp(n),Rd(),$=a,I=o,Ee.transition=l}else e.current=n;if(Sr&&(Sr=!1,it=e,ls=s),l=e.pendingLanes,l===0&&(ft=null),Md(n.stateNode),ge(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ss)throw ss=!1,e=bl,bl=null,e;return ls&1&&e.tag!==0&&sn(),l=e.pendingLanes,l&1?e===ei?Dn++:(Dn=0,ei=e):Dn=0,wt(),null}function sn(){if(it!==null){var e=au(ls),t=Ee.transition,n=I;try{if(Ee.transition=null,I=16>e?16:e,it===null)var r=!1;else{if(e=it,it=null,ls=0,$&6)throw Error(x(331));var s=$;for($|=4,N=e.current;N!==null;){var l=N,o=l.child;if(N.flags&16){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(N=d;N!==null;){var g=N;switch(g.tag){case 0:case 11:case 15:In(8,g,l)}var m=g.child;if(m!==null)m.return=g,N=m;else for(;N!==null;){g=N;var h=g.sibling,v=g.return;if(xc(g),g===d){N=null;break}if(h!==null){h.return=v,N=h;break}N=v}}}var w=l.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}N=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,N=o;else e:for(;N!==null;){if(l=N,l.flags&2048)switch(l.tag){case 0:case 11:case 15:In(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,N=f;break e}N=l.return}}var c=e.current;for(N=c;N!==null;){o=N;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,N=p;else e:for(o=c;N!==null;){if(a=N,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xs(9,a)}}catch(j){V(a,a.return,j)}if(a===o){N=null;break e}var y=a.sibling;if(y!==null){y.return=a.return,N=y;break e}N=a.return}}if($=s,wt(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(ds,e)}catch{}r=!0}return r}finally{I=n,Ee.transition=t}}return!1}function ia(e,t,n){t=dn(n,t),t=ac(e,t,1),e=dt(e,t,1),t=ue(),e!==null&&(rr(e,1,t),ge(e,t))}function V(e,t,n){if(e.tag===3)ia(e,e,n);else for(;t!==null;){if(t.tag===3){ia(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ft===null||!ft.has(r))){e=dn(n,e),e=uc(t,e,1),t=dt(t,e,1),e=ue(),t!==null&&(rr(t,1,e),ge(t,e));break}}t=t.return}}function up(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ue(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(J===4||J===3&&(ne&130023424)===ne&&500>Y()-Bi?_t(e,0):Ui|=n),ge(e,t)}function zc(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ue();e=Je(e,t),e!==null&&(rr(e,t,n),ge(e,n))}function cp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zc(e,n)}function dp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),zc(e,n)}var Pc;Pc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Zf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,A&&t.flags&1048576&&Ou(t,Xr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var s=on(t,oe.current);rn(t,n),s=Ii(null,t,r,e,s,n);var l=Fi();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(l=!0,qr(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Li(t),s.updater=ys,t.stateNode=s,s._reactInternals=t,Ul(t,r,e,n),t=Ql(null,t,r,!0,l,n)):(t.tag=0,A&&l&&Si(t),ae(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=pp(r),e=Re(r,e),s){case 0:t=Vl(null,t,r,e,n);break e;case 1:t=Xo(null,t,r,e,n);break e;case 11:t=qo(null,t,r,e,n);break e;case 14:t=Go(null,t,r,Re(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Re(r,s),Vl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Re(r,s),Xo(e,t,r,s,n);case 3:e:{if(pc(t),e===null)throw Error(x(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Au(e,t),br(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=dn(Error(x(423)),t),t=Jo(e,t,r,n,s);break e}else if(r!==s){s=dn(Error(x(424)),t),t=Jo(e,t,r,n,s);break e}else for(xe=ct(t.stateNode.containerInfo.firstChild),we=t,A=!0,Oe=null,n=Du(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(an(),r===s){t=Ze(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Wu(t),e===null&&Hl(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,Ol(r,s)?o=null:l!==null&&Ol(r,l)&&(t.flags|=32),fc(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Hl(t),null;case 13:return hc(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=un(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Re(r,s),qo(e,t,r,s,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,o=s.value,F(Jr,r._currentValue),r._currentValue=o,l!==null)if(De(l.value,o)){if(l.children===s.children&&!he.current){t=Ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=qe(-1,n&-n),u.tag=2;var d=l.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Al(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(x(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Al(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}ae(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,rn(t,n),s=_e(s),r=r(s),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,s=Re(r,t.pendingProps),s=Re(r.type,s),Go(e,t,r,s,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Re(r,s),Or(e,t),t.tag=1,me(r)?(e=!0,qr(t)):e=!1,rn(t,n),oc(t,r,s),Ul(t,r,s,n),Ql(null,t,r,!0,e,n);case 19:return mc(e,t,n);case 22:return dc(e,t,n)}throw Error(x(156,t.tag))};function Lc(e,t){return su(e,t)}function fp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(e,t,n,r){return new fp(e,t,n,r)}function Yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pp(e){if(typeof e=="function")return Yi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fi)return 11;if(e===pi)return 14}return 2}function ht(e,t){var n=e.alternate;return n===null?(n=Te(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,s,l){var o=2;if(r=e,typeof e=="function")Yi(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ut:return zt(n.children,s,l,t);case di:o=8,s|=8;break;case fl:return e=Te(12,n,t,s|2),e.elementType=fl,e.lanes=l,e;case pl:return e=Te(13,n,t,s),e.elementType=pl,e.lanes=l,e;case hl:return e=Te(19,n,t,s),e.elementType=hl,e.lanes=l,e;case Wa:return ks(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ha:o=10;break e;case Aa:o=9;break e;case fi:o=11;break e;case pi:o=14;break e;case tt:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Te(o,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function zt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function ks(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Wa,e.lanes=n,e.stateNode={isHidden:!1},e}function tl(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function nl(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hp(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Is(0),this.expirationTimes=Is(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Is(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function qi(e,t,n,r,s,l,o,a,u){return e=new hp(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Te(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(l),e}function mp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Rc(e){if(!e)return gt;e=e._reactInternals;e:{if(Ft(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(me(n))return Ru(e,n,t)}return t}function $c(e,t,n,r,s,l,o,a,u){return e=qi(n,r,!0,e,s,l,o,a,u),e.context=Rc(null),n=e.current,r=ue(),s=pt(n),l=qe(r,s),l.callback=t??null,dt(n,l,s),e.current.lanes=s,rr(e,s,r),ge(e,r),e}function js(e,t,n,r){var s=t.current,l=ue(),o=pt(s);return n=Rc(n),t.context===null?t.context=n:t.pendingContext=n,t=qe(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dt(s,t,o),e!==null&&(Fe(e,s,o,l),Lr(e,s,o)),o}function os(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function oa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gi(e,t){oa(e,t),(e=e.alternate)&&oa(e,t)}function gp(){return null}var Oc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xi(e){this._internalRoot=e}Ns.prototype.render=Xi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));js(e,t,null,null)};Ns.prototype.unmount=Xi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ot(function(){js(null,e,null,null)}),t[Xe]=null}};function Ns(e){this._internalRoot=e}Ns.prototype.unstable_scheduleHydration=function(e){if(e){var t=du();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rt.length&&t!==0&&t<rt[n].priority;n++);rt.splice(n,0,e),n===0&&pu(e)}};function Ji(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ss(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aa(){}function vp(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var d=os(o);l.call(d)}}var o=$c(t,r,e,0,null,!1,!1,"",aa);return e._reactRootContainer=o,e[Xe]=o.current,Yn(e.nodeType===8?e.parentNode:e),Ot(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var d=os(u);a.call(d)}}var u=qi(e,0,!1,null,null,!1,!1,"",aa);return e._reactRootContainer=u,e[Xe]=u.current,Yn(e.nodeType===8?e.parentNode:e),Ot(function(){js(t,u,n,r)}),u}function Cs(e,t,n,r,s){var l=n._reactRootContainer;if(l){var o=l;if(typeof s=="function"){var a=s;s=function(){var u=os(o);a.call(u)}}js(t,o,e,s)}else o=vp(n,t,e,s,r);return os(o)}uu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_n(t.pendingLanes);n!==0&&(gi(t,n|1),ge(t,Y()),!($&6)&&(fn=Y()+500,wt()))}break;case 13:Ot(function(){var r=Je(e,1);if(r!==null){var s=ue();Fe(r,e,1,s)}}),Gi(e,1)}};vi=function(e){if(e.tag===13){var t=Je(e,134217728);if(t!==null){var n=ue();Fe(t,e,134217728,n)}Gi(e,134217728)}};cu=function(e){if(e.tag===13){var t=pt(e),n=Je(e,t);if(n!==null){var r=ue();Fe(n,e,t,r)}Gi(e,t)}};du=function(){return I};fu=function(e,t){var n=I;try{return I=e,t()}finally{I=n}};Sl=function(e,t,n){switch(t){case"input":if(vl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ms(r);if(!s)throw Error(x(90));Ba(r),vl(r,s)}}}break;case"textarea":Qa(e,n);break;case"select":t=n.value,t!=null&&bt(e,!!n.multiple,t,!1)}};Za=Vi;ba=Ot;var yp={usingClientEntryPoint:!1,Events:[lr,Kt,ms,Xa,Ja,Vi]},Cn={findFiberByHostInstance:Ct,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xp={bundleType:Cn.bundleType,version:Cn.version,rendererPackageName:Cn.rendererPackageName,rendererConfig:Cn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:be.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nu(e),e===null?null:e.stateNode},findFiberByHostInstance:Cn.findFiberByHostInstance||gp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{ds=Cr.inject(xp),Ue=Cr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ji(t))throw Error(x(200));return mp(e,t,null,n)};je.createRoot=function(e,t){if(!Ji(e))throw Error(x(299));var n=!1,r="",s=Oc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=qi(e,1,!1,null,null,n,!1,r,s),e[Xe]=t.current,Yn(e.nodeType===8?e.parentNode:e),new Xi(t)};je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=nu(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Ot(e)};je.hydrate=function(e,t,n){if(!Ss(t))throw Error(x(200));return Cs(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Ji(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",o=Oc;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=$c(t,null,e,1,n??null,s,!1,l,o),e[Xe]=t.current,Yn(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ns(t)};je.render=function(e,t,n){if(!Ss(t))throw Error(x(200));return Cs(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!Ss(e))throw Error(x(40));return e._reactRootContainer?(Ot(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[Xe]=null})}),!0):!1};je.unstable_batchedUpdates=Vi;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ss(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Cs(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function Mc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mc)}catch(e){console.error(e)}}Mc(),Ma.exports=je;var wp=Ma.exports,ua=wp;cl.createRoot=ua.createRoot,cl.hydrateRoot=ua.hydrateRoot;/**
|
|
41
|
-
* @license lucide-react v0.441.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const kp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ic=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
46
|
-
* @license lucide-react v0.441.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var jp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
-
* @license lucide-react v0.441.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const Np=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:l,iconNode:o,...a},u)=>_.createElement("svg",{ref:u,...jp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ic("lucide",s),...a},[...o.map(([d,g])=>_.createElement(d,g)),...Array.isArray(l)?l:[l]]));/**
|
|
56
|
-
* @license lucide-react v0.441.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const q=(e,t)=>{const n=_.forwardRef(({className:r,...s},l)=>_.createElement(Np,{ref:l,iconNode:t,className:Ic(`lucide-${kp(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
|
|
61
|
-
* @license lucide-react v0.441.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const ri=q("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
|
-
* @license lucide-react v0.441.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const Sp=q("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
71
|
-
* @license lucide-react v0.441.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Cp=q("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
76
|
-
* @license lucide-react v0.441.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const Tp=q("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
81
|
-
* @license lucide-react v0.441.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Ep=q("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
86
|
-
* @license lucide-react v0.441.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const _p=q("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
|
|
91
|
-
* @license lucide-react v0.441.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const zp=q("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
|
|
96
|
-
* @license lucide-react v0.441.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Pp=q("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
101
|
-
* @license lucide-react v0.441.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const Ts=q("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
106
|
-
* @license lucide-react v0.441.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Lp=q("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
111
|
-
* @license lucide-react v0.441.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const Rp=q("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
|
116
|
-
* @license lucide-react v0.441.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Fc=q("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
121
|
-
* @license lucide-react v0.441.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const ca=q("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
126
|
-
* @license lucide-react v0.441.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const $p=q("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
131
|
-
* @license lucide-react v0.441.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const Op=q("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
136
|
-
* @license lucide-react v0.441.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const Mp=q("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
141
|
-
* @license lucide-react v0.441.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const Ip=q("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
146
|
-
* @license lucide-react v0.441.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const Fp=q("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
|
|
151
|
-
* @license lucide-react v0.441.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const Dp=q("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
|
|
156
|
-
* @license lucide-react v0.441.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const Hp=q("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
161
|
-
* @license lucide-react v0.441.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const Dc=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class Ap extends cs.Component{constructor(){super(...arguments);bi(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidUpdate(n){n.resetKey!==this.props.resetKey&&this.state.error&&this.setState({error:null})}render(){return this.state.error?i.jsxs("div",{className:"empty-state glass-card",role:"alert",children:[i.jsx(Ip,{size:48}),i.jsx("h3",{children:"This view could not be displayed"}),i.jsx("p",{children:this.state.error.message||"Studio received data it could not render."}),i.jsxs("button",{className:"refresh-btn",type:"button",onClick:()=>this.setState({error:null}),children:[i.jsx(Fc,{size:16})," Retry view"]})]}):this.props.children}}function Wp({name:e,branch:t}){return i.jsxs("div",{className:"project-identity",children:[i.jsx(Ep,{size:14,className:"folder-icon"}),i.jsx("span",{className:"project-name",children:e}),t&&i.jsx("span",{className:"project-version-pill",title:"Current branch",children:t})]})}const da="rigour-readonly-note-hidden";function Up(){const[e,t]=_.useState(()=>{try{return sessionStorage.getItem(da)==="1"}catch{return!1}});if(e)return null;const n=()=>{try{sessionStorage.setItem(da,"1")}catch{}t(!0)};return i.jsxs("div",{className:"overview-banner readonly-note",role:"note",children:[i.jsx(Ts,{size:16}),i.jsxs("span",{children:["Read-only. Open the link ",i.jsx("code",{children:"rigour studio"})," printed in your terminal: it gives this tab edit rights."]}),i.jsx("button",{className:"readonly-note-close",onClick:n,type:"button","aria-label":"Hide this note",children:i.jsx(Dc,{size:14})})]})}function Ht({icon:e,label:t,status:n,detail:r}){const s=["ready","active","online","local"].includes(n)?"ready":["warming","idle","missing"].includes(n)?"warming":"degraded";return i.jsxs("div",{className:`health-item ${s}`,children:[i.jsx(e,{size:15,"aria-hidden":"true"}),i.jsxs("span",{children:[i.jsx("strong",{children:t}),i.jsx("small",{children:r})]}),i.jsx("span",{className:"health-state",children:n})]})}function Bp({data:e,loading:t,stale:n,onRetry:r}){var l,o,a,u,d,g,m,h,v,w,k,O,f,c,p,y,j;if(t&&!e)return i.jsxs("div",{className:"system-health loading",children:[i.jsx(ri,{size:16,className:"spinning"})," Checking system health…"]});if(!e||e.error)return i.jsxs("div",{className:"system-health unavailable",role:"alert",children:[i.jsx(ca,{size:16})," Health unavailable",i.jsxs("button",{type:"button",onClick:r,children:[i.jsx(Fc,{size:14})," Retry"]})]});const s=Object.values(((l=e.caches)==null?void 0:l.layers)??{}).filter(C=>C>0).length;return i.jsxs("section",{className:`system-health ${n?"stale":""}`,"aria-label":"System health",children:[i.jsx(Ht,{icon:Tp,label:"Index",status:((o=e.index)==null?void 0:o.status)??"missing",detail:`${((a=e.index)==null?void 0:a.patterns)??0} patterns · ${((u=e.index)==null?void 0:u.files)??0} files`}),i.jsx(Ht,{icon:Dp,label:"Graph",status:((d=e.graph)==null?void 0:d.status)??"missing",detail:`${((g=e.graph)==null?void 0:g.nodes)??0} nodes · ${((m=e.graph)==null?void 0:m.edges)??0} edges`}),i.jsx(Ht,{icon:Sp,label:"Semantic",status:((h=e.semantic)==null?void 0:h.status)??"disabled",detail:((v=e.semantic)==null?void 0:v.message)??"Background enrichment"}),i.jsx(Ht,{icon:Rp,label:"Cache",status:((w=e.caches)==null?void 0:w.status)??"warming",detail:`${s}/4 layers populated`}),i.jsx(Ht,{icon:ri,label:"Learning",status:((k=e.learning)==null?void 0:k.status)??"idle",detail:`${((O=e.learning)==null?void 0:O.observations)??0} interactions · ${((f=e.learning)==null?void 0:f.total)??0} lessons`}),i.jsx(Ht,{icon:ca,label:"Storage",status:((c=e.storage)==null?void 0:c.connectivity)??"local",detail:((p=e.storage)==null?void 0:p.connectivity)==="offline"?`${((y=e.storage)==null?void 0:y.queuedChanges)??0} queued`:((j=e.storage)==null?void 0:j.mode)??"local"})]})}const Hc="rigour-studio-key",Vp="x-rigour-studio-key";function Qp(){const e=window.location.hash.match(/(?:^#|&)key=([a-f0-9]+)/);if(e){try{sessionStorage.setItem(Hc,e[1])}catch{}window.history.replaceState(null,"",window.location.pathname+window.location.search)}}function Es(){return Ac().length>0}function Ac(){try{return sessionStorage.getItem(Hc)??""}catch{return""}}function Me(e,t,n,r="application/json"){const s={[Vp]:Ac()};return n!==void 0&&(s["Content-Type"]=r),fetch(e,{method:t,headers:s,body:n})}const Kp=({onHide:e})=>i.jsxs("section",{className:"st-card",style:{marginBottom:28},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",marginBottom:16},children:[i.jsx("strong",{children:"How Rigour works"}),i.jsx("button",{className:"st-btn",onClick:e,type:"button",children:"Got it"})]}),i.jsxs("div",{className:"st-steps",children:[i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"1"}),i.jsxs("div",{children:["Your agent writes code",i.jsx("div",{className:"st-sub",children:"Claude Code, Cursor, Cline or Windsurf are checked as they edit; any agent at push."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"2"}),i.jsxs("div",{children:["Rigour checks the change",i.jsx("div",{className:"st-sub",children:"It stops the agent only on problems it can prove."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"3"}),i.jsxs("div",{children:["Your PR arrives clean",i.jsx("div",{className:"st-sub",children:"A short review catches the rest; with learning on, fixes become lessons."})]})]})]})]}),Wc={edit:"while the agent was writing",review:"when the agent checked its work",stop:"before the agent said done",pr:"at the pull request"};function vt(e,t=Date.now()){const n=Math.round((t-Date.parse(e))/6e4);if(!Number.isFinite(n))return"";if(n<60)return`${Math.max(1,n)} min ago`;const r=Math.round(n/60);return r<48?`${r} h ago`:new Date(e).toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}function M(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function ve(e){const[t,n]=_.useState(null),[r,s]=_.useState(null),l=_.useCallback(()=>{fetch(e).then(async o=>o.ok?n(await o.json()):s(`HTTP ${o.status}`)).catch(o=>s(o instanceof Error?o.message:String(o)))},[e]);return _.useEffect(l,[l]),{data:t,error:r,reload:l}}function Mt(e){return e.split(/(`[^`]+`)/g).map((t,n)=>t.startsWith("`")&&t.endsWith("`")&&t.length>2?cs.createElement("code",{key:n,className:"st-mono st-inline-code"},t.slice(1,-1)):t)}function Yp(e){return e.replace(/(['"`])(?:(?!\1).)*\1/g,"…").replace(/\b\d+(?:\.\d+)?\b/g,"N").replace(/\s+/g," ").trim()}function qp(e){const t=e.reduce((r,s)=>r+s.needs.length,0);if(t===0)return"Nothing needs you.";const n=`${M(t,"finding needs","findings need")} you`;return t===e.length?`${n}.`:`${n}, of ${M(e.length,"kind")}.`}function Gp(e){const t=new Map,n=[...e].sort((r,s)=>Date.parse(s.openedAt)-Date.parse(r.openedAt));for(const r of n){const s=Yp(r.title),l=`${r.rule}\0${s}`,o=t.get(l)??{rule:r.rule,pattern:s,needs:[],files:0};o.needs.push(r),t.set(l,o)}for(const r of t.values())r.files=new Set(r.needs.map(s=>s.file)).size;return[...t.values()]}const Xp=({group:e,onDone:t})=>{const[n,r]=_.useState(!1);return e.needs.length===1?i.jsx(fa,{need:e.needs[0],onDone:t}):i.jsxs("div",{children:[i.jsxs("button",{className:"st-story",onClick:()=>r(!n),type:"button","aria-expanded":n,children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:"st-chip warn",children:"open"}),i.jsxs("span",{className:"st-sub",children:["newest ",vt(e.needs[0].openedAt)]})]}),i.jsxs("div",{style:{fontSize:17,marginTop:10,lineHeight:1.5},children:[e.needs.length," × ",e.pattern,", in ",M(e.files,"file")]}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.rule})]}),n&&i.jsx("div",{className:"st-stack",style:{marginTop:10},children:e.needs.map(s=>i.jsx(fa,{need:s,onDone:t},`${s.rule}:${s.file}:${s.openedAt}`))})]})},fa=({need:e,onDone:t})=>{const[n,r]=_.useState("idle"),s=async()=>{const o=window.prompt("Why is this not a bug? Rigour keeps the reason with the dismissal.");if(!(o!=null&&o.trim())||!e.key)return;(await Me("/api/dismiss","POST",JSON.stringify({key:e.key,reason:o}))).ok?t():r("failed")},l=async()=>{try{await navigator.clipboard.writeText(`Rigour found a problem you introduced: ${e.title} in ${e.file}. Fix it, then run rigour review.`),r("copied")}catch{r("failed")}};return i.jsxs("div",{className:"st-need",children:[i.jsxs("div",{className:"st-row",children:[i.jsx("span",{className:"st-chip warn",children:"open"}),i.jsxs("span",{className:"st-sub",children:["found ",e.stage?Wc[e.stage]:""," · ",vt(e.openedAt)]})]}),i.jsx("div",{style:{fontSize:17,marginTop:10,lineHeight:1.5},children:e.title}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.file}),i.jsxs("div",{className:"st-row",style:{marginTop:14,flexWrap:"wrap"},children:[i.jsx("button",{className:"st-btn primary",onClick:l,type:"button",children:n==="copied"?"Copied: paste it to your agent":"Copy for my agent"}),e.key&&i.jsx("button",{className:"st-btn",onClick:s,type:"button",children:"It's fine, not a bug"}),n==="failed"&&i.jsx("span",{className:"st-sub",children:"That didn't work. Open Studio from the link in your terminal and try again."})]})]})},pa="rigour-intro-hidden",Jp=({onNavigate:e})=>{const{data:t,error:n,reload:r}=ve("/api/week"),[s,l]=_.useState(null),[o,a]=_.useState(()=>{try{return localStorage.getItem(pa)!=="1"}catch{return!0}});if(n)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load this week: ",n,"."]})});if(!t)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const u=()=>{try{localStorage.setItem(pa,"1")}catch{}a(!1)},d=t.needs,g=Gp(d);return i.jsxs("div",{className:"st-page",children:[o&&i.jsx(Kp,{onHide:u}),i.jsx("h1",{className:"st-h1",children:qp(g)}),i.jsx("p",{className:"st-lead",children:t.stopped.total>0?`${M(t.stopped.total,"problem")} stopped before a pull request this week, ${t.stopped.fixed} fixed so far.`:t.recordingSince?"Nothing was stopped this week.":"Rigour has not recorded any agent work in this repository yet."}),d.length>0&&i.jsx(Zp,{onDone:r}),g.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:18},children:g.map(m=>i.jsx(Xp,{group:m,onDone:r},`${m.rule}:${m.pattern}`))}),i.jsxs("div",{className:"st-grid",children:[i.jsxs("section",{children:[i.jsx("h2",{style:{margin:"0 0 14px",fontSize:18,fontWeight:600},children:"What Rigour stopped this week"}),t.stories.length===0?i.jsx("div",{className:"st-empty",children:"When an agent fixes something Rigour caught, it appears here with the code change."}):i.jsx("div",{className:"st-stack",children:t.stories.map(m=>i.jsx(bp,{story:m,open:s===m.id,onToggle:()=>l(s===m.id?null:m.id)},m.id))})]}),i.jsxs("aside",{className:"st-side",children:[i.jsxs("div",{className:"st-card",children:[i.jsx("div",{className:"st-big",children:t.stopped.total}),i.jsx("div",{style:{fontSize:14,marginTop:6},children:"stopped before a PR"}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:[t.stopped.byStage.edit," while writing · ",t.stopped.byStage.review," on review · ",t.stopped.byStage.stop," before done"]}),i.jsx(eh,{data:t})]}),i.jsxs("div",{className:"st-card",children:[i.jsx("div",{style:{fontSize:15,fontWeight:600},children:"Is it noisy?"}),i.jsx("div",{style:{fontSize:14,marginTop:8,lineHeight:1.6},children:t.raised===0?"Nothing raised this week.":`Rigour raised ${M(t.raised,"problem")} this week. You overruled ${t.overruled}.`}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:'Say "not a bug" once and Rigour stops raising it.'})]}),i.jsx("button",{className:"st-btn",onClick:()=>e("learns"),type:"button",children:"See how it learns"}),t.recordingSince&&i.jsxs("div",{className:"st-sub",children:["Recording since ",new Date(t.recordingSince).toLocaleDateString()]})]})]})]})},Zp=({onDone:e})=>{const[t,n]=_.useState(null),r=async()=>{const s=await Me("/api/recheck","POST","{}");if(!s.ok)return n("Could not check again.");const{closed:l,fixed:o}=await s.json(),a=[o?`${M(o,"fix")} by the agent recorded`:"",l?`${M(l,"finding")} no longer reported, closed (not counted as fixes)`:""].filter(Boolean).join("; ");n(a?`${a}.`:"Every one is still reported."),e()};return i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:12},children:[i.jsx("button",{className:"st-btn",onClick:r,type:"button",children:"Check these again"}),t&&i.jsx("span",{className:"st-sub",children:t})]})},bp=({story:e,open:t,onToggle:n})=>i.jsxs("div",{children:[i.jsxs("button",{className:"st-story",onClick:n,type:"button","aria-expanded":t,children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:"st-chip",children:Wc[e.stage]}),i.jsx("span",{className:"st-sub",children:vt(e.at)})]}),i.jsx("div",{style:{fontSize:16,lineHeight:1.55,marginTop:10},children:Mt(e.title)}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-mono",children:e.file})," · fixed by the agent"]})]}),t&&i.jsxs("div",{className:"st-story-body",children:[e.diff.length>0&&i.jsx("div",{className:"st-code st-mono",children:e.diff.map((r,s)=>i.jsx("span",{className:`st-ln ${r[0]==="+"?"add":r[0]==="-"?"del":""}`,children:r},s))}),e.details&&e.details!==e.title&&i.jsxs("div",{style:{marginTop:e.diff.length?16:0},children:[i.jsx("strong",{style:{fontSize:13},children:e.stage==="review"&&e.rule==="review"?"What the agent fixed":"How Rigour knew"}),i.jsx("div",{className:"st-sub",style:{marginTop:6,lineHeight:1.6},children:Mt(e.details)})]})]})]}),eh=({data:e})=>{const[t,n]=_.useState(!1);if(e.stopped.total===0)return null;const r=`Rigour stopped ${M(e.stopped.total,"problem")} before a pull request this week: ${e.stopped.byStage.edit} while the agent was writing, ${e.stopped.byStage.review} when it checked its work, ${e.stopped.byStage.stop} before it said done. ${e.stopped.fixed} fixed so far. ${e.overruled} of ${e.raised} overruled.`,s=async()=>{try{await navigator.clipboard.writeText(r),n(!0)}catch{}};return i.jsx("button",{className:"st-btn",onClick:s,type:"button",style:{marginTop:14,width:"100%"},children:t?"Copied":"Copy this week"})},th=e=>new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}),rl=(e,t)=>e.reduce((n,r)=>n+t(r),0),nh=()=>{var l;const{data:e,error:t}=ve("/api/progress");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load progress: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.weeks.slice(-4),r=e.weeks.slice(0,-4),s=((l=e.weeks[e.weeks.length-1])==null?void 0:l.lessons)??0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour is shaping this code"}),i.jsxs("p",{className:"st-lead",children:["Last 4 weeks: ",M(rl(n,o=>o.stopped),"problem")," stopped before a PR",r.length?` (${rl(r,o=>o.stopped)} in the 4 weeks before)`:"",", ",M(rl(n,o=>o.repeatsStopped),"repeat mistake")," caught,"," ",M(s,"lesson")," learned so far."]}),i.jsxs("div",{className:"st-stack",style:{marginTop:24},children:[i.jsx(At,{title:"Stopped before a PR",hint:"fixed by the agent after Rigour reported it",weeks:e.weeks,value:o=>o.stopped}),i.jsx(At,{title:"Repeat mistakes stopped",hint:"a mistake Rigour had already learned, caught again before a PR",weeks:e.weeks,value:o=>o.repeatsStopped}),i.jsx(At,{title:"Repeat mistakes that reached a PR",hint:"lower is better",weeks:e.weeks,value:o=>o.repeatsReachedPr,empty:"Shows once branch reviews run on this machine, for example rigour review --base main in a pre-push hook."}),i.jsx(At,{title:"Minutes from report to fix",hint:"median; lower is better",weeks:e.weeks,value:o=>o.minutesToFix}),i.jsx(At,{title:"Overruled",hint:"findings someone marked not a bug",weeks:e.weeks,value:o=>o.overruled}),i.jsx(At,{title:"Lessons learned",hint:"total by the end of each week",weeks:e.weeks,value:o=>o.lessons})]}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Lessons that stopped the most repeats"}),e.topLessons.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. A lesson ranks here once the mistake it describes is caught again and stopped."}):i.jsx("ol",{style:{margin:"12px 0 0",paddingLeft:20,lineHeight:1.6},children:e.topLessons.map(o=>i.jsxs("li",{style:{marginBottom:8},children:[Mt(o.text),i.jsxs("div",{className:"st-sub",children:[M(o.stoppedInDevelopment??0,"repeat")," stopped · ",o.scope==="team"?"shared with team":o.scope]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Checks your team acts on"}),e.checks.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:'Each fix and each "not a bug" scores the check that raised it. Scores appear after the first one.'}):i.jsx("div",{className:"st-stack",style:{marginTop:12,gap:8},children:e.checks.map(o=>i.jsxs("div",{className:"st-row",style:{gap:10},children:[i.jsxs("span",{style:{width:44,fontWeight:600},children:[Math.round(o.precision*100),"%"]}),i.jsx("span",{style:{flex:1,fontSize:14},children:o.check}),i.jsxs("span",{className:"st-sub",children:[o.fixed," fixed · ",o.dismissed," overruled"]}),o.muted&&i.jsx("span",{className:"st-chip",children:"quiet"})]},o.check))})]})]})]})},At=({title:e,hint:t,weeks:n,value:r,empty:s})=>{const l=n.map(r),o=l.filter(u=>u!==null),a=Math.max(1,...o);return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:e}),i.jsx("span",{className:"st-sub",children:t})]}),o.length===0&&s?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:s}):i.jsx("div",{className:"st-bars",style:{height:90,gap:12},children:n.map((u,d)=>i.jsxs("div",{className:"st-bar",children:[i.jsx("div",{style:{fontSize:12},children:l[d]??"—"}),i.jsx("span",{style:{height:`${l[d]===null?2:Math.max(2,l[d]/a*56)}px`,opacity:l[d]===null?.25:1}}),i.jsx("div",{className:"st-sub",style:{fontSize:11},children:th(u.from)})]},u.from))})]})},rh=()=>{const{data:e,error:t}=ve("/api/week"),n=ve("/api/setup").data,r=n==null?void 0:n.checks.some(l=>l.id==="stop"&&l.state!=="missing"&&l.state!=="broken");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const s=e.stories.filter(l=>l.stage==="stop");return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What only Rigour caught"}),i.jsx("p",{className:"st-lead",children:"Counted only where Rigour can show it. A bug stopped before a PR never reached your other reviewers, so it is not counted against them."}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Your agent tried to finish with a bug"}),i.jsx("p",{className:"st-lead",style:{fontSize:14},children:e.agentSaidDone===0&&n&&!r?"The stop hook is not set up in this repository, so Rigour cannot see an agent finish. Run rigour setup.":e.agentSaidDone===0?"This week no agent tried to finish with a problem Rigour could prove.":`This week an agent tried to finish with a problem Rigour proved ${M(e.agentSaidDone,"time")}. Each was fixed before the agent stopped.`}),i.jsx("div",{className:"st-stack",style:{marginTop:14},children:s.map(l=>i.jsxs("div",{className:"st-card st-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15,lineHeight:1.5},children:l.title}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[i.jsx("span",{className:"st-mono",children:l.file})," · ",vt(l.at)]})]}),i.jsx("span",{className:"st-chip ok",children:"fixed"})]},l.id))})]}),i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Rigour and your other PR reviewers"}),i.jsxs("div",{className:"st-empty",style:{marginTop:14},children:[e.prCatches===null?"No branch reviews recorded on this machine yet.":`Branch reviews here reported ${M(e.prCatches,"problem")} this week.`," ","Side by side with teammates and review bots (both caught it, only Rigour, only them) needs the PR's review comments; it comes with the PR integration."]})]})]})},sh=()=>i.jsxs("p",{className:"st-lead",children:["Every mistake fixed in development or caught at a PR becomes a lesson. An agent gets the lessons when it asks for a brief (the ",i.jsx("code",{children:"rigour_brief"})," tool, or ",i.jsx("code",{children:"rigour brief"}),"). In Claude Code, ",i.jsx("code",{children:"rigour hooks init --brief"})," hands them over by itself: at a session's first prompt and on each file's first edit."]}),lh=({count:e,shown:t,onToggle:n})=>i.jsxs("div",{className:"st-row",style:{marginTop:12,gap:8},children:[i.jsxs("span",{className:"st-sub",children:[e," candidate",e===1?"":"s"," from review bots",t?"":", hidden","."]}),i.jsx("button",{type:"button",className:"st-btn",onClick:n,children:t?"Hide bot points":"Show bot points"})]}),sl=(e,t=!0)=>t?e===null?"not recorded here":e===1?"1 time":`${e} times`:"—",ih=({lesson:e,onDecide:t,onDecideReview:n,onScope:r})=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",alignItems:"flex-start"},children:[i.jsx("div",{style:{fontSize:17,lineHeight:1.5,flex:1},children:Mt(e.text)}),i.jsx("span",{className:"st-chip",children:e.scope==="team"?"shared with team":e.scope})]}),i.jsxs("div",{className:"st-journey",children:[i.jsxs("div",{style:{background:"var(--bg-surface)"},children:[i.jsx("div",{className:"st-sub",children:"Learned"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:e.learnedFrom})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Agents told"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:sl(e.told)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Stopped in development"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:sl(e.stoppedInDevelopment,e.origin==="development")})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reached a PR again"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:sl(e.reachedPr,e.origin==="development")})]})]}),e.takenBack&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"taken back"})," ",i.jsx("span",{className:"st-sub",children:e.takenBack.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"Later pull requests a review found repeating it merged and stayed fine. Keep telling agents anyway?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote again"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"rejected"),type:"button",children:"Drop"})]})]}),e.reclassified&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"back to candidate"})," ",i.jsx("span",{className:"st-sub",children:e.reclassified.detail})]}),e.reclassified.evidence.map(s=>i.jsx("div",{className:"st-sub",style:{marginTop:4},children:s},s)),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"A later fix on its lines used to make this a lesson by itself; now a person decides. Keep telling agents?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.suggested&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip",children:"a later fix changed these lines"})," ",i.jsx("span",{className:"st-sub",children:e.suggested.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsxs("span",{className:"st-sub",children:["The pull request (#",e.suggested.pr,") left this point alone, and a later fix changed its lines. If that fix is about this point, the lesson was right."]}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.reach&&i.jsx(ah,{lesson:e,reach:e.reach,onScope:r}),e.suggestedText&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsxs("span",{className:"st-chip",children:["corrected wording (",e.suggestedText.why,")"]})," ",i.jsx("span",{style:{fontSize:15},children:Mt(e.suggestedText.text)})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"You decided on this lesson as it reads above. A newer version reads its comment better; the lesson changes only if you take it."}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"reworded"),type:"button",children:"Use this wording"})]})]}),e.canDecide&&!e.takenBack&&!e.suggested&&!e.reclassified&&i.jsxs("div",{className:"st-row",style:{marginTop:14},children:[i.jsx("span",{className:"st-sub",children:e.scope==="team"?"Shared by a teammate. Give it to everyone's agents?":"Seen once. Keep it so your agents get told?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>t(e.id,e.scope==="team"?"promoted":"validated"),type:"button",children:e.scope==="team"?"Share with team":"Keep"}),i.jsx("button",{className:"st-btn",onClick:()=>t(e.id,"rejected"),type:"button",children:"Drop"})]})]}),oh={file:"its file",folder:"its folder",repo:"team standard"},ah=({lesson:e,reach:t,onScope:n})=>{const r=[["repo","Make team standard"],["folder","Folder only"],["file","This file only"]].filter(([s])=>s!==t.scope&&(t.hasFile||s==="repo"));return i.jsxs("div",{className:"st-row",style:{marginTop:12,flexWrap:"wrap",gap:8},children:[i.jsxs("span",{className:"st-chip",children:["reaches: ",t.hasFile||t.scope==="repo"?oh[t.scope]:"changes it is about"]}),r.map(([s,l])=>i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,s),type:"button",children:l},s))]})},uh=({model:{share:e,costPerPr:t}})=>i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:["The model reviewer: ",e.model," of ",e.model+e.checks," findings at first review on ",e.prs," pull request",e.prs===1?"":"s",e.rate===null?"":` (${Math.round(e.rate*100)}%)`,", the rest from the free checks."," ","It cost $",t.totalUsd.toFixed(2)," over ",t.prs," pull request",t.prs===1?"":"s",t.medianUsd===null?"":`, $${t.medianUsd.toFixed(2)} each at the median`,".",t.prsEarlierBasis?` ${t.prsEarlierBasis} more reviewed before every run was counted, left out.`:""]}),ha=e=>`${e.count} of ${e.of}${e.rate===null?"":` (${Math.round(e.rate*100)}%)`}`,ch=({numbers:e})=>i.jsxs("section",{className:"st-card",style:{margin:"0 0 24px"},children:[i.jsx("strong",{children:"After the merge"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[e.records.merged," merged pull requests read on this machine; ",e.records.settled," settled, ",e.records.unsettled," with the window still open."]}),i.jsxs("div",{className:"st-journey",style:{marginTop:10},children:[i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"CI regressed on the merge"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[ha(e.settled.ciRegressed),e.settled.ciUnknown?`, ${e.settled.ciUnknown} with no CI to read`:""]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reverted"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:ha(e.settled.reverted)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reviewed by Rigour"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[e.settled.reviewed.prs," pull requests, ",e.settled.reviewed.fixedLater.count," fixed later"]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Not reviewed"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[e.settled.notReviewed.prs," pull requests, ",e.settled.notReviewed.fixedLater.count," fixed later"]})]})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:["Lessons: ",e.lessons.awaitingDecision," waiting on you, ",e.lessons.promotedFromEvidence," promoted from evidence, ",e.lessons.dismissed," dismissed, ",e.lessons.takenBack," taken back."," ","Teams choose which pull requests get reviewed, so the two groups differ: this is not a comparison."]}),e.model&&i.jsx(uh,{model:e.model})]}),ma=e=>`${e.fired} of ${e.n}${e.rate===null?"":` (${Math.round(e.rate*100)}%)`}`,dh=({checks:e,onDecide:t,onPropose:n})=>i.jsxs("section",{className:"st-card",style:{margin:"24px 0"},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Lessons compiled into checks"}),i.jsx("button",{className:"st-btn",type:"button",onClick:n,children:"Propose checks"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:["A verified lesson that names its file and symbols becomes a check that runs on every review, for free; the model reviewer stops spending prompt on it. A proposed check runs only once you approve it. Who approved it, by git email, is committed with it in ",i.jsx("span",{className:"st-mono",children:".rigour/compiled-checks.json"}),"."]}),e.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:"None yet. Propose checks once a lesson says never, avoid, instead of, always or must about a symbol in backticks."}):i.jsx("div",{className:"st-stack",style:{marginTop:12},children:e.map(r=>i.jsxs("div",{className:"st-need",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:`st-chip ${r.suspended?"bad":r.state==="active"?"ok":r.state==="proposed"?"warn":""}`,children:r.suspended?"suspended":r.state}),i.jsx("span",{className:"st-sub st-mono",children:r.files})]}),i.jsx("div",{style:{marginTop:8},children:r.kind==="forbid"?i.jsxs(i.Fragment,{children:["Reports ",i.jsx("code",{children:r.symbol})," on a changed line."]}):i.jsxs(i.Fragment,{children:["Reports ",i.jsx("code",{children:r.symbol})," with no ",i.jsx("code",{children:r.with})," within three lines."]})}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[Mt(r.message)," · lesson ",r.lessonId,r.by?` · ${r.state==="withdrawn"?"taken back":"approved"} by ${r.by}`:""]}),r.suspended&&i.jsx("div",{className:"st-sub",style:{marginTop:6},children:r.suspended}),r.backtest&&i.jsxs("div",{className:"st-sub",style:{marginTop:6,lineHeight:1.6},children:["On the last ",r.backtest.commits," merged changes to its files: fires on ",ma(r.backtest.repeating)," where a review found the lesson repeating, and on ",ma(r.backtest.other)," others (each a false fire, or a catch the review missed)."]}),i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:8},children:[r.state!=="active"&&i.jsx("button",{className:"st-btn",type:"button",onClick:()=>t(r.id,"active"),children:"Approve"}),r.state==="active"&&i.jsx("button",{className:"st-btn",type:"button",onClick:()=>t(r.id,"withdrawn"),children:"Take back"})]})]},r.id))})]}),fh=()=>{const{data:e,error:t,reload:n}=ve("/api/learning"),[r,s]=cs.useState(!1);if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load lessons: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const l=async(v,w)=>{(await Me("/api/lessons","POST",JSON.stringify({id:v,state:w}))).ok&&n()},o=async(v,w)=>{(await Me("/api/review-lessons","POST",JSON.stringify({id:v,decision:w}))).ok&&n()},a=async(v,w)=>{const k=await Me("/api/review-lessons","POST",JSON.stringify({id:v,decision:"scope",to:w}));k.ok?n():window.alert((await k.json().catch(()=>({}))).error??"Could not record the decision.")},u=async(v,w)=>{const k=await Me("/api/compiled-checks","POST",JSON.stringify({id:v,state:w}));k.ok?n():window.alert((await k.json().catch(()=>({}))).error??"Could not record the decision.")},d=async()=>{(await Me("/api/compiled-checks","POST",JSON.stringify({propose:!0}))).ok&&n()},g=e.lessons.filter(v=>v.fromBots).length,m=r?e.lessons:e.lessons.filter(v=>!v.fromBots),h=Math.max(1,...e.weeks.map(v=>Math.max(v.stoppedInDevelopment,v.reachedPr??0)));return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour learns your codebase"}),i.jsx(sh,{}),i.jsxs("section",{className:"st-card",style:{margin:"24px 0"},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Repeat mistakes, by week"}),i.jsx("span",{className:"st-sub",children:"a mistake Rigour had already learned"})]}),i.jsx("div",{className:"st-bars",children:e.weeks.map(v=>i.jsxs("div",{className:"st-bar",children:[i.jsxs("div",{style:{fontSize:13},children:[v.stoppedInDevelopment," stopped",v.reachedPr===null?"":` · ${v.reachedPr} reached a PR`]}),i.jsx("span",{style:{height:`${Math.max(4,v.stoppedInDevelopment/h*80)}px`}}),i.jsxs("div",{className:"st-sub",children:["from ",new Date(v.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]},v.from))}),!e.prRecorded&&i.jsxs("div",{className:"st-sub",style:{marginTop:14},children:["Repeats that reached a PR show once branch reviews run on this machine (",i.jsx("span",{className:"st-mono",children:"rigour review --base main"}),", for example in a pre-push hook). Reviews in CI stay in CI."]})]}),e.outcomes&&i.jsx(ch,{numbers:e.outcomes}),i.jsx(dh,{checks:e.compiled??[],onDecide:u,onPropose:d}),e.lessons.length===0?i.jsx("div",{className:"st-empty",children:"No lessons yet. They form when an agent fixes something Rigour reported, when a PR comment leads to a fix, or when you tell your agent to remember something."}):i.jsx("div",{className:"st-stack",children:m.map(v=>i.jsx(ih,{lesson:v,onDecide:l,onDecideReview:o,onScope:a},v.id))}),g>0&&i.jsx(lh,{count:g,shown:r,onToggle:()=>s(!r)}),i.jsx(ph,{})]})},ph=()=>{var r,s,l;const e=ve("/api/learned-rules").data??[],t=Object.entries(((r=ve("/api/memory").data)==null?void 0:r.memories)??{}),n=(l=(s=ve("/api/index-stats").data)==null?void 0:s.stats)==null?void 0:l.totalPatterns;return i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Rules learned from fixes"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Checked on every edit, like a built-in check."}),e.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. rigour learn turns an agent's fixes into rules once they hold up."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:e.map(o=>i.jsxs("li",{children:[o.message,i.jsxs("div",{className:"st-sub",children:[o.requirement," · ",o.appliesTo]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"What your agents were told to remember"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Facts saved with rigour_remember; agents recall them by meaning."}),t.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"Nothing saved yet."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:t.slice(0,12).map(([o,a])=>i.jsxs("li",{children:[i.jsx("strong",{children:o.replace(/_/g," ")}),": ",a.value.length>220?`${a.value.slice(0,220)}…`:a.value]},o))}),t.length>12&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:["and ",t.length-12," more"]})]}),typeof n=="number"&&n>0&&i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsxs("strong",{children:[n," functions indexed"]}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:"Before an agent writes a new helper, Rigour checks whether one already exists and points to it, so the codebase doesn't fill with near-copies."})]})]})},ga=e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e),hh=()=>{const{data:e,error:t}=ve("/api/context");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load agent context: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.week,r=n.scopes+n.recalls+n.lessonsTold+n.reuse.length===0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What Rigour gave your agents"}),i.jsx("p",{className:"st-lead",children:"Before an agent writes, it can ask Rigour where to look, what this team already knows, and whether the thing it is about to write exists. Preventing a mistake is cheaper than catching it."}),r?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"No agent asked Rigour for context this week. Agents use it through the Rigour tools (rigour_context_scope, rigour_recall, rigour_check_pattern); Setup shows whether they are connected."}):i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsx(va,{title:"Where to look",value:n.scopes===0?"Not asked this week":`${M(n.filesReturned,"file")} instead of ${n.filesConsidered}`,detail:n.scopes===0?"Agents can ask for the files a task needs instead of reading broadly.":`${M(n.scopes,"request")}. About ${ga(n.tokensReturned)} tokens returned out of ${ga(n.tokensConsidered)} considered (Rigour's estimate).`}),i.jsx(va,{title:"What this team knows",value:`${M(n.lessonsTold,"lesson")} told`,detail:`${M(n.recalls,"recall")} of saved facts and lessons. How it learns shows what each lesson stopped.`}),i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsx("strong",{children:"Pointed to code that already exists"}),n.reuse.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:"No duplicate was about to be written this week."}):i.jsx("div",{className:"st-stack",style:{marginTop:12},children:n.reuse.map(s=>i.jsxs("div",{className:"st-row",style:{alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${s.action==="BLOCK"?"warn":""}`,children:s.action==="BLOCK"?"reuse":"similar"}),i.jsxs("div",{style:{flex:1,fontSize:14,lineHeight:1.5},children:["About to write ",i.jsx("span",{className:"st-mono",children:s.planned}),"; told to use ",i.jsx("span",{className:"st-mono",children:s.existing})]}),i.jsx("span",{className:"st-sub",children:vt(s.at)})]},`${s.at}-${s.planned}`))})]})]}),i.jsx(mh,{weeks:e.weeks})]})},va=({title:e,value:t,detail:n})=>i.jsxs("section",{className:"st-card",children:[i.jsx("div",{className:"st-sub",children:e}),i.jsx("div",{style:{fontSize:22,fontWeight:600,marginTop:6,color:"var(--text-primary)"},children:t}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:n})]}),mh=({weeks:e})=>{const t=e.filter(n=>n.scopes+n.recalls+n.lessonsTold+n.reuse>0).reverse();return i.jsxs("section",{className:"st-card",style:{marginTop:24,padding:0,overflowX:"auto"},children:[i.jsx("div",{style:{padding:"16px 20px 8px"},children:i.jsx("strong",{children:"Last 8 weeks"})}),t.length===0?i.jsx("div",{className:"st-sub",style:{padding:"0 20px 18px"},children:"No context requests in the last 8 weeks."}):i.jsxs("table",{className:"st-table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Week of"}),i.jsx("th",{children:"Focused file lists"}),i.jsx("th",{children:"Files given"}),i.jsx("th",{children:"Recalls"}),i.jsx("th",{children:"Lessons told"}),i.jsx("th",{children:"Duplicates avoided"})]})}),i.jsx("tbody",{children:t.map(n=>i.jsxs("tr",{children:[i.jsx("td",{children:new Date(n.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})}),i.jsx("td",{children:n.scopes}),i.jsx("td",{children:n.scopes?`${n.filesReturned} of ${n.filesConsidered}`:"—"}),i.jsx("td",{children:n.recalls}),i.jsx("td",{children:n.lessonsTold}),i.jsx("td",{children:n.reuse})]},n.from))})]})]})},ll={single:"one judge",cross:"one judge from another vendor",full:"one judge per vendor, findings merged",panel:"a panel: only what a majority confirms blocks"},gh=e=>e.file?`${e.file}${e.line?`:${e.line}`:""}`:"",vh=({data:e,canWrite:t,onChange:n})=>{var s,l,o,a;const r=(s=e.status)==null?void 0:s.last;return i.jsxs("section",{style:{marginTop:24},children:[i.jsxs("h2",{style:{margin:"0 0 12px",fontSize:18,fontWeight:600},children:["The reviewer's verdict on ",e.branch]}),((l=e.status)==null?void 0:l.running)&&i.jsxs("div",{className:"st-sub",style:{marginBottom:8},children:["Reviewing ",e.status.running.head.slice(0,9)," now."]}),((o=e.status)==null?void 0:o.attempt)&&i.jsxs("div",{className:"st-card",style:{marginBottom:12},children:[i.jsx("span",{className:"st-chip warn",children:e.status.attempt.outcome==="skipped"?"skipped":"could not run"})," ",i.jsxs("span",{className:"st-sub",children:["The last review, of ",e.status.attempt.head.slice(0,9)," ",vt(e.status.attempt.at),": ",e.status.attempt.reason]})]}),r?i.jsxs("div",{className:"st-stack",children:[i.jsx("div",{className:"st-card st-row",style:{justifyContent:"space-between"},children:i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${r.open.length?"bad":"ok"}`,children:r.open.length?`${M(r.open.length,"finding")} to fix`:"nothing to fix"})," ",i.jsxs("span",{className:"st-sub",children:[r.ran?`${ll[r.ran.ran]??r.ran.ran}, `:"",r.mode==="delta"?"new commits":"the whole branch"," at ",r.head.slice(0,9),", ",vt(r.at)]})]})}),r.ran&&(r.ran.degraded||r.ran.escalation||r.ran.asked!==r.ran.ran)&&i.jsxs("div",{className:"st-sub",children:["Asked for ",ll[r.ran.asked]??r.ran.asked," (",r.ran.source,"); ran ",ll[r.ran.ran]??r.ran.ran,". ",[r.ran.degraded,r.ran.escalation].filter(Boolean).join("; ")]}),r.open.map(u=>i.jsx(ya,{item:u,canWrite:t&&e.effective.dismissals,onChange:n},u.id)),r.disputed.length>0&&i.jsx("div",{className:"st-sub",style:{marginTop:8},children:"No majority, so these never block:"}),r.disputed.map(u=>i.jsx(ya,{item:u,disputed:!0,canWrite:!1,onChange:n},u.id))]}):!((a=e.status)!=null&&a.attempt)&&i.jsxs("div",{className:"st-empty",children:["No verdict yet. Run ",i.jsx("span",{className:"st-mono",children:"rigour review --reviewer"}),", or push with the reviewer on."]})]})},ya=({item:e,disputed:t,canWrite:n,onChange:r})=>{const[s,l]=_.useState(""),[o,a]=_.useState(!1),[u,d]=_.useState(null),g=async()=>{const m=await Me("/api/reviewer/dismiss","POST",JSON.stringify({id:e.id,reason:s}));m.ok?r():d((await m.json().catch(()=>({}))).error??`HTTP ${m.status}`)};return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",gap:12},children:[i.jsx("strong",{style:{fontSize:14},children:e.issue}),i.jsx("span",{className:"st-mono st-sub",children:gh(e)})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[t?i.jsx("span",{className:"st-chip warn",children:"disputed"}):i.jsx("span",{className:"st-chip",children:e.class}),e.reviewer&&i.jsxs(i.Fragment,{children:[" found by ",e.reviewer.split("+").join(" and ")]})]}),e.consequence&&i.jsxs("div",{style:{marginTop:8,fontSize:14},children:["What goes wrong: ",e.consequence]}),e.evidence&&i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.evidence}),n&&e.kind!=="prior"&&(o?i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:8},children:[i.jsx("input",{"aria-label":"Why it is not a bug",value:s,onChange:m=>l(m.target.value),placeholder:"Why it is not a bug",style:{flex:1,minHeight:36,padding:"0 10px",borderRadius:8,border:"1px solid var(--text-dim)",background:"var(--bg-card)",color:"var(--text-primary)"}}),i.jsx("button",{className:"st-btn",disabled:s.trim().length<5,onClick:g,children:"Dismiss"})]}):i.jsx("button",{className:"st-btn",style:{marginTop:10},onClick:()=>a(!0),children:"Not a bug"})),u&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-chip bad",children:"not dismissed"})," ",u]})]})},as=({label:e,value:t,options:n,disabled:r,withTeam:s,onChange:l})=>{const o=s?[{value:null,label:"Team"},...n]:n,a=t===void 0?null:t;return i.jsx("div",{className:"st-seg",role:"radiogroup","aria-label":e,children:o.map(u=>{const d=JSON.stringify(u.value)===JSON.stringify(a);return i.jsx("button",{type:"button",role:"radio","aria-checked":d,className:d?"on":"",disabled:r,onClick:()=>!d&&l(u.value),children:u.label},u.label)})})},yh={flag:"this run",env:"environment",user:"yours",team:"team"};function xh(e,t){return e.key==="mode"?t.source.mode:e.key==="panel"?t.source.panel:e.key==="escalate"&&(t.required.panel||t.required.mode)?"team":e.user&&e.user.value!==void 0?"user":"team"}const il=[{value:!0,label:"on"},{value:!1,label:"off"}],xa=[{value:"single",label:"one judge"},{value:"cross",label:"one, another vendor"},{value:"full",label:"one per vendor"}],wh=({data:e,canWrite:t,saving:n,onSave:r,onSaveTeam:s})=>{const[l,o]=_.useState(!1),a=e.effective,u=e.team,d=a.required.panel||a.required.mode,g=[{key:"enabled",label:"Review at push",help:"Ask the reviewer when you push a branch that has an open pull request.",effective:a.enabled?"on":"off",user:{value:e.user.enabled,options:il},team:{value:u.enabled??!1,options:il}},{key:"mode",label:"Mode",help:"One judge; one from a vendor that did not write the code; or one judge per vendor (up to Judges), findings merged.",effective:a.mode,user:{value:e.user.mode,options:xa},team:{value:u.mode??"single",options:xa},locked:a.required.mode?"your team requires at least this":void 0},{key:"mode_required",label:"Required for everyone",help:"No person or run may review with fewer judges than the team's, in CI or anywhere.",effective:a.required.mode?"yes":"no",team:{value:u.mode_required??!1,options:[{value:!0,label:"yes"},{value:!1,label:"no"}]}},{key:"panel",label:"Panel",help:"Judges cross-examine what only one of them found; only what a majority confirms blocks. Required: no one may turn it off.",effective:a.panel?"on":"off",user:{value:e.user.panel,options:il},team:{value:u.panel??"off",options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}]},locked:a.required.panel?"your team requires the panel":void 0},{key:"dismissals",label:"Dismissals",help:'Whether people may mark a reviewer finding "not a bug". Off: a wrong finding is fixed by improving the reviewer, a right one by fixing the code.',effective:a.dismissals?"allowed":"off",team:{value:u.dismissals??!1,options:[{value:!0,label:"allowed"},{value:!1,label:"off"}]}},{key:"judges",label:"Judges",help:"How many judges a full or panel review uses, each from a different vendor. Three give a real majority.",effective:String(a.judges),user:{value:e.user.judges,options:[{value:2,label:"2"},{value:3,label:"3"}]},team:{value:u.judges??2,options:[{value:2,label:"2"},{value:3,label:"3"}]}},{key:"escalate",label:"When to add judges",help:"Always, or only for a risky change or one a person has reviewed. The backtest shows whether that loses anything.",effective:a.escalate,user:{value:e.user.escalate,options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},team:{value:u.escalate??"always",options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},locked:d?"your team requires every review to be full":void 0}],m=t&&(e.teamFile||l);return i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[i.jsx("strong",{children:"Yours"})," applies to your own runs, in every repository on this machine, and wins over the team's except where the team set a floor. ",i.jsx("strong",{children:"Team"})," is"," ",e.teamFile?i.jsxs(i.Fragment,{children:["in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": a change here edits the file, and you commit it"]}):i.jsxs(i.Fragment,{children:["Rigour's defaults: this repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"})]}),".",!t&&" Open Studio from the link the terminal printed to change settings here."]}),t&&!e.teamFile&&!l&&i.jsxs("div",{className:"st-card st-row",style:{justifyContent:"space-between",marginBottom:12},children:[i.jsxs("span",{className:"st-sub",children:["Setting team defaults creates a ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": from then on this repository uses the team setup."]}),i.jsx("button",{className:"st-btn",onClick:()=>o(!0),children:"Set team defaults"})]}),i.jsx("div",{className:"st-stack",children:g.map(h=>i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:h.label}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:h.help})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:h.effective})," ",i.jsxs("span",{className:"st-sub",children:["· ",yh[xh(h,a)]]}),h.locked&&i.jsxs("span",{title:h.locked,"aria-label":h.locked,children:[" ",i.jsx(Ts,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),h.user?i.jsx(as,{label:`Your ${h.label}`,withTeam:!0,disabled:!t||n!==null,value:h.user.value,options:h.user.options,onChange:v=>r({[h.key]:v})}):i.jsx("span",{className:"st-sub",children:"set by the team only"}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(as,{label:`Team ${h.label}`,disabled:!m||n!==null,value:h.team.value,options:h.team.options,onChange:v=>s({[h.key]:v},!e.teamFile)})]})]},h.key))}),i.jsx(kh,{data:e}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(h=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",h]},h))})]})},Uc=({diff:e})=>i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{style:{fontSize:14},children:"rigour.yml changed"}),i.jsx("span",{className:"st-sub",children:"Commit it so the change reaches your team."})]}),i.jsx("pre",{className:"st-code",style:{marginTop:8},children:e.split(`
|
|
166
|
-
`).map((t,n)=>i.jsx("div",{className:`st-ln ${t.startsWith("+")?"add":t.startsWith("-")?"del":""}`,children:t},n))})]}),kh=({data:e})=>{var s;const t=((s=e.status)==null?void 0:s.today)??{runs:0,usd:0},{max_runs_per_day:n,max_usd_per_day:r}=e.effective;return i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("div",{style:{fontSize:15},children:"Today in this repository"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:[M(t.runs,"agent run"),n!==void 0?` of ${n} allowed`:"",t.usd||r!==void 0?`, $${t.usd.toFixed(2)} reported${r!==void 0?` of $${r.toFixed(2)}`:""}`:"","."," ",n===void 0&&r===void 0?i.jsxs(i.Fragment,{children:["No daily cap: set ",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"})," or ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"})," in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),"."]}):"Past a cap, reviews are skipped until tomorrow (or cannot run, where your team requires the reviewer)."]})]})},jh=({data:e})=>{const t=new Set(e.available.filter(r=>r.installed&&e.effective.reviewers.includes(r.name)).map(r=>r.vendor)).size,n=e.effective.required.panel||e.effective.required.mode;return i.jsxs("section",{style:{marginTop:20},children:[i.jsx("h3",{style:{margin:"0 0 6px",fontSize:15,fontWeight:600},children:"Agent CLIs on this machine"}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px"},children:["The reviewer uses their own logins: no API key. ",t>=3?"Enough vendors for three judges.":t===2?"Enough for two judges; a third vendor, listed in the reviewers, allows three.":n?"Your team requires two judges from different vendors: with one, the review cannot run until another is installed.":"Two judges need two vendors; with one, the review runs with one judge and says so."]}),i.jsx("div",{className:"st-row",style:{flexWrap:"wrap",gap:8},children:e.available.map(r=>i.jsxs("span",{className:`st-chip ${r.installed?"ok":""}`,children:[r.binary,r.installed?` ${r.version??""}`:": not installed"]},r.name))})]})};function Bc(){return ve("/api/reviewer")}const Nh=()=>{const{data:e,error:t,reload:n}=Bc();return t?i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's verdict: ",t,"."]}):e?i.jsx(vh,{data:e,canWrite:Es(),onChange:n}):i.jsx("div",{className:"st-sub",children:"Loading…"})},Sh=()=>{const{data:e,error:t,reload:n}=Bc(),[r,s]=_.useState(null),[l,o]=_.useState(null),[a,u]=_.useState(null);if(t)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's settings: ",t,"."]});if(!e)return i.jsx("div",{className:"st-sub",children:"Loading…"});const d=async(g,m,h)=>{s(h),o(null);const v=await Me(g,"POST",JSON.stringify(m)),w=await v.json().catch(()=>({}));v.ok?g.endsWith("/team")&&u(w.diff??null):o(w.error??`HTTP ${v.status}`),s(null),n()};return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:"The reviewer"}),i.jsx("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:"A second opinion from other AI models, before a person reviews. Off until your team or you turn it on. With two or three judges from different vendors, a finding blocks only when most of them agree and it names what goes wrong."}),i.jsx(wh,{data:e,canWrite:Es(),saving:r,onSave:g=>d("/api/reviewer/settings",g,Object.keys(g)[0]),onSaveTeam:(g,m)=>d("/api/reviewer/team",{patch:g,create:m},`team:${Object.keys(g)[0]}`)}),l&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:l})]}),a&&i.jsx(Uc,{diff:a}),i.jsx(jh,{data:e})]})},Ch=e=>e==="agent"?"your agent":e==="human"?"you":e.replace(/^byok:/,""),Th=()=>{const{data:e,error:t}=ve("/api/pre-pr-review");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load reviews: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Review before the PR"}),i.jsx("p",{className:"st-lead",children:"What still stands between this branch and a person's review: the reviewer's verdict, then the risky functions your agent checked."}),i.jsx(Nh,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Risky functions your agent checks"}),i.jsxs("p",{className:"st-sub",style:{margin:0,lineHeight:1.6},children:["Rigour picks the riskiest changed functions and asks specific questions about them. Your agent answers with its own model, or you do.",e.reviewed.total>0&&` So far: ${M(e.reviewed.total,"function")} reviewed, ${e.reviewed.fixed} fixed, ${e.reviewed.noIssue} with no issue.`]}),i.jsxs("section",{style:{marginTop:24},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Waiting"}),e.pending.length===0?i.jsx("div",{className:"st-empty",children:"No risky function in the current changes is waiting."}):i.jsx("div",{className:"st-stack",children:e.pending.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{className:"st-mono",style:{fontSize:14},children:n.function}),i.jsxs("span",{className:"st-mono st-sub",children:[n.file,":",n.start]})]}),i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:n.questions.map(r=>i.jsx("li",{children:r},r))})]},`${n.file}:${n.function}`))})]}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Checked"}),e.recent.length===0?i.jsx("div",{className:"st-empty",children:"Nothing reviewed yet. Agents review through rigour_review; you can run rigour review-task."}):i.jsx("div",{className:"st-stack",children:e.recent.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${n.verdict==="fixed"?"ok":""}`,children:n.verdict==="fixed"?"fixed":n.verdict==="no_issue"?"no issue":n.verdict})," ",i.jsx("strong",{className:"st-mono",style:{fontSize:14,marginLeft:8},children:n.function})]}),i.jsxs("span",{className:"st-sub",children:[Ch(n.reviewer)," · ",vt(n.at)]})]}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:n.file}),n.note&&i.jsx("div",{style:{marginTop:10,fontSize:14,lineHeight:1.6},children:n.note})]},`${n.file}:${n.function}:${n.at}`))})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:24},children:["Model reviews with your own key: ",e.spend.runs===0?"none run here":`${M(e.spend.runs,"run")}, ${Eh(e.spend)}${e.lastModel?`, last with ${e.lastModel}`:""}`,"."]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})};function Eh(e){return e.runs-e.unpricedRuns===0?"cost not reported by the provider":`$${e.costUsd.toFixed(2)} observed${e.unpricedRuns?` (${e.unpricedRuns} without a reported cost)`:""}`}const wa={stopped:{label:"blocked",cls:"warn"},reported:{label:"reported",cls:"warn"},fixed:{label:"fixed",cls:"ok"},checked:{label:"checked",cls:""},reviewed:{label:"reviewed",cls:""},taught:{label:"told",cls:""},pr:{label:"PR",cls:"warn"}},ol=e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),_h=e=>new Date(e).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"}),zh=()=>{const{data:e,error:t}=ve("/api/activity");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load activity: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Activity"}),i.jsx("p",{className:"st-lead",children:"Each block is one stretch of agent work. What Rigour blocked, reported or got fixed is listed; routine checks fold away."}),e.sessions.length===0?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"Nothing yet. Activity appears as agents edit code, ask for reviews and finish their work."}):i.jsx("div",{className:"st-stack",style:{marginTop:24,gap:16},children:e.sessions.map(n=>i.jsx(Ph,{session:n},n.start))})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})},Ph=({session:e})=>{const[t,n]=_.useState(!1),r=e.counts,s=r.fixed+r.reviewedFixed,l=[s&&`${M(s,"problem")} fixed`,r.stopped&&`${M(r.stopped,"edit")} blocked`,r.reported&&`${M(r.reported,"edit")} reported on`,r.pr&&`${M(r.pr,"branch review")} with findings`,r.reviewed&&`${M(r.reviewed,"risky function")} reviewed${r.reviewed-r.reviewedFixed?` (${r.reviewed-r.reviewedFixed} fine)`:""}`,r.checked&&`${M(r.checked,"edit")} checked clean`,r.taught&&`lessons given ${M(r.taught,"time")}`].filter(Boolean).join(" · ");return i.jsxs("section",{className:"st-card",style:{padding:0},children:[i.jsxs("div",{style:{padding:"16px 20px",borderBottom:e.highlights.length||t?"1px solid var(--border-dim)":0},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("strong",{children:[_h(e.start),", ",ol(e.start),e.start!==e.end?`–${ol(e.end)}`:""]}),e.rest.length>0&&i.jsx("button",{className:"st-btn",onClick:()=>n(!t),type:"button",style:{minHeight:32},children:t?"Hide routine":`Show ${M(e.rest.length,"routine item")}`})]}),i.jsx("div",{className:"st-sub",style:{marginTop:6},children:l})]}),[...e.highlights,...t?e.rest:[]].map((o,a)=>i.jsxs("div",{className:"st-row",style:{padding:"12px 20px",borderTop:a?"1px solid var(--border-dim)":0,alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"ok":wa[o.kind].cls}`,style:{minWidth:70,textAlign:"center"},children:o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"fixed":wa[o.kind].label}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:14,lineHeight:1.5},children:Mt(o.text)}),o.detail&&i.jsx("div",{className:"st-sub",style:{marginTop:3,lineHeight:1.5},children:o.detail})]}),i.jsx("span",{className:"st-sub",style:{whiteSpace:"nowrap"},children:ol(o.at)})]},`${o.at}-${a}`))]})},Lh={flag:"this run",env:"environment",user:"yours",team:"team"},Rh=({text:e,data:t,canWrite:n,saving:r,problem:s,diff:l,onSave:o})=>{const a=t.effective,u=a.required?`your team requires the ${e.name}`:void 0;return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:e.title}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[e.lead,!n&&" Open Studio from the link the terminal printed to change it here."]}),i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:e.row}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:e.rowHelp})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:a.enabled?"on":"off"})," ",i.jsxs("span",{className:"st-sub",children:["· ",Lh[a.source]]}),u&&i.jsxs("span",{title:u,"aria-label":u,children:[" ",i.jsx(Ts,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),i.jsx(as,{label:`Your ${e.name}`,withTeam:!0,disabled:!n||r,value:t.user??void 0,options:[{value:!0,label:"on"},{value:!1,label:"off"}],onChange:d=>o({user:d})}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(as,{label:`Team ${e.name}`,disabled:!n||r,value:t.team,options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}],onChange:d=>o({team:d,create:!t.teamFile})})]})]}),!t.teamFile&&n&&i.jsxs("div",{className:"st-sub",style:{marginTop:8},children:["This repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": setting the team's value creates one, and from then on it uses the team setup."]}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(d=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",d]},d))}),s&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:s})]}),l&&i.jsx(Uc,{diff:l})]})},ka={goal:{title:"The goal check",lead:i.jsxs(i.Fragment,{children:["Checks a change against what its pull request says it is for: files outside its ",i.jsx("span",{className:"st-mono",children:"Scope"})," or inside ",i.jsx("span",{className:"st-mono",children:"Out of scope"}),", and"," ",i.jsx("span",{className:"st-mono",children:"Done when"})," items naming a file it never touched, block. No model; a description without these sections is never checked."]}),row:"Check the goal",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--goal"})," and ",i.jsx("span",{className:"st-mono",children:"--no-goal"})," choose for one run."]}),name:"goal check"},outcomes:{title:"The outcome loop",lead:i.jsxs(i.Fragment,{children:["What happened after each pull request merged: CI on its merge commit, later commits and fixes on its files, a revert. Read with"," ",i.jsx("span",{className:"st-mono",children:"rigour outcomes"}),", one GitHub call per merged pull request until its window closes, then never again."]}),row:"Read outcomes",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--outcomes"})," and ",i.jsx("span",{className:"st-mono",children:"--no-outcomes"})," choose for one run."]}),name:"outcome loop"},orchestrator:{title:"The review orchestrator",lead:i.jsxs(i.Fragment,{children:["Experimental. Triage, without a model, picks which parts of a review each change needs (earlier human points, correctness, production cost, what the change leaves behind, rules, lessons and the goal), and the judge does only those, in one pass: the same runs as one judge. A change over the judge's limit is split only with what the router has already saved over its last 20 reviews, so on average it never costs more than one judge. A change with nothing for a model to review gets no run. Under required, every part returns or there is no verdict. The daily caps (",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"}),", ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"}),") count every pass. What blocks is unchanged."]}),row:"Use the orchestrator",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--orchestrator"})," and ",i.jsx("span",{className:"st-mono",children:"--no-orchestrator"})," choose for one run."]}),name:"review orchestrator"}},al=({name:e})=>{const t=`/api/switches/${e}`,{data:n,error:r,reload:s}=ve(t),[l,o]=_.useState(!1),[a,u]=_.useState(null),[d,g]=_.useState(null);if(r)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the ",ka[e].name,": ",r,"."]});if(!n)return i.jsx("div",{className:"st-sub",children:"Loading…"});const m=async h=>{o(!0),u(null);const v=await Me(t,"POST",JSON.stringify(h)),w=await v.json().catch(()=>({}));v.ok?"team"in h&&g(w.diff??null):u(w.error??`HTTP ${v.status}`),o(!1),s()};return i.jsx(Rh,{text:ka[e],data:n,canWrite:Es(),saving:l,problem:a,diff:d,onSave:m})},$h={working:"ok","set up":"",broken:"bad",missing:"warn"},Oh=()=>{const{data:e,error:t}=ve("/api/setup");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't check setup: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Setup"}),i.jsxs("p",{className:"st-lead",children:["What runs in this repository, and whether Rigour saw it work this week. The same checks run with ",i.jsx("span",{className:"st-mono",children:"rigour doctor"}),"."]}),i.jsx("div",{className:"st-stack",style:{marginTop:24},children:e.checks.map(n=>i.jsxs("div",{className:"st-card st-row",children:[i.jsx("span",{className:`st-chip ${$h[n.state]}`,style:{minWidth:72,textAlign:"center"},children:n.state}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15},children:n.name}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:n.detail})]}),n.fix&&n.state!=="working"&&i.jsx("span",{className:"st-mono st-sub",children:n.fix})]},n.id))}),i.jsx(al,{name:"goal"}),i.jsx(al,{name:"outcomes"}),i.jsx(al,{name:"orchestrator"}),i.jsx(Sh,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Who double-checks risky code"}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))",marginTop:12},children:[i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your agent's own model"}),i.jsx("span",{children:"Free"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["Your agent calls ",i.jsx("span",{className:"st-mono",children:"rigour_review"})," and answers Rigour's questions with the model you already pay for. No key."]})]}),i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your own API key"}),i.jsx("span",{children:"Pay per use"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["For code written without an agent, and for PR reviews. ",i.jsx("span",{className:"st-mono",children:"rigour settings set-key"}),"; keys are never shown here."]})]})]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Checking…"})})},ja=60,Mh=({request:e,onClose:t})=>{const[n,r]=_.useState(ja),[s,l]=_.useState(null);_.useEffect(()=>{const a=e.timestamp?Date.parse(e.timestamp):Date.now(),u=()=>r(Math.max(0,ja-Math.floor((Date.now()-a)/1e3)));u();const d=window.setInterval(u,1e3);return()=>window.clearInterval(d)},[e.timestamp]);const o=async a=>{const u=await Me("/api/arbitrate","POST",JSON.stringify({requestId:e.requestId||e.id,decision:a}));u.ok?t():l(u.status===403?"Studio was opened without the link from your terminal, or the request expired.":`That didn't go through (HTTP ${u.status}).`)};return i.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Approve a command",style:{position:"fixed",inset:0,background:"rgba(15, 17, 22, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:i.jsxs("div",{className:"st-card",style:{width:"min(560px, calc(100vw - 32px))",padding:24},children:[i.jsx("strong",{style:{fontSize:18},children:"Your agent wants to run a command"}),i.jsx("pre",{className:"st-code st-mono",style:{padding:"12px 14px",marginTop:14,whiteSpace:"pre-wrap"},children:e.command}),e.firewallDecision&&e.firewallDecision!=="allow"&&i.jsxs("div",{className:"st-sub",style:{marginTop:10},children:["Rigour's pre-check: ",e.firewallDecision,e.firewallReason?`: ${e.firewallReason}`:""]}),i.jsx("div",{className:"st-sub",style:{marginTop:10},children:n>0?`Denied automatically in ${n}s if nobody answers.`:"Time ran out: the request was denied."}),s&&i.jsx("div",{className:"st-sub",style:{marginTop:10,color:"var(--status-error)"},children:s}),i.jsxs("div",{className:"st-row",style:{marginTop:18,justifyContent:"flex-end"},children:[i.jsx("button",{className:"st-btn",onClick:t,type:"button",children:"Close"}),i.jsx("button",{className:"st-btn",onClick:()=>o("reject"),type:"button",disabled:n===0,children:"Deny"}),i.jsx("button",{className:"st-btn primary",onClick:()=>o("approve"),type:"button",disabled:n===0,children:"Allow"})]})]})})},Na="rigour-theme-v2",ul=[{id:"week",label:"This week",icon:zp,page:e=>i.jsx(Jp,{onNavigate:e})},{id:"progress",label:"Progress",icon:Mp,page:()=>i.jsx(nh,{})},{id:"only",label:"Only Rigour",icon:Fp,page:()=>i.jsx(rh,{})},{id:"learns",label:"How it learns",icon:_p,page:()=>i.jsx(fh,{})},{id:"context",label:"Agent context",icon:Cp,page:()=>i.jsx(hh,{})},{id:"reviews",label:"Review",icon:Pp,page:()=>i.jsx(Th,{})},{id:"activity",label:"Activity",icon:ri,page:()=>i.jsx(zh,{})},{id:"setup",label:"Setup",icon:Hp,page:()=>i.jsx(Oh,{})}],Ih=6e4;function Fh(){const[e,t]=_.useState(()=>{try{return localStorage.getItem(Na)||"light"}catch{return"light"}}),[n,r]=_.useState("week"),[s,l]=_.useState(null),[o,a]=_.useState("connecting"),[u,d]=_.useState(null),[g,m]=_.useState(null),[h,v]=_.useState(!0),[w,k]=_.useState(!1),O=_.useCallback(async()=>{v(!0);try{const c=await fetch("/api/health"),p=await c.json();m(c.ok?p:{error:p.error||`HTTP ${c.status}`})}catch(c){m({error:c instanceof Error?c.message:String(c)})}finally{v(!1)}},[]);_.useEffect(()=>{const c=new EventSource("/api/events");return c.onopen=()=>a("live"),c.onerror=()=>a("offline"),c.onmessage=p=>{try{const y=JSON.parse(p.data),j=!y.timestamp||Date.now()-Date.parse(y.timestamp)<Ih;y.type==="interception_requested"&&j&&d(y)}catch{}},fetch("/api/info").then(p=>p.json()).then(l).catch(()=>l(null)),()=>c.close()},[]),_.useEffect(()=>{document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(Na,e)}catch{}},[e]);const f=ul.find(c=>c.id===n)??ul[0];return i.jsxs("div",{className:"studio",children:[i.jsxs("aside",{className:"sidebar glass-shell",children:[i.jsxs("div",{className:"brand",children:[i.jsx("div",{className:"logo-icon",children:i.jsx($p,{size:18})}),i.jsx("span",{children:"Rigour"}),(s==null?void 0:s.studioVersion)&&i.jsxs("div",{className:"version-pill",children:["v",s.studioVersion]})]}),i.jsx("nav",{children:ul.map(c=>i.jsxs("button",{className:`nav-item ${c.id===f.id?"active":""}`,onClick:()=>r(c.id),type:"button",children:[i.jsx(c.icon,{size:18}),i.jsx("span",{children:c.label})]},c.id))}),s&&i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"trust-indicator",title:s.teamSync?"Lessons your team promotes are shared through your team store":"Nothing leaves this machine",children:[i.jsx(Ts,{size:14}),i.jsx("span",{children:s.teamSync?"Synced with your team":"Stored on this machine"})]})})]}),i.jsxs("main",{className:"main-content",children:[i.jsxs("header",{className:"glass-shell",children:[i.jsx("div",{className:"header-left",children:s&&i.jsx(Wp,{name:s.projectName,branch:s.branch})}),i.jsxs("div",{className:"header-right",children:[i.jsx("button",{type:"button",className:"connection-status",onClick:()=>{k(c=>!c),O()},"aria-expanded":w,title:"Studio receives Rigour's events live",children:i.jsxs("div",{className:`status-indicator ${o}`,children:[i.jsx("div",{className:"pulse-emitter"}),i.jsx("span",{children:o==="live"?"Live":o==="offline"?"Offline":"Connecting"})]})}),i.jsx("button",{className:"theme-toggle",onClick:()=>t(c=>c==="dark"?"light":"dark"),"aria-label":"Toggle theme",type:"button",children:e==="dark"?i.jsx(Op,{size:18}):i.jsx(Lp,{size:18})})]})]}),w&&i.jsxs("div",{className:"health-popover",children:[i.jsxs("div",{className:"health-popover-title",children:[i.jsx("strong",{children:"Rigour system health"}),i.jsx("button",{type:"button",onClick:()=>k(!1),"aria-label":"Close health",children:i.jsx(Dc,{size:15})})]}),i.jsx(Bp,{data:g,loading:h,stale:!1,onRetry:O})]}),i.jsxs("div",{className:"view-container",children:[!Es()&&i.jsx(Up,{}),i.jsx(Ap,{resetKey:f.id,children:i.jsx("div",{className:"full-view",children:f.page(r)})})]})]}),u&&i.jsx(Mh,{request:u,onClose:()=>d(null)})]})}Qp();cl.createRoot(document.getElementById("root")).render(i.jsx(cs.StrictMode,{children:i.jsx(Fh,{})}));
|