diff --git a/Cargo.lock b/Cargo.lock index 0e695f40b..5396eb041 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2020,6 +2020,7 @@ dependencies = [ "clap", "dirs", "fabro-macros", + "fabro-model", "fabro-util", "hex", "serde", diff --git a/apps/fabro-web/app/router.tsx b/apps/fabro-web/app/router.tsx index d7041cedb..d4ceb937d 100644 --- a/apps/fabro-web/app/router.tsx +++ b/apps/fabro-web/app/router.tsx @@ -24,7 +24,7 @@ import * as RunStages from "./routes/run-stages"; import * as RunSettings from "./routes/run-settings"; import * as RunGraph from "./routes/run-graph"; import * as RunFiles from "./routes/run-files"; -import * as RunUsage from "./routes/run-usage"; +import * as RunBilling from "./routes/run-billing"; import * as Insights from "./routes/insights"; import * as InsightsEditor from "./routes/insights-editor"; import * as InsightsNew from "./routes/insights-new"; @@ -106,7 +106,7 @@ export const routes: RouteObject[] = [ route("settings", RunSettings), route("graph", RunGraph), route("files", RunFiles), - route("usage", RunUsage), + route("billing", RunBilling), ], }), route("insights", Insights, { diff --git a/apps/fabro-web/app/routes/run-usage.tsx b/apps/fabro-web/app/routes/run-billing.tsx similarity index 59% rename from apps/fabro-web/app/routes/run-usage.tsx rename to apps/fabro-web/app/routes/run-billing.tsx index a1883ec2e..adde649db 100644 --- a/apps/fabro-web/app/routes/run-usage.tsx +++ b/apps/fabro-web/app/routes/run-billing.tsx @@ -1,42 +1,47 @@ import { apiJson } from "../api"; import { formatDurationSecs } from "../lib/format"; -import type { RunUsage } from "@qltysh/fabro-api-client"; - -export async function loader({ request, params }: any) { - const usage = await apiJson(`/runs/${params.id}/usage`, { request }); - const stages = usage.stages.map((s) => ({ - stage: s.stage.name, - model: s.model.id, - inputTokens: s.usage.input_tokens, - outputTokens: s.usage.output_tokens, - runtime: formatDurationSecs(s.runtime_secs), - cost: s.usage.cost, - })); - const totalRuntime = formatDurationSecs(usage.totals.runtime_secs); - const totalCost = usage.totals.cost; - const totalInput = usage.totals.input_tokens; - const totalOutput = usage.totals.output_tokens; - const modelBreakdown = usage.by_model - .map((m) => ({ - model: m.model.id, - stages: m.stages, - inputTokens: m.usage.input_tokens, - outputTokens: m.usage.output_tokens, - cost: m.usage.cost, - })) - .sort((a, b) => b.cost - a.cost); - return { stages, totalRuntime, totalCost, totalInput, totalOutput, modelBreakdown }; -} +import type { RunBilling } from "@qltysh/fabro-api-client"; function formatTokens(n: number) { return `${(n / 1000).toFixed(1)}k`; } -export default function RunUsage({ loaderData }: any) { - const { stages, totalRuntime, totalCost, totalInput, totalOutput, modelBreakdown } = loaderData; +function formatUsdMicros(usdMicros?: number) { + return usdMicros == null ? "-" : `$${(usdMicros / 1_000_000).toFixed(2)}`; +} + +export async function loader({ request, params }: any) { + const billing = await apiJson(`/runs/${params.id}/billing`, { request }); + const stages = billing.stages.map((stage) => ({ + stage: stage.stage.name, + model: stage.model.id, + inputTokens: stage.billing.input_tokens, + outputTokens: stage.billing.output_tokens + (stage.billing.reasoning_tokens ?? 0), + runtime: formatDurationSecs(stage.runtime_secs), + totalUsdMicros: stage.billing.total_usd_micros, + })); + const totalRuntime = formatDurationSecs(billing.totals.runtime_secs); + const totalInput = billing.totals.input_tokens; + const totalOutput = billing.totals.output_tokens + (billing.totals.reasoning_tokens ?? 0); + const totalUsdMicros = billing.totals.total_usd_micros; + const modelBreakdown = billing.by_model + .map((entry) => ({ + model: entry.model.id, + stages: entry.stages, + inputTokens: entry.billing.input_tokens, + outputTokens: entry.billing.output_tokens + (entry.billing.reasoning_tokens ?? 0), + totalUsdMicros: entry.billing.total_usd_micros, + })) + .sort((a, b) => (b.totalUsdMicros ?? -1) - (a.totalUsdMicros ?? -1)); + return { stages, totalRuntime, totalUsdMicros, totalInput, totalOutput, modelBreakdown }; +} + +export default function RunBilling({ loaderData }: any) { + const { stages, totalRuntime, totalUsdMicros, totalInput, totalOutput, modelBreakdown } = + loaderData; return (
-
+
@@ -44,7 +49,7 @@ export default function RunUsage({ loaderData }: any) { - + @@ -53,10 +58,13 @@ export default function RunUsage({ loaderData }: any) { - + ))} @@ -65,47 +73,64 @@ export default function RunUsage({ loaderData }: any) { + + - -
Model Tokens Run timeCostBilling
{row.stage} {row.model} - {formatTokens(row.inputTokens)} / {formatTokens(row.outputTokens)} + {formatTokens(row.inputTokens)} /{" "} + {formatTokens(row.outputTokens)} {row.runtime}${row.cost.toFixed(2)} + {formatUsdMicros(row.totalUsdMicros)} +
Total - {formatTokens(totalInput)} / {formatTokens(totalOutput)} + {formatTokens(totalInput)} /{" "} + {formatTokens(totalOutput)} + + {totalRuntime} + + {formatUsdMicros(totalUsdMicros)} {totalRuntime}${totalCost.toFixed(2)}
-

By Model

-
+

+ By Model +

+
- + {modelBreakdown.map((row) => ( - + + - ))} - + + -
Model Stages TokensCostBilling
{row.model}{row.stages} - {formatTokens(row.inputTokens)} / {formatTokens(row.outputTokens)} + {row.stages} + + {formatTokens(row.inputTokens)} /{" "} + {formatTokens(row.outputTokens)} + + {formatUsdMicros(row.totalUsdMicros)} ${row.cost.toFixed(2)}
Total{stages.length} - {formatTokens(totalInput)} / {formatTokens(totalOutput)} + {stages.length} + + {formatTokens(totalInput)} /{" "} + {formatTokens(totalOutput)} + + {formatUsdMicros(totalUsdMicros)} ${totalCost.toFixed(2)}
diff --git a/apps/fabro-web/app/routes/run-detail.tsx b/apps/fabro-web/app/routes/run-detail.tsx index 13ec550a2..236f3a176 100644 --- a/apps/fabro-web/app/routes/run-detail.tsx +++ b/apps/fabro-web/app/routes/run-detail.tsx @@ -11,7 +11,7 @@ const tabs = [ { name: "Overview", path: "", count: null }, { name: "Stages", path: "/stages/detect-drift", count: null }, { name: "Files Changed", path: "/files", count: null }, - { name: "Usage", path: "/usage", count: null }, + { name: "Billing", path: "/billing", count: null }, ]; export const handle = { hideHeader: true }; diff --git a/apps/fabro-web/app/routes/run-overview.tsx b/apps/fabro-web/app/routes/run-overview.tsx index 67b22c965..929563994 100644 --- a/apps/fabro-web/app/routes/run-overview.tsx +++ b/apps/fabro-web/app/routes/run-overview.tsx @@ -7,7 +7,11 @@ import { useTheme } from "../lib/theme"; import { getGraphTheme } from "../lib/graph-theme"; import { apiJson } from "../api"; import { formatDurationSecs } from "../lib/format"; -import type { PaginatedRunStageList, PaginatedRunList, WorkflowDetail } from "@qltysh/fabro-api-client"; +import type { PaginatedRunStageList, PaginatedRunList } from "@qltysh/fabro-api-client"; + +interface WorkflowGraphResponse { + graph: string; +} export const handle = { wide: true }; @@ -35,7 +39,7 @@ export async function loader({ request, params }: any) { let graphDot: string | null = null; if (run) { try { - const workflow = await apiJson(`/workflows/${run.workflow}`, { request }); + const workflow = await apiJson(`/workflows/${run.workflow}`, { request }); graphDot = workflow.graph; } catch { // workflow not found — leave graphDot null diff --git a/apps/fabro-web/app/routes/workflow-detail.tsx b/apps/fabro-web/app/routes/workflow-detail.tsx index bbcabc831..46a44102d 100644 --- a/apps/fabro-web/app/routes/workflow-detail.tsx +++ b/apps/fabro-web/app/routes/workflow-detail.tsx @@ -1,7 +1,16 @@ import { ChevronRightIcon } from "@heroicons/react/20/solid"; import { Link, Outlet, useLocation, useParams } from "react-router"; import { apiJson } from "../api"; -import type { WorkflowDetail as ApiWorkflowDetail, RunSettings } from "@qltysh/fabro-api-client"; +import type { RunSettings } from "@qltysh/fabro-api-client"; + +interface ApiWorkflowDetail { + name: string; + slug: string; + description: string; + filename: string; + settings: RunSettings; + graph: string; +} export interface WorkflowEntry { name: string; diff --git a/apps/fabro-web/app/routes/workflows.tsx b/apps/fabro-web/app/routes/workflows.tsx index c0a0d25a0..df8c34c31 100644 --- a/apps/fabro-web/app/routes/workflows.tsx +++ b/apps/fabro-web/app/routes/workflows.tsx @@ -15,7 +15,27 @@ import { import { Link } from "react-router"; import { apiJson } from "../api"; import { timeAgo, timeUntil } from "../lib/time"; -import type { PaginatedWorkflowList } from "@qltysh/fabro-api-client"; + +interface WorkflowRunSummary { + ran_at?: string | null; +} + +interface WorkflowScheduleSummary { + expression: string; + next_run?: string | null; +} + +interface WorkflowListItem { + name: string; + slug: string; + filename: string; + last_run?: WorkflowRunSummary | null; + schedule?: WorkflowScheduleSummary | null; +} + +interface PaginatedWorkflowList { + data: WorkflowListItem[]; +} export function meta({}: any) { return [{ title: "Workflows — Fabro" }]; diff --git a/apps/fabro-web/dist/assets/entry-xtvaf517.js b/apps/fabro-web/dist/assets/entry-r31bcs2m.js similarity index 64% rename from apps/fabro-web/dist/assets/entry-xtvaf517.js rename to apps/fabro-web/dist/assets/entry-r31bcs2m.js index 880af36eb..32762baec 100644 --- a/apps/fabro-web/dist/assets/entry-xtvaf517.js +++ b/apps/fabro-web/dist/assets/entry-r31bcs2m.js @@ -1,4 +1,4 @@ -import{X as h,Y as e8,Z as g5,_ as S}from"./chunk-q07bg6gn.js";var t=e8((Vm,VW)=>{(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 Q(E){if(E===null||typeof E!=="object")return null;return E=m1&&E[m1]||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 H(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 M0:return"SuspenseList";case o1: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 H0: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,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){v(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===C1&&(E._payload.status==="fulfilled"?v(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function v(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?(H(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&&(v(x0)&&(x0.key!=null&&(S0&&S0.key===x0.key||H(x0.key)),F0=C(x0,F0+(x0.key==null||S0&&S0.key===x0.key?"":(""+x0.key).replace(a2,"$&/")+"/")+o0),P0!==""&&S0!=null&&v(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 Q(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 K(){}function $(E){return""+E}function H(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 M0:return"SuspenseList";case o1: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 K0:return E.displayName||"Context";case H0: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){v(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===C1&&(E._payload.status==="fulfilled"?v(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function v(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?(H(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(K,K):(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(a2,"$&/")+"/"),S(S0,i,F0,"",function(M5){return M5})):S0!=null&&(v(S0)&&(S0.key!=null&&(x0&&x0.key===S0.key||H(S0.key)),F0=C(S0,F0+(S0.key==null||x0&&x0.key===S0.key?"":(""+S0.key).replace(a2,"$&/")+"/")+o0),P0!==""&&x0!=null&&v(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=(VW&&VW[i]).call(VW,"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(X5){if(w0(i,F0),F0===0){try{z0(P0),U0(function(){return s(X5,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)):Q6)},Vm.createRef=function(){var E={current:null};return Object.seal(E),E},Vm.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},Vm.isValidElement=v,Vm.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},Vm.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},Vm.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,L5))}catch(a0){L5(a0)}finally{i===null&&F0._updatedFibers&&(E=F0._updatedFibers.size,F0._updatedFibers.clear(),10{(function(){function Z(){if(y=!1,d){var s=_m.unstable_now();o=s;var z0=!0;try{Z:{R=!1,v&&(v=!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=_m.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&&H(W,f.startTime-s),z0=!1}}break Z}finally{L=null,D=G0,C=!1}z0=void 0}}finally{z0?U0():d=!1}}}function Q(s,z0){var G0=s.length;s.push(z0);Z:for(;0>>1,O0=s[e];if(0>>1;eB(H0,G0))W0B(u0,H0)?(s[e]=u0,s[W0]=G0,e=W0):(s[e]=H0,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,Q(A,z0);else break;z0=X(V)}}function W(s){if(v=!1,U(s),!R)if(X(A)!==null)R=!0,d||(d=!0,U0());else{var z0=X(V);z0!==null&&H(W,z0.startTime-s)}}function $(){return y?!0:_m.unstable_now()-os||125e?(s.sortIndex=G0,Q(V,s),X(A)===null&&s===X(V)&&(v?(c(Y0),Y0=-1):v=!0,H(W,G0-e))):(s.sortIndex=O0,Q(A,s),R||C||(R=!0,d||(d=!0,U0()))),s},_m.unstable_shouldYield=$,_m.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 BD=e8((Pm)=>{var XO=h(t());(function(){function Z(){}function Q(N){return""+N}function X(N,O,A){var V=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 W0(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(X5){if(w0(i,F0),F0===0){try{z0(P0),U0(function(){return s(X5,b0,M5)})}catch(t5){Y1.thrownErrors.push(t5)}if(0 ...)"))}),Y1.actQueue=null),0Y1.recentlyCreatedOwnerStacks++;return D(E,S0,P0,O(),b0?Error("react-stack-top-frame"):E2,b0?x1(N(E)):Q6)},_h.createRef=function(){var E={current:null};return Object.seal(E),E},_h.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},_h.isValidElement=v,_h.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},_h.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},_h.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(K,L5))}catch(a0){L5(a0)}finally{i===null&&F0._updatedFibers&&(E=F0._updatedFibers.size,F0._updatedFibers.clear(),10{(function(){function Z(){if(y=!1,d){var s=Ph.unstable_now();o=s;var z0=!0;try{Z:{R=!1,v&&(v=!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=Ph.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&&H(K,f.startTime-s),z0=!1}}break Z}finally{L=null,D=G0,C=!1}z0=void 0}}finally{z0?U0():d=!1}}}function Q(s,z0){var G0=s.length;s.push(z0);Z:for(;0>>1,O0=s[e];if(0>>1;eB(H0,G0))K0B(u0,H0)?(s[e]=u0,s[K0]=G0,e=K0):(s[e]=H0,s[B0]=G0,e=B0);else if(K0B(u0,G0))s[e]=u0,s[K0]=G0,e=K0;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,Q(A,z0);else break;z0=X(V)}}function K(s){if(v=!1,U(s),!R)if(X(A)!==null)R=!0,d||(d=!0,U0());else{var z0=X(V);z0!==null&&H(K,z0.startTime-s)}}function $(){return y?!0:Ph.unstable_now()-os||125e?(s.sortIndex=G0,Q(V,s),X(A)===null&&s===X(V)&&(v?(c(Y0),Y0=-1):v=!0,H(K,G0-e))):(s.sortIndex=O0,Q(A,s),R||C||(R=!0,d||(d=!0,U0()))),s},Ph.unstable_shouldYield=$,Ph.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 UD=e8((Rh)=>{var zO=m(t());(function(){function Z(){}function Q(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 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})}},Pm.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))},Pm.requestFormReset=function(N){$.d.r(N)},Pm.unstable_batchedUpdates=function(N,O){return N(O)},Pm.useFormState=function(N,O,A){return W().useFormState(N,O,A)},Pm.useFormStatus=function(){return W().useHostTransitionStatus()},Pm.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((V70,UD)=>{var Rm=h(BD());UD.exports=Rm});var KD=e8((Lm)=>{var a1=h(qD()),gQ=h(t()),zO=h(X8());(function(){function Z(Y,J){for(Y=Y.memoizedState;Y!==null&&0=J.length)return K;var G=J[q],M=_2(Y)?Y.slice():D1({},Y);return M[G]=Q(Y[G],J,q+1,K),M}function X(Y,J,q){if(J.length!==q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var K=0;Kj8?console.error("Unexpected pop."):(J!==jw[j8]&&console.error("Unexpected Fiber popped."),Y.current=fw[j8],fw[j8]=null,jw[j8]=null,j8--)}function K0(Y,J,q){j8++,fw[j8]=Y.current,jw[j8]=q,Y.current=J}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,J){K0(t3,J,Y),K0(Rz,Y,Y),K0(o3,null,Y);var q=J.nodeType;switch(q){case 9:case 11:q=q===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?cL(J):o8:o8;break;default:if(q=J.tagName,J=J.namespaceURI)J=cL(J),J=pL(J,q);else switch(q){case"svg":J=kQ;break;case"math":J=HW;break;default:J=o8}}q=q.toLowerCase(),q=k_(null,q),q={context:J,ancestorInfo:q},U0(o3,Y),K0(o3,q,Y)}function z0(Y){U0(o3,Y),U0(Rz,Y),U0(t3,Y)}function G0(){return w0(o3.current)}function e(Y){Y.memoizedState!==null&&K0(NK,Y,Y);var J=w0(o3.current),q=Y.type,K=pL(J.context,q);q=k_(J.ancestorInfo,q),K={context:K,ancestorInfo:q},J!==K&&(K0(Rz,Y,Y),K0(o3,K,Y))}function O0(Y){Rz.current===Y&&(U0(o3,Y),U0(Rz,Y)),NK.current===Y&&(U0(NK,Y),Mq._currentValue=dZ)}function f(){}function B0(){if(Lz===0){VC=console.log,_C=console.info,PC=console.warn,RC=console.error,LC=console.group,CC=console.groupCollapsed,vC=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})}Lz++}function H0(){if(Lz--,Lz===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D1({},Y,{value:VC}),info:D1({},Y,{value:_C}),warn:D1({},Y,{value:PC}),error:D1({},Y,{value:RC}),group:D1({},Y,{value:LC}),groupCollapsed:D1({},Y,{value:CC}),groupEnd:D1({},Y,{value:vC})})}0>Lz&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0(Y){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,Y=Y.stack,Error.prepareStackTrace=J,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},H=Symbol.for("react.portal"),w=zO.__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"),Rh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Rh.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})}},Rh.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))},Rh.requestFormReset=function(N){$.d.r(N)},Rh.unstable_batchedUpdates=function(N,O){return N(O)},Rh.useFormState=function(N,O,A){return K().useFormState(N,O,A)},Rh.useFormStatus=function(){return K().useHostTransitionStatus()},Rh.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((_70,WD)=>{var Lh=m(UD());WD.exports=Lh});var KD=e8((Ch)=>{var a1=m(BD()),gQ=m(t()),qO=m(X8());(function(){function Z(Y,J){for(Y=Y.memoizedState;Y!==null&&0=J.length)return W;var G=J[q],M=_2(Y)?Y.slice():D1({},Y);return M[G]=Q(Y[G],J,q+1,W),M}function X(Y,J,q){if(J.length!==q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var W=0;Wj8?console.error("Unexpected pop."):(J!==kw[j8]&&console.error("Unexpected Fiber popped."),Y.current=jw[j8],jw[j8]=null,kw[j8]=null,j8--)}function W0(Y,J,q){j8++,jw[j8]=Y.current,kw[j8]=q,Y.current=J}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,J){W0(t3,J,Y),W0(Rz,Y,Y),W0(o3,null,Y);var q=J.nodeType;switch(q){case 9:case 11:q=q===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?pL(J):o8:o8;break;default:if(q=J.tagName,J=J.namespaceURI)J=pL(J),J=lL(J,q);else switch(q){case"svg":J=kQ;break;case"math":J=HK;break;default:J=o8}}q=q.toLowerCase(),q=u_(null,q),q={context:J,ancestorInfo:q},U0(o3,Y),W0(o3,q,Y)}function z0(Y){U0(o3,Y),U0(Rz,Y),U0(t3,Y)}function G0(){return w0(o3.current)}function e(Y){Y.memoizedState!==null&&W0(NW,Y,Y);var J=w0(o3.current),q=Y.type,W=lL(J.context,q);q=u_(J.ancestorInfo,q),W={context:W,ancestorInfo:q},J!==W&&(W0(Rz,Y,Y),W0(o3,W,Y))}function O0(Y){Rz.current===Y&&(U0(o3,Y),U0(Rz,Y)),NW.current===Y&&(U0(NW,Y),Mq._currentValue=dZ)}function f(){}function B0(){if(Lz===0){_C=console.log,PC=console.info,RC=console.warn,LC=console.error,CC=console.group,vC=console.groupCollapsed,TC=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})}Lz++}function H0(){if(Lz--,Lz===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D1({},Y,{value:_C}),info:D1({},Y,{value:PC}),warn:D1({},Y,{value:RC}),error:D1({},Y,{value:LC}),group:D1({},Y,{value:CC}),groupCollapsed:D1({},Y,{value:vC}),groupEnd:D1({},Y,{value:TC})})}0>Lz&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function K0(Y){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,Y=Y.stack,Error.prepareStackTrace=J,Y.startsWith(`Error: react-stack-top-frame `)&&(Y=Y.slice(29)),J=Y.indexOf(` `),J!==-1&&(Y=Y.slice(J+1)),J=Y.indexOf("react_stack_bottom_frame"),J!==-1&&(J=Y.lastIndexOf(` -`,J)),J!==-1)Y=Y.slice(0,J);else return"";return Y}function u0(Y){if(kw===void 0)try{throw Error()}catch(q){var J=q.stack.trim().match(/\n( *(at )?)/);kw=J&&J[1]||"",TC=-1)":-1F||b[M]!==l[F]){var r=` -`+b[M].replace(" at new "," at ");return Y.displayName&&r.includes("")&&(r=r.replace("",Y.displayName)),typeof Y==="function"&&gw.set(Y,r),r}while(1<=M&&0<=F);break}}}finally{uw=!1,J0.H=K,H0(),Error.prepareStackTrace=q}return b=(b=Y?Y.displayName||Y.name:"")?u0(b):"",typeof Y==="function"&&gw.set(Y,b),b}function M0(Y,J){switch(Y.tag){case 26:case 27:case 5:return u0(Y.type);case 16:return u0("Lazy");case 13:return Y.child!==J&&J!==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 J="",q=null;do{J+=M0(Y,q);var K=Y._debugInfo;if(K)for(var G=K.length-1;0<=G;G--){var M=K[G];if(typeof M.name==="string"){var F=J;Z:{var{name:_,env:T,debugLocation:b}=M;if(b!=null){var l=W0(b),r=l.lastIndexOf(` +`+b[M].replace(" at new "," at ");return Y.displayName&&r.includes("")&&(r=r.replace("",Y.displayName)),typeof Y==="function"&&mw.set(Y,r),r}while(1<=M&&0<=F);break}}}finally{gw=!1,J0.H=W,H0(),Error.prepareStackTrace=q}return b=(b=Y?Y.displayName||Y.name:"")?u0(b):"",typeof Y==="function"&&mw.set(Y,b),b}function M0(Y,J){switch(Y.tag){case 26:case 27:case 5:return u0(Y.type);case 16:return u0("Lazy");case 13:return Y.child!==J&&J!==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 J="",q=null;do{J+=M0(Y,q);var W=Y._debugInfo;if(W)for(var G=W.length-1;0<=G;G--){var M=W[G];if(typeof M.name==="string"){var F=J;Z:{var{name:_,env:T,debugLocation:b}=M;if(b!=null){var l=K0(b),r=l.lastIndexOf(` `),g=r===-1?l:l.slice(r+1);if(g.indexOf(_)!==-1){var n=` `+g;break Z}}n=u0(_+(T?" ["+T+"]":""))}J=F+n}}q=Y,Y=Y.return}while(Y);return J}catch(R0){return` Error generating stack: `+R0.message+` -`+R0.stack}}function C1(Y){return(Y=Y?Y.displayName||Y.name:"")?u0(Y):""}function o1(){if(B4===null)return null;var Y=B4._debugOwner;return Y!=null?Y0(Y):null}function m1(){if(B4===null)return"";var Y=B4;try{var J="";switch(Y.tag===6&&(Y=Y.return),Y.tag){case 26:case 27:case 5:J+=u0(Y.type);break;case 13:J+=u0("Suspense");break;case 19:J+=u0("SuspenseList");break;case 31:J+=u0("Activity");break;case 30:case 0:case 15:case 1:Y._debugOwner||J!==""||(J+=C1(Y.type));break;case 11:Y._debugOwner||J!==""||(J+=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!==""&&(J+=` +`+R0.stack}}function C1(Y){return(Y=Y?Y.displayName||Y.name:"")?u0(Y):""}function o1(){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 J="";switch(Y.tag===6&&(Y=Y.return),Y.tag){case 26:case 27:case 5:J+=u0(Y.type);break;case 13:J+=u0("Suspense");break;case 19:J+=u0("SuspenseList");break;case 31:J+=u0("Activity");break;case 30:case 0:case 15:case 1:Y._debugOwner||J!==""||(J+=C1(Y.type));break;case 11:Y._debugOwner||J!==""||(J+=C1(Y.type.render))}for(;Y;)if(typeof Y.tag==="number"){var q=Y;Y=q._debugOwner;var W=q._debugStack;if(Y&&W){var G=K0(W);G!==""&&(J+=` `+G)}}else if(Y.debugStack!=null){var M=Y.debugStack;(Y=Y.owner)&&M&&(J+=` -`+W0(M))}else break;var F=J}catch(_){F=` +`+K0(M))}else break;var F=J}catch(_){F=` Error generating stack: `+_.message+` -`+_.stack}return F}function T0(Y,J,q,K,G,M,F){var _=B4;r1(Y);try{return Y!==null&&Y._debugTask?Y._debugTask.run(J.bind(null,q,K,G,M,F)):J(q,K,G,M,F)}finally{r1(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function r1(Y){J0.getCurrentStack=Y===null?null:m1,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 H5(Y),!1}catch(J){return!0}}function H5(Y){return""+Y}function B1(Y,J){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.",J,s5(Y)),H5(Y)}function T6(Y,J){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.",J,s5(Y)),H5(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)),H5(Y)}function t7(Y){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.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{zQ=J.inject(Y),G7=J}catch(q){console.error("React instrumentation encountered an error: %o.",q)}return J.checkDCE?!0:!1}function S1(Y){if(typeof kg==="function"&&ug(Y),G7&&typeof G7.setStrictMode==="function")try{G7.setStrictMode(zQ,Y)}catch(J){s6||(s6=!0,console.error("React instrumentation encountered an error: %o",J))}}function Y6(Y){return Y>>>=0,Y===0?32:31-(gg(Y)/hg|0)|0}function r2(Y){var J=Y&42;if(J!==0)return J;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,J,q){var K=Y.pendingLanes;if(K===0)return 0;var G=0,M=Y.suspendedLanes,F=Y.pingedLanes;Y=Y.warmLanes;var _=K&134217727;return _!==0?(K=_&~M,K!==0?G=r2(K):(F&=_,F!==0?G=r2(F):q||(q=_&~Y,q!==0&&(G=r2(q))))):(_=K&~M,_!==0?G=r2(_):F!==0?G=r2(F):q||(q=K&~Y,q!==0&&(G=r2(q)))),G===0?0:J!==0&&J!==G&&(J&M)===0&&(M=G&-G,q=J&-J,M>=q||M===32&&(q&4194048)!==0)?J:G}function E2(Y,J){return(Y.pendingLanes&~(Y.suspendedLanes&~Y.pingedLanes)&J)===0}function Q6(Y,J){switch(Y){case 1:case 2:case 4:case 8:case 64:return J+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 J+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 J6(){var Y=AK;return AK<<=1,(AK&62914560)===0&&(AK=4194304),Y}function a2(Y){for(var J=[],q=0;31>q;q++)J.push(Y);return J}function L5(Y,J){Y.pendingLanes|=J,J!==268435456&&(Y.suspendedLanes=0,Y.pingedLanes=0,Y.warmLanes=0)}function q2(Y,J,q,K,G,M){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:_,expirationTimes:T,hiddenUpdates:b}=Y;for(q=F&~q;0"u")return null;try{return Y.activeElement||Y.body}catch(J){return Y.body}}function y0(Y){return Y.replace(lg,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function h0(Y,J){J.checked===void 0||J.defaultChecked===void 0||SC||(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",o1()||"A component",J.type),SC=!0),J.value===void 0||J.defaultValue===void 0||xC||(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",o1()||"A component",J.type),xC=!0)}function d0(Y,J,q,K,G,M,F,_){if(Y.name="",F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"?(B1(F,"type"),Y.type=F):Y.removeAttribute("type"),J!=null)if(F==="number"){if(J===0&&Y.value===""||Y.value!=J)Y.value=""+a(J)}else Y.value!==""+a(J)&&(Y.value=""+a(J));else F!=="submit"&&F!=="reset"||Y.removeAttribute("value");J!=null?m0(Y,F,a(J)):q!=null?m0(Y,F,a(q)):K!=null&&Y.removeAttribute("value"),G==null&&M!=null&&(Y.defaultChecked=!!M),G!=null&&(Y.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),_!=null&&typeof _!=="function"&&typeof _!=="symbol"&&typeof _!=="boolean"?(B1(_,"name"),Y.name=""+a(_)):Y.removeAttribute("name")}function i0(Y,J,q,K,G,M,F,_){if(M!=null&&typeof M!=="function"&&typeof M!=="symbol"&&typeof M!=="boolean"&&(B1(M,"type"),Y.type=M),J!=null||q!=null){if(!(M!=="submit"&&M!=="reset"||J!==void 0&&J!==null)){V0(Y);return}q=q!=null?""+a(q):"",J=J!=null?""+a(J):q,_||J===Y.value||(Y.value=J),Y.defaultValue=J}K=K!=null?K:G,K=typeof K!=="function"&&typeof K!=="symbol"&&!!K,Y.checked=_?Y.checked:!!K,Y.defaultChecked=!!K,F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"&&(B1(F,"name"),Y.name=F),V0(Y)}function m0(Y,J,q){J==="number"&&E0(Y.ownerDocument)===Y||Y.defaultValue===""+q||(Y.defaultValue=""+q)}function d1(Y,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?gQ.Children.forEach(J.children,function(q){q==null||typeof q==="string"||typeof q==="number"||typeof q==="bigint"||fC||(fC=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to