From c663beb18ae4759ea7892ef7036d0aea1f3adf46 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 8 Apr 2026 08:34:39 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20GitHub=20App=20setup=20flow=20=E2=80=94?= =?UTF-8?q?=20nullable=20webhook=5Fsecret,=20double=20POST,=20stale=20rest?= =?UTF-8?q?art=20copy,=20wrong=20port?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change webhook_secret to Option in GitHubManifestConversion since GitHub's API returns null when no webhook URL is configured - Use useRef guard to prevent React StrictMode from firing the one-time manifest conversion POST twice - Remove fake "restart required" flow — server reads auth config lazily so no restart is needed after setup - Derive web.url and api.base_url from the request Origin header instead of hardcoding port 3000 - Add error logging for manifest conversion parse failures Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/fabro-web/app/routes/setup-complete.tsx | 71 ++---- .../{entry-3m7f90fs.js => entry-tfe07zw7.js} | 208 +++++++++--------- ...-3m7f90fs.js.map => entry-tfe07zw7.js.map} | 6 +- apps/fabro-web/dist/index.html | 2 +- lib/crates/fabro-server/src/web_auth.rs | 71 ++++-- 5 files changed, 173 insertions(+), 185 deletions(-) rename apps/fabro-web/dist/assets/{entry-3m7f90fs.js => entry-tfe07zw7.js} (76%) rename apps/fabro-web/dist/assets/{entry-3m7f90fs.js.map => entry-tfe07zw7.js.map} (87%) diff --git a/apps/fabro-web/app/routes/setup-complete.tsx b/apps/fabro-web/app/routes/setup-complete.tsx index 6bd6fd83f..58b3eebd2 100644 --- a/apps/fabro-web/app/routes/setup-complete.tsx +++ b/apps/fabro-web/app/routes/setup-complete.tsx @@ -1,19 +1,21 @@ -import { useEffect, useMemo, useState } from "react"; +import { useEffect, useMemo, useRef, useState } from "react"; import { AuthLayout } from "../components/auth-layout"; -type SetupState = "registering" | "restart_required" | "ready" | "error"; +type SetupState = "registering" | "done" | "error"; export default function SetupComplete() { const code = useMemo(() => new URLSearchParams(window.location.search).get("code"), []); - const [state, setState] = useState(code ? "registering" : "restart_required"); + const [state, setState] = useState(code ? "registering" : "done"); const [error, setError] = useState(null); + const registeredRef = useRef(false); useEffect(() => { - let cancelled = false; + if (registeredRef.current) return; + registeredRef.current = true; async function register() { if (!code) { - setState("restart_required"); + setState("done"); return; } @@ -26,48 +28,18 @@ export default function SetupComplete() { if (!response.ok) { const payload = await response.json().catch(() => ({})); - if (!cancelled) { - setError(payload.error ?? "Setup registration failed."); - setState("error"); - } + setError(payload.error ?? "Setup registration failed."); + setState("error"); return; } - if (!cancelled) { - setState("restart_required"); - window.history.replaceState({}, "", "/setup/complete"); - } + setState("done"); + window.history.replaceState({}, "", "/setup/complete"); } void register(); - - return () => { - cancelled = true; - }; }, [code]); - useEffect(() => { - if (state !== "restart_required") { - return; - } - - const timer = window.setInterval(async () => { - const response = await fetch("/api/v1/setup/status", { credentials: "include" }); - if (!response.ok) { - return; - } - - const payload = await response.json().catch(() => ({ configured: false })); - if (payload.configured) { - setState("ready"); - } - }, 2000); - - return () => { - window.clearInterval(timer); - }; - }, [state]); - return ( {state === "registering" && ( @@ -81,30 +53,13 @@ export default function SetupComplete() { )} - {state === "restart_required" && ( + {state === "done" && ( <>

Setup complete

- Fabro loads auth configuration at process start, so a restart is required before sign-in. -

-
-            fabro server start
-          
-

- Waiting for the restarted server to come back... -

- - )} - - {state === "ready" && ( - <> -

- Restart detected -

-

- Authentication is ready. + Your GitHub App has been registered and configured.

{(function(){function Z(E,i){Object.defineProperty(z.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",i[0],i[1])}})}function J(E){if(E===null||typeof E!=="object")return null;return E=h1&&E[h1]||E["@@iterator"],typeof E==="function"?E:null}function X(E,i){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var F0=E+"."+i;T0[F0]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",i,E),T0[F0]=!0)}function z(E,i,F0){this.props=E,this.context=i,this.refs=o5,this.updater=F0||r1}function B(){}function U(E,i,F0){this.props=E,this.context=i,this.refs=o5,this.updater=F0||r1}function W(){}function $(E){return""+E}function M(E){try{$(E);var i=!1}catch(x0){i=!0}if(i){i=console;var F0=i.error,P0=typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return F0.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P0),$(E)}}function w(E){if(E==null)return null;if(typeof E==="function")return E.$$typeof===T6?null:E.displayName||E.name||null;if(typeof E==="string")return E;switch(E){case O0:return"Fragment";case B0:return"Profiler";case f:return"StrictMode";case O1:return"Suspense";case H0:return"SuspenseList";case s1:return"Activity"}if(typeof E==="object")switch(typeof E.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case e:return"Portal";case W0:return E.displayName||"Context";case M0:return(E._context.displayName||"Context")+".Consumer";case k0:var i=E.render;return E=E.displayName,E||(E=i.displayName||i.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case G1:return i=E.displayName||null,i!==null?i:w(E.type)||"Memo";case C1:i=E._payload,E=E._init;try{return w(E(i))}catch(F0){}}return null}function N(E){if(E===O0)return"<>";if(typeof E==="object"&&E!==null&&E.$$typeof===C1)return"<...>";try{var i=w(E);return i?"<"+i+">":"<...>"}catch(F0){return"<...>"}}function O(){var E=Y1.A;return E===null?null:E.getOwner()}function A(){return Error("react-stack-top-frame")}function _(E){if(t7.call(E,"key")){var i=Object.getOwnPropertyDescriptor(E,"key").get;if(i&&i.isReactWarning)return!1}return E.key!==void 0}function P(E,i){function F0(){Y6||(Y6=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",i))}F0.isReactWarning=!0,Object.defineProperty(E,"key",{get:F0,configurable:!0})}function L(){var E=w(this.type);return R4[E]||(R4[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function D(E,i,F0,P0,x0,a0){var S0=F0.ref;return E={$$typeof:G0,type:E,key:i,props:F0,_owner:P0},(S0!==void 0?S0:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:L}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x0}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a0}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function C(E,i){return i=D(E.type,i,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(i._store.validated=E._store.validated),i}function R(E){T(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===C1&&(E._payload.status==="fulfilled"?T(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function T(E){return typeof E==="object"&&E!==null&&E.$$typeof===G0}function y(E){var i={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(F0){return i[F0]})}function I(E,i){return typeof E==="object"&&E!==null&&E.key!=null?(M(E.key),y(""+E.key)):i.toString(36)}function c(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status==="string"?E.then(W,W):(E.status="pending",E.then(function(i){E.status==="pending"&&(E.status="fulfilled",E.value=i)},function(i){E.status==="pending"&&(E.status="rejected",E.reason=i)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function x(E,i,F0,P0,x0){var a0=typeof E;if(a0==="undefined"||a0==="boolean")E=null;var S0=!1;if(E===null)S0=!0;else switch(a0){case"bigint":case"string":case"number":S0=!0;break;case"object":switch(E.$$typeof){case G0:case e:S0=!0;break;case C1:return S0=E._init,x(S0(E._payload),i,F0,P0,x0)}}if(S0){S0=E,x0=x0(S0);var o0=P0===""?"."+I(S0,0):P0;return B1(x0)?(F0="",o0!=null&&(F0=o0.replace(a2,"$&/")+"/"),x(x0,i,F0,"",function(M5){return M5})):x0!=null&&(T(x0)&&(x0.key!=null&&(S0&&S0.key===x0.key||M(x0.key)),F0=C(x0,F0+(x0.key==null||S0&&S0.key===x0.key?"":(""+x0.key).replace(a2,"$&/")+"/")+o0),P0!==""&&S0!=null&&T(S0)&&S0.key==null&&S0._store&&!S0._store.validated&&(F0._store.validated=2),x0=F0),i.push(x0)),1}if(S0=0,o0=P0===""?".":P0+":",B1(E))for(var b0=0;b0{(function(){function Z(E,i){Object.defineProperty(z.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",i[0],i[1])}})}function J(E){if(E===null||typeof E!=="object")return null;return E=h1&&E[h1]||E["@@iterator"],typeof E==="function"?E:null}function X(E,i){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var F0=E+"."+i;T0[F0]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",i,E),T0[F0]=!0)}function z(E,i,F0){this.props=E,this.context=i,this.refs=s5,this.updater=F0||r1}function B(){}function U(E,i,F0){this.props=E,this.context=i,this.refs=s5,this.updater=F0||r1}function W(){}function $(E){return""+E}function M(E){try{$(E);var i=!1}catch(S0){i=!0}if(i){i=console;var F0=i.error,P0=typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return F0.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P0),$(E)}}function w(E){if(E==null)return null;if(typeof E==="function")return E.$$typeof===T6?null:E.displayName||E.name||null;if(typeof E==="string")return E;switch(E){case O0:return"Fragment";case B0:return"Profiler";case f:return"StrictMode";case O1:return"Suspense";case H0:return"SuspenseList";case s1:return"Activity"}if(typeof E==="object")switch(typeof E.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case e:return"Portal";case W0:return E.displayName||"Context";case M0:return(E._context.displayName||"Context")+".Consumer";case u0:var i=E.render;return E=E.displayName,E||(E=i.displayName||i.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case G1:return i=E.displayName||null,i!==null?i:w(E.type)||"Memo";case C1:i=E._payload,E=E._init;try{return w(E(i))}catch(F0){}}return null}function N(E){if(E===O0)return"<>";if(typeof E==="object"&&E!==null&&E.$$typeof===C1)return"<...>";try{var i=w(E);return i?"<"+i+">":"<...>"}catch(F0){return"<...>"}}function O(){var E=Y1.A;return E===null?null:E.getOwner()}function A(){return Error("react-stack-top-frame")}function V(E){if(t7.call(E,"key")){var i=Object.getOwnPropertyDescriptor(E,"key").get;if(i&&i.isReactWarning)return!1}return E.key!==void 0}function P(E,i){function F0(){Y6||(Y6=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",i))}F0.isReactWarning=!0,Object.defineProperty(E,"key",{get:F0,configurable:!0})}function L(){var E=w(this.type);return R4[E]||(R4[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function D(E,i,F0,P0,S0,a0){var x0=F0.ref;return E={$$typeof:G0,type:E,key:i,props:F0,_owner:P0},(x0!==void 0?x0:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:L}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a0}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function C(E,i){return i=D(E.type,i,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(i._store.validated=E._store.validated),i}function R(E){T(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===C1&&(E._payload.status==="fulfilled"?T(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function T(E){return typeof E==="object"&&E!==null&&E.$$typeof===G0}function y(E){var i={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(F0){return i[F0]})}function I(E,i){return typeof E==="object"&&E!==null&&E.key!=null?(M(E.key),y(""+E.key)):i.toString(36)}function c(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status==="string"?E.then(W,W):(E.status="pending",E.then(function(i){E.status==="pending"&&(E.status="fulfilled",E.value=i)},function(i){E.status==="pending"&&(E.status="rejected",E.reason=i)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function S(E,i,F0,P0,S0){var a0=typeof E;if(a0==="undefined"||a0==="boolean")E=null;var x0=!1;if(E===null)x0=!0;else switch(a0){case"bigint":case"string":case"number":x0=!0;break;case"object":switch(E.$$typeof){case G0:case e:x0=!0;break;case C1:return x0=E._init,S(x0(E._payload),i,F0,P0,S0)}}if(x0){x0=E,S0=S0(x0);var o0=P0===""?"."+I(x0,0):P0;return B1(S0)?(F0="",o0!=null&&(F0=o0.replace(r2,"$&/")+"/"),S(S0,i,F0,"",function(M5){return M5})):S0!=null&&(T(S0)&&(S0.key!=null&&(x0&&x0.key===S0.key||M(S0.key)),F0=C(S0,F0+(S0.key==null||x0&&x0.key===S0.key?"":(""+S0.key).replace(r2,"$&/")+"/")+o0),P0!==""&&x0!=null&&T(x0)&&x0.key==null&&x0._store&&!x0._store.validated&&(F0._store.validated=2),S0=F0),i.push(S0)),1}if(x0=0,o0=P0===""?".":P0+":",B1(E))for(var b0=0;b0 import('./MyComponent')) @@ -10,67 +10,67 @@ Your code should look like: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app -See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}function o(){Y1.asyncTransitions--}function U0(E){if(n7===null)try{var i=("require"+Math.random()).slice(0,7);n7=(AW&&AW[i]).call(AW,"timers").setImmediate}catch(F0){n7=function(P0){q2===!1&&(q2=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var x0=new MessageChannel;x0.port1.onmessage=P0,x0.port2.postMessage(void 0)}}return n7(E)}function K0(E){return 1 ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(b0,M5){x0=!0,S0.then(function(Q5){if(w0(i,F0),F0===0){try{z0(P0),U0(function(){return s(Q5,b0,M5)})}catch(t5){Y1.thrownErrors.push(t5)}if(0 ...)"))}),Y1.actQueue=null),0Y1.recentlyCreatedOwnerStacks++;return D(E,x0,P0,O(),b0?Error("react-stack-top-frame"):E2,b0?S1(N(E)):J6)},Th.createRef=function(){var E={current:null};return Object.seal(E),E},Th.forwardRef=function(E){E!=null&&E.$$typeof===G1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!=="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:k0,render:E},F0;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return F0},set:function(P0){F0=P0,E.name||E.displayName||(Object.defineProperty(E,"name",{value:P0}),E.displayName=P0)}}),i},Th.isValidElement=T,Th.lazy=function(E){E={_status:-1,_result:E};var i={$$typeof:C1,_payload:E,_init:Y0},F0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return E._ioInfo=F0,i._debugInfo=[{awaited:F0}],i},Th.memo=function(E,i){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),i={$$typeof:G1,type:E,compare:i===void 0?null:i};var F0;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return F0},set:function(P0){F0=P0,E.name||E.displayName||(Object.defineProperty(E,"name",{value:P0}),E.displayName=P0)}}),i},Th.startTransition=function(E){var i=Y1.T,F0={};F0._updatedFibers=new Set,Y1.T=F0;try{var P0=E(),x0=Y1.S;x0!==null&&x0(F0,P0),typeof P0==="object"&&P0!==null&&typeof P0.then==="function"&&(Y1.asyncTransitions++,P0.then(o,o),P0.then(W,R5))}catch(a0){R5(a0)}finally{i===null&&F0._updatedFibers&&(E=F0._updatedFibers.size,F0._updatedFibers.clear(),10{(function(){function Z(){if(y=!1,d){var s=Dh.unstable_now();o=s;var z0=!0;try{Z:{R=!1,T&&(T=!1,c(Y0),Y0=-1),C=!0;var G0=D;try{Y:{U(s);for(L=X(A);L!==null&&!(L.expirationTime>s&&$());){var e=L.callback;if(typeof e==="function"){L.callback=null,D=L.priorityLevel;var O0=e(L.expirationTime<=s);if(s=Dh.unstable_now(),typeof O0==="function"){L.callback=O0,U(s),z0=!0;break Y}L===X(A)&&z(A),U(s)}else z(A);L=X(A)}if(L!==null)z0=!0;else{var f=X(_);f!==null&&M(W,f.startTime-s),z0=!1}}break Z}finally{L=null,D=G0,C=!1}z0=void 0}}finally{z0?U0():d=!1}}}function J(s,z0){var G0=s.length;s.push(z0);Z:for(;0>>1,O0=s[e];if(0>>1;eB(M0,G0))W0B(k0,M0)?(s[e]=k0,s[W0]=G0,e=W0):(s[e]=M0,s[B0]=G0,e=B0);else if(W0B(k0,G0))s[e]=k0,s[W0]=G0,e=W0;else break Z}}return z0}function B(s,z0){var G0=s.sortIndex-z0.sortIndex;return G0!==0?G0:s.id-z0.id}function U(s){for(var z0=X(_);z0!==null;){if(z0.callback===null)z(_);else if(z0.startTime<=s)z(_),z0.sortIndex=z0.expirationTime,J(A,z0);else break;z0=X(_)}}function W(s){if(T=!1,U(s),!R)if(X(A)!==null)R=!0,d||(d=!0,U0());else{var z0=X(_);z0!==null&&M(W,z0.startTime-s)}}function $(){return y?!0:Dh.unstable_now()-os||125e?(s.sortIndex=G0,J(_,s),X(A)===null&&s===X(_)&&(T?(c(Y0),Y0=-1):T=!0,M(W,G0-e))):(s.sortIndex=O0,J(A,s),R||C||(R=!0,d||(d=!0,U0()))),s},Dh.unstable_shouldYield=$,Dh.unstable_wrapCallback=function(s){var z0=D;return function(){var G0=D;D=z0;try{return s.apply(this,arguments)}finally{D=G0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var WD=e8((bh)=>{var UO=g(t());(function(){function Z(){}function J(N){return""+N}function X(N,O,A){var _=3"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var S0=new MessageChannel;S0.port1.onmessage=P0,S0.port2.postMessage(void 0)}}return n7(E)}function K0(E){return 1 ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(b0,M5){S0=!0,x0.then(function(Q5){if(w0(i,F0),F0===0){try{z0(P0),U0(function(){return s(Q5,b0,M5)})}catch(o5){Y1.thrownErrors.push(o5)}if(0 ...)"))}),Y1.actQueue=null),0Y1.recentlyCreatedOwnerStacks++;return D(E,S0,P0,O(),b0?Error("react-stack-top-frame"):b2,b0?x1(N(E)):J6)},Th.createRef=function(){var E={current:null};return Object.seal(E),E},Th.forwardRef=function(E){E!=null&&E.$$typeof===G1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!=="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:u0,render:E},F0;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return F0},set:function(P0){F0=P0,E.name||E.displayName||(Object.defineProperty(E,"name",{value:P0}),E.displayName=P0)}}),i},Th.isValidElement=T,Th.lazy=function(E){E={_status:-1,_result:E};var i={$$typeof:C1,_payload:E,_init:Y0},F0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return E._ioInfo=F0,i._debugInfo=[{awaited:F0}],i},Th.memo=function(E,i){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),i={$$typeof:G1,type:E,compare:i===void 0?null:i};var F0;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return F0},set:function(P0){F0=P0,E.name||E.displayName||(Object.defineProperty(E,"name",{value:P0}),E.displayName=P0)}}),i},Th.startTransition=function(E){var i=Y1.T,F0={};F0._updatedFibers=new Set,Y1.T=F0;try{var P0=E(),S0=Y1.S;S0!==null&&S0(F0,P0),typeof P0==="object"&&P0!==null&&typeof P0.then==="function"&&(Y1.asyncTransitions++,P0.then(o,o),P0.then(W,R5))}catch(a0){R5(a0)}finally{i===null&&F0._updatedFibers&&(E=F0._updatedFibers.size,F0._updatedFibers.clear(),10{(function(){function Z(){if(y=!1,d){var s=Dh.unstable_now();o=s;var z0=!0;try{Z:{R=!1,T&&(T=!1,c(Y0),Y0=-1),C=!0;var G0=D;try{Y:{U(s);for(L=X(A);L!==null&&!(L.expirationTime>s&&$());){var e=L.callback;if(typeof e==="function"){L.callback=null,D=L.priorityLevel;var O0=e(L.expirationTime<=s);if(s=Dh.unstable_now(),typeof O0==="function"){L.callback=O0,U(s),z0=!0;break Y}L===X(A)&&z(A),U(s)}else z(A);L=X(A)}if(L!==null)z0=!0;else{var f=X(V);f!==null&&M(W,f.startTime-s),z0=!1}}break Z}finally{L=null,D=G0,C=!1}z0=void 0}}finally{z0?U0():d=!1}}}function J(s,z0){var G0=s.length;s.push(z0);Z:for(;0>>1,O0=s[e];if(0>>1;eB(M0,G0))W0B(u0,M0)?(s[e]=u0,s[W0]=G0,e=W0):(s[e]=M0,s[B0]=G0,e=B0);else if(W0B(u0,G0))s[e]=u0,s[W0]=G0,e=W0;else break Z}}return z0}function B(s,z0){var G0=s.sortIndex-z0.sortIndex;return G0!==0?G0:s.id-z0.id}function U(s){for(var z0=X(V);z0!==null;){if(z0.callback===null)z(V);else if(z0.startTime<=s)z(V),z0.sortIndex=z0.expirationTime,J(A,z0);else break;z0=X(V)}}function W(s){if(T=!1,U(s),!R)if(X(A)!==null)R=!0,d||(d=!0,U0());else{var z0=X(V);z0!==null&&M(W,z0.startTime-s)}}function $(){return y?!0:Dh.unstable_now()-os||125e?(s.sortIndex=G0,J(V,s),X(A)===null&&s===X(V)&&(T?(c(Y0),Y0=-1):T=!0,M(W,G0-e))):(s.sortIndex=O0,J(A,s),R||C||(R=!0,d||(d=!0,U0()))),s},Dh.unstable_shouldYield=$,Dh.unstable_wrapCallback=function(s){var z0=D;return function(){var G0=D;D=z0;try{return s.apply(this,arguments)}finally{D=G0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var WD=e8((bh)=>{var UO=g(t());(function(){function Z(){}function J(N){return""+N}function X(N,O,A){var V=3` tag.%s',A),typeof N==="string"&&typeof O==="object"&&O!==null&&typeof O.as==="string"){A=O.as;var _=z(A,O.crossOrigin);$.d.L(N,A,{crossOrigin:_,integrity:typeof O.integrity==="string"?O.integrity:void 0,nonce:typeof O.nonce==="string"?O.nonce:void 0,type:typeof O.type==="string"?O.type:void 0,fetchPriority:typeof O.fetchPriority==="string"?O.fetchPriority:void 0,referrerPolicy:typeof O.referrerPolicy==="string"?O.referrerPolicy:void 0,imageSrcSet:typeof O.imageSrcSet==="string"?O.imageSrcSet:void 0,imageSizes:typeof O.imageSizes==="string"?O.imageSizes:void 0,media:typeof O.media==="string"?O.media:void 0})}},bh.preloadModule=function(N,O){var A="";typeof N==="string"&&N||(A+=" The `href` argument encountered was "+B(N)+"."),O!==void 0&&typeof O!=="object"?A+=" The `options` argument encountered was "+B(O)+".":O&&("as"in O)&&typeof O.as!=="string"&&(A+=" The `as` option encountered was "+B(O.as)+"."),A&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',A),typeof N==="string"&&(O?(A=z(O.as,O.crossOrigin),$.d.m(N,{as:typeof O.as==="string"&&O.as!=="script"?O.as:void 0,crossOrigin:A,integrity:typeof O.integrity==="string"?O.integrity:void 0})):$.d.m(N))},bh.requestFormReset=function(N){$.d.r(N)},bh.unstable_batchedUpdates=function(N,O){return N(O)},bh.useFormState=function(N,O,A){return W().useFormState(N,O,A)},bh.useFormStatus=function(){return W().useHostTransitionStatus()},bh.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var X8=e8((E70,$D)=>{var Eh=g(WD());$D.exports=Eh});var GD=e8((yh)=>{var a1=g(KD()),gJ=g(t()),KO=g(X8());(function(){function Z(Y,Q){for(Y=Y.memoizedState;Y!==null&&0=Q.length)return K;var G=Q[q],H=V2(Y)?Y.slice():D1({},Y);return H[G]=J(Y[G],Q,q+1,K),H}function X(Y,Q,q){if(Q.length!==q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var K=0;Kj8?console.error("Unexpected pop."):(Q!==mw[j8]&&console.error("Unexpected Fiber popped."),Y.current=gw[j8],gw[j8]=null,mw[j8]=null,j8--)}function K0(Y,Q,q){j8++,gw[j8]=Y.current,mw[j8]=q,Y.current=Q}function w0(Y){return Y===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),Y}function s(Y,Q){K0(t3,Q,Y),K0(Pz,Y,Y),K0(o3,null,Y);var q=Q.nodeType;switch(q){case 9:case 11:q=q===9?"#document":"#fragment",Q=(Q=Q.documentElement)?(Q=Q.namespaceURI)?rL(Q):o8:o8;break;default:if(q=Q.tagName,Q=Q.namespaceURI)Q=rL(Q),Q=aL(Q,q);else switch(q){case"svg":Q=uJ;break;case"math":Q=GW;break;default:Q=o8}}q=q.toLowerCase(),q=mV(null,q),q={context:Q,ancestorInfo:q},U0(o3,Y),K0(o3,q,Y)}function z0(Y){U0(o3,Y),U0(Pz,Y),U0(t3,Y)}function G0(){return w0(o3.current)}function e(Y){Y.memoizedState!==null&&K0(wK,Y,Y);var Q=w0(o3.current),q=Y.type,K=aL(Q.context,q);q=mV(Q.ancestorInfo,q),K={context:K,ancestorInfo:q},Q!==K&&(K0(Pz,Y,Y),K0(o3,K,Y))}function O0(Y){Pz.current===Y&&(U0(o3,Y),U0(Pz,Y)),wK.current===Y&&(U0(wK,Y),Mq._currentValue=dZ)}function f(){}function B0(){if(Rz===0){RC=console.log,LC=console.info,CC=console.warn,vC=console.error,TC=console.group,DC=console.groupCollapsed,bC=console.groupEnd;var Y={configurable:!0,enumerable:!0,value:f,writable:!0};Object.defineProperties(console,{info:Y,log:Y,warn:Y,error:Y,group:Y,groupCollapsed:Y,groupEnd:Y})}Rz++}function M0(){if(Rz--,Rz===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D1({},Y,{value:RC}),info:D1({},Y,{value:LC}),warn:D1({},Y,{value:CC}),error:D1({},Y,{value:vC}),group:D1({},Y,{value:TC}),groupCollapsed:D1({},Y,{value:DC}),groupEnd:D1({},Y,{value:bC})})}0>Rz&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0(Y){var Q=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,Y=Y.stack,Error.prepareStackTrace=Q,Y.startsWith(`Error: react-stack-top-frame +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $={d:{f:Z,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Z,C:Z,L:Z,m:Z,X:Z,S:Z,M:Z},p:0,findDOMNode:null},M=Symbol.for("react.portal"),w=UO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),bh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,bh.createPortal=function(N,O){var A=2` tag.%s',A),typeof N==="string"&&typeof O==="object"&&O!==null&&typeof O.as==="string"){A=O.as;var V=z(A,O.crossOrigin);$.d.L(N,A,{crossOrigin:V,integrity:typeof O.integrity==="string"?O.integrity:void 0,nonce:typeof O.nonce==="string"?O.nonce:void 0,type:typeof O.type==="string"?O.type:void 0,fetchPriority:typeof O.fetchPriority==="string"?O.fetchPriority:void 0,referrerPolicy:typeof O.referrerPolicy==="string"?O.referrerPolicy:void 0,imageSrcSet:typeof O.imageSrcSet==="string"?O.imageSrcSet:void 0,imageSizes:typeof O.imageSizes==="string"?O.imageSizes:void 0,media:typeof O.media==="string"?O.media:void 0})}},bh.preloadModule=function(N,O){var A="";typeof N==="string"&&N||(A+=" The `href` argument encountered was "+B(N)+"."),O!==void 0&&typeof O!=="object"?A+=" The `options` argument encountered was "+B(O)+".":O&&("as"in O)&&typeof O.as!=="string"&&(A+=" The `as` option encountered was "+B(O.as)+"."),A&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',A),typeof N==="string"&&(O?(A=z(O.as,O.crossOrigin),$.d.m(N,{as:typeof O.as==="string"&&O.as!=="script"?O.as:void 0,crossOrigin:A,integrity:typeof O.integrity==="string"?O.integrity:void 0})):$.d.m(N))},bh.requestFormReset=function(N){$.d.r(N)},bh.unstable_batchedUpdates=function(N,O){return N(O)},bh.useFormState=function(N,O,A){return W().useFormState(N,O,A)},bh.useFormStatus=function(){return W().useHostTransitionStatus()},bh.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var X8=e8((E70,$D)=>{var Eh=g(WD());$D.exports=Eh});var GD=e8((yh)=>{var a1=g(KD()),gJ=g(t()),KO=g(X8());(function(){function Z(Y,Q){for(Y=Y.memoizedState;Y!==null&&0=Q.length)return K;var G=Q[q],H=V2(Y)?Y.slice():D1({},Y);return H[G]=J(Y[G],Q,q+1,K),H}function X(Y,Q,q){if(Q.length!==q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var K=0;Kj8?console.error("Unexpected pop."):(Q!==mw[j8]&&console.error("Unexpected Fiber popped."),Y.current=gw[j8],gw[j8]=null,mw[j8]=null,j8--)}function K0(Y,Q,q){j8++,gw[j8]=Y.current,mw[j8]=q,Y.current=Q}function w0(Y){return Y===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),Y}function s(Y,Q){K0(n3,Q,Y),K0(Pz,Y,Y),K0(t3,null,Y);var q=Q.nodeType;switch(q){case 9:case 11:q=q===9?"#document":"#fragment",Q=(Q=Q.documentElement)?(Q=Q.namespaceURI)?rL(Q):o8:o8;break;default:if(q=Q.tagName,Q=Q.namespaceURI)Q=rL(Q),Q=aL(Q,q);else switch(q){case"svg":Q=kJ;break;case"math":Q=GW;break;default:Q=o8}}q=q.toLowerCase(),q=m_(null,q),q={context:Q,ancestorInfo:q},U0(t3,Y),K0(t3,q,Y)}function z0(Y){U0(t3,Y),U0(Pz,Y),U0(n3,Y)}function G0(){return w0(t3.current)}function e(Y){Y.memoizedState!==null&&K0(wK,Y,Y);var Q=w0(t3.current),q=Y.type,K=aL(Q.context,q);q=m_(Q.ancestorInfo,q),K={context:K,ancestorInfo:q},Q!==K&&(K0(Pz,Y,Y),K0(t3,K,Y))}function O0(Y){Pz.current===Y&&(U0(t3,Y),U0(Pz,Y)),wK.current===Y&&(U0(wK,Y),Mq._currentValue=dZ)}function f(){}function B0(){if(Rz===0){RC=console.log,LC=console.info,CC=console.warn,vC=console.error,TC=console.group,DC=console.groupCollapsed,bC=console.groupEnd;var Y={configurable:!0,enumerable:!0,value:f,writable:!0};Object.defineProperties(console,{info:Y,log:Y,warn:Y,error:Y,group:Y,groupCollapsed:Y,groupEnd:Y})}Rz++}function M0(){if(Rz--,Rz===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D1({},Y,{value:RC}),info:D1({},Y,{value:LC}),warn:D1({},Y,{value:CC}),error:D1({},Y,{value:vC}),group:D1({},Y,{value:TC}),groupCollapsed:D1({},Y,{value:DC}),groupEnd:D1({},Y,{value:bC})})}0>Rz&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0(Y){var Q=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,Y=Y.stack,Error.prepareStackTrace=Q,Y.startsWith(`Error: react-stack-top-frame `)&&(Y=Y.slice(29)),Q=Y.indexOf(` `),Q!==-1&&(Y=Y.slice(Q+1)),Q=Y.indexOf("react_stack_bottom_frame"),Q!==-1&&(Q=Y.lastIndexOf(` -`,Q)),Q!==-1)Y=Y.slice(0,Q);else return"";return Y}function k0(Y){if(hw===void 0)try{throw Error()}catch(q){var Q=q.stack.trim().match(/\n( *(at )?)/);hw=Q&&Q[1]||"",EC=-1)":-1F||b[H]!==l[F]){var r=` -`+b[H].replace(" at new "," at ");return Y.displayName&&r.includes("")&&(r=r.replace("",Y.displayName)),typeof Y==="function"&&cw.set(Y,r),r}while(1<=H&&0<=F);break}}}finally{dw=!1,Q0.H=K,M0(),Error.prepareStackTrace=q}return b=(b=Y?Y.displayName||Y.name:"")?k0(b):"",typeof Y==="function"&&cw.set(Y,b),b}function H0(Y,Q){switch(Y.tag){case 26:case 27:case 5:return k0(Y.type);case 16:return k0("Lazy");case 13:return Y.child!==Q&&Q!==null?k0("Suspense Fallback"):k0("Suspense");case 19:return k0("SuspenseList");case 0:case 15:return O1(Y.type,!1);case 11:return O1(Y.type.render,!1);case 1:return O1(Y.type,!0);case 31:return k0("Activity");default:return""}}function G1(Y){try{var Q="",q=null;do{Q+=H0(Y,q);var K=Y._debugInfo;if(K)for(var G=K.length-1;0<=G;G--){var H=K[G];if(typeof H.name==="string"){var F=Q;Z:{var{name:V,env:v,debugLocation:b}=H;if(b!=null){var l=W0(b),r=l.lastIndexOf(` -`),m=r===-1?l:l.slice(r+1);if(m.indexOf(V)!==-1){var n=` -`+m;break Z}}n=k0(V+(v?" ["+v+"]":""))}Q=F+n}}q=Y,Y=Y.return}while(Y);return Q}catch(R0){return` +`+b[H].replace(" at new "," at ");return Y.displayName&&r.includes("")&&(r=r.replace("",Y.displayName)),typeof Y==="function"&&cw.set(Y,r),r}while(1<=H&&0<=F);break}}}finally{dw=!1,Q0.H=K,M0(),Error.prepareStackTrace=q}return b=(b=Y?Y.displayName||Y.name:"")?u0(b):"",typeof Y==="function"&&cw.set(Y,b),b}function H0(Y,Q){switch(Y.tag){case 26:case 27:case 5:return u0(Y.type);case 16:return u0("Lazy");case 13:return Y.child!==Q&&Q!==null?u0("Suspense Fallback"):u0("Suspense");case 19:return u0("SuspenseList");case 0:case 15:return O1(Y.type,!1);case 11:return O1(Y.type.render,!1);case 1:return O1(Y.type,!0);case 31:return u0("Activity");default:return""}}function G1(Y){try{var Q="",q=null;do{Q+=H0(Y,q);var K=Y._debugInfo;if(K)for(var G=K.length-1;0<=G;G--){var H=K[G];if(typeof H.name==="string"){var F=Q;Z:{var{name:_,env:v,debugLocation:b}=H;if(b!=null){var l=W0(b),r=l.lastIndexOf(` +`),m=r===-1?l:l.slice(r+1);if(m.indexOf(_)!==-1){var n=` +`+m;break Z}}n=u0(_+(v?" ["+v+"]":""))}Q=F+n}}q=Y,Y=Y.return}while(Y);return Q}catch(R0){return` Error generating stack: `+R0.message+` -`+R0.stack}}function C1(Y){return(Y=Y?Y.displayName||Y.name:"")?k0(Y):""}function s1(){if(B4===null)return null;var Y=B4._debugOwner;return Y!=null?Y0(Y):null}function h1(){if(B4===null)return"";var Y=B4;try{var Q="";switch(Y.tag===6&&(Y=Y.return),Y.tag){case 26:case 27:case 5:Q+=k0(Y.type);break;case 13:Q+=k0("Suspense");break;case 19:Q+=k0("SuspenseList");break;case 31:Q+=k0("Activity");break;case 30:case 0:case 15:case 1:Y._debugOwner||Q!==""||(Q+=C1(Y.type));break;case 11:Y._debugOwner||Q!==""||(Q+=C1(Y.type.render))}for(;Y;)if(typeof Y.tag==="number"){var q=Y;Y=q._debugOwner;var K=q._debugStack;if(Y&&K){var G=W0(K);G!==""&&(Q+=` +`+R0.stack}}function C1(Y){return(Y=Y?Y.displayName||Y.name:"")?u0(Y):""}function s1(){if(B4===null)return null;var Y=B4._debugOwner;return Y!=null?Y0(Y):null}function h1(){if(B4===null)return"";var Y=B4;try{var Q="";switch(Y.tag===6&&(Y=Y.return),Y.tag){case 26:case 27:case 5:Q+=u0(Y.type);break;case 13:Q+=u0("Suspense");break;case 19:Q+=u0("SuspenseList");break;case 31:Q+=u0("Activity");break;case 30:case 0:case 15:case 1:Y._debugOwner||Q!==""||(Q+=C1(Y.type));break;case 11:Y._debugOwner||Q!==""||(Q+=C1(Y.type.render))}for(;Y;)if(typeof Y.tag==="number"){var q=Y;Y=q._debugOwner;var K=q._debugStack;if(Y&&K){var G=W0(K);G!==""&&(Q+=` `+G)}}else if(Y.debugStack!=null){var H=Y.debugStack;(Y=Y.owner)&&H&&(Q+=` -`+W0(H))}else break;var F=Q}catch(V){F=` -Error generating stack: `+V.message+` -`+V.stack}return F}function T0(Y,Q,q,K,G,H,F){var V=B4;r1(Y);try{return Y!==null&&Y._debugTask?Y._debugTask.run(Q.bind(null,q,K,G,H,F)):Q(q,K,G,H,F)}finally{r1(V)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function r1(Y){Q0.getCurrentStack=Y===null?null:h1,i6=!1,B4=Y}function s5(Y){return typeof Symbol==="function"&&Symbol.toStringTag&&Y[Symbol.toStringTag]||Y.constructor.name||"Object"}function o5(Y){try{return G5(Y),!1}catch(Q){return!0}}function G5(Y){return""+Y}function B1(Y,Q){if(o5(Y))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Q,s5(Y)),G5(Y)}function T6(Y,Q){if(o5(Y))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",Q,s5(Y)),G5(Y)}function Y1(Y){if(o5(Y))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",s5(Y)),G5(Y)}function t7(Y){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Q=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Q.isDisabled)return!0;if(!Q.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{zJ=Q.inject(Y),G7=Q}catch(q){console.error("React instrumentation encountered an error: %o.",q)}return Q.checkDCE?!0:!1}function S1(Y){if(typeof pg==="function"&&lg(Y),G7&&typeof G7.setStrictMode==="function")try{G7.setStrictMode(zJ,Y)}catch(Q){s6||(s6=!0,console.error("React instrumentation encountered an error: %o",Q))}}function Y6(Y){return Y>>>=0,Y===0?32:31-(rg(Y)/ag|0)|0}function r2(Y){var Q=Y&42;if(Q!==0)return Q;switch(Y&-Y){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return Y&261888;case 262144:case 524288:case 1048576:case 2097152:return Y&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return Y&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),Y}}function R4(Y,Q,q){var K=Y.pendingLanes;if(K===0)return 0;var G=0,H=Y.suspendedLanes,F=Y.pingedLanes;Y=Y.warmLanes;var V=K&134217727;return V!==0?(K=V&~H,K!==0?G=r2(K):(F&=V,F!==0?G=r2(F):q||(q=V&~Y,q!==0&&(G=r2(q))))):(V=K&~H,V!==0?G=r2(V):F!==0?G=r2(F):q||(q=K&~Y,q!==0&&(G=r2(q)))),G===0?0:Q!==0&&Q!==G&&(Q&H)===0&&(H=G&-G,q=Q&-Q,H>=q||H===32&&(q&4194048)!==0)?Q:G}function E2(Y,Q){return(Y.pendingLanes&~(Y.suspendedLanes&~Y.pingedLanes)&Q)===0}function J6(Y,Q){switch(Y){case 1:case 2:case 4:case 8:case 64:return Q+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Q+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Q6(){var Y=FK;return FK<<=1,(FK&62914560)===0&&(FK=4194304),Y}function a2(Y){for(var Q=[],q=0;31>q;q++)Q.push(Y);return Q}function R5(Y,Q){Y.pendingLanes|=Q,Q!==268435456&&(Y.suspendedLanes=0,Y.pingedLanes=0,Y.warmLanes=0)}function q2(Y,Q,q,K,G,H){var F=Y.pendingLanes;Y.pendingLanes=q,Y.suspendedLanes=0,Y.pingedLanes=0,Y.warmLanes=0,Y.expiredLanes&=q,Y.entangledLanes&=q,Y.errorRecoveryDisabledLanes&=q,Y.shellSuspendCounter=0;var{entanglements:V,expirationTimes:v,hiddenUpdates:b}=Y;for(q=F&~q;0"u")return null;try{return Y.activeElement||Y.body}catch(Q){return Y.body}}function y0(Y){return Y.replace(ng,function(Q){return"\\"+Q.charCodeAt(0).toString(16)+" "})}function m0(Y,Q){Q.checked===void 0||Q.defaultChecked===void 0||jC||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",s1()||"A component",Q.type),jC=!0),Q.value===void 0||Q.defaultValue===void 0||fC||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",s1()||"A component",Q.type),fC=!0)}function c0(Y,Q,q,K,G,H,F,V){if(Y.name="",F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"?(B1(F,"type"),Y.type=F):Y.removeAttribute("type"),Q!=null)if(F==="number"){if(Q===0&&Y.value===""||Y.value!=Q)Y.value=""+a(Q)}else Y.value!==""+a(Q)&&(Y.value=""+a(Q));else F!=="submit"&&F!=="reset"||Y.removeAttribute("value");Q!=null?h0(Y,F,a(Q)):q!=null?h0(Y,F,a(q)):K!=null&&Y.removeAttribute("value"),G==null&&H!=null&&(Y.defaultChecked=!!H),G!=null&&(Y.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),V!=null&&typeof V!=="function"&&typeof V!=="symbol"&&typeof V!=="boolean"?(B1(V,"name"),Y.name=""+a(V)):Y.removeAttribute("name")}function i0(Y,Q,q,K,G,H,F,V){if(H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(B1(H,"type"),Y.type=H),Q!=null||q!=null){if(!(H!=="submit"&&H!=="reset"||Q!==void 0&&Q!==null)){_0(Y);return}q=q!=null?""+a(q):"",Q=Q!=null?""+a(Q):q,V||Q===Y.value||(Y.value=Q),Y.defaultValue=Q}K=K!=null?K:G,K=typeof K!=="function"&&typeof K!=="symbol"&&!!K,Y.checked=V?Y.checked:!!K,Y.defaultChecked=!!K,F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"&&(B1(F,"name"),Y.name=F),_0(Y)}function h0(Y,Q,q){Q==="number"&&E0(Y.ownerDocument)===Y||Y.defaultValue===""+q||(Y.defaultValue=""+q)}function d1(Y,Q){Q.value==null&&(typeof Q.children==="object"&&Q.children!==null?gJ.Children.forEach(Q.children,function(q){q==null||typeof q==="string"||typeof q==="number"||typeof q==="bigint"||kC||(kC=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to