maestro-flow 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/learn-decompose.md +3 -3
- package/.claude/commands/learn-follow.md +5 -5
- package/.claude/commands/learn-investigate.md +3 -3
- package/.claude/commands/learn-retro.md +6 -6
- package/.claude/commands/learn-second-opinion.md +3 -3
- package/.claude/commands/maestro-analyze.md +123 -99
- package/.claude/commands/maestro-brainstorm.md +2 -2
- package/.claude/commands/maestro-execute.md +137 -97
- package/.claude/commands/maestro-fork.md +111 -0
- package/.claude/commands/maestro-init.md +6 -6
- package/.claude/commands/maestro-merge.md +77 -0
- package/.claude/commands/maestro-milestone-audit.md +72 -60
- package/.claude/commands/maestro-milestone-complete.md +67 -59
- package/.claude/commands/maestro-milestone-release.md +6 -6
- package/.claude/commands/maestro-plan.md +151 -130
- package/.claude/commands/maestro-quick.md +4 -4
- package/.claude/commands/maestro-roadmap.md +5 -5
- package/.claude/commands/maestro-spec-generate.md +5 -5
- package/.claude/commands/maestro-ui-design.md +3 -3
- package/.claude/commands/maestro-verify.md +106 -87
- package/.claude/commands/maestro.md +10 -4
- package/.claude/commands/manage-codebase-rebuild.md +4 -4
- package/.claude/commands/manage-codebase-refresh.md +1 -1
- package/.claude/commands/manage-harvest.md +5 -5
- package/.claude/commands/manage-issue-discover.md +1 -1
- package/.claude/commands/manage-issue-execute.md +6 -6
- package/.claude/commands/manage-issue.md +6 -6
- package/.claude/commands/manage-learn.md +2 -2
- package/.claude/commands/manage-memory-capture.md +4 -4
- package/.claude/commands/manage-memory.md +2 -2
- package/.claude/commands/manage-status.md +24 -24
- package/.claude/commands/quality-business-test.md +5 -5
- package/.claude/commands/quality-debug.md +4 -4
- package/.claude/commands/quality-integration-test.md +4 -4
- package/.claude/commands/quality-refactor.md +3 -3
- package/.claude/commands/quality-retrospective.md +2 -2
- package/.claude/commands/quality-review.md +4 -4
- package/.claude/commands/quality-sync.md +3 -3
- package/.claude/commands/quality-test-gen.md +4 -4
- package/.claude/commands/quality-test.md +9 -9
- package/.claude/commands/spec-add.md +2 -2
- package/.claude/commands/spec-load.md +1 -1
- package/.claude/commands/spec-setup.md +5 -5
- package/.claude/commands/wiki-connect.md +3 -3
- package/.claude/commands/wiki-digest.md +4 -4
- package/.codex/skills/maestro-analyze/SKILL.md +52 -14
- package/.codex/skills/maestro-execute/SKILL.md +27 -26
- package/.codex/skills/maestro-milestone-audit/SKILL.md +103 -209
- package/.codex/skills/maestro-milestone-complete/SKILL.md +149 -158
- package/.codex/skills/maestro-plan/SKILL.md +47 -17
- package/.codex/skills/maestro-roadmap/SKILL.md +3 -2
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
- package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +1 -1
- package/README.md +19 -14
- package/README.zh-CN.md +16 -12
- package/bin/maestro-mcp.js +1 -1
- package/chains/_intent-map.json +21 -9
- package/chains/_router.json +30 -77
- package/chains/brainstorm-driven.json +17 -6
- package/chains/full-lifecycle.json +22 -23
- package/chains/milestone-close.json +20 -7
- package/chains/milestone-fork-merge.json +50 -0
- package/chains/roadmap-driven.json +17 -6
- package/chains/spec-driven.json +17 -6
- package/dashboard/dist/assets/{ArtifactsPage-BmPOu8sO.js → ArtifactsPage-DZNCi6tn.js} +12 -7
- package/dashboard/dist/assets/ChatInput-Bvr-FeEq.js +49 -0
- package/dashboard/dist/assets/ChatPage-D9zTkJZo.js +22 -0
- package/dashboard/dist/assets/CollabPage-B4NAHXS2.js +1 -0
- package/dashboard/dist/assets/ExecutionPanel-CFt4LJyq.js +1 -0
- package/dashboard/dist/assets/KanbanPage-C8USth6H.js +21 -0
- package/dashboard/dist/assets/{MarkdownRenderer-BjZ43aSa.js → MarkdownRenderer-X4af_WNb.js} +1 -1
- package/dashboard/dist/assets/McpPage-BKfCVIyU.js +21 -0
- package/dashboard/dist/assets/OutputPanel-BlBQFJSW.js +1 -0
- package/dashboard/dist/assets/ProblemsPanel-De3DLvoI.js +1 -0
- package/dashboard/dist/assets/{RequirementBoardPage-B7yRL0s_.js → RequirementBoardPage-Bf1trzqs.js} +2 -2
- package/dashboard/dist/assets/{RequirementPage-D8J_-b6O.js → RequirementPage-Bllxe2XI.js} +10 -5
- package/dashboard/dist/assets/{SpecsPage-6lO8v8_C.js → SpecsPage-9lwxKT27.js} +2 -2
- package/dashboard/dist/assets/{SupervisorPage-Ds5N378a.js → SupervisorPage-SusdfHFq.js} +1 -1
- package/dashboard/dist/assets/{TeamsPage-DrkKr17T.js → TeamsPage-DsuM6OwC.js} +2 -2
- package/dashboard/dist/assets/TreeBrowser-Q12qobZs.js +6 -0
- package/dashboard/dist/assets/WorkflowPage-D_Fzdy3_.js +6 -0
- package/dashboard/dist/assets/{arrow-left-CadP5YgU.js → arrow-left-Bqtb2hle.js} +1 -1
- package/dashboard/dist/assets/{check-5xufDzS8.js → check-u6fGOwQO.js} +1 -1
- package/dashboard/dist/assets/{chevron-right-CYbpR4ev.js → chevron-right-Csu22t58.js} +1 -1
- package/dashboard/dist/assets/{circle-Bm-5Q-Yh.js → circle-CMrkbRNg.js} +1 -1
- package/dashboard/dist/assets/{circle-alert-BqcYuT7x.js → circle-alert-c3tH1P4z.js} +1 -1
- package/dashboard/dist/assets/{circle-check-big-yyzAFysU.js → circle-check-big-TDSeWstm.js} +1 -1
- package/dashboard/dist/assets/{circle-check-DEVzW_lm.js → circle-check-gYxxSYuH.js} +1 -1
- package/dashboard/dist/assets/{code-BBdC8Wmw.js → code-CFN2uX9V.js} +1 -1
- package/dashboard/dist/assets/{columns-3-CQ9Trztr.js → columns-3-38xIDlzy.js} +1 -1
- package/dashboard/dist/assets/{download-DayuF-sn.js → download-DC7KkKyP.js} +1 -1
- package/dashboard/dist/assets/{folder-CqXeSKeC.js → folder-CWq_lAnf.js} +1 -1
- package/dashboard/dist/assets/index-DWG-WrzT.js +231 -0
- package/dashboard/dist/assets/{index-Dru5HYy0.js → index-Do71weNR.js} +1 -1
- package/dashboard/dist/assets/index-GUNJodSR.css +1 -0
- package/dashboard/dist/assets/{list-DBOD6IUt.js → list-CgIP_2A-.js} +1 -1
- package/dashboard/dist/assets/{minus-fQI1Syn2.js → minus-DYoN5UGk.js} +1 -1
- package/dashboard/dist/assets/{pen-line-Bkbbngl5.js → pen-line-Bh_WKYHm.js} +1 -1
- package/dashboard/dist/assets/{proxy-teW12DdZ.js → proxy-BKxDAKTj.js} +1 -1
- package/dashboard/dist/assets/{search-Bq3ygFUW.js → search-SieXnOgr.js} +1 -1
- package/dashboard/dist/assets/{shallow-22ZN8sFt.js → shallow-Bme1JY57.js} +1 -1
- package/dashboard/dist/assets/{table-BEYtdWc4.js → table-llyEtj-7.js} +1 -1
- package/dashboard/dist/assets/terminal-BB3Xfuv5.js +6 -0
- package/dashboard/dist/assets/{trash-2-DMqGBgcF.js → trash-2-C8f4vFFM.js} +1 -1
- package/dashboard/dist/assets/{zap-9DVkGVtt.js → zap-4uwlzVm0.js} +1 -1
- package/dashboard/dist/index.html +2 -2
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +8 -4
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js +2 -1
- package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +20 -10
- package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/git.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/server/routes/git.js +79 -0
- package/dashboard/dist-server/dashboard/src/server/routes/git.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/routes/index.js +3 -0
- package/dashboard/dist-server/dashboard/src/server/routes/index.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/workspace.js +43 -0
- package/dashboard/dist-server/dashboard/src/server/routes/workspace.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/state/state-manager.js +43 -3
- package/dashboard/dist-server/dashboard/src/server/state/state-manager.js.map +1 -1
- package/dashboard/package.json +59 -59
- package/dist/src/cli.js +3 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/{team.d.ts → collab.d.ts} +2 -2
- package/dist/src/commands/collab.d.ts.map +1 -0
- package/dist/src/commands/{team.js → collab.js} +391 -24
- package/dist/src/commands/collab.js.map +1 -0
- package/dist/src/commands/msg.d.ts.map +1 -1
- package/dist/src/commands/msg.js +4 -3
- package/dist/src/commands/msg.js.map +1 -1
- package/dist/src/hooks/team-monitor.d.ts.map +1 -1
- package/dist/src/hooks/team-monitor.js +16 -0
- package/dist/src/hooks/team-monitor.js.map +1 -1
- package/dist/src/tools/collab-adapter.d.ts +85 -0
- package/dist/src/tools/collab-adapter.d.ts.map +1 -0
- package/dist/src/tools/collab-adapter.js +320 -0
- package/dist/src/tools/collab-adapter.js.map +1 -0
- package/dist/src/tools/namespace-guard.d.ts +2 -0
- package/dist/src/tools/namespace-guard.d.ts.map +1 -1
- package/dist/src/tools/namespace-guard.js +12 -0
- package/dist/src/tools/namespace-guard.js.map +1 -1
- package/dist/src/tools/phase-gate-evaluator.d.ts +45 -0
- package/dist/src/tools/phase-gate-evaluator.d.ts.map +1 -0
- package/dist/src/tools/phase-gate-evaluator.js +42 -0
- package/dist/src/tools/phase-gate-evaluator.js.map +1 -0
- package/dist/src/tools/team-members.d.ts +18 -0
- package/dist/src/tools/team-members.d.ts.map +1 -1
- package/dist/src/tools/team-members.js +50 -0
- package/dist/src/tools/team-members.js.map +1 -1
- package/dist/src/tools/team-tasks.d.ts +120 -0
- package/dist/src/tools/team-tasks.d.ts.map +1 -0
- package/dist/src/tools/team-tasks.js +365 -0
- package/dist/src/tools/team-tasks.js.map +1 -0
- package/dist/src/tools/transition-recorder.d.ts +3 -0
- package/dist/src/tools/transition-recorder.d.ts.map +1 -1
- package/dist/src/tools/transition-recorder.js +52 -1
- package/dist/src/tools/transition-recorder.js.map +1 -1
- package/dist/src/utils/get-version.d.ts.map +1 -1
- package/dist/src/utils/get-version.js +15 -4
- package/dist/src/utils/get-version.js.map +1 -1
- package/package.json +1 -1
- package/templates/config.json +7 -0
- package/templates/worktree-scope.json +10 -0
- package/templates/worktrees.json +27 -0
- package/workflows/analyze.md +86 -36
- package/workflows/brainstorm.md +17 -37
- package/workflows/execute.md +94 -28
- package/workflows/fork.md +309 -0
- package/workflows/init.md +10 -1
- package/workflows/issue.md +66 -7
- package/workflows/maestro-coordinate.md +23 -16
- package/workflows/maestro.md +52 -35
- package/workflows/merge.md +285 -0
- package/workflows/milestone-audit.md +89 -70
- package/workflows/milestone-complete.md +89 -156
- package/workflows/plan.md +122 -17
- package/workflows/retrospective.md +3 -3
- package/workflows/roadmap.md +11 -3
- package/workflows/spec-generate.md +9 -0
- package/workflows/status.md +76 -27
- package/workflows/ui-design.md +14 -12
- package/workflows/verify.md +44 -8
- package/.claude/commands/maestro-phase-add.md +0 -63
- package/.claude/commands/maestro-phase-transition.md +0 -75
- package/.codex/skills/maestro-phase-add/SKILL.md +0 -154
- package/.codex/skills/maestro-phase-transition/SKILL.md +0 -173
- package/chains/singles/phase-add.json +0 -31
- package/chains/singles/phase-transition.json +0 -23
- package/dashboard/dist/assets/ChatInput-CL8YDfOU.js +0 -67
- package/dashboard/dist/assets/ChatPage-CT-ozBK2.js +0 -8
- package/dashboard/dist/assets/CollabPage-C0rWMden.js +0 -1
- package/dashboard/dist/assets/KanbanPage-C6WbAlwI.js +0 -16
- package/dashboard/dist/assets/McpPage-BPIXADQi.js +0 -16
- package/dashboard/dist/assets/TreeBrowser-g_QUKemL.js +0 -11
- package/dashboard/dist/assets/WorkflowPage-X8aNkDEr.js +0 -6
- package/dashboard/dist/assets/git-branch-SqFf4Ru5.js +0 -6
- package/dashboard/dist/assets/index-D2Mtyw7I.css +0 -1
- package/dashboard/dist/assets/index-nufWop4p.js +0 -231
- package/dashboard/dist/assets/wrench-B84-zdLI.js +0 -11
- package/dist/src/commands/team.d.ts.map +0 -1
- package/dist/src/commands/team.js.map +0 -1
- package/workflows/phase-add.md +0 -252
- package/workflows/phase-transition.md +0 -399
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/KanbanPage-C8USth6H.js","assets/shallow-Bme1JY57.js","assets/table-llyEtj-7.js","assets/circle-check-big-TDSeWstm.js","assets/ChatInput-Bvr-FeEq.js","assets/zap-4uwlzVm0.js","assets/MarkdownRenderer-X4af_WNb.js","assets/chevron-right-Csu22t58.js","assets/terminal-BB3Xfuv5.js","assets/circle-alert-c3tH1P4z.js","assets/download-DC7KkKyP.js","assets/ArtifactsPage-DZNCi6tn.js","assets/code-CFN2uX9V.js","assets/search-SieXnOgr.js","assets/TreeBrowser-Q12qobZs.js","assets/folder-CWq_lAnf.js","assets/circle-CMrkbRNg.js","assets/circle-check-gYxxSYuH.js","assets/index-Do71weNR.js","assets/proxy-BKxDAKTj.js","assets/ChatPage-D9zTkJZo.js","assets/WorkflowPage-D_Fzdy3_.js","assets/check-u6fGOwQO.js","assets/list-CgIP_2A-.js","assets/columns-3-38xIDlzy.js","assets/McpPage-BKfCVIyU.js","assets/trash-2-C8f4vFFM.js","assets/pen-line-Bh_WKYHm.js","assets/minus-DYoN5UGk.js","assets/SpecsPage-9lwxKT27.js","assets/TeamsPage-DsuM6OwC.js","assets/arrow-left-Bqtb2hle.js","assets/RequirementPage-Bllxe2XI.js","assets/RequirementBoardPage-Bf1trzqs.js","assets/CollabPage-B4NAHXS2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function jb(n,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const d in s)if(d!=="default"&&!(d in n)){const f=Object.getOwnPropertyDescriptor(s,d);f&&Object.defineProperty(n,d,f.get?f:{enumerable:!0,get:()=>s[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))s(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(d){if(d.ep)return;d.ep=!0;const f=i(d);fetch(d.href,f)}})();function Up(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var qc={exports:{}},Sr={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Mh;function Tb(){if(Mh)return Sr;Mh=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,d,f){var h=null;if(f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),"key"in d){f={};for(var p in d)p!=="key"&&(f[p]=d[p])}else f=d;return d=f.ref,{$$typeof:n,type:s,key:h,ref:d!==void 0?d:null,props:f}}return Sr.Fragment=r,Sr.jsx=i,Sr.jsxs=i,Sr}var Uh;function wb(){return Uh||(Uh=1,qc.exports=Tb()),qc.exports}var u=wb();(function(){if(!(typeof window>"u"))try{const r=localStorage.getItem("theme");let i;r==="dark"||r==="light"?i=r:i=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",document.documentElement.dataset.theme=i}catch{}})();var Gc={exports:{}},ue={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Lh;function Ab(){if(Lh)return ue;Lh=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),E=Symbol.iterator;function C(N){return N===null||typeof N!="object"?null:(N=E&&N[E]||N["@@iterator"],typeof N=="function"?N:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,R={};function w(N,B,J){this.props=N,this.context=B,this.refs=R,this.updater=J||z}w.prototype.isReactComponent={},w.prototype.setState=function(N,B){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,B,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function K(){}K.prototype=w.prototype;function Z(N,B,J){this.props=N,this.context=B,this.refs=R,this.updater=J||z}var Q=Z.prototype=new K;Q.constructor=Z,k(Q,w.prototype),Q.isPureReactComponent=!0;var le=Array.isArray;function oe(){}var G={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function V(N,B,J){var P=J.ref;return{$$typeof:n,type:N,key:B,ref:P!==void 0?P:null,props:J}}function he(N,B){return V(N.type,B,N.props)}function He(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function ze(N){var B={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(J){return B[J]})}var kt=/\/+/g;function ut(N,B){return typeof N=="object"&&N!==null&&N.key!=null?ze(""+N.key):B.toString(36)}function Ye(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(oe,oe):(N.status="pending",N.then(function(B){N.status==="pending"&&(N.status="fulfilled",N.value=B)},function(B){N.status==="pending"&&(N.status="rejected",N.reason=B)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function U(N,B,J,P,W){var re=typeof N;(re==="undefined"||re==="boolean")&&(N=null);var ve=!1;if(N===null)ve=!0;else switch(re){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(N.$$typeof){case n:case r:ve=!0;break;case S:return ve=N._init,U(ve(N._payload),B,J,P,W)}}if(ve)return W=W(N),ve=P===""?"."+ut(N,0):P,le(W)?(J="",ve!=null&&(J=ve.replace(kt,"$&/")+"/"),U(W,B,J,"",function(Na){return Na})):W!=null&&(He(W)&&(W=he(W,J+(W.key==null||N&&N.key===W.key?"":(""+W.key).replace(kt,"$&/")+"/")+ve)),B.push(W)),1;ve=0;var Ue=P===""?".":P+":";if(le(N))for(var ce=0;ce<N.length;ce++)P=N[ce],re=Ue+ut(P,ce),ve+=U(P,B,J,re,W);else if(ce=C(N),typeof ce=="function")for(N=ce.call(N),ce=0;!(P=N.next()).done;)P=P.value,re=Ue+ut(P,ce++),ve+=U(P,B,J,re,W);else if(re==="object"){if(typeof N.then=="function")return U(Ye(N),B,J,P,W);throw B=String(N),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ve}function I(N,B,J){if(N==null)return N;var P=[],W=0;return U(N,P,"","",function(re){return B.call(J,re,W++)}),P}function F(N){if(N._status===-1){var B=N._result;B=B(),B.then(function(J){(N._status===0||N._status===-1)&&(N._status=1,N._result=J)},function(J){(N._status===0||N._status===-1)&&(N._status=2,N._result=J)}),N._status===-1&&(N._status=0,N._result=B)}if(N._status===1)return N._result.default;throw N._result}var ae=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},L={map:I,forEach:function(N,B,J){I(N,function(){B.apply(this,arguments)},J)},count:function(N){var B=0;return I(N,function(){B++}),B},toArray:function(N){return I(N,function(B){return B})||[]},only:function(N){if(!He(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ue.Activity=x,ue.Children=L,ue.Component=w,ue.Fragment=i,ue.Profiler=d,ue.PureComponent=Z,ue.StrictMode=s,ue.Suspense=b,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,ue.__COMPILER_RUNTIME={__proto__:null,c:function(N){return G.H.useMemoCache(N)}},ue.cache=function(N){return function(){return N.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(N,B,J){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=k({},N.props),W=N.key;if(B!=null)for(re in B.key!==void 0&&(W=""+B.key),B)!X.call(B,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&B.ref===void 0||(P[re]=B[re]);var re=arguments.length-2;if(re===1)P.children=J;else if(1<re){for(var ve=Array(re),Ue=0;Ue<re;Ue++)ve[Ue]=arguments[Ue+2];P.children=ve}return V(N.type,W,P)},ue.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},ue.createElement=function(N,B,J){var P,W={},re=null;if(B!=null)for(P in B.key!==void 0&&(re=""+B.key),B)X.call(B,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(W[P]=B[P]);var ve=arguments.length-2;if(ve===1)W.children=J;else if(1<ve){for(var Ue=Array(ve),ce=0;ce<ve;ce++)Ue[ce]=arguments[ce+2];W.children=Ue}if(N&&N.defaultProps)for(P in ve=N.defaultProps,ve)W[P]===void 0&&(W[P]=ve[P]);return V(N,re,W)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(N){return{$$typeof:p,render:N}},ue.isValidElement=He,ue.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:F}},ue.memo=function(N,B){return{$$typeof:g,type:N,compare:B===void 0?null:B}},ue.startTransition=function(N){var B=G.T,J={};G.T=J;try{var P=N(),W=G.S;W!==null&&W(J,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(oe,ae)}catch(re){ae(re)}finally{B!==null&&J.types!==null&&(B.types=J.types),G.T=B}},ue.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},ue.use=function(N){return G.H.use(N)},ue.useActionState=function(N,B,J){return G.H.useActionState(N,B,J)},ue.useCallback=function(N,B){return G.H.useCallback(N,B)},ue.useContext=function(N){return G.H.useContext(N)},ue.useDebugValue=function(){},ue.useDeferredValue=function(N,B){return G.H.useDeferredValue(N,B)},ue.useEffect=function(N,B){return G.H.useEffect(N,B)},ue.useEffectEvent=function(N){return G.H.useEffectEvent(N)},ue.useId=function(){return G.H.useId()},ue.useImperativeHandle=function(N,B,J){return G.H.useImperativeHandle(N,B,J)},ue.useInsertionEffect=function(N,B){return G.H.useInsertionEffect(N,B)},ue.useLayoutEffect=function(N,B){return G.H.useLayoutEffect(N,B)},ue.useMemo=function(N,B){return G.H.useMemo(N,B)},ue.useOptimistic=function(N,B){return G.H.useOptimistic(N,B)},ue.useReducer=function(N,B,J){return G.H.useReducer(N,B,J)},ue.useRef=function(N){return G.H.useRef(N)},ue.useState=function(N){return G.H.useState(N)},ue.useSyncExternalStore=function(N,B,J){return G.H.useSyncExternalStore(N,B,J)},ue.useTransition=function(){return G.H.useTransition()},ue.version="19.2.4",ue}var Bh;function Eu(){return Bh||(Bh=1,Gc.exports=Ab()),Gc.exports}var y=Eu();const Nr=Up(y),_u=jb({__proto__:null,default:Nr},[y]);var Yc={exports:{}},Er={},Vc={exports:{}},Kc={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Hh;function Ob(){return Hh||(Hh=1,(function(n){function r(U,I){var F=U.length;U.push(I);e:for(;0<F;){var ae=F-1>>>1,L=U[ae];if(0<d(L,I))U[ae]=I,U[F]=L,F=ae;else break e}}function i(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var I=U[0],F=U.pop();if(F!==I){U[0]=F;e:for(var ae=0,L=U.length,N=L>>>1;ae<N;){var B=2*(ae+1)-1,J=U[B],P=B+1,W=U[P];if(0>d(J,F))P<L&&0>d(W,J)?(U[ae]=W,U[P]=F,ae=P):(U[ae]=J,U[B]=F,ae=B);else if(P<L&&0>d(W,F))U[ae]=W,U[P]=F,ae=P;else break e}}return I}function d(U,I){var F=U.sortIndex-I.sortIndex;return F!==0?F:U.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();n.unstable_now=function(){return h.now()-p}}var b=[],g=[],S=1,x=null,E=3,C=!1,z=!1,k=!1,R=!1,w=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function Q(U){for(var I=i(g);I!==null;){if(I.callback===null)s(g);else if(I.startTime<=U)s(g),I.sortIndex=I.expirationTime,r(b,I);else break;I=i(g)}}function le(U){if(k=!1,Q(U),!z)if(i(b)!==null)z=!0,oe||(oe=!0,ze());else{var I=i(g);I!==null&&Ye(le,I.startTime-U)}}var oe=!1,G=-1,X=5,V=-1;function he(){return R?!0:!(n.unstable_now()-V<X)}function He(){if(R=!1,oe){var U=n.unstable_now();V=U;var I=!0;try{e:{z=!1,k&&(k=!1,K(G),G=-1),C=!0;var F=E;try{t:{for(Q(U),x=i(b);x!==null&&!(x.expirationTime>U&&he());){var ae=x.callback;if(typeof ae=="function"){x.callback=null,E=x.priorityLevel;var L=ae(x.expirationTime<=U);if(U=n.unstable_now(),typeof L=="function"){x.callback=L,Q(U),I=!0;break t}x===i(b)&&s(b),Q(U)}else s(b);x=i(b)}if(x!==null)I=!0;else{var N=i(g);N!==null&&Ye(le,N.startTime-U),I=!1}}break e}finally{x=null,E=F,C=!1}I=void 0}}finally{I?ze():oe=!1}}}var ze;if(typeof Z=="function")ze=function(){Z(He)};else if(typeof MessageChannel<"u"){var kt=new MessageChannel,ut=kt.port2;kt.port1.onmessage=He,ze=function(){ut.postMessage(null)}}else ze=function(){w(He,0)};function Ye(U,I){G=w(function(){U(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(U){switch(E){case 1:case 2:case 3:var I=3;break;default:I=E}var F=E;E=I;try{return U()}finally{E=F}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(U,I){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var F=E;E=U;try{return I()}finally{E=F}},n.unstable_scheduleCallback=function(U,I,F){var ae=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ae+F:ae):F=ae,U){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=F+L,U={id:S++,callback:I,priorityLevel:U,startTime:F,expirationTime:L,sortIndex:-1},F>ae?(U.sortIndex=F,r(g,U),i(b)===null&&U===i(g)&&(k?(K(G),G=-1):k=!0,Ye(le,F-ae))):(U.sortIndex=L,r(b,U),z||C||(z=!0,oe||(oe=!0,ze()))),U},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(U){var I=E;return function(){var F=E;E=I;try{return U.apply(this,arguments)}finally{E=F}}}})(Kc)),Kc}var qh;function kb(){return qh||(qh=1,Vc.exports=Ob()),Vc.exports}var Xc={exports:{}},st={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Gh;function Db(){if(Gh)return st;Gh=1;var n=Eu();function r(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)g+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(b,g,S){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:b,containerInfo:g,implementation:S}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,st.createPortal=function(b,g){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(b,g,null,S)},st.flushSync=function(b){var g=h.T,S=s.p;try{if(h.T=null,s.p=2,b)return b()}finally{h.T=g,s.p=S,s.d.f()}},st.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(b,g))},st.prefetchDNS=function(b){typeof b=="string"&&s.d.D(b)},st.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var S=g.as,x=p(S,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;S==="style"?s.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:E,fetchPriority:C}):S==="script"&&s.d.X(b,{crossOrigin:x,integrity:E,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},st.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var S=p(g.as,g.crossOrigin);s.d.M(b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(b)},st.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var S=g.as,x=p(S,g.crossOrigin);s.d.L(b,S,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},st.preloadModule=function(b,g){if(typeof b=="string")if(g){var S=p(g.as,g.crossOrigin);s.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(b)},st.requestFormReset=function(b){s.d.r(b)},st.unstable_batchedUpdates=function(b,g){return b(g)},st.useFormState=function(b,g,S){return h.H.useFormState(b,g,S)},st.useFormStatus=function(){return h.H.useHostTransitionStatus()},st.version="19.2.4",st}var Yh;function Lp(){if(Yh)return Xc.exports;Yh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Xc.exports=Db(),Xc.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Vh;function Rb(){if(Vh)return Er;Vh=1;var n=kb(),r=Eu(),i=Lp();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return b(o),e;if(c===l)return b(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=c;else{for(var m=!1,v=o.child;v;){if(v===a){m=!0,a=o,l=c;break}if(v===l){m=!0,l=o,a=c;break}v=v.sibling}if(!m){for(v=c.child;v;){if(v===a){m=!0,a=c,l=o;break}if(v===l){m=!0,l=c,a=o;break}v=v.sibling}if(!m)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,E=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function ze(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var kt=Symbol.for("react.client.reference");function ut(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===kt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case w:return"Profiler";case R:return"StrictMode";case le:return"Suspense";case oe:return"SuspenseList";case V:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case Z:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:ut(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ut(e(t))}catch{}}return null}var Ye=Array.isArray,U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ae=[],L=-1;function N(e){return{current:e}}function B(e){0>L||(e.current=ae[L],ae[L]=null,L--)}function J(e,t){L++,ae[L]=e.current,e.current=t}var P=N(null),W=N(null),re=N(null),ve=N(null);function Ue(e,t){switch(J(re,t),J(W,e),J(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=rh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(P),J(P,e)}function ce(){B(P),B(W),B(re)}function Na(e){e.memoizedState!==null&&J(ve,e);var t=P.current,a=rh(t,e.type);t!==a&&(J(W,e),J(P,a))}function aa(e){W.current===e&&(B(P),B(W)),ve.current===e&&(B(ve),gr._currentValue=F)}var ja,Rn;function Dt(e){if(ja===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ja=t&&t[1]||"",Rn=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+ja+e+Rn}var Ei=!1;function _i(e,t){if(!e||Ei)return"";Ei=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(M){var D=M}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(M){D=M}e.call(Y.prototype)}}else{try{throw Error()}catch(M){D=M}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(M){if(M&&D&&typeof M.stack=="string")return[M.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),m=c[0],v=c[1];if(m&&v){var _=m.split(`
|
|
45
|
+
`),O=v.split(`
|
|
46
|
+
`);for(o=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;if(l===_.length||o===O.length)for(l=_.length-1,o=O.length-1;1<=l&&0<=o&&_[l]!==O[o];)o--;for(;1<=l&&0<=o;l--,o--)if(_[l]!==O[o]){if(l!==1||o!==1)do if(l--,o--,0>o||_[l]!==O[o]){var H=`
|
|
47
|
+
`+_[l].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=l&&0<=o);break}}}finally{Ei=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Dt(a):""}function ng(e,t){switch(e.tag){case 26:case 27:case 5:return Dt(e.type);case 16:return Dt("Lazy");case 13:return e.child!==t&&t!==null?Dt("Suspense Fallback"):Dt("Suspense");case 19:return Dt("SuspenseList");case 0:case 15:return _i(e.type,!1);case 11:return _i(e.type.render,!1);case 1:return _i(e.type,!0);case 31:return Dt("Activity");default:return""}}function zu(e){try{var t="",a=null;do t+=ng(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
48
|
+
Error generating stack: `+l.message+`
|
|
49
|
+
`+l.stack}}var Ci=Object.prototype.hasOwnProperty,Ni=n.unstable_scheduleCallback,ji=n.unstable_cancelCallback,lg=n.unstable_shouldYield,rg=n.unstable_requestPaint,xt=n.unstable_now,sg=n.unstable_getCurrentPriorityLevel,Mu=n.unstable_ImmediatePriority,Uu=n.unstable_UserBlockingPriority,Rr=n.unstable_NormalPriority,ig=n.unstable_LowPriority,Lu=n.unstable_IdlePriority,og=n.log,cg=n.unstable_setDisableYieldValue,Al=null,St=null;function Ta(e){if(typeof og=="function"&&cg(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Al,e)}catch{}}var Et=Math.clz32?Math.clz32:fg,ug=Math.log,dg=Math.LN2;function fg(e){return e>>>=0,e===0?32:31-(ug(e)/dg|0)|0}var zr=256,Mr=262144,Ur=4194304;function on(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Lr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?o=on(l):(m&=v,m!==0?o=on(m):a||(a=v&~e,a!==0&&(o=on(a))))):(v=l&~c,v!==0?o=on(v):m!==0?o=on(m):a||(a=l&~e,a!==0&&(o=on(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Ol(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bu(){var e=Ur;return Ur<<=1,(Ur&62914560)===0&&(Ur=4194304),e}function Ti(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hg(e,t,a,l,o,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,_=e.expirationTimes,O=e.hiddenUpdates;for(a=m&~a;0<a;){var H=31-Et(a),Y=1<<H;v[H]=0,_[H]=-1;var D=O[H];if(D!==null)for(O[H]=null,H=0;H<D.length;H++){var M=D[H];M!==null&&(M.lane&=-536870913)}a&=~Y}l!==0&&Hu(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function Hu(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function qu(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function Gu(e,t){var a=t&-t;return a=(a&42)!==0?1:wi(a),(a&(e.suspendedLanes|t))!==0?0:a}function wi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ai(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yu(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:wh(e.type))}function Vu(e,t){var a=I.p;try{return I.p=e,t()}finally{I.p=a}}var wa=Math.random().toString(36).slice(2),et="__reactFiber$"+wa,dt="__reactProps$"+wa,zn="__reactContainer$"+wa,Oi="__reactEvents$"+wa,pg="__reactListeners$"+wa,vg="__reactHandles$"+wa,Ku="__reactResources$"+wa,Dl="__reactMarker$"+wa;function ki(e){delete e[et],delete e[dt],delete e[Oi],delete e[pg],delete e[vg]}function Mn(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[zn]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=fh(e);e!==null;){if(a=e[et])return a;e=fh(e)}return t}e=a,a=e.parentNode}return null}function Un(e){if(e=e[et]||e[zn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Rl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ln(e){var t=e[Ku];return t||(t=e[Ku]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Dl]=!0}var Xu=new Set,Iu={};function cn(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(Iu[e]=t,e=0;e<t.length;e++)Xu.add(t[e])}var gg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qu={},Zu={};function yg(e){return Ci.call(Zu,e)?!0:Ci.call(Qu,e)?!1:gg.test(e)?Zu[e]=!0:(Qu[e]=!0,!1)}function Br(e,t,a){if(yg(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Hr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function na(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ju(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bg(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Di(e){if(!e._valueTracker){var t=Ju(e)?"checked":"value";e._valueTracker=bg(e,t,""+e[t])}}function Pu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Ju(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function qr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xg=/[\n"\\]/g;function zt(e){return e.replace(xg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ri(e,t,a,l,o,c,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?zi(e,m,Rt(t)):a!=null?zi(e,m,Rt(a)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Rt(v):e.removeAttribute("name")}function Fu(e,t,a,l,o,c,m,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Di(e);return}a=a!=null?""+Rt(a):"",t=t!=null?""+Rt(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Di(e)}function zi(e,t,a){t==="number"&&qr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Hn(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Rt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Wu(e,t,a){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Rt(a):""}function $u(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ye(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Rt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Di(e)}function qn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Sg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ed(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Sg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function td(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&ed(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&ed(e,c,t[c])}function Mi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Eg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_g=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Gr(e){return _g.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var Ui=null;function Li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gn=null,Yn=null;function ad(e){var t=Un(e);if(t&&(e=t.stateNode)){var a=e[dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ri(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[dt]||null;if(!o)throw Error(s(90));Ri(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Pu(l)}break e;case"textarea":Wu(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Hn(e,!!a.multiple,t,!1)}}}var Bi=!1;function nd(e,t,a){if(Bi)return e(t,a);Bi=!0;try{var l=e(t);return l}finally{if(Bi=!1,(Gn!==null||Yn!==null)&&(ws(),Gn&&(t=Gn,e=Yn,Yn=Gn=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function zl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[dt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(ra)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Hi=!1}var Aa=null,qi=null,Yr=null;function ld(){if(Yr)return Yr;var e,t=qi,a=t.length,l,o="value"in Aa?Aa.value:Aa.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var m=a-e;for(l=1;l<=m&&t[a-l]===o[c-l];l++);return Yr=o.slice(e,1<l?1-l:void 0)}function Vr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Kr(){return!0}function rd(){return!1}function ft(e){function t(a,l,o,c,m){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Kr:rd,this.isPropagationStopped=rd,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Kr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Kr)},persist:function(){},isPersistent:Kr}),t}var un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xr=ft(un),Ul=x({},un,{view:0,detail:0}),Cg=ft(Ul),Gi,Yi,Ll,Ir=x({},Ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ki,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ll&&(Ll&&e.type==="mousemove"?(Gi=e.screenX-Ll.screenX,Yi=e.screenY-Ll.screenY):Yi=Gi=0,Ll=e),Gi)},movementY:function(e){return"movementY"in e?e.movementY:Yi}}),sd=ft(Ir),Ng=x({},Ir,{dataTransfer:0}),jg=ft(Ng),Tg=x({},Ul,{relatedTarget:0}),Vi=ft(Tg),wg=x({},un,{animationName:0,elapsedTime:0,pseudoElement:0}),Ag=ft(wg),Og=x({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kg=ft(Og),Dg=x({},un,{data:0}),id=ft(Dg),Rg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mg[e])?!!t[e]:!1}function Ki(){return Ug}var Lg=x({},Ul,{key:function(e){if(e.key){var t=Rg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ki,charCode:function(e){return e.type==="keypress"?Vr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bg=ft(Lg),Hg=x({},Ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=ft(Hg),qg=x({},Ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ki}),Gg=ft(qg),Yg=x({},un,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vg=ft(Yg),Kg=x({},Ir,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Xg=ft(Kg),Ig=x({},un,{newState:0,oldState:0}),Qg=ft(Ig),Zg=[9,13,27,32],Xi=ra&&"CompositionEvent"in window,Bl=null;ra&&"documentMode"in document&&(Bl=document.documentMode);var Jg=ra&&"TextEvent"in window&&!Bl,cd=ra&&(!Xi||Bl&&8<Bl&&11>=Bl),ud=" ",dd=!1;function fd(e,t){switch(e){case"keyup":return Zg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function md(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Pg(e,t){switch(e){case"compositionend":return md(t);case"keypress":return t.which!==32?null:(dd=!0,ud);case"textInput":return e=t.data,e===ud&&dd?null:e;default:return null}}function Fg(e,t){if(Vn)return e==="compositionend"||!Xi&&fd(e,t)?(e=ld(),Yr=qi=Aa=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cd&&t.locale!=="ko"?null:t.data;default:return null}}var Wg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wg[e.type]:t==="textarea"}function pd(e,t,a,l){Gn?Yn?Yn.push(l):Yn=[l]:Gn=l,t=Ms(t,"onChange"),0<t.length&&(a=new Xr("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Hl=null,ql=null;function $g(e){Wm(e,0)}function Qr(e){var t=Rl(e);if(Pu(t))return e}function vd(e,t){if(e==="change")return t}var gd=!1;if(ra){var Ii;if(ra){var Qi="oninput"in document;if(!Qi){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),Qi=typeof yd.oninput=="function"}Ii=Qi}else Ii=!1;gd=Ii&&(!document.documentMode||9<document.documentMode)}function bd(){Hl&&(Hl.detachEvent("onpropertychange",xd),ql=Hl=null)}function xd(e){if(e.propertyName==="value"&&Qr(ql)){var t=[];pd(t,ql,e,Li(e)),nd($g,t)}}function ey(e,t,a){e==="focusin"?(bd(),Hl=t,ql=a,Hl.attachEvent("onpropertychange",xd)):e==="focusout"&&bd()}function ty(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qr(ql)}function ay(e,t){if(e==="click")return Qr(t)}function ny(e,t){if(e==="input"||e==="change")return Qr(t)}function ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:ly;function Gl(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Ci.call(t,o)||!_t(e[o],t[o]))return!1}return!0}function Sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ed(e,t){var a=Sd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Sd(a)}}function _d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=qr(e.document)}return t}function Zi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ry=ra&&"documentMode"in document&&11>=document.documentMode,Kn=null,Ji=null,Yl=null,Pi=!1;function Nd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Pi||Kn==null||Kn!==qr(l)||(l=Kn,"selectionStart"in l&&Zi(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Yl&&Gl(Yl,l)||(Yl=l,l=Ms(Ji,"onSelect"),0<l.length&&(t=new Xr("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Kn)))}function dn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Xn={animationend:dn("Animation","AnimationEnd"),animationiteration:dn("Animation","AnimationIteration"),animationstart:dn("Animation","AnimationStart"),transitionrun:dn("Transition","TransitionRun"),transitionstart:dn("Transition","TransitionStart"),transitioncancel:dn("Transition","TransitionCancel"),transitionend:dn("Transition","TransitionEnd")},Fi={},jd={};ra&&(jd=document.createElement("div").style,"AnimationEvent"in window||(delete Xn.animationend.animation,delete Xn.animationiteration.animation,delete Xn.animationstart.animation),"TransitionEvent"in window||delete Xn.transitionend.transition);function fn(e){if(Fi[e])return Fi[e];if(!Xn[e])return e;var t=Xn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in jd)return Fi[e]=t[a];return e}var Td=fn("animationend"),wd=fn("animationiteration"),Ad=fn("animationstart"),sy=fn("transitionrun"),iy=fn("transitionstart"),oy=fn("transitioncancel"),Od=fn("transitionend"),kd=new Map,Wi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wi.push("scrollEnd");function Vt(e,t){kd.set(e,t),cn(t,[e])}var Zr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Mt=[],In=0,$i=0;function Jr(){for(var e=In,t=$i=In=0;t<e;){var a=Mt[t];Mt[t++]=null;var l=Mt[t];Mt[t++]=null;var o=Mt[t];Mt[t++]=null;var c=Mt[t];if(Mt[t++]=null,l!==null&&o!==null){var m=l.pending;m===null?o.next=o:(o.next=m.next,m.next=o),l.pending=o}c!==0&&Dd(a,o,c)}}function Pr(e,t,a,l){Mt[In++]=e,Mt[In++]=t,Mt[In++]=a,Mt[In++]=l,$i|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function eo(e,t,a,l){return Pr(e,t,a,l),Fr(e)}function mn(e,t){return Pr(e,null,null,t),Fr(e)}function Dd(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Et(a),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),c):null}function Fr(e){if(50<ur)throw ur=0,uc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qn={};function cy(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new cy(e,t,a,l)}function to(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Rd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wr(e,t,a,l,o,c){var m=0;if(l=e,typeof e=="function")to(e)&&(m=1);else if(typeof e=="string")m=hb(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case V:return e=Ct(31,a,t,o),e.elementType=V,e.lanes=c,e;case k:return hn(a.children,o,c,t);case R:m=8,o|=24;break;case w:return e=Ct(12,a,t,o|2),e.elementType=w,e.lanes=c,e;case le:return e=Ct(13,a,t,o),e.elementType=le,e.lanes=c,e;case oe:return e=Ct(19,a,t,o),e.elementType=oe,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:m=10;break e;case K:m=9;break e;case Q:m=11;break e;case G:m=14;break e;case X:m=16,l=null;break e}m=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Ct(m,a,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function hn(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function ao(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function zd(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function no(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Md=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=Md.get(e);return a!==void 0?a:(t={value:e,source:t,stack:zu(t)},Md.set(e,t),t)}return{value:e,source:t,stack:zu(t)}}var Zn=[],Jn=0,$r=null,Vl=0,Lt=[],Bt=0,Oa=null,Zt=1,Jt="";function ia(e,t){Zn[Jn++]=Vl,Zn[Jn++]=$r,$r=e,Vl=t}function Ud(e,t,a){Lt[Bt++]=Zt,Lt[Bt++]=Jt,Lt[Bt++]=Oa,Oa=e;var l=Zt;e=Jt;var o=32-Et(l)-1;l&=~(1<<o),a+=1;var c=32-Et(t)+o;if(30<c){var m=o-o%5;c=(l&(1<<m)-1).toString(32),l>>=m,o-=m,Zt=1<<32-Et(t)+o|a<<o|l,Jt=c+e}else Zt=1<<c|a<<o|l,Jt=e}function lo(e){e.return!==null&&(ia(e,1),Ud(e,1,0))}function ro(e){for(;e===$r;)$r=Zn[--Jn],Zn[Jn]=null,Vl=Zn[--Jn],Zn[Jn]=null;for(;e===Oa;)Oa=Lt[--Bt],Lt[Bt]=null,Jt=Lt[--Bt],Lt[Bt]=null,Zt=Lt[--Bt],Lt[Bt]=null}function Ld(e,t){Lt[Bt++]=Zt,Lt[Bt++]=Jt,Lt[Bt++]=Oa,Zt=t.id,Jt=t.overflow,Oa=e}var tt=null,De=null,Se=!1,ka=null,Ht=!1,so=Error(s(519));function Da(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kl(Ut(t,e)),so}function Bd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[et]=e,t[dt]=l,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<fr.length;a++)ye(fr[a],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),Fu(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),$u(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||ah(t.textContent,a)?(l.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),l.onScroll!=null&&ye("scroll",t),l.onScrollEnd!=null&&ye("scrollend",t),l.onClick!=null&&(t.onclick=la),t=!0):t=!1,t||Da(e,!0)}function Hd(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:tt=tt.return}}function Pn(e){if(e!==tt)return!1;if(!Se)return Hd(e),Se=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Nc(e.type,e.memoizedProps)),a=!a),a&&De&&Da(e),Hd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=dh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=dh(e)}else t===27?(t=De,Ia(e.type)?(e=Oc,Oc=null,De=e):De=t):De=tt?Gt(e.stateNode.nextSibling):null;return!0}function pn(){De=tt=null,Se=!1}function io(){var e=ka;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),ka=null),e}function Kl(e){ka===null?ka=[e]:ka.push(e)}var oo=N(null),vn=null,oa=null;function Ra(e,t,a){J(oo,t._currentValue),t._currentValue=a}function ca(e){e._currentValue=oo.current,B(oo)}function co(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function uo(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var _=0;_<t.length;_++)if(v.context===t[_]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),co(c.return,a,e),l||(m=null);break e}c=v.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(s(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),co(m,a,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Fn(e,t,a,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var v=o.type;_t(o.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(o===ve.current){if(m=o.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(gr):e=[gr])}o=o.return}e!==null&&uo(t,e,a,l),t.flags|=262144}function es(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gn(e){vn=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return qd(vn,e)}function ts(e,t){return vn===null&&gn(e),qd(e,t)}function qd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(s(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var uy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},dy=n.unstable_scheduleCallback,fy=n.unstable_NormalPriority,Xe={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fo(){return{controller:new uy,data:new Map,refCount:0}}function Xl(e){e.refCount--,e.refCount===0&&dy(fy,function(){e.controller.abort()})}var Il=null,mo=0,Wn=0,$n=null;function my(e,t){if(Il===null){var a=Il=[];mo=0,Wn=vc(),$n={status:"pending",value:void 0,then:function(l){a.push(l)}}}return mo++,t.then(Gd,Gd),t}function Gd(){if(--mo===0&&Il!==null){$n!==null&&($n.status="fulfilled");var e=Il;Il=null,Wn=0,$n=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hy(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Yd=U.S;U.S=function(e,t){jm=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&my(e,t),Yd!==null&&Yd(e,t)};var yn=N(null);function ho(){var e=yn.current;return e!==null?e:Oe.pooledCache}function as(e,t){t===null?J(yn,yn.current):J(yn,t.pool)}function Vd(){var e=ho();return e===null?null:{parent:Xe._currentValue,pool:e}}var el=Error(s(460)),po=Error(s(474)),ns=Error(s(542)),ls={then:function(){}};function Kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(la,la),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e;default:if(typeof t.status=="string")t.then(la,la);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e}throw xn=t,el}}function bn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xn=a,el):a}}var xn=null;function Id(){if(xn===null)throw Error(s(459));var e=xn;return xn=null,e}function Qd(e){if(e===el||e===ns)throw Error(s(483))}var tl=null,Ql=0;function rs(e){var t=Ql;return Ql+=1,tl===null&&(tl=[]),Xd(tl,e,t)}function Zl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ss(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zd(e){function t(T,j){if(e){var A=T.deletions;A===null?(T.deletions=[j],T.flags|=16):A.push(j)}}function a(T,j){if(!e)return null;for(;j!==null;)t(T,j),j=j.sibling;return null}function l(T){for(var j=new Map;T!==null;)T.key!==null?j.set(T.key,T):j.set(T.index,T),T=T.sibling;return j}function o(T,j){return T=sa(T,j),T.index=0,T.sibling=null,T}function c(T,j,A){return T.index=A,e?(A=T.alternate,A!==null?(A=A.index,A<j?(T.flags|=67108866,j):A):(T.flags|=67108866,j)):(T.flags|=1048576,j)}function m(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function v(T,j,A,q){return j===null||j.tag!==6?(j=ao(A,T.mode,q),j.return=T,j):(j=o(j,A),j.return=T,j)}function _(T,j,A,q){var se=A.type;return se===k?H(T,j,A.props.children,q,A.key):j!==null&&(j.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===X&&bn(se)===j.type)?(j=o(j,A.props),Zl(j,A),j.return=T,j):(j=Wr(A.type,A.key,A.props,null,T.mode,q),Zl(j,A),j.return=T,j)}function O(T,j,A,q){return j===null||j.tag!==4||j.stateNode.containerInfo!==A.containerInfo||j.stateNode.implementation!==A.implementation?(j=no(A,T.mode,q),j.return=T,j):(j=o(j,A.children||[]),j.return=T,j)}function H(T,j,A,q,se){return j===null||j.tag!==7?(j=hn(A,T.mode,q,se),j.return=T,j):(j=o(j,A),j.return=T,j)}function Y(T,j,A){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ao(""+j,T.mode,A),j.return=T,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case C:return A=Wr(j.type,j.key,j.props,null,T.mode,A),Zl(A,j),A.return=T,A;case z:return j=no(j,T.mode,A),j.return=T,j;case X:return j=bn(j),Y(T,j,A)}if(Ye(j)||ze(j))return j=hn(j,T.mode,A,null),j.return=T,j;if(typeof j.then=="function")return Y(T,rs(j),A);if(j.$$typeof===Z)return Y(T,ts(T,j),A);ss(T,j)}return null}function D(T,j,A,q){var se=j!==null?j.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return se!==null?null:v(T,j,""+A,q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case C:return A.key===se?_(T,j,A,q):null;case z:return A.key===se?O(T,j,A,q):null;case X:return A=bn(A),D(T,j,A,q)}if(Ye(A)||ze(A))return se!==null?null:H(T,j,A,q,null);if(typeof A.then=="function")return D(T,j,rs(A),q);if(A.$$typeof===Z)return D(T,j,ts(T,A),q);ss(T,A)}return null}function M(T,j,A,q,se){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return T=T.get(A)||null,v(j,T,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case C:return T=T.get(q.key===null?A:q.key)||null,_(j,T,q,se);case z:return T=T.get(q.key===null?A:q.key)||null,O(j,T,q,se);case X:return q=bn(q),M(T,j,A,q,se)}if(Ye(q)||ze(q))return T=T.get(A)||null,H(j,T,q,se,null);if(typeof q.then=="function")return M(T,j,A,rs(q),se);if(q.$$typeof===Z)return M(T,j,A,ts(j,q),se);ss(j,q)}return null}function $(T,j,A,q){for(var se=null,Ee=null,ne=j,me=j=0,xe=null;ne!==null&&me<A.length;me++){ne.index>me?(xe=ne,ne=null):xe=ne.sibling;var _e=D(T,ne,A[me],q);if(_e===null){ne===null&&(ne=xe);break}e&&ne&&_e.alternate===null&&t(T,ne),j=c(_e,j,me),Ee===null?se=_e:Ee.sibling=_e,Ee=_e,ne=xe}if(me===A.length)return a(T,ne),Se&&ia(T,me),se;if(ne===null){for(;me<A.length;me++)ne=Y(T,A[me],q),ne!==null&&(j=c(ne,j,me),Ee===null?se=ne:Ee.sibling=ne,Ee=ne);return Se&&ia(T,me),se}for(ne=l(ne);me<A.length;me++)xe=M(ne,T,me,A[me],q),xe!==null&&(e&&xe.alternate!==null&&ne.delete(xe.key===null?me:xe.key),j=c(xe,j,me),Ee===null?se=xe:Ee.sibling=xe,Ee=xe);return e&&ne.forEach(function(Fa){return t(T,Fa)}),Se&&ia(T,me),se}function ie(T,j,A,q){if(A==null)throw Error(s(151));for(var se=null,Ee=null,ne=j,me=j=0,xe=null,_e=A.next();ne!==null&&!_e.done;me++,_e=A.next()){ne.index>me?(xe=ne,ne=null):xe=ne.sibling;var Fa=D(T,ne,_e.value,q);if(Fa===null){ne===null&&(ne=xe);break}e&&ne&&Fa.alternate===null&&t(T,ne),j=c(Fa,j,me),Ee===null?se=Fa:Ee.sibling=Fa,Ee=Fa,ne=xe}if(_e.done)return a(T,ne),Se&&ia(T,me),se;if(ne===null){for(;!_e.done;me++,_e=A.next())_e=Y(T,_e.value,q),_e!==null&&(j=c(_e,j,me),Ee===null?se=_e:Ee.sibling=_e,Ee=_e);return Se&&ia(T,me),se}for(ne=l(ne);!_e.done;me++,_e=A.next())_e=M(ne,T,me,_e.value,q),_e!==null&&(e&&_e.alternate!==null&&ne.delete(_e.key===null?me:_e.key),j=c(_e,j,me),Ee===null?se=_e:Ee.sibling=_e,Ee=_e);return e&&ne.forEach(function(Nb){return t(T,Nb)}),Se&&ia(T,me),se}function Ae(T,j,A,q){if(typeof A=="object"&&A!==null&&A.type===k&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case C:e:{for(var se=A.key;j!==null;){if(j.key===se){if(se=A.type,se===k){if(j.tag===7){a(T,j.sibling),q=o(j,A.props.children),q.return=T,T=q;break e}}else if(j.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===X&&bn(se)===j.type){a(T,j.sibling),q=o(j,A.props),Zl(q,A),q.return=T,T=q;break e}a(T,j);break}else t(T,j);j=j.sibling}A.type===k?(q=hn(A.props.children,T.mode,q,A.key),q.return=T,T=q):(q=Wr(A.type,A.key,A.props,null,T.mode,q),Zl(q,A),q.return=T,T=q)}return m(T);case z:e:{for(se=A.key;j!==null;){if(j.key===se)if(j.tag===4&&j.stateNode.containerInfo===A.containerInfo&&j.stateNode.implementation===A.implementation){a(T,j.sibling),q=o(j,A.children||[]),q.return=T,T=q;break e}else{a(T,j);break}else t(T,j);j=j.sibling}q=no(A,T.mode,q),q.return=T,T=q}return m(T);case X:return A=bn(A),Ae(T,j,A,q)}if(Ye(A))return $(T,j,A,q);if(ze(A)){if(se=ze(A),typeof se!="function")throw Error(s(150));return A=se.call(A),ie(T,j,A,q)}if(typeof A.then=="function")return Ae(T,j,rs(A),q);if(A.$$typeof===Z)return Ae(T,j,ts(T,A),q);ss(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,j!==null&&j.tag===6?(a(T,j.sibling),q=o(j,A),q.return=T,T=q):(a(T,j),q=ao(A,T.mode,q),q.return=T,T=q),m(T)):a(T,j)}return function(T,j,A,q){try{Ql=0;var se=Ae(T,j,A,q);return tl=null,se}catch(ne){if(ne===el||ne===ns)throw ne;var Ee=Ct(29,ne,null,T.mode);return Ee.lanes=q,Ee.return=T,Ee}finally{}}}var Sn=Zd(!0),Jd=Zd(!1),za=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Fr(e),Dd(e,null,a),t}return Pr(e,l,t,a),Fr(e)}function Jl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,qu(e,a)}}function yo(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var bo=!1;function Pl(){if(bo){var e=$n;if(e!==null)throw e}}function Fl(e,t,a,l){bo=!1;var o=e.updateQueue;za=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var _=v,O=_.next;_.next=null,m===null?c=O:m.next=O,m=_;var H=e.alternate;H!==null&&(H=H.updateQueue,v=H.lastBaseUpdate,v!==m&&(v===null?H.firstBaseUpdate=O:v.next=O,H.lastBaseUpdate=_))}if(c!==null){var Y=o.baseState;m=0,H=O=_=null,v=c;do{var D=v.lane&-536870913,M=D!==v.lane;if(M?(be&D)===D:(l&D)===D){D!==0&&D===Wn&&(bo=!0),H!==null&&(H=H.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var $=e,ie=v;D=t;var Ae=a;switch(ie.tag){case 1:if($=ie.payload,typeof $=="function"){Y=$.call(Ae,Y,D);break e}Y=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ie.payload,D=typeof $=="function"?$.call(Ae,Y,D):$,D==null)break e;Y=x({},Y,D);break e;case 2:za=!0}}D=v.callback,D!==null&&(e.flags|=64,M&&(e.flags|=8192),M=o.callbacks,M===null?o.callbacks=[D]:M.push(D))}else M={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},H===null?(O=H=M,_=Y):H=H.next=M,m|=D;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;M=v,v=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);H===null&&(_=Y),o.baseState=_,o.firstBaseUpdate=O,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),Ga|=m,e.lanes=m,e.memoizedState=Y}}function Pd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Fd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Pd(a[e],t)}var al=N(null),is=N(0);function Wd(e,t){e=ya,J(is,e),J(al,t),ya=e|t.baseLanes}function xo(){J(is,ya),J(al,al.current)}function So(){ya=is.current,B(al),B(is)}var Nt=N(null),qt=null;function La(e){var t=e.alternate;J(Ve,Ve.current&1),J(Nt,e),qt===null&&(t===null||al.current!==null||t.memoizedState!==null)&&(qt=e)}function Eo(e){J(Ve,Ve.current),J(Nt,e),qt===null&&(qt=e)}function $d(e){e.tag===22?(J(Ve,Ve.current),J(Nt,e),qt===null&&(qt=e)):Ba()}function Ba(){J(Ve,Ve.current),J(Nt,Nt.current)}function jt(e){B(Nt),qt===e&&(qt=null),B(Ve)}var Ve=N(0);function os(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||wc(a)||Ac(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=0,fe=null,Te=null,Ie=null,cs=!1,nl=!1,En=!1,us=0,Wl=0,ll=null,py=0;function qe(){throw Error(s(321))}function _o(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_t(e[a],t[a]))return!1;return!0}function Co(e,t,a,l,o,c){return ua=c,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Lf:Ho,En=!1,c=a(l,o),En=!1,nl&&(c=tf(t,a,l,o)),ef(e),c}function ef(e){U.H=tr;var t=Te!==null&&Te.next!==null;if(ua=0,Ie=Te=fe=null,cs=!1,Wl=0,ll=null,t)throw Error(s(300));e===null||Qe||(e=e.dependencies,e!==null&&es(e)&&(Qe=!0))}function tf(e,t,a,l){fe=e;var o=0;do{if(nl&&(ll=null),Wl=0,nl=!1,25<=o)throw Error(s(301));if(o+=1,Ie=Te=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Bf,c=t(a,l)}while(nl);return c}function vy(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?$l(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(fe.flags|=1024),t}function No(){var e=us!==0;return us=0,e}function jo(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function To(e){if(cs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cs=!1}ua=0,Ie=Te=fe=null,nl=!1,Wl=us=0,ll=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?fe.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Ke(){if(Te===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ie===null?fe.memoizedState:Ie.next;if(t!==null)Ie=t,Te=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ie===null?fe.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function ds(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $l(e){var t=Wl;return Wl+=1,ll===null&&(ll=[]),e=Xd(ll,e,t),t=fe,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Lf:Ho),e}function fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $l(e);if(e.$$typeof===Z)return at(e)}throw Error(s(438,String(e)))}function wo(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=fe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ds(),fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=he;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=Ke();return Ao(t,Te,e)}function Ao(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=m=null,_=null,O=t,H=!1;do{var Y=O.lane&-536870913;if(Y!==O.lane?(be&Y)===Y:(ua&Y)===Y){var D=O.revertLane;if(D===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Y===Wn&&(H=!0);else if((ua&D)===D){O=O.next,D===Wn&&(H=!0);continue}else Y={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(v=_=Y,m=c):_=_.next=Y,fe.lanes|=D,Ga|=D;Y=O.action,En&&a(c,Y),c=O.hasEagerState?O.eagerState:a(c,Y)}else D={lane:Y,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(v=_=D,m=c):_=_.next=D,fe.lanes|=Y,Ga|=Y;O=O.next}while(O!==null&&O!==t);if(_===null?m=c:_.next=v,!_t(c,e.memoizedState)&&(Qe=!0,H&&(a=$n,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=_,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Oo(e){var t=Ke(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);_t(c,t.memoizedState)||(Qe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function af(e,t,a){var l=fe,o=Ke(),c=Se;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var m=!_t((Te||o).memoizedState,a);if(m&&(o.memoizedState=a,Qe=!0),o=o.queue,Ro(rf.bind(null,l,o,e),[e]),o.getSnapshot!==t||m||Ie!==null&&Ie.memoizedState.tag&1){if(l.flags|=2048,rl(9,{destroy:void 0},lf.bind(null,l,o,a,t),null),Oe===null)throw Error(s(349));c||(ua&127)!==0||nf(l,t,a)}return a}function nf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=ds(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lf(e,t,a,l){t.value=a,t.getSnapshot=l,sf(t)&&of(e)}function rf(e,t,a){return a(function(){sf(t)&&of(e)})}function sf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_t(e,a)}catch{return!0}}function of(e){var t=mn(e,2);t!==null&>(t,e,2)}function ko(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),En){Ta(!0);try{a()}finally{Ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function cf(e,t,a,l){return e.baseState=a,Ao(e,Te,typeof l=="function"?l:da)}function gy(e,t,a,l,o){if(vs(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};U.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,uf(t,c)):(c.next=a.next,t.pending=a.next=c)}}function uf(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=U.T,m={};U.T=m;try{var v=a(o,l),_=U.S;_!==null&&_(m,v),df(e,t,v)}catch(O){Do(e,t,O)}finally{c!==null&&m.types!==null&&(c.types=m.types),U.T=c}}else try{c=a(o,l),df(e,t,c)}catch(O){Do(e,t,O)}}function df(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){ff(e,t,l)},function(l){return Do(e,t,l)}):ff(e,t,a)}function ff(e,t,a){t.status="fulfilled",t.value=a,mf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,uf(e,a)))}function Do(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,mf(t),t=t.next;while(t!==l)}e.action=null}function mf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hf(e,t){return t}function pf(e,t){if(Se){var a=Oe.formState;if(a!==null){e:{var l=fe;if(Se){if(De){t:{for(var o=De,c=Ht;o.nodeType!==8;){if(!c){o=null;break t}if(o=Gt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){De=Gt(o.nextSibling),l=o.data==="F!";break e}}Da(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hf,lastRenderedState:t},a.queue=l,a=zf.bind(null,fe,l),l.dispatch=a,l=ko(!1),c=Bo.bind(null,fe,!1,l.queue),l=ct(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=gy.bind(null,fe,o,c,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function vf(e){var t=Ke();return gf(t,Te,e)}function gf(e,t,a){if(t=Ao(e,t,hf)[0],e=ms(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=$l(t)}catch(m){throw m===el?ns:m}else l=t;t=Ke();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,rl(9,{destroy:void 0},yy.bind(null,o,a),null)),[l,c,e]}function yy(e,t){e.action=t}function yf(e){var t=Ke(),a=Te;if(a!==null)return gf(t,a,e);Ke(),t=t.memoizedState,a=Ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function rl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=fe.updateQueue,t===null&&(t=ds(),fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function bf(){return Ke().memoizedState}function hs(e,t,a,l){var o=ct();fe.flags|=e,o.memoizedState=rl(1|t,{destroy:void 0},a,l===void 0?null:l)}function ps(e,t,a,l){var o=Ke();l=l===void 0?null:l;var c=o.memoizedState.inst;Te!==null&&l!==null&&_o(l,Te.memoizedState.deps)?o.memoizedState=rl(t,c,a,l):(fe.flags|=e,o.memoizedState=rl(1|t,c,a,l))}function xf(e,t){hs(8390656,8,e,t)}function Ro(e,t){ps(2048,8,e,t)}function by(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=ds(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Sf(e){var t=Ke().memoizedState;return by({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ef(e,t){return ps(4,2,e,t)}function _f(e,t){return ps(4,4,e,t)}function Cf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nf(e,t,a){a=a!=null?a.concat([e]):null,ps(4,4,Cf.bind(null,t,e),a)}function zo(){}function jf(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&_o(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Tf(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&_o(t,l[1]))return l[0];if(l=e(),En){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l}function Mo(e,t,a){return a===void 0||(ua&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=wm(),fe.lanes|=e,Ga|=e,a)}function wf(e,t,a,l){return _t(a,t)?a:al.current!==null?(e=Mo(e,a,l),_t(e,t)||(Qe=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(be&261930)===0?(Qe=!0,e.memoizedState=a):(e=wm(),fe.lanes|=e,Ga|=e,t)}function Af(e,t,a,l,o){var c=I.p;I.p=c!==0&&8>c?c:8;var m=U.T,v={};U.T=v,Bo(e,!1,t,a);try{var _=o(),O=U.S;if(O!==null&&O(v,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var H=hy(_,l);er(e,t,H,At(e))}else er(e,t,l,At(e))}catch(Y){er(e,t,{then:function(){},status:"rejected",reason:Y},At())}finally{I.p=c,m!==null&&v.types!==null&&(m.types=v.types),U.T=m}}function xy(){}function Uo(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=Of(e).queue;Af(e,o,t,F,a===null?xy:function(){return kf(e),a(l)})}function Of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kf(e){var t=Of(e);t.next===null&&(t=e.alternate.memoizedState),er(e,t.next.queue,{},At())}function Lo(){return at(gr)}function Df(){return Ke().memoizedState}function Rf(){return Ke().memoizedState}function Sy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=At();e=Ma(a);var l=Ua(t,e,a);l!==null&&(gt(l,t,a),Jl(l,t,a)),t={cache:fo()},e.payload=t;return}t=t.return}}function Ey(e,t,a){var l=At();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vs(e)?Mf(t,a):(a=eo(e,t,a,l),a!==null&&(gt(a,e,l),Uf(a,t,l)))}function zf(e,t,a){var l=At();er(e,t,a,l)}function er(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(vs(e))Mf(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,v=c(m,a);if(o.hasEagerState=!0,o.eagerState=v,_t(v,m))return Pr(e,t,o,0),Oe===null&&Jr(),!1}catch{}finally{}if(a=eo(e,t,o,l),a!==null)return gt(a,e,l),Uf(a,t,l),!0}return!1}function Bo(e,t,a,l){if(l={lane:2,revertLane:vc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vs(e)){if(t)throw Error(s(479))}else t=eo(e,a,l,2),t!==null&>(t,e,2)}function vs(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Mf(e,t){nl=cs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Uf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,qu(e,a)}}var tr={readContext:at,use:fs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};tr.useEffectEvent=qe;var Lf={readContext:at,use:fs,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:xf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,hs(4194308,4,Cf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return hs(4194308,4,e,t)},useInsertionEffect:function(e,t){hs(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(En){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var o=a(t);if(En){Ta(!0);try{a(t)}finally{Ta(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Ey.bind(null,fe,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=ko(e);var t=e.queue,a=zf.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:zo,useDeferredValue:function(e,t){var a=ct();return Mo(a,e,t)},useTransition:function(){var e=ko(!1);return e=Af.bind(null,fe,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=fe,o=ct();if(Se){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Oe===null)throw Error(s(349));(be&127)!==0||nf(l,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,xf(rf.bind(null,l,c,e),[e]),l.flags|=2048,rl(9,{destroy:void 0},lf.bind(null,l,c,a,t),null),a},useId:function(){var e=ct(),t=Oe.identifierPrefix;if(Se){var a=Jt,l=Zt;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=us++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=py++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lo,useFormState:pf,useActionState:pf,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Bo.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:wo,useCacheRefresh:function(){return ct().memoizedState=Sy.bind(null,fe)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Ho={readContext:at,use:fs,useCallback:jf,useContext:at,useEffect:Ro,useImperativeHandle:Nf,useInsertionEffect:Ef,useLayoutEffect:_f,useMemo:Tf,useReducer:ms,useRef:bf,useState:function(){return ms(da)},useDebugValue:zo,useDeferredValue:function(e,t){var a=Ke();return wf(a,Te.memoizedState,e,t)},useTransition:function(){var e=ms(da)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:$l(e),t]},useSyncExternalStore:af,useId:Df,useHostTransitionStatus:Lo,useFormState:vf,useActionState:vf,useOptimistic:function(e,t){var a=Ke();return cf(a,Te,e,t)},useMemoCache:wo,useCacheRefresh:Rf};Ho.useEffectEvent=Sf;var Bf={readContext:at,use:fs,useCallback:jf,useContext:at,useEffect:Ro,useImperativeHandle:Nf,useInsertionEffect:Ef,useLayoutEffect:_f,useMemo:Tf,useReducer:Oo,useRef:bf,useState:function(){return Oo(da)},useDebugValue:zo,useDeferredValue:function(e,t){var a=Ke();return Te===null?Mo(a,e,t):wf(a,Te.memoizedState,e,t)},useTransition:function(){var e=Oo(da)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:$l(e),t]},useSyncExternalStore:af,useId:Df,useHostTransitionStatus:Lo,useFormState:yf,useActionState:yf,useOptimistic:function(e,t){var a=Ke();return Te!==null?cf(a,Te,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:wo,useCacheRefresh:Rf};Bf.useEffectEvent=Sf;function qo(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Go={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=At(),o=Ma(l);o.payload=t,a!=null&&(o.callback=a),t=Ua(e,o,l),t!==null&&(gt(t,e,l),Jl(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=At(),o=Ma(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Ua(e,o,l),t!==null&&(gt(t,e,l),Jl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=At(),l=Ma(a);l.tag=2,t!=null&&(l.callback=t),t=Ua(e,l,a),t!==null&&(gt(t,e,a),Jl(t,e,a))}};function Hf(e,t,a,l,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,m):t.prototype&&t.prototype.isPureReactComponent?!Gl(a,l)||!Gl(o,c):!0}function qf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Go.enqueueReplaceState(t,t.state,null)}function _n(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Gf(e){Zr(e)}function Yf(e){console.error(e)}function Vf(e){Zr(e)}function gs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Kf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yo(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){gs(e,t)},a}function Xf(e){return e=Ma(e),e.tag=3,e}function If(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){Kf(t,a,l)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Kf(t,a,l),typeof o!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function _y(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Fn(t,a,o,!0),a=Nt.current,a!==null){switch(a.tag){case 31:case 13:return qt===null?As():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===ls?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),mc(e,l,o)),!1;case 22:return a.flags|=65536,l===ls?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),mc(e,l,o)),!1}throw Error(s(435,a.tag))}return mc(e,l,o),As(),!1}if(Se)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==so&&(e=Error(s(422),{cause:l}),Kl(Ut(e,a)))):(l!==so&&(t=Error(s(423),{cause:l}),Kl(Ut(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Ut(l,a),o=Yo(e.stateNode,l,o),yo(e,o),Ge!==4&&(Ge=2)),!1;var c=Error(s(520),{cause:l});if(c=Ut(c,a),cr===null?cr=[c]:cr.push(c),Ge!==4&&(Ge=2),t===null)return!0;l=Ut(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Yo(a.stateNode,l,e),yo(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ya===null||!Ya.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Xf(o),If(o,e,a,l),yo(a,o),!1}a=a.return}while(a!==null);return!1}var Vo=Error(s(461)),Qe=!1;function nt(e,t,a,l){t.child=e===null?Jd(t,null,a,l):Sn(t,e.child,a,l)}function Qf(e,t,a,l,o){a=a.render;var c=t.ref;if("ref"in l){var m={};for(var v in l)v!=="ref"&&(m[v]=l[v])}else m=l;return gn(t),l=Co(e,t,a,m,c,o),v=No(),e!==null&&!Qe?(jo(e,t,o),fa(e,t,o)):(Se&&v&&lo(t),t.flags|=1,nt(e,t,l,o),t.child)}function Zf(e,t,a,l,o){if(e===null){var c=a.type;return typeof c=="function"&&!to(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Jf(e,t,c,l,o)):(e=Wr(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Fo(e,o)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Gl,a(m,l)&&e.ref===t.ref)return fa(e,t,o)}return t.flags|=1,e=sa(c,l),e.ref=t.ref,e.return=t,t.child=e}function Jf(e,t,a,l,o){if(e!==null){var c=e.memoizedProps;if(Gl(c,l)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=l=c,Fo(e,o))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,fa(e,t,o)}return Ko(e,t,a,l,o)}function Pf(e,t,a,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return Ff(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&as(t,c!==null?c.cachePool:null),c!==null?Wd(t,c):xo(),$d(t);else return l=t.lanes=536870912,Ff(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(as(t,c.cachePool),Wd(t,c),Ba(),t.memoizedState=null):(e!==null&&as(t,null),xo(),Ba());return nt(e,t,o,a),t.child}function ar(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ff(e,t,a,l,o){var c=ho();return c=c===null?null:{parent:Xe._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&as(t,null),xo(),$d(t),e!==null&&Fn(e,t,l,!0),t.childLanes=o,null}function ys(e,t){return t=xs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wf(e,t,a){return Sn(t,e.child,null,a),e=ys(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Cy(e,t,a){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(l.mode==="hidden")return e=ys(t,l),t.lanes=536870912,ar(null,e);if(Eo(t),(e=De)?(e=uh(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Zt,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},a=zd(e),a.return=t,t.child=a,tt=t,De=null)):e=null,e===null)throw Da(t);return t.lanes=536870912,null}return ys(t,l)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(Eo(t),o)if(t.flags&256)t.flags&=-257,t=Wf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Qe||Fn(e,t,a,!1),o=(a&e.childLanes)!==0,Qe||o){if(l=Oe,l!==null&&(m=Gu(l,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,mn(e,m),gt(l,e,m),Vo;As(),t=Wf(e,t,a)}else e=c.treeContext,De=Gt(m.nextSibling),tt=t,Se=!0,ka=null,Ht=!1,e!==null&&Ld(t,e),t=ys(t,l),t.flags|=4096;return t}return e=sa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ko(e,t,a,l,o){return gn(t),a=Co(e,t,a,l,void 0,o),l=No(),e!==null&&!Qe?(jo(e,t,o),fa(e,t,o)):(Se&&l&&lo(t),t.flags|=1,nt(e,t,a,o),t.child)}function $f(e,t,a,l,o,c){return gn(t),t.updateQueue=null,a=tf(t,l,a,o),ef(e),l=No(),e!==null&&!Qe?(jo(e,t,c),fa(e,t,c)):(Se&&l&&lo(t),t.flags|=1,nt(e,t,a,c),t.child)}function em(e,t,a,l,o){if(gn(t),t.stateNode===null){var c=Qn,m=a.contextType;typeof m=="object"&&m!==null&&(c=at(m)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Go,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},vo(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?at(m):Qn,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(qo(t,a,m,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Go.enqueueReplaceState(c,c.state,null),Fl(t,l,c,o),Pl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,_=_n(a,v);c.props=_;var O=c.context,H=a.contextType;m=Qn,typeof H=="object"&&H!==null&&(m=at(H));var Y=a.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||O!==m)&&qf(t,c,l,m),za=!1;var D=t.memoizedState;c.state=D,Fl(t,l,c,o),Pl(),O=t.memoizedState,v||D!==O||za?(typeof Y=="function"&&(qo(t,a,Y,l),O=t.memoizedState),(_=za||Hf(t,a,_,l,D,O,m))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),c.props=l,c.state=O,c.context=m,l=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,go(e,t),m=t.memoizedProps,H=_n(a,m),c.props=H,Y=t.pendingProps,D=c.context,O=a.contextType,_=Qn,typeof O=="object"&&O!==null&&(_=at(O)),v=a.getDerivedStateFromProps,(O=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==Y||D!==_)&&qf(t,c,l,_),za=!1,D=t.memoizedState,c.state=D,Fl(t,l,c,o),Pl();var M=t.memoizedState;m!==Y||D!==M||za||e!==null&&e.dependencies!==null&&es(e.dependencies)?(typeof v=="function"&&(qo(t,a,v,l),M=t.memoizedState),(H=za||Hf(t,a,H,l,D,M,_)||e!==null&&e.dependencies!==null&&es(e.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,M,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,M,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=M),c.props=l,c.state=M,c.context=_,l=H):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,bs(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Sn(t,e.child,null,o),t.child=Sn(t,null,a,o)):nt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=fa(e,t,o),e}function tm(e,t,a,l){return pn(),t.flags|=256,nt(e,t,a,l),t.child}var Xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Io(e){return{baseLanes:e,cachePool:Vd()}}function Qo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=wt),e}function am(e,t,a){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(o?La(t):Ba(),(e=De)?(e=uh(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Zt,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},a=zd(e),a.return=t,t.child=a,tt=t,De=null)):e=null,e===null)throw Da(t);return Ac(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,o?(Ba(),o=t.mode,v=xs({mode:"hidden",children:v},o),l=hn(l,o,a,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Io(a),l.childLanes=Qo(e,m,a),t.memoizedState=Xo,ar(null,l)):(La(t),Zo(t,v))}var _=e.memoizedState;if(_!==null&&(v=_.dehydrated,v!==null)){if(c)t.flags&256?(La(t),t.flags&=-257,t=Jo(e,t,a)):t.memoizedState!==null?(Ba(),t.child=e.child,t.flags|=128,t=null):(Ba(),v=l.fallback,o=t.mode,l=xs({mode:"visible",children:l.children},o),v=hn(v,o,a,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,Sn(t,e.child,null,a),l=t.child,l.memoizedState=Io(a),l.childLanes=Qo(e,m,a),t.memoizedState=Xo,t=ar(null,l));else if(La(t),Ac(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var O=m.dgst;m=O,l=Error(s(419)),l.stack="",l.digest=m,Kl({value:l,source:null,stack:null}),t=Jo(e,t,a)}else if(Qe||Fn(e,t,a,!1),m=(a&e.childLanes)!==0,Qe||m){if(m=Oe,m!==null&&(l=Gu(m,a),l!==0&&l!==_.retryLane))throw _.retryLane=l,mn(e,l),gt(m,e,l),Vo;wc(v)||As(),t=Jo(e,t,a)}else wc(v)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,De=Gt(v.nextSibling),tt=t,Se=!0,ka=null,Ht=!1,e!==null&&Ld(t,e),t=Zo(t,l.children),t.flags|=4096);return t}return o?(Ba(),v=l.fallback,o=t.mode,_=e.child,O=_.sibling,l=sa(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,O!==null?v=sa(O,v):(v=hn(v,o,a,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,ar(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Io(a):(o=v.cachePool,o!==null?(_=Xe._currentValue,o=o.parent!==_?{parent:_,pool:_}:o):o=Vd(),v={baseLanes:v.baseLanes|a,cachePool:o}),l.memoizedState=v,l.childLanes=Qo(e,m,a),t.memoizedState=Xo,ar(e.child,l)):(La(t),a=e.child,e=a.sibling,a=sa(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Zo(e,t){return t=xs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xs(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Jo(e,t,a){return Sn(t,e.child,null,a),e=Zo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nm(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),co(e.return,t,a)}function Po(e,t,a,l,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=a,m.tailMode=o,m.treeForkCount=c)}function lm(e,t,a){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var m=Ve.current,v=(m&2)!==0;if(v?(m=m&1|2,t.flags|=128):m&=1,J(Ve,m),nt(e,t,l,a),l=Se?Vl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nm(e,a,t);else if(e.tag===19)nm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&os(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Po(t,!1,o,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&os(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Po(t,!0,a,null,c,l);break;case"together":Po(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ga|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Fn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Fo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&es(e)))}function Ny(e,t,a){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Ra(t,Xe,e.memoizedState.cache),pn();break;case 27:case 5:Na(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Ra(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(La(t),t.flags|=128,null):(a&t.child.childLanes)!==0?am(e,t,a):(La(t),e=fa(e,t,a),e!==null?e.sibling:null);La(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Fn(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return lm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(Ve,Ve.current),l)break;return null;case 22:return t.lanes=0,Pf(e,t,a,t.pendingProps);case 24:Ra(t,Xe,e.memoizedState.cache)}return fa(e,t,a)}function rm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Fo(e,a)&&(t.flags&128)===0)return Qe=!1,Ny(e,t,a);Qe=(e.flags&131072)!==0}else Qe=!1,Se&&(t.flags&1048576)!==0&&Ud(t,Vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bn(t.elementType),t.type=e,typeof e=="function")to(e)?(l=_n(e,l),t.tag=1,t=em(null,t,e,l,a)):(t.tag=0,t=Ko(null,t,e,l,a));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=Qf(null,t,e,l,a);break e}else if(o===G){t.tag=14,t=Zf(null,t,e,l,a);break e}}throw t=ut(e)||e,Error(s(306,t,""))}}return t;case 0:return Ko(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=_n(l,t.pendingProps),em(e,t,l,o,a);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,go(e,t),Fl(t,l,null,a);var m=t.memoizedState;if(l=m.cache,Ra(t,Xe,l),l!==c.cache&&uo(t,[Xe],a,!0),Pl(),l=m.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=tm(e,t,l,a);break e}else if(l!==o){o=Ut(Error(s(424)),t),Kl(o),t=tm(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=Gt(e.firstChild),tt=t,Se=!0,ka=null,Ht=!0,a=Jd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(pn(),l===o){t=fa(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return bs(e,t),e===null?(a=vh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Se||(a=t.type,e=t.pendingProps,l=Us(re.current).createElement(a),l[et]=t,l[dt]=e,lt(l,a,e),We(l),t.stateNode=l):t.memoizedState=vh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Na(t),e===null&&Se&&(l=t.stateNode=mh(t.type,t.pendingProps,re.current),tt=t,Ht=!0,o=De,Ia(t.type)?(Oc=o,De=Gt(l.firstChild)):De=o),nt(e,t,t.pendingProps.children,a),bs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((o=l=De)&&(l=tb(l,t.type,t.pendingProps,Ht),l!==null?(t.stateNode=l,tt=t,De=Gt(l.firstChild),Ht=!1,o=!0):o=!1),o||Da(t)),Na(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,l=c.children,Nc(o,c)?l=null:m!==null&&Nc(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=Co(e,t,vy,null,null,a),gr._currentValue=o),bs(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&Se&&((e=a=De)&&(a=ab(a,t.pendingProps,Ht),a!==null?(t.stateNode=a,tt=t,De=null,e=!0):e=!1),e||Da(t)),null;case 13:return am(e,t,a);case 4:return Ue(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Sn(t,null,l,a):nt(e,t,l,a),t.child;case 11:return Qf(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ra(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,gn(t),o=at(o),l=l(o),t.flags|=1,nt(e,t,l,a),t.child;case 14:return Zf(e,t,t.type,t.pendingProps,a);case 15:return Jf(e,t,t.type,t.pendingProps,a);case 19:return lm(e,t,a);case 31:return Cy(e,t,a);case 22:return Pf(e,t,a,t.pendingProps);case 24:return gn(t),l=at(Xe),e===null?(o=ho(),o===null&&(o=Oe,c=fo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:l,cache:o},vo(t),Ra(t,Xe,o)):((e.lanes&a)!==0&&(go(e,t),Fl(t,null,null,a),Pl()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ra(t,Xe,l)):(l=c.cache,Ra(t,Xe,l),l!==o.cache&&uo(t,[Xe],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function Wo(e,t,a,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Dm())e.flags|=8192;else throw xn=ls,po}else e.flags&=-16777217}function sm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sh(t))if(Dm())e.flags|=8192;else throw xn=ls,po}function Ss(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bu():536870912,e.lanes|=t,cl|=t)}function nr(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function jy(e,t,a){var l=t.pendingProps;switch(ro(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(Xe),ce(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Pn(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,io())),Re(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(ma(t),c!==null?(Re(t),sm(t,c)):(Re(t),Wo(t,o,null,l,a))):c?c!==e.memoizedState?(ma(t),Re(t),sm(t,c)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),Re(t),Wo(t,o,e,l,a)),null;case 27:if(aa(t),a=re.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Re(t),null}e=P.current,Pn(t)?Bd(t):(e=mh(o,l,a),t.stateNode=e,ma(t))}return Re(t),null;case 5:if(aa(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Re(t),null}if(c=P.current,Pn(t))Bd(t);else{var m=Us(re.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?m.createElement(o,{is:l.is}):m.createElement(o)}}c[et]=t,c[dt]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(lt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return Re(t),Wo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=re.current,Pn(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=tt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||ah(e.nodeValue,a)),e||Da(t,!0)}else e=Us(e).createTextNode(l),e[et]=t,t.stateNode=e}return Re(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Pn(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[et]=t}else pn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else a=io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Re(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Pn(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[et]=t}else pn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),o=!1}else o=io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ss(t,t.updateQueue),Re(t),null);case 4:return ce(),e===null&&xc(t.stateNode.containerInfo),Re(t),null;case 10:return ca(t.type),Re(t),null;case 19:if(B(Ve),l=t.memoizedState,l===null)return Re(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)nr(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=os(e),c!==null){for(t.flags|=128,nr(l,!1),e=c.updateQueue,t.updateQueue=e,Ss(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Rd(a,e),a=a.sibling;return J(Ve,Ve.current&1|2),Se&&ia(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>js&&(t.flags|=128,o=!0,nr(l,!1),t.lanes=4194304)}else{if(!o)if(e=os(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ss(t,e),nr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Se)return Re(t),null}else 2*xt()-l.renderingStartTime>js&&a!==536870912&&(t.flags|=128,o=!0,nr(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,a=Ve.current,J(Ve,o?a&1|2:a&1),Se&&ia(t,l.treeForkCount),e):(Re(t),null);case 22:case 23:return jt(t),So(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),a=t.updateQueue,a!==null&&Ss(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&B(yn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca(Xe),Re(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ty(e,t){switch(ro(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(Xe),ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return aa(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(s(340));pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ve),null;case 4:return ce(),null;case 10:return ca(t.type),null;case 22:case 23:return jt(t),So(),e!==null&&B(yn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(Xe),null;case 25:return null;default:return null}}function im(e,t){switch(ro(t),t.tag){case 3:ca(Xe),ce();break;case 26:case 27:case 5:aa(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:B(Ve);break;case 10:ca(t.type);break;case 22:case 23:jt(t),So(),e!==null&&B(yn);break;case 24:ca(Xe)}}function lr(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var c=a.create,m=a.inst;l=c(),m.destroy=l}a=a.next}while(a!==o)}}catch(v){je(t,t.return,v)}}function Ha(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var m=l.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,o=t;var _=a,O=v;try{O()}catch(H){je(o,_,H)}}}l=l.next}while(l!==c)}}catch(H){je(t,t.return,H)}}function om(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Fd(t,a)}catch(l){je(e,e.return,l)}}}function cm(e,t,a){a.props=_n(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function rr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){je(e,t,o)}}function Pt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){je(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){je(e,t,o)}else a.current=null}function um(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){je(e,e.return,o)}}function $o(e,t,a){try{var l=e.stateNode;Jy(l,e.type,a,t),l[dt]=t}catch(o){je(e,e.return,o)}}function dm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ia(e.type)||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ia(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=la));else if(l!==4&&(l===27&&Ia(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(tc(e,t,a),e=e.sibling;e!==null;)tc(e,t,a),e=e.sibling}function Es(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ia(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Es(e,t,a),e=e.sibling;e!==null;)Es(e,t,a),e=e.sibling}function fm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);lt(t,l,a),t[et]=e,t[dt]=a}catch(c){je(e,e.return,c)}}var ha=!1,Ze=!1,ac=!1,mm=typeof WeakSet=="function"?WeakSet:Set,$e=null;function wy(e,t){if(e=e.containerInfo,_c=Vs,e=Cd(e),Zi(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,v=-1,_=-1,O=0,H=0,Y=e,D=null;t:for(;;){for(var M;Y!==a||o!==0&&Y.nodeType!==3||(v=m+o),Y!==c||l!==0&&Y.nodeType!==3||(_=m+l),Y.nodeType===3&&(m+=Y.nodeValue.length),(M=Y.firstChild)!==null;)D=Y,Y=M;for(;;){if(Y===e)break t;if(D===a&&++O===o&&(v=m),D===c&&++H===l&&(_=m),(M=Y.nextSibling)!==null)break;Y=D,D=Y.parentNode}Y=M}a=v===-1||_===-1?null:{start:v,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cc={focusedElem:e,selectionRange:a},Vs=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var $=_n(a.type,o);e=l.getSnapshotBeforeUpdate($,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){je(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Tc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function hm(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:va(e,a),l&4&&lr(5,a);break;case 1:if(va(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){je(a,a.return,m)}else{var o=_n(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){je(a,a.return,m)}}l&64&&om(a),l&512&&rr(a,a.return);break;case 3:if(va(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Fd(e,t)}catch(m){je(a,a.return,m)}}break;case 27:t===null&&l&4&&fm(a);case 26:case 5:va(e,a),t===null&&l&4&&um(a),l&512&&rr(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),l&4&&gm(e,a);break;case 13:va(e,a),l&4&&ym(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ly.bind(null,a),nb(e,a))));break;case 22:if(l=a.memoizedState!==null||ha,!l){t=t!==null&&t.memoizedState!==null||Ze,o=ha;var c=Ze;ha=l,(Ze=t)&&!c?ga(e,a,(a.subtreeFlags&8772)!==0):va(e,a),ha=o,Ze=c}break;case 30:break;default:va(e,a)}}function pm(e){var t=e.alternate;t!==null&&(e.alternate=null,pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ki(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,mt=!1;function pa(e,t,a){for(a=a.child;a!==null;)vm(e,t,a),a=a.sibling}function vm(e,t,a){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Al,a)}catch{}switch(a.tag){case 26:Ze||Pt(a,t),pa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ze||Pt(a,t);var l=Me,o=mt;Ia(a.type)&&(Me=a.stateNode,mt=!1),pa(e,t,a),hr(a.stateNode),Me=l,mt=o;break;case 5:Ze||Pt(a,t);case 6:if(l=Me,o=mt,Me=null,pa(e,t,a),Me=l,mt=o,Me!==null)if(mt)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(c){je(a,t,c)}else try{Me.removeChild(a.stateNode)}catch(c){je(a,t,c)}break;case 18:Me!==null&&(mt?(e=Me,oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),gl(e)):oh(Me,a.stateNode));break;case 4:l=Me,o=mt,Me=a.stateNode.containerInfo,mt=!0,pa(e,t,a),Me=l,mt=o;break;case 0:case 11:case 14:case 15:Ha(2,a,t),Ze||Ha(4,a,t),pa(e,t,a);break;case 1:Ze||(Pt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&cm(a,t,l)),pa(e,t,a);break;case 21:pa(e,t,a);break;case 22:Ze=(l=Ze)||a.memoizedState!==null,pa(e,t,a),Ze=l;break;default:pa(e,t,a)}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gl(e)}catch(a){je(t,t.return,a)}}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gl(e)}catch(a){je(t,t.return,a)}}function Ay(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mm),t;default:throw Error(s(435,e.tag))}}function _s(e,t){var a=Ay(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var o=By.bind(null,e,l);l.then(o,o)}})}function ht(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(Ia(v.type)){Me=v.stateNode,mt=!1;break e}break;case 5:Me=v.stateNode,mt=!1;break e;case 3:case 4:Me=v.stateNode.containerInfo,mt=!0;break e}v=v.return}if(Me===null)throw Error(s(160));vm(c,m,o),Me=null,mt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bm(t,e),t=t.sibling}var Kt=null;function bm(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),pt(e),l&4&&(Ha(3,e,e.return),lr(3,e),Ha(5,e,e.return));break;case 1:ht(t,e),pt(e),l&512&&(Ze||a===null||Pt(a,a.return)),l&64&&ha&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Kt;if(ht(t,e),pt(e),l&512&&(Ze||a===null||Pt(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Dl]||c[et]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),lt(c,l,a),c[et]=e,We(c),l=c;break e;case"link":var m=bh("link","href",o).get(l+(a.href||""));if(m){for(var v=0;v<m.length;v++)if(c=m[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(v,1);break t}}c=o.createElement(l),lt(c,l,a),o.head.appendChild(c);break;case"meta":if(m=bh("meta","content",o).get(l+(a.content||""))){for(v=0;v<m.length;v++)if(c=m[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(v,1);break t}}c=o.createElement(l),lt(c,l,a),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[et]=e,We(c),l=c}e.stateNode=l}else xh(o,e.type,e.stateNode);else e.stateNode=yh(o,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?xh(o,e.type,e.stateNode):yh(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&$o(e,e.memoizedProps,a.memoizedProps)}break;case 27:ht(t,e),pt(e),l&512&&(Ze||a===null||Pt(a,a.return)),a!==null&&l&4&&$o(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ht(t,e),pt(e),l&512&&(Ze||a===null||Pt(a,a.return)),e.flags&32){o=e.stateNode;try{qn(o,"")}catch($){je(e,e.return,$)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,$o(e,o,a!==null?a.memoizedProps:o)),l&1024&&(ac=!0);break;case 6:if(ht(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch($){je(e,e.return,$)}}break;case 3:if(Hs=null,o=Kt,Kt=Ls(t.containerInfo),ht(t,e),Kt=o,pt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{gl(t.containerInfo)}catch($){je(e,e.return,$)}ac&&(ac=!1,xm(e));break;case 4:l=Kt,Kt=Ls(e.stateNode.containerInfo),ht(t,e),pt(e),Kt=l;break;case 12:ht(t,e),pt(e);break;case 31:ht(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_s(e,l)));break;case 13:ht(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ns=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_s(e,l)));break;case 22:o=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,O=ha,H=Ze;if(ha=O||o,Ze=H||_,ht(t,e),Ze=H,ha=O,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||_||ha||Ze||Cn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){_=a=t;try{if(c=_.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=_.stateNode;var Y=_.memoizedProps.style,D=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch($){je(_,_.return,$)}}}else if(t.tag===6){if(a===null){_=t;try{_.stateNode.nodeValue=o?"":_.memoizedProps}catch($){je(_,_.return,$)}}}else if(t.tag===18){if(a===null){_=t;try{var M=_.stateNode;o?ch(M,!0):ch(_.stateNode,!1)}catch($){je(_,_.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,_s(e,a))));break;case 19:ht(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_s(e,l)));break;case 30:break;case 21:break;default:ht(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(dm(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=ec(e);Es(e,c,o);break;case 5:var m=a.stateNode;a.flags&32&&(qn(m,""),a.flags&=-33);var v=ec(e);Es(e,v,m);break;case 3:case 4:var _=a.stateNode.containerInfo,O=ec(e);tc(e,O,_);break;default:throw Error(s(161))}}catch(H){je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hm(e,t.alternate,t),t=t.sibling}function Cn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ha(4,t,t.return),Cn(t);break;case 1:Pt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&cm(t,t.return,a),Cn(t);break;case 27:hr(t.stateNode);case 26:case 5:Pt(t,t.return),Cn(t);break;case 22:t.memoizedState===null&&Cn(t);break;case 30:Cn(t);break;default:Cn(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:ga(o,c,a),lr(4,c);break;case 1:if(ga(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(O){je(l,l.return,O)}if(l=c,o=l.updateQueue,o!==null){var v=l.stateNode;try{var _=o.shared.hiddenCallbacks;if(_!==null)for(o.shared.hiddenCallbacks=null,o=0;o<_.length;o++)Pd(_[o],v)}catch(O){je(l,l.return,O)}}a&&m&64&&om(c),rr(c,c.return);break;case 27:fm(c);case 26:case 5:ga(o,c,a),a&&l===null&&m&4&&um(c),rr(c,c.return);break;case 12:ga(o,c,a);break;case 31:ga(o,c,a),a&&m&4&&gm(o,c);break;case 13:ga(o,c,a),a&&m&4&&ym(o,c);break;case 22:c.memoizedState===null&&ga(o,c,a),rr(c,c.return);break;case 30:break;default:ga(o,c,a)}t=t.sibling}}function nc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Xl(a))}function lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xl(e))}function Xt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sm(e,t,a,l),t=t.sibling}function Sm(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Xt(e,t,a,l),o&2048&&lr(9,t);break;case 1:Xt(e,t,a,l);break;case 3:Xt(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xl(e)));break;case 12:if(o&2048){Xt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,v=c.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){je(t,t.return,_)}}else Xt(e,t,a,l);break;case 31:Xt(e,t,a,l);break;case 13:Xt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?Xt(e,t,a,l):sr(e,t):c._visibility&2?Xt(e,t,a,l):(c._visibility|=2,sl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&nc(m,t);break;case 24:Xt(e,t,a,l),o&2048&&lc(t.alternate,t);break;default:Xt(e,t,a,l)}}function sl(e,t,a,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,v=a,_=l,O=m.flags;switch(m.tag){case 0:case 11:case 15:sl(c,m,v,_,o),lr(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?sl(c,m,v,_,o):sr(c,m):(H._visibility|=2,sl(c,m,v,_,o)),o&&O&2048&&nc(m.alternate,m);break;case 24:sl(c,m,v,_,o),o&&O&2048&&lc(m.alternate,m);break;default:sl(c,m,v,_,o)}t=t.sibling}}function sr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:sr(a,l),o&2048&&nc(l.alternate,l);break;case 24:sr(a,l),o&2048&&lc(l.alternate,l);break;default:sr(a,l)}t=t.sibling}}var ir=8192;function il(e,t,a){if(e.subtreeFlags&ir)for(e=e.child;e!==null;)Em(e,t,a),e=e.sibling}function Em(e,t,a){switch(e.tag){case 26:il(e,t,a),e.flags&ir&&e.memoizedState!==null&&pb(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:il(e,t,a);break;case 3:case 4:var l=Kt;Kt=Ls(e.stateNode.containerInfo),il(e,t,a),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ir,ir=16777216,il(e,t,a),ir=l):il(e,t,a));break;default:il(e,t,a)}}function _m(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Nm(l,e)}_m(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(e),e=e.sibling}function Cm(e){switch(e.tag){case 0:case 11:case 15:or(e),e.flags&2048&&Ha(9,e,e.return);break;case 3:or(e);break;case 12:or(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cs(e)):or(e);break;default:or(e)}}function Cs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Nm(l,e)}_m(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ha(8,t,t.return),Cs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Cs(t));break;default:Cs(t)}e=e.sibling}}function Nm(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Ha(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$e=l;else e:for(a=e;$e!==null;){l=$e;var o=l.sibling,c=l.return;if(pm(l),l===a){$e=null;break e}if(o!==null){o.return=c,$e=o;break e}$e=c}}}var Oy={getCacheForType:function(e){var t=at(Xe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Xe).controller.signal}},ky=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Oe=null,ge=null,be=0,Ne=0,Tt=null,qa=!1,ol=!1,rc=!1,ya=0,Ge=0,Ga=0,Nn=0,sc=0,wt=0,cl=0,cr=null,vt=null,ic=!1,Ns=0,jm=0,js=1/0,Ts=null,Ya=null,Je=0,Va=null,ul=null,ba=0,oc=0,cc=null,Tm=null,ur=0,uc=null;function At(){return(Ce&2)!==0&&be!==0?be&-be:U.T!==null?vc():Yu()}function wm(){if(wt===0)if((be&536870912)===0||Se){var e=Mr;Mr<<=1,(Mr&3932160)===0&&(Mr=262144),wt=e}else wt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),wt}function gt(e,t,a){(e===Oe&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(dl(e,0),Ka(e,be,wt,!1)),kl(e,a),((Ce&2)===0||e!==Oe)&&(e===Oe&&((Ce&2)===0&&(Nn|=a),Ge===4&&Ka(e,be,wt,!1)),Ft(e))}function Am(e,t,a){if((Ce&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ol(e,t),o=l?zy(e,t):fc(e,t,!0),c=l;do{if(o===0){ol&&!l&&Ka(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Dy(a)){o=fc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;o=cr;var _=v.current.memoizedState.isDehydrated;if(_&&(dl(v,m).flags|=256),m=fc(v,m,!1),m!==2){if(rc&&!_){v.errorRecoveryDisabledLanes|=c,Nn|=c,o=4;break e}c=vt,vt=o,c!==null&&(vt===null?vt=c:vt.push.apply(vt,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){dl(e,0),Ka(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ka(l,t,wt,!qa);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Ns+300-xt(),10<o)){if(Ka(l,t,wt,!qa),Lr(l,0,!0)!==0)break e;ba=t,l.timeoutHandle=sh(Om.bind(null,l,a,vt,Ts,ic,t,wt,Nn,cl,qa,c,"Throttled",-0,0),o);break e}Om(l,a,vt,Ts,ic,t,wt,Nn,cl,qa,c,null,-0,0)}}break}while(!0);Ft(e)}function Om(e,t,a,l,o,c,m,v,_,O,H,Y,D,M){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},Em(t,c,Y);var $=(c&62914560)===c?Ns-xt():(c&4194048)===c?jm-xt():0;if($=vb(Y,$),$!==null){ba=c,e.cancelPendingCommit=$(Bm.bind(null,e,t,c,a,l,o,m,v,_,H,Y,null,D,M)),Ka(e,c,m,!O);return}}Bm(e,t,c,a,l,o,m,v,_)}function Dy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!_t(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ka(e,t,a,l){t&=~sc,t&=~Nn,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-Et(o),m=1<<c;l[c]=-1,o&=~m}a!==0&&Hu(e,a,t)}function ws(){return(Ce&6)===0?(dr(0),!1):!0}function dc(){if(ge!==null){if(Ne===0)var e=ge.return;else e=ge,oa=vn=null,To(e),tl=null,Ql=0,e=ge;for(;e!==null;)im(e.alternate,e),e=e.return;ge=null}}function dl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Wy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ba=0,dc(),Oe=e,ge=a=sa(e.current,null),be=t,Ne=0,Tt=null,qa=!1,ol=Ol(e,t),rc=!1,cl=wt=sc=Nn=Ga=Ge=0,vt=cr=null,ic=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Et(l),c=1<<o;t|=e[o],l&=~c}return ya=t,Jr(),a}function km(e,t){fe=null,U.H=tr,t===el||t===ns?(t=Id(),Ne=3):t===po?(t=Id(),Ne=4):Ne=t===Vo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,ge===null&&(Ge=1,gs(e,Ut(t,e.current)))}function Dm(){var e=Nt.current;return e===null?!0:(be&4194048)===be?qt===null:(be&62914560)===be||(be&536870912)!==0?e===qt:!1}function Rm(){var e=U.H;return U.H=tr,e===null?tr:e}function zm(){var e=U.A;return U.A=Oy,e}function As(){Ge=4,qa||(be&4194048)!==be&&Nt.current!==null||(ol=!0),(Ga&134217727)===0&&(Nn&134217727)===0||Oe===null||Ka(Oe,be,wt,!1)}function fc(e,t,a){var l=Ce;Ce|=2;var o=Rm(),c=zm();(Oe!==e||be!==t)&&(Ts=null,dl(e,t)),t=!1;var m=Ge;e:do try{if(Ne!==0&&ge!==null){var v=ge,_=Tt;switch(Ne){case 8:dc(),m=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var O=Ne;if(Ne=0,Tt=null,fl(e,v,_,O),a&&ol){m=0;break e}break;default:O=Ne,Ne=0,Tt=null,fl(e,v,_,O)}}Ry(),m=Ge;break}catch(H){km(e,H)}while(!0);return t&&e.shellSuspendCounter++,oa=vn=null,Ce=l,U.H=o,U.A=c,ge===null&&(Oe=null,be=0,Jr()),m}function Ry(){for(;ge!==null;)Mm(ge)}function zy(e,t){var a=Ce;Ce|=2;var l=Rm(),o=zm();Oe!==e||be!==t?(Ts=null,js=xt()+500,dl(e,t)):ol=Ol(e,t);e:do try{if(Ne!==0&&ge!==null){t=ge;var c=Tt;t:switch(Ne){case 1:Ne=0,Tt=null,fl(e,t,c,1);break;case 2:case 9:if(Kd(c)){Ne=0,Tt=null,Um(t);break}t=function(){Ne!==2&&Ne!==9||Oe!==e||(Ne=7),Ft(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Kd(c)?(Ne=0,Tt=null,Um(t)):(Ne=0,Tt=null,fl(e,t,c,7));break;case 5:var m=null;switch(ge.tag){case 26:m=ge.memoizedState;case 5:case 27:var v=ge;if(m?Sh(m):v.stateNode.complete){Ne=0,Tt=null;var _=v.sibling;if(_!==null)ge=_;else{var O=v.return;O!==null?(ge=O,Os(O)):ge=null}break t}}Ne=0,Tt=null,fl(e,t,c,5);break;case 6:Ne=0,Tt=null,fl(e,t,c,6);break;case 8:dc(),Ge=6;break e;default:throw Error(s(462))}}My();break}catch(H){km(e,H)}while(!0);return oa=vn=null,U.H=l,U.A=o,Ce=a,ge!==null?0:(Oe=null,be=0,Jr(),Ge)}function My(){for(;ge!==null&&!lg();)Mm(ge)}function Mm(e){var t=rm(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Os(e):ge=t}function Um(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=$f(a,t,t.pendingProps,t.type,void 0,be);break;case 11:t=$f(a,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:To(t);default:im(a,t),t=ge=Rd(t,ya),t=rm(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?Os(e):ge=t}function fl(e,t,a,l){oa=vn=null,To(t),tl=null,Ql=0;var o=t.return;try{if(_y(e,o,t,a,be)){Ge=1,gs(e,Ut(a,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ge=1,gs(e,Ut(a,e.current)),ge=null;return}t.flags&32768?(Se||l===1?e=!0:ol||(be&536870912)!==0?e=!1:(qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Nt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lm(t,e)):Os(t)}function Os(e){var t=e;do{if((t.flags&32768)!==0){Lm(t,qa);return}e=t.return;var a=jy(t.alternate,t,ya);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ge===0&&(Ge=5)}function Lm(e,t){do{var a=Ty(e.alternate,e);if(a!==null){a.flags&=32767,ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=a}while(e!==null);Ge=6,ge=null}function Bm(e,t,a,l,o,c,m,v,_){e.cancelPendingCommit=null;do ks();while(Je!==0);if((Ce&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=$i,hg(e,a,c,m,v,_),e===Oe&&(ge=Oe=null,be=0),ul=t,Va=e,ba=a,oc=c,cc=o,Tm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Hy(Rr,function(){return Vm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,o=I.p,I.p=2,m=Ce,Ce|=4;try{wy(e,t,a)}finally{Ce=m,I.p=o,U.T=l}}Je=1,Hm(),qm(),Gm()}}function Hm(){if(Je===1){Je=0;var e=Va,t=ul,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var l=I.p;I.p=2;var o=Ce;Ce|=4;try{bm(t,e);var c=Cc,m=Cd(e.containerInfo),v=c.focusedElem,_=c.selectionRange;if(m!==v&&v&&v.ownerDocument&&_d(v.ownerDocument.documentElement,v)){if(_!==null&&Zi(v)){var O=_.start,H=_.end;if(H===void 0&&(H=O),"selectionStart"in v)v.selectionStart=O,v.selectionEnd=Math.min(H,v.value.length);else{var Y=v.ownerDocument||document,D=Y&&Y.defaultView||window;if(D.getSelection){var M=D.getSelection(),$=v.textContent.length,ie=Math.min(_.start,$),Ae=_.end===void 0?ie:Math.min(_.end,$);!M.extend&&ie>Ae&&(m=Ae,Ae=ie,ie=m);var T=Ed(v,ie),j=Ed(v,Ae);if(T&&j&&(M.rangeCount!==1||M.anchorNode!==T.node||M.anchorOffset!==T.offset||M.focusNode!==j.node||M.focusOffset!==j.offset)){var A=Y.createRange();A.setStart(T.node,T.offset),M.removeAllRanges(),ie>Ae?(M.addRange(A),M.extend(j.node,j.offset)):(A.setEnd(j.node,j.offset),M.addRange(A))}}}}for(Y=[],M=v;M=M.parentNode;)M.nodeType===1&&Y.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Y.length;v++){var q=Y[v];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Vs=!!_c,Cc=_c=null}finally{Ce=o,I.p=l,U.T=a}}e.current=t,Je=2}}function qm(){if(Je===2){Je=0;var e=Va,t=ul,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var l=I.p;I.p=2;var o=Ce;Ce|=4;try{hm(e,t.alternate,t)}finally{Ce=o,I.p=l,U.T=a}}Je=3}}function Gm(){if(Je===4||Je===3){Je=0,rg();var e=Va,t=ul,a=ba,l=Tm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,ul=Va=null,Ym(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ya=null),Ai(a),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Al,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,o=I.p,I.p=2,U.T=null;try{for(var c=e.onRecoverableError,m=0;m<l.length;m++){var v=l[m];c(v.value,{componentStack:v.stack})}}finally{U.T=t,I.p=o}}(ba&3)!==0&&ks(),Ft(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===uc?ur++:(ur=0,uc=e):ur=0,dr(0)}}function Ym(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Xl(t)))}function ks(){return Hm(),qm(),Gm(),Vm()}function Vm(){if(Je!==5)return!1;var e=Va,t=oc;oc=0;var a=Ai(ba),l=U.T,o=I.p;try{I.p=32>a?32:a,U.T=null,a=cc,cc=null;var c=Va,m=ba;if(Je=0,ul=Va=null,ba=0,(Ce&6)!==0)throw Error(s(331));var v=Ce;if(Ce|=4,Cm(c.current),Sm(c,c.current,m,a),Ce=v,dr(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Al,c)}catch{}return!0}finally{I.p=o,U.T=l,Ym(e,t)}}function Km(e,t,a){t=Ut(a,t),t=Yo(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(kl(e,2),Ft(e))}function je(e,t,a){if(e.tag===3)Km(e,e,a);else for(;t!==null;){if(t.tag===3){Km(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ya===null||!Ya.has(l))){e=Ut(a,e),a=Xf(2),l=Ua(t,a,2),l!==null&&(If(a,l,t,e),kl(l,2),Ft(l));break}}t=t.return}}function mc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new ky;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(rc=!0,o.add(a),e=Uy.bind(null,e,t,a),t.then(e,e))}function Uy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Oe===e&&(be&a)===a&&(Ge===4||Ge===3&&(be&62914560)===be&&300>xt()-Ns?(Ce&2)===0&&dl(e,0):sc|=a,cl===be&&(cl=0)),Ft(e)}function Xm(e,t){t===0&&(t=Bu()),e=mn(e,t),e!==null&&(kl(e,t),Ft(e))}function Ly(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Xm(e,a)}function By(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Xm(e,a)}function Hy(e,t){return Ni(e,t)}var Ds=null,ml=null,hc=!1,Rs=!1,pc=!1,Xa=0;function Ft(e){e!==ml&&e.next===null&&(ml===null?Ds=ml=e:ml=ml.next=e),Rs=!0,hc||(hc=!0,Gy())}function dr(e,t){if(!pc&&Rs){pc=!0;do for(var a=!1,l=Ds;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var m=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-Et(42|e)+1)-1,c&=o&~(m&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Jm(l,c))}else c=be,c=Lr(l,l===Oe?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ol(l,c)||(a=!0,Jm(l,c));l=l.next}while(a);pc=!1}}function qy(){Im()}function Im(){Rs=hc=!1;var e=0;Xa!==0&&Fy()&&(e=Xa);for(var t=xt(),a=null,l=Ds;l!==null;){var o=l.next,c=Qm(l,t);c===0?(l.next=null,a===null?Ds=o:a.next=o,o===null&&(ml=a)):(a=l,(e!==0||(c&3)!==0)&&(Rs=!0)),l=o}Je!==0&&Je!==5||dr(e),Xa!==0&&(Xa=0)}function Qm(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Et(c),v=1<<m,_=o[m];_===-1?((v&a)===0||(v&l)!==0)&&(o[m]=mg(v,t)):_<=t&&(e.expiredLanes|=v),c&=~v}if(t=Oe,a=be,a=Lr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ji(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ol(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&ji(l),Ai(a)){case 2:case 8:a=Uu;break;case 32:a=Rr;break;case 268435456:a=Lu;break;default:a=Rr}return l=Zm.bind(null,e),a=Ni(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&ji(l),e.callbackPriority=2,e.callbackNode=null,2}function Zm(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ks()&&e.callbackNode!==a)return null;var l=be;return l=Lr(e,e===Oe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Am(e,l,t),Qm(e,xt()),e.callbackNode!=null&&e.callbackNode===a?Zm.bind(null,e):null)}function Jm(e,t){if(ks())return null;Am(e,t,!0)}function Gy(){$y(function(){(Ce&6)!==0?Ni(Mu,qy):Im()})}function vc(){if(Xa===0){var e=Wn;e===0&&(e=zr,zr<<=1,(zr&261888)===0&&(zr=256)),Xa=e}return Xa}function Pm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gr(""+e)}function Fm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Yy(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var c=Pm((o[dt]||null).action),m=l.submitter;m&&(t=(t=m[dt]||null)?Pm(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var v=new Xr("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xa!==0){var _=m?Fm(o,m):new FormData(o);Uo(a,{pending:!0,data:_,method:o.method,action:c},null,_)}}else typeof c=="function"&&(v.preventDefault(),_=m?Fm(o,m):new FormData(o),Uo(a,{pending:!0,data:_,method:o.method,action:c},c,_))},currentTarget:o}]})}}for(var gc=0;gc<Wi.length;gc++){var yc=Wi[gc],Vy=yc.toLowerCase(),Ky=yc[0].toUpperCase()+yc.slice(1);Vt(Vy,"on"+Ky)}Vt(Td,"onAnimationEnd"),Vt(wd,"onAnimationIteration"),Vt(Ad,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(sy,"onTransitionRun"),Vt(iy,"onTransitionStart"),Vt(oy,"onTransitionCancel"),Vt(Od,"onTransitionEnd"),Bn("onMouseEnter",["mouseout","mouseover"]),Bn("onMouseLeave",["mouseout","mouseover"]),Bn("onPointerEnter",["pointerout","pointerover"]),Bn("onPointerLeave",["pointerout","pointerover"]),cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cn("onBeforeInput",["compositionend","keypress","textInput","paste"]),cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fr));function Wm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var m=l.length-1;0<=m;m--){var v=l[m],_=v.instance,O=v.currentTarget;if(v=v.listener,_!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=O;try{c(o)}catch(H){Zr(H)}o.currentTarget=null,c=_}else for(m=0;m<l.length;m++){if(v=l[m],_=v.instance,O=v.currentTarget,v=v.listener,_!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=O;try{c(o)}catch(H){Zr(H)}o.currentTarget=null,c=_}}}}function ye(e,t){var a=t[Oi];a===void 0&&(a=t[Oi]=new Set);var l=e+"__bubble";a.has(l)||($m(t,e,2,!1),a.add(l))}function bc(e,t,a){var l=0;t&&(l|=4),$m(a,e,l,t)}var zs="_reactListening"+Math.random().toString(36).slice(2);function xc(e){if(!e[zs]){e[zs]=!0,Xu.forEach(function(a){a!=="selectionchange"&&(Xy.has(a)||bc(a,!1,e),bc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zs]||(t[zs]=!0,bc("selectionchange",!1,t))}}function $m(e,t,a,l){switch(wh(t)){case 2:var o=bb;break;case 8:o=xb;break;default:o=Mc}a=o.bind(null,t,a,e),o=void 0,!Hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Sc(e,t,a,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var v=l.stateNode.containerInfo;if(v===o)break;if(m===4)for(m=l.return;m!==null;){var _=m.tag;if((_===3||_===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;v!==null;){if(m=Mn(v),m===null)return;if(_=m.tag,_===5||_===6||_===26||_===27){l=c=m;continue e}v=v.parentNode}}l=l.return}nd(function(){var O=c,H=Li(a),Y=[];e:{var D=kd.get(e);if(D!==void 0){var M=Xr,$=e;switch(e){case"keypress":if(Vr(a)===0)break e;case"keydown":case"keyup":M=Bg;break;case"focusin":$="focus",M=Vi;break;case"focusout":$="blur",M=Vi;break;case"beforeblur":case"afterblur":M=Vi;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=jg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Gg;break;case Td:case wd:case Ad:M=Ag;break;case Od:M=Vg;break;case"scroll":case"scrollend":M=Cg;break;case"wheel":M=Xg;break;case"copy":case"cut":case"paste":M=kg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=od;break;case"toggle":case"beforetoggle":M=Qg}var ie=(t&4)!==0,Ae=!ie&&(e==="scroll"||e==="scrollend"),T=ie?D!==null?D+"Capture":null:D;ie=[];for(var j=O,A;j!==null;){var q=j;if(A=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||A===null||T===null||(q=zl(j,T),q!=null&&ie.push(mr(j,q,A))),Ae)break;j=j.return}0<ie.length&&(D=new M(D,$,null,a,H),Y.push({event:D,listeners:ie}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",D&&a!==Ui&&($=a.relatedTarget||a.fromElement)&&(Mn($)||$[zn]))break e;if((M||D)&&(D=H.window===H?H:(D=H.ownerDocument)?D.defaultView||D.parentWindow:window,M?($=a.relatedTarget||a.toElement,M=O,$=$?Mn($):null,$!==null&&(Ae=f($),ie=$.tag,$!==Ae||ie!==5&&ie!==27&&ie!==6)&&($=null)):(M=null,$=O),M!==$)){if(ie=sd,q="onMouseLeave",T="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=od,q="onPointerLeave",T="onPointerEnter",j="pointer"),Ae=M==null?D:Rl(M),A=$==null?D:Rl($),D=new ie(q,j+"leave",M,a,H),D.target=Ae,D.relatedTarget=A,q=null,Mn(H)===O&&(ie=new ie(T,j+"enter",$,a,H),ie.target=A,ie.relatedTarget=Ae,q=ie),Ae=q,M&&$)t:{for(ie=Iy,T=M,j=$,A=0,q=T;q;q=ie(q))A++;q=0;for(var se=j;se;se=ie(se))q++;for(;0<A-q;)T=ie(T),A--;for(;0<q-A;)j=ie(j),q--;for(;A--;){if(T===j||j!==null&&T===j.alternate){ie=T;break t}T=ie(T),j=ie(j)}ie=null}else ie=null;M!==null&&eh(Y,D,M,ie,!1),$!==null&&Ae!==null&&eh(Y,Ae,$,ie,!0)}}e:{if(D=O?Rl(O):window,M=D.nodeName&&D.nodeName.toLowerCase(),M==="select"||M==="input"&&D.type==="file")var Ee=vd;else if(hd(D))if(gd)Ee=ny;else{Ee=ty;var ne=ey}else M=D.nodeName,!M||M.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&Mi(O.elementType)&&(Ee=vd):Ee=ay;if(Ee&&(Ee=Ee(e,O))){pd(Y,Ee,a,H);break e}ne&&ne(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&zi(D,"number",D.value)}switch(ne=O?Rl(O):window,e){case"focusin":(hd(ne)||ne.contentEditable==="true")&&(Kn=ne,Ji=O,Yl=null);break;case"focusout":Yl=Ji=Kn=null;break;case"mousedown":Pi=!0;break;case"contextmenu":case"mouseup":case"dragend":Pi=!1,Nd(Y,a,H);break;case"selectionchange":if(ry)break;case"keydown":case"keyup":Nd(Y,a,H)}var me;if(Xi)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Vn?fd(e,a)&&(xe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(xe="onCompositionStart");xe&&(cd&&a.locale!=="ko"&&(Vn||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Vn&&(me=ld()):(Aa=H,qi="value"in Aa?Aa.value:Aa.textContent,Vn=!0)),ne=Ms(O,xe),0<ne.length&&(xe=new id(xe,e,null,a,H),Y.push({event:xe,listeners:ne}),me?xe.data=me:(me=md(a),me!==null&&(xe.data=me)))),(me=Jg?Pg(e,a):Fg(e,a))&&(xe=Ms(O,"onBeforeInput"),0<xe.length&&(ne=new id("onBeforeInput","beforeinput",null,a,H),Y.push({event:ne,listeners:xe}),ne.data=me)),Yy(Y,e,O,a,H)}Wm(Y,t)})}function mr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ms(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=zl(e,a),o!=null&&l.unshift(mr(e,o,c)),o=zl(e,t),o!=null&&l.push(mr(e,o,c))),e.tag===3)return l;e=e.return}return[]}function Iy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function eh(e,t,a,l,o){for(var c=t._reactName,m=[];a!==null&&a!==l;){var v=a,_=v.alternate,O=v.stateNode;if(v=v.tag,_!==null&&_===l)break;v!==5&&v!==26&&v!==27||O===null||(_=O,o?(O=zl(a,c),O!=null&&m.unshift(mr(a,O,_))):o||(O=zl(a,c),O!=null&&m.push(mr(a,O,_)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var Qy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function th(e){return(typeof e=="string"?e:""+e).replace(Qy,`
|
|
50
|
+
`).replace(Zy,"")}function ah(e,t){return t=th(t),th(e)===t}function we(e,t,a,l,o,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||qn(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&qn(e,""+l);break;case"className":Hr(e,"class",l);break;case"tabIndex":Hr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Hr(e,a,l);break;case"style":td(e,l,c);break;case"data":if(t!=="object"){Hr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Gr(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&we(e,t,"name",o.name,o,null),we(e,t,"formEncType",o.formEncType,o,null),we(e,t,"formMethod",o.formMethod,o,null),we(e,t,"formTarget",o.formTarget,o,null)):(we(e,t,"encType",o.encType,o,null),we(e,t,"method",o.method,o,null),we(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Gr(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=la);break;case"onScroll":l!=null&&ye("scroll",e);break;case"onScrollEnd":l!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Gr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ye("beforetoggle",e),ye("toggle",e),Br(e,"popover",l);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Br(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Eg.get(a)||a,Br(e,a,l))}}function Ec(e,t,a,l,o,c){switch(a){case"style":td(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?qn(e,l):(typeof l=="number"||typeof l=="bigint")&&qn(e,""+l);break;case"onScroll":l!=null&&ye("scroll",e);break;case"onScrollEnd":l!=null&&ye("scrollend",e);break;case"onClick":l!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Iu.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[dt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Br(e,a,l)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:we(e,t,c,m,a,null)}}o&&we(e,t,"srcSet",a.srcSet,a,null),l&&we(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var v=c=m=o=null,_=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var H=a[l];if(H!=null)switch(l){case"name":o=H;break;case"type":m=H;break;case"checked":_=H;break;case"defaultChecked":O=H;break;case"value":c=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:we(e,t,l,H,a,null)}}Fu(e,c,v,_,O,m,o,!1);return;case"select":ye("invalid",e),l=m=c=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":m=v;break;case"multiple":l=v;default:we(e,t,o,v,a,null)}t=c,a=m,e.multiple=!!l,t!=null?Hn(e,!!l,t,!1):a!=null&&Hn(e,!!l,a,!0);return;case"textarea":ye("invalid",e),c=o=l=null;for(m in a)if(a.hasOwnProperty(m)&&(v=a[m],v!=null))switch(m){case"value":l=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:we(e,t,m,v,a,null)}$u(e,l,o,c);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(l=a[_],l!=null))switch(_){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:we(e,t,_,l,a,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(l=0;l<fr.length;l++)ye(fr[l],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:we(e,t,O,l,a,null)}return;default:if(Mi(t)){for(H in a)a.hasOwnProperty(H)&&(l=a[H],l!==void 0&&Ec(e,t,H,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&we(e,t,v,l,a,null))}function Jy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,v=null,_=null,O=null,H=null;for(M in a){var Y=a[M];if(a.hasOwnProperty(M)&&Y!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":_=Y;default:l.hasOwnProperty(M)||we(e,t,M,null,l,Y)}}for(var D in l){var M=l[D];if(Y=a[D],l.hasOwnProperty(D)&&(M!=null||Y!=null))switch(D){case"type":c=M;break;case"name":o=M;break;case"checked":O=M;break;case"defaultChecked":H=M;break;case"value":m=M;break;case"defaultValue":v=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==Y&&we(e,t,D,M,l,Y)}}Ri(e,m,v,_,O,H,c,o);return;case"select":M=m=v=D=null;for(c in a)if(_=a[c],a.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":M=_;default:l.hasOwnProperty(c)||we(e,t,c,null,l,_)}for(o in l)if(c=l[o],_=a[o],l.hasOwnProperty(o)&&(c!=null||_!=null))switch(o){case"value":D=c;break;case"defaultValue":v=c;break;case"multiple":m=c;default:c!==_&&we(e,t,o,c,l,_)}t=v,a=m,l=M,D!=null?Hn(e,!!a,D,!1):!!l!=!!a&&(t!=null?Hn(e,!!a,t,!0):Hn(e,!!a,a?[]:"",!1));return;case"textarea":M=D=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:we(e,t,v,null,l,o)}for(m in l)if(o=l[m],c=a[m],l.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":D=o;break;case"defaultValue":M=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&we(e,t,m,o,l,c)}Wu(e,D,M);return;case"option":for(var $ in a)if(D=a[$],a.hasOwnProperty($)&&D!=null&&!l.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:we(e,t,$,null,l,D)}for(_ in l)if(D=l[_],M=a[_],l.hasOwnProperty(_)&&D!==M&&(D!=null||M!=null))switch(_){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:we(e,t,_,D,l,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)D=a[ie],a.hasOwnProperty(ie)&&D!=null&&!l.hasOwnProperty(ie)&&we(e,t,ie,null,l,D);for(O in l)if(D=l[O],M=a[O],l.hasOwnProperty(O)&&D!==M&&(D!=null||M!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:we(e,t,O,D,l,M)}return;default:if(Mi(t)){for(var Ae in a)D=a[Ae],a.hasOwnProperty(Ae)&&D!==void 0&&!l.hasOwnProperty(Ae)&&Ec(e,t,Ae,void 0,l,D);for(H in l)D=l[H],M=a[H],!l.hasOwnProperty(H)||D===M||D===void 0&&M===void 0||Ec(e,t,H,D,l,M);return}}for(var T in a)D=a[T],a.hasOwnProperty(T)&&D!=null&&!l.hasOwnProperty(T)&&we(e,t,T,null,l,D);for(Y in l)D=l[Y],M=a[Y],!l.hasOwnProperty(Y)||D===M||D==null&&M==null||we(e,t,Y,D,l,M)}function nh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Py(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],c=o.transferSize,m=o.initiatorType,v=o.duration;if(c&&v&&nh(m)){for(m=0,v=o.responseEnd,l+=1;l<a.length;l++){var _=a[l],O=_.startTime;if(O>v)break;var H=_.transferSize,Y=_.initiatorType;H&&nh(Y)&&(_=_.responseEnd,m+=H*(_<v?1:(v-O)/(_-O)))}if(--l,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,Cc=null;function Us(e){return e.nodeType===9?e:e.ownerDocument}function lh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jc=null;function Fy(){var e=window.event;return e&&e.type==="popstate"?e===jc?!1:(jc=e,!0):(jc=null,!1)}var sh=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,ih=typeof Promise=="function"?Promise:void 0,$y=typeof queueMicrotask=="function"?queueMicrotask:typeof ih<"u"?function(e){return ih.resolve(null).then(e).catch(eb)}:sh;function eb(e){setTimeout(function(){throw e})}function Ia(e){return e==="head"}function oh(e,t){var a=t,l=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(o),gl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")hr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,hr(a);for(var c=a.firstChild;c;){var m=c.nextSibling,v=c.nodeName;c[Dl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&hr(e.ownerDocument.body);a=o}while(a);gl(t)}function ch(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Tc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Tc(a),ki(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function tb(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function ab(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Gt(e.nextSibling),e===null))return null;return e}function uh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function wc(e){return e.data==="$?"||e.data==="$~"}function Ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Oc=null;function dh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Gt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function mh(e,t,a){switch(t=Us(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function hr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ki(e)}var Yt=new Map,hh=new Set;function Ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xa=I.d;I.d={f:lb,r:rb,D:sb,C:ib,L:ob,m:cb,X:db,S:ub,M:fb};function lb(){var e=xa.f(),t=ws();return e||t}function rb(e){var t=Un(e);t!==null&&t.tag===5&&t.type==="form"?kf(t):xa.r(e)}var hl=typeof document>"u"?null:document;function ph(e,t,a){var l=hl;if(l&&typeof t=="string"&&t){var o=zt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),hh.has(o)||(hh.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),lt(t,"link",e),We(t),l.head.appendChild(t)))}}function sb(e){xa.D(e),ph("dns-prefetch",e,null)}function ib(e,t){xa.C(e,t),ph("preconnect",e,t)}function ob(e,t,a){xa.L(e,t,a);var l=hl;if(l&&e&&t){var o='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+zt(a.imageSizes)+'"]')):o+='[href="'+zt(e)+'"]';var c=o;switch(t){case"style":c=pl(e);break;case"script":c=vl(e)}Yt.has(c)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(pr(c))||t==="script"&&l.querySelector(vr(c))||(t=l.createElement("link"),lt(t,"link",e),We(t),l.head.appendChild(t)))}}function cb(e,t){xa.m(e,t);var a=hl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+zt(l)+'"][href="'+zt(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=vl(e)}if(!Yt.has(c)&&(e=x({rel:"modulepreload",href:e},t),Yt.set(c,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(vr(c)))return}l=a.createElement("link"),lt(l,"link",e),We(l),a.head.appendChild(l)}}}function ub(e,t,a){xa.S(e,t,a);var l=hl;if(l&&e){var o=Ln(l).hoistableStyles,c=pl(e);t=t||"default";var m=o.get(c);if(!m){var v={loading:0,preload:null};if(m=l.querySelector(pr(c)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(c))&&kc(e,a);var _=m=l.createElement("link");We(_),lt(_,"link",e),_._p=new Promise(function(O,H){_.onload=O,_.onerror=H}),_.addEventListener("load",function(){v.loading|=1}),_.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Bs(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:v},o.set(c,m)}}}function db(e,t){xa.X(e,t);var a=hl;if(a&&e){var l=Ln(a).hoistableScripts,o=vl(e),c=l.get(o);c||(c=a.querySelector(vr(o)),c||(e=x({src:e,async:!0},t),(t=Yt.get(o))&&Dc(e,t),c=a.createElement("script"),We(c),lt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function fb(e,t){xa.M(e,t);var a=hl;if(a&&e){var l=Ln(a).hoistableScripts,o=vl(e),c=l.get(o);c||(c=a.querySelector(vr(o)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Yt.get(o))&&Dc(e,t),c=a.createElement("script"),We(c),lt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function vh(e,t,a,l){var o=(o=re.current)?Ls(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=pl(a.href),a=Ln(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=pl(a.href);var c=Ln(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(pr(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),c||mb(o,e,a,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vl(a),a=Ln(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function pl(e){return'href="'+zt(e)+'"'}function pr(e){return'link[rel="stylesheet"]['+e+"]"}function gh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function mb(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),lt(t,"link",a),We(t),e.head.appendChild(t))}function vl(e){return'[src="'+zt(e)+'"]'}function vr(e){return"script[async]"+e}function yh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+zt(a.href)+'"]');if(l)return t.instance=l,We(l),l;var o=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),We(l),lt(l,"style",o),Bs(l,a.precedence,e),t.instance=l;case"stylesheet":o=pl(a.href);var c=e.querySelector(pr(o));if(c)return t.state.loading|=4,t.instance=c,We(c),c;l=gh(a),(o=Yt.get(o))&&kc(l,o),c=(e.ownerDocument||e).createElement("link"),We(c);var m=c;return m._p=new Promise(function(v,_){m.onload=v,m.onerror=_}),lt(c,"link",l),t.state.loading|=4,Bs(c,a.precedence,e),t.instance=c;case"script":return c=vl(a.src),(o=e.querySelector(vr(c)))?(t.instance=o,We(o),o):(l=a,(o=Yt.get(c))&&(l=x({},a),Dc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),We(o),lt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Bs(l,a.precedence,e));return t.instance}function Bs(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,m=0;m<l.length;m++){var v=l[m];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hs=null;function bh(e,t,a){if(Hs===null){var l=new Map,o=Hs=new Map;o.set(a,l)}else o=Hs,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[Dl]||c[et]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var v=l.get(m);v?v.push(c):l.set(m,[c])}}return l}function xh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function hb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Sh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pb(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=pl(l.href),c=t.querySelector(pr(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,We(c);return}c=t.ownerDocument||t,l=gh(l),(o=Yt.get(o))&&kc(l,o),c=c.createElement("link"),We(c);var m=c;m._p=new Promise(function(v,_){m.onload=v,m.onerror=_}),lt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Rc=0;function vb(e,t){return e.stylesheets&&e.count===0&&Ys(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Ys(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Rc===0&&(Rc=62500*Py());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ys(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Rc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ys(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gs=null;function Ys(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gs=new Map,t.forEach(gb,e),Gs=null,qs.call(e))}function gb(e,t){if(!(t.state.loading&4)){var a=Gs.get(e);if(a)var l=a.get(null);else{a=new Map,Gs.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),l=m)}l&&a.set(null,l)}o=t.instance,m=o.getAttribute("data-precedence"),c=a.get(m)||l,c===l&&a.set(null,o),a.set(m,o),this.count++,l=qs.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var gr={$$typeof:Z,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function yb(e,t,a,l,o,c,m,v,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.hiddenUpdates=Ti(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Eh(e,t,a,l,o,c,m,v,_,O,H,Y){return e=new yb(e,t,a,m,_,O,H,Y,v),t=1,c===!0&&(t|=24),c=Ct(3,null,null,t),e.current=c,c.stateNode=e,t=fo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},vo(c),e}function _h(e){return e?(e=Qn,e):Qn}function Ch(e,t,a,l,o,c){o=_h(o),l.context===null?l.context=o:l.pendingContext=o,l=Ma(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ua(e,l,t),a!==null&&(gt(a,e,t),Jl(a,e,t))}function Nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function zc(e,t){Nh(e,t),(e=e.alternate)&&Nh(e,t)}function jh(e){if(e.tag===13||e.tag===31){var t=mn(e,67108864);t!==null&>(t,e,67108864),zc(e,67108864)}}function Th(e){if(e.tag===13||e.tag===31){var t=At();t=wi(t);var a=mn(e,t);a!==null&>(a,e,t),zc(e,t)}}var Vs=!0;function bb(e,t,a,l){var o=U.T;U.T=null;var c=I.p;try{I.p=2,Mc(e,t,a,l)}finally{I.p=c,U.T=o}}function xb(e,t,a,l){var o=U.T;U.T=null;var c=I.p;try{I.p=8,Mc(e,t,a,l)}finally{I.p=c,U.T=o}}function Mc(e,t,a,l){if(Vs){var o=Uc(l);if(o===null)Sc(e,t,l,Ks,a),Ah(e,l);else if(Eb(o,e,t,a,l))l.stopPropagation();else if(Ah(e,l),t&4&&-1<Sb.indexOf(e)){for(;o!==null;){var c=Un(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=on(c.pendingLanes);if(m!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var _=1<<31-Et(m);v.entanglements[1]|=_,m&=~_}Ft(c),(Ce&6)===0&&(js=xt()+500,dr(0))}}break;case 31:case 13:v=mn(c,2),v!==null&>(v,c,2),ws(),zc(c,2)}if(c=Uc(l),c===null&&Sc(e,t,l,Ks,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else Sc(e,t,l,null,a)}}function Uc(e){return e=Li(e),Lc(e)}var Ks=null;function Lc(e){if(Ks=null,e=Mn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ks=e,null}function wh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(sg()){case Mu:return 2;case Uu:return 8;case Rr:case ig:return 32;case Lu:return 268435456;default:return 32}default:return 32}}var Bc=!1,Qa=null,Za=null,Ja=null,yr=new Map,br=new Map,Pa=[],Sb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ah(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":yr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":br.delete(t.pointerId)}}function xr(e,t,a,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Un(t),t!==null&&jh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Eb(e,t,a,l,o){switch(t){case"focusin":return Qa=xr(Qa,e,t,a,l,o),!0;case"dragenter":return Za=xr(Za,e,t,a,l,o),!0;case"mouseover":return Ja=xr(Ja,e,t,a,l,o),!0;case"pointerover":var c=o.pointerId;return yr.set(c,xr(yr.get(c)||null,e,t,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,br.set(c,xr(br.get(c)||null,e,t,a,l,o)),!0}return!1}function Oh(e){var t=Mn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Vu(e.priority,function(){Th(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Vu(e.priority,function(){Th(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Uc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ui=l,a.target.dispatchEvent(l),Ui=null}else return t=Un(a),t!==null&&jh(t),e.blockedOn=a,!1;t.shift()}return!0}function kh(e,t,a){Xs(e)&&a.delete(t)}function _b(){Bc=!1,Qa!==null&&Xs(Qa)&&(Qa=null),Za!==null&&Xs(Za)&&(Za=null),Ja!==null&&Xs(Ja)&&(Ja=null),yr.forEach(kh),br.forEach(kh)}function Is(e,t){e.blockedOn===t&&(e.blockedOn=null,Bc||(Bc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_b)))}var Qs=null;function Dh(e){Qs!==e&&(Qs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Qs===e&&(Qs=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Lc(l||a)===null)continue;break}var c=Un(a);c!==null&&(e.splice(t,3),t-=3,Uo(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function gl(e){function t(_){return Is(_,e)}Qa!==null&&Is(Qa,e),Za!==null&&Is(Za,e),Ja!==null&&Is(Ja,e),yr.forEach(t),br.forEach(t);for(var a=0;a<Pa.length;a++){var l=Pa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Pa.length&&(a=Pa[0],a.blockedOn===null);)Oh(a),a.blockedOn===null&&Pa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],m=o[dt]||null;if(typeof c=="function")m||Dh(a);else if(m){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[dt]||null)v=m.formAction;else if(Lc(o)!==null)continue}else v=m.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Dh(a)}}}function Rh(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Hc(e){this._internalRoot=e}Zs.prototype.render=Hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=At();Ch(a,l,e,t,null,null)},Zs.prototype.unmount=Hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ch(e.current,2,null,e,null,null),ws(),t[zn]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yu();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Pa.length&&t!==0&&t<Pa[a].priority;a++);Pa.splice(a,0,e),a===0&&Oh(e)}};var zh=r.version;if(zh!=="19.2.4")throw Error(s(527,zh,"19.2.4"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Cb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{Al=Js.inject(Cb),St=Js}catch{}}return Er.createRoot=function(e,t){if(!d(e))throw Error(s(299));var a=!1,l="",o=Gf,c=Yf,m=Vf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Eh(e,1,!1,null,null,a,l,null,o,c,m,Rh),e[zn]=t.current,xc(e),new Hc(t)},Er.hydrateRoot=function(e,t,a){if(!d(e))throw Error(s(299));var l=!1,o="",c=Gf,m=Yf,v=Vf,_=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),t=Eh(e,1,!0,t,a??null,l,o,_,c,m,v,Rh),t.context=_h(null),a=t.current,l=At(),l=wi(l),o=Ma(l),o.callback=null,Ua(a,o,l),a=l,t.current.lanes=a,kl(t,a),Ft(t),e[zn]=t.current,xc(e),new Zs(t)},Er.version="19.2.4",Er}var Kh;function zb(){if(Kh)return Yc.exports;Kh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Yc.exports=Rb(),Yc.exports}var Mb=zb();const Ub="modulepreload",Lb=function(n){return"/"+n},Xh={},ot=function(r,i,s){let d=Promise.resolve();if(i&&i.length>0){let h=function(g){return Promise.all(g.map(S=>Promise.resolve(S).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),b=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));d=h(i.map(g=>{if(g=Lb(g),g in Xh)return;Xh[g]=!0;const S=g.endsWith(".css"),x=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${x}`))return;const E=document.createElement("link");if(E.rel=S?"stylesheet":Ub,S||(E.as="script"),E.crossOrigin="",E.href=g,b&&E.setAttribute("nonce",b),document.head.appendChild(E),S)return new Promise((C,z)=>{E.addEventListener("load",C),E.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(h){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=h,window.dispatchEvent(p),!p.defaultPrevented)throw h}return d.then(h=>{for(const p of h||[])p.status==="rejected"&&f(p.reason);return r().catch(f)})},Bp=y.createContext(null);function Bb(){const n=y.useContext(Bp);if(!n)throw new Error("useI18nContext must be used within I18nProvider");return n}const Ih="maestro-locale",Ic="en";async function Qh(n){switch(n){case"zh-CN":return(await ot(async()=>{const{default:r}=await import("./zh-CN-CoXBFuny.js");return{default:r}},[])).default;case"en":default:return(await ot(async()=>{const{default:r}=await import("./en-ZbRpfzuP.js");return{default:r}},[])).default}}function Hb(n,r){const i=r.split(".");let s=n;for(const d of i){if(s==null||typeof s!="object")return r;s=s[d]}return typeof s=="string"?s:r}function qb(n,r){return r?n.replace(/\{\{(\w+)\}\}/g,(i,s)=>{var d;return((d=r[s])==null?void 0:d.toString())??`{{${s}}}`}):n}function Gb({children:n,initialLocale:r}){const[i,s]=y.useState(()=>{if(r)return r;try{const x=localStorage.getItem(Ih);if(x==="en"||x==="zh-CN")return x}catch{}return Ic}),[d,f]=y.useState({}),[h,p]=y.useState(!0);y.useEffect(()=>{let x=!1;async function E(){p(!0);try{const C=await Qh(i);x||(f(C),p(!1))}catch(C){if(console.error(`Failed to load locale "${i}":`,C),!x){if(i!==Ic){const z=await Qh(Ic);f(z)}p(!1)}}}return E(),()=>{x=!0}},[i]);const b=y.useMemo(()=>(x,E)=>{const C=Hb(d,x);return qb(C,E)},[d]),g=y.useMemo(()=>x=>{try{localStorage.setItem(Ih,x)}catch{}s(x)},[]),S=y.useMemo(()=>({locale:i,setLocale:g,t:b}),[i,g,b]);return h?null:u.jsx(Bp.Provider,{value:S,children:n})}function yt(){const{locale:n,setLocale:r,t:i}=Bb();return{locale:n,setLocale:r,t:i}}var Hp=Lp();const Yb=Up(Hp);/**
|
|
51
|
+
* @remix-run/router v1.23.2
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/function Ar(){return Ar=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Ar.apply(this,arguments)}var an;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(an||(an={}));const Zh="popstate";function Vb(n){n===void 0&&(n={});function r(s,d){let{pathname:f,search:h,hash:p}=s.location;return cu("",{pathname:f,search:h,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function i(s,d){return typeof d=="string"?d:di(d)}return Xb(r,i,null,n)}function Be(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Cu(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Kb(){return Math.random().toString(36).substr(2,8)}function Jh(n,r){return{usr:n.state,key:n.key,idx:r}}function cu(n,r,i,s){return i===void 0&&(i=null),Ar({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof r=="string"?Tl(r):r,{state:i,key:r&&r.key||s||Kb()})}function di(n){let{pathname:r="/",search:i="",hash:s=""}=n;return i&&i!=="?"&&(r+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(r+=s.charAt(0)==="#"?s:"#"+s),r}function Tl(n){let r={};if(n){let i=n.indexOf("#");i>=0&&(r.hash=n.substr(i),n=n.substr(0,i));let s=n.indexOf("?");s>=0&&(r.search=n.substr(s),n=n.substr(0,s)),n&&(r.pathname=n)}return r}function Xb(n,r,i,s){s===void 0&&(s={});let{window:d=document.defaultView,v5Compat:f=!1}=s,h=d.history,p=an.Pop,b=null,g=S();g==null&&(g=0,h.replaceState(Ar({},h.state,{idx:g}),""));function S(){return(h.state||{idx:null}).idx}function x(){p=an.Pop;let R=S(),w=R==null?null:R-g;g=R,b&&b({action:p,location:k.location,delta:w})}function E(R,w){p=an.Push;let K=cu(k.location,R,w);g=S()+1;let Z=Jh(K,g),Q=k.createHref(K);try{h.pushState(Z,"",Q)}catch(le){if(le instanceof DOMException&&le.name==="DataCloneError")throw le;d.location.assign(Q)}f&&b&&b({action:p,location:k.location,delta:1})}function C(R,w){p=an.Replace;let K=cu(k.location,R,w);g=S();let Z=Jh(K,g),Q=k.createHref(K);h.replaceState(Z,"",Q),f&&b&&b({action:p,location:k.location,delta:0})}function z(R){let w=d.location.origin!=="null"?d.location.origin:d.location.href,K=typeof R=="string"?R:di(R);return K=K.replace(/ $/,"%20"),Be(w,"No window.location.(origin|href) available to create URL for href: "+K),new URL(K,w)}let k={get action(){return p},get location(){return n(d,h)},listen(R){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(Zh,x),b=R,()=>{d.removeEventListener(Zh,x),b=null}},createHref(R){return r(d,R)},createURL:z,encodeLocation(R){let w=z(R);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:E,replace:C,go(R){return h.go(R)}};return k}var Ph;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(Ph||(Ph={}));function Ib(n,r,i){return i===void 0&&(i="/"),Qb(n,r,i)}function Qb(n,r,i,s){let d=typeof r=="string"?Tl(r):r,f=Nl(d.pathname||"/",i);if(f==null)return null;let h=qp(n);Zb(h);let p=null;for(let b=0;p==null&&b<h.length;++b){let g=rx(f);p=nx(h[b],g)}return p}function qp(n,r,i,s){r===void 0&&(r=[]),i===void 0&&(i=[]),s===void 0&&(s="");let d=(f,h,p)=>{let b={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};b.relativePath.startsWith("/")&&(Be(b.relativePath.startsWith(s),'Absolute route path "'+b.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),b.relativePath=b.relativePath.slice(s.length));let g=ln([s,b.relativePath]),S=i.concat(b);f.children&&f.children.length>0&&(Be(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),qp(f.children,r,S,g)),!(f.path==null&&!f.index)&&r.push({path:g,score:tx(g,f.index),routesMeta:S})};return n.forEach((f,h)=>{var p;if(f.path===""||!((p=f.path)!=null&&p.includes("?")))d(f,h);else for(let b of Gp(f.path))d(f,h,b)}),r}function Gp(n){let r=n.split("/");if(r.length===0)return[];let[i,...s]=r,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return d?[f,""]:[f];let h=Gp(s.join("/")),p=[];return p.push(...h.map(b=>b===""?f:[f,b].join("/"))),d&&p.push(...h),p.map(b=>n.startsWith("/")&&b===""?"/":b)}function Zb(n){n.sort((r,i)=>r.score!==i.score?i.score-r.score:ax(r.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}const Jb=/^:[\w-]+$/,Pb=3,Fb=2,Wb=1,$b=10,ex=-2,Fh=n=>n==="*";function tx(n,r){let i=n.split("/"),s=i.length;return i.some(Fh)&&(s+=ex),r&&(s+=Fb),i.filter(d=>!Fh(d)).reduce((d,f)=>d+(Jb.test(f)?Pb:f===""?Wb:$b),s)}function ax(n,r){return n.length===r.length&&n.slice(0,-1).every((s,d)=>s===r[d])?n[n.length-1]-r[r.length-1]:0}function nx(n,r,i){let{routesMeta:s}=n,d={},f="/",h=[];for(let p=0;p<s.length;++p){let b=s[p],g=p===s.length-1,S=f==="/"?r:r.slice(f.length)||"/",x=uu({path:b.relativePath,caseSensitive:b.caseSensitive,end:g},S),E=b.route;if(!x)return null;Object.assign(d,x.params),h.push({params:d,pathname:ln([f,x.pathname]),pathnameBase:ux(ln([f,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(f=ln([f,x.pathnameBase]))}return h}function uu(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,s]=lx(n.path,n.caseSensitive,n.end),d=r.match(i);if(!d)return null;let f=d[0],h=f.replace(/(.)\/+$/,"$1"),p=d.slice(1);return{params:s.reduce((g,S,x)=>{let{paramName:E,isOptional:C}=S;if(E==="*"){let k=p[x]||"";h=f.slice(0,f.length-k.length).replace(/(.)\/+$/,"$1")}const z=p[x];return C&&!z?g[E]=void 0:g[E]=(z||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:n}}function lx(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!0),Cu(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let s=[],d="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,b)=>(s.push({paramName:p,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,r?void 0:"i"),s]}function rx(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Cu(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),n}}function Nl(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,s=n.charAt(i);return s&&s!=="/"?null:n.slice(i)||"/"}const sx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ix=n=>sx.test(n);function ox(n,r){r===void 0&&(r="/");let{pathname:i,search:s="",hash:d=""}=typeof n=="string"?Tl(n):n,f;if(i)if(ix(i))f=i;else{if(i.includes("//")){let h=i;i=i.replace(/\/\/+/g,"/"),Cu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(h+" -> "+i))}i.startsWith("/")?f=Wh(i.substring(1),"/"):f=Wh(i,r)}else f=r;return{pathname:f,search:dx(s),hash:fx(d)}}function Wh(n,r){let i=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function Qc(n,r,i,s){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function cx(n){return n.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Nu(n,r){let i=cx(n);return r?i.map((s,d)=>d===i.length-1?s.pathname:s.pathnameBase):i.map(s=>s.pathnameBase)}function ju(n,r,i,s){s===void 0&&(s=!1);let d;typeof n=="string"?d=Tl(n):(d=Ar({},n),Be(!d.pathname||!d.pathname.includes("?"),Qc("?","pathname","search",d)),Be(!d.pathname||!d.pathname.includes("#"),Qc("#","pathname","hash",d)),Be(!d.search||!d.search.includes("#"),Qc("#","search","hash",d)));let f=n===""||d.pathname==="",h=f?"/":d.pathname,p;if(h==null)p=i;else{let x=r.length-1;if(!s&&h.startsWith("..")){let E=h.split("/");for(;E[0]==="..";)E.shift(),x-=1;d.pathname=E.join("/")}p=x>=0?r[x]:"/"}let b=ox(d,p),g=h&&h!=="/"&&h.endsWith("/"),S=(f||h===".")&&i.endsWith("/");return!b.pathname.endsWith("/")&&(g||S)&&(b.pathname+="/"),b}const ln=n=>n.join("/").replace(/\/\/+/g,"/"),ux=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),dx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,fx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function mx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const Yp=["post","put","patch","delete"];new Set(Yp);const hx=["get",...Yp];new Set(hx);/**
|
|
60
|
+
* React Router v6.30.3
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Remix Software Inc.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
+
*
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/function Or(){return Or=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Or.apply(this,arguments)}const pi=y.createContext(null),Vp=y.createContext(null),Ea=y.createContext(null),vi=y.createContext(null),ea=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Kp=y.createContext(null);function px(n,r){let{relative:i}=r===void 0?{}:r;wl()||Be(!1);let{basename:s,navigator:d}=y.useContext(Ea),{hash:f,pathname:h,search:p}=yi(n,{relative:i}),b=h;return s!=="/"&&(b=h==="/"?s:ln([s,h])),d.createHref({pathname:b,search:p,hash:f})}function wl(){return y.useContext(vi)!=null}function _a(){return wl()||Be(!1),y.useContext(vi).location}function Xp(n){y.useContext(Ea).static||y.useLayoutEffect(n)}function gi(){let{isDataRoute:n}=y.useContext(ea);return n?Ox():vx()}function vx(){wl()||Be(!1);let n=y.useContext(pi),{basename:r,future:i,navigator:s}=y.useContext(Ea),{matches:d}=y.useContext(ea),{pathname:f}=_a(),h=JSON.stringify(Nu(d,i.v7_relativeSplatPath)),p=y.useRef(!1);return Xp(()=>{p.current=!0}),y.useCallback(function(g,S){if(S===void 0&&(S={}),!p.current)return;if(typeof g=="number"){s.go(g);return}let x=ju(g,JSON.parse(h),f,S.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:ln([r,x.pathname])),(S.replace?s.replace:s.push)(x,S.state,S)},[r,s,h,f,n])}const gx=y.createContext(null);function yx(n){let r=y.useContext(ea).outlet;return r&&y.createElement(gx.Provider,{value:n},r)}function s_(){let{matches:n}=y.useContext(ea),r=n[n.length-1];return r?r.params:{}}function yi(n,r){let{relative:i}=r===void 0?{}:r,{future:s}=y.useContext(Ea),{matches:d}=y.useContext(ea),{pathname:f}=_a(),h=JSON.stringify(Nu(d,s.v7_relativeSplatPath));return y.useMemo(()=>ju(n,JSON.parse(h),f,i==="path"),[n,h,f,i])}function bx(n,r){return xx(n,r)}function xx(n,r,i,s){wl()||Be(!1);let{navigator:d}=y.useContext(Ea),{matches:f}=y.useContext(ea),h=f[f.length-1],p=h?h.params:{};h&&h.pathname;let b=h?h.pathnameBase:"/";h&&h.route;let g=_a(),S;if(r){var x;let R=typeof r=="string"?Tl(r):r;b==="/"||(x=R.pathname)!=null&&x.startsWith(b)||Be(!1),S=R}else S=g;let E=S.pathname||"/",C=E;if(b!=="/"){let R=b.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let z=Ib(n,{pathname:C}),k=Nx(z&&z.map(R=>Object.assign({},R,{params:Object.assign({},p,R.params),pathname:ln([b,d.encodeLocation?d.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:ln([b,d.encodeLocation?d.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),f,i,s);return r&&k?y.createElement(vi.Provider,{value:{location:Or({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:an.Pop}},k):k}function Sx(){let n=Ax(),r=mx(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},r),i?y.createElement("pre",{style:d},i):null,null)}const Ex=y.createElement(Sx,null);class _x extends y.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,i){return i.location!==r.location||i.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:i.error,location:i.location,revalidation:r.revalidation||i.revalidation}}componentDidCatch(r,i){console.error("React Router caught the following error during render",r,i)}render(){return this.state.error!==void 0?y.createElement(ea.Provider,{value:this.props.routeContext},y.createElement(Kp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cx(n){let{routeContext:r,match:i,children:s}=n,d=y.useContext(pi);return d&&d.static&&d.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=i.route.id),y.createElement(ea.Provider,{value:r},s)}function Nx(n,r,i,s){var d;if(r===void 0&&(r=[]),i===void 0&&(i=null),s===void 0&&(s=null),n==null){var f;if(!i)return null;if(i.errors)n=i.matches;else if((f=s)!=null&&f.v7_partialHydration&&r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let h=n,p=(d=i)==null?void 0:d.errors;if(p!=null){let S=h.findIndex(x=>x.route.id&&(p==null?void 0:p[x.route.id])!==void 0);S>=0||Be(!1),h=h.slice(0,Math.min(h.length,S+1))}let b=!1,g=-1;if(i&&s&&s.v7_partialHydration)for(let S=0;S<h.length;S++){let x=h[S];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=S),x.route.id){let{loaderData:E,errors:C}=i,z=x.route.loader&&E[x.route.id]===void 0&&(!C||C[x.route.id]===void 0);if(x.route.lazy||z){b=!0,g>=0?h=h.slice(0,g+1):h=[h[0]];break}}}return h.reduceRight((S,x,E)=>{let C,z=!1,k=null,R=null;i&&(C=p&&x.route.id?p[x.route.id]:void 0,k=x.route.errorElement||Ex,b&&(g<0&&E===0?(kx("route-fallback"),z=!0,R=null):g===E&&(z=!0,R=x.route.hydrateFallbackElement||null)));let w=r.concat(h.slice(0,E+1)),K=()=>{let Z;return C?Z=k:z?Z=R:x.route.Component?Z=y.createElement(x.route.Component,null):x.route.element?Z=x.route.element:Z=S,y.createElement(Cx,{match:x,routeContext:{outlet:S,matches:w,isDataRoute:i!=null},children:Z})};return i&&(x.route.ErrorBoundary||x.route.errorElement||E===0)?y.createElement(_x,{location:i.location,revalidation:i.revalidation,component:k,error:C,children:K(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):K()},null)}var Ip=(function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n})(Ip||{}),Qp=(function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n})(Qp||{});function jx(n){let r=y.useContext(pi);return r||Be(!1),r}function Tx(n){let r=y.useContext(Vp);return r||Be(!1),r}function wx(n){let r=y.useContext(ea);return r||Be(!1),r}function Zp(n){let r=wx(),i=r.matches[r.matches.length-1];return i.route.id||Be(!1),i.route.id}function Ax(){var n;let r=y.useContext(Kp),i=Tx(),s=Zp();return r!==void 0?r:(n=i.errors)==null?void 0:n[s]}function Ox(){let{router:n}=jx(Ip.UseNavigateStable),r=Zp(Qp.UseNavigateStable),i=y.useRef(!1);return Xp(()=>{i.current=!0}),y.useCallback(function(d,f){f===void 0&&(f={}),i.current&&(typeof d=="number"?n.navigate(d):n.navigate(d,Or({fromRouteId:r},f)))},[n,r])}const $h={};function kx(n,r,i){$h[n]||($h[n]=!0)}function Dx(n,r){n==null||n.v7_startTransition,n==null||n.v7_relativeSplatPath}function Zc(n){let{to:r,replace:i,state:s,relative:d}=n;wl()||Be(!1);let{future:f,static:h}=y.useContext(Ea),{matches:p}=y.useContext(ea),{pathname:b}=_a(),g=gi(),S=ju(r,Nu(p,f.v7_relativeSplatPath),b,d==="path"),x=JSON.stringify(S);return y.useEffect(()=>g(JSON.parse(x),{replace:i,state:s,relative:d}),[g,x,d,i,s]),null}function Rx(n){return yx(n.context)}function it(n){Be(!1)}function zx(n){let{basename:r="/",children:i=null,location:s,navigationType:d=an.Pop,navigator:f,static:h=!1,future:p}=n;wl()&&Be(!1);let b=r.replace(/^\/*/,"/"),g=y.useMemo(()=>({basename:b,navigator:f,static:h,future:Or({v7_relativeSplatPath:!1},p)}),[b,p,f,h]);typeof s=="string"&&(s=Tl(s));let{pathname:S="/",search:x="",hash:E="",state:C=null,key:z="default"}=s,k=y.useMemo(()=>{let R=Nl(S,b);return R==null?null:{location:{pathname:R,search:x,hash:E,state:C,key:z},navigationType:d}},[b,S,x,E,C,z,d]);return k==null?null:y.createElement(Ea.Provider,{value:g},y.createElement(vi.Provider,{children:i,value:k}))}function Mx(n){let{children:r,location:i}=n;return bx(du(r),i)}new Promise(()=>{});function du(n,r){r===void 0&&(r=[]);let i=[];return y.Children.forEach(n,(s,d)=>{if(!y.isValidElement(s))return;let f=[...r,d];if(s.type===y.Fragment){i.push.apply(i,du(s.props.children,f));return}s.type!==it&&Be(!1),!s.props.index||!s.props.children||Be(!1);let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=du(s.props.children,f)),i.push(h)}),i}/**
|
|
69
|
+
* React Router DOM v6.30.3
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Remix Software Inc.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
75
|
+
*
|
|
76
|
+
* @license MIT
|
|
77
|
+
*/function fi(){return fi=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},fi.apply(this,arguments)}function Jp(n,r){if(n==null)return{};var i={},s=Object.keys(n),d,f;for(f=0;f<s.length;f++)d=s[f],!(r.indexOf(d)>=0)&&(i[d]=n[d]);return i}function Ux(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Lx(n,r){return n.button===0&&(!r||r==="_self")&&!Ux(n)}const Bx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hx=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],qx="6";try{window.__reactRouterVersion=qx}catch{}const Gx=y.createContext({isTransitioning:!1}),Yx="startTransition",ep=_u[Yx];function Vx(n){let{basename:r,children:i,future:s,window:d}=n,f=y.useRef();f.current==null&&(f.current=Vb({window:d,v5Compat:!0}));let h=f.current,[p,b]=y.useState({action:h.action,location:h.location}),{v7_startTransition:g}=s||{},S=y.useCallback(x=>{g&&ep?ep(()=>b(x)):b(x)},[b,g]);return y.useLayoutEffect(()=>h.listen(S),[h,S]),y.useEffect(()=>Dx(s),[s]),y.createElement(zx,{basename:r,children:i,location:p.location,navigationType:p.action,navigator:h,future:s})}const Kx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=y.forwardRef(function(r,i){let{onClick:s,relative:d,reloadDocument:f,replace:h,state:p,target:b,to:g,preventScrollReset:S,viewTransition:x}=r,E=Jp(r,Bx),{basename:C}=y.useContext(Ea),z,k=!1;if(typeof g=="string"&&Xx.test(g)&&(z=g,Kx))try{let Z=new URL(window.location.href),Q=g.startsWith("//")?new URL(Z.protocol+g):new URL(g),le=Nl(Q.pathname,C);Q.origin===Z.origin&&le!=null?g=le+Q.search+Q.hash:k=!0}catch{}let R=px(g,{relative:d}),w=Zx(g,{replace:h,state:p,target:b,preventScrollReset:S,relative:d,viewTransition:x});function K(Z){s&&s(Z),Z.defaultPrevented||w(Z)}return y.createElement("a",fi({},E,{href:z||R,onClick:k||f?s:K,ref:i,target:b}))}),Ix=y.forwardRef(function(r,i){let{"aria-current":s="page",caseSensitive:d=!1,className:f="",end:h=!1,style:p,to:b,viewTransition:g,children:S}=r,x=Jp(r,Hx),E=yi(b,{relative:x.relative}),C=_a(),z=y.useContext(Vp),{navigator:k,basename:R}=y.useContext(Ea),w=z!=null&&Jx(E)&&g===!0,K=k.encodeLocation?k.encodeLocation(E).pathname:E.pathname,Z=C.pathname,Q=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;d||(Z=Z.toLowerCase(),Q=Q?Q.toLowerCase():null,K=K.toLowerCase()),Q&&R&&(Q=Nl(Q,R)||Q);const le=K!=="/"&&K.endsWith("/")?K.length-1:K.length;let oe=Z===K||!h&&Z.startsWith(K)&&Z.charAt(le)==="/",G=Q!=null&&(Q===K||!h&&Q.startsWith(K)&&Q.charAt(K.length)==="/"),X={isActive:oe,isPending:G,isTransitioning:w},V=oe?s:void 0,he;typeof f=="function"?he=f(X):he=[f,oe?"active":null,G?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let He=typeof p=="function"?p(X):p;return y.createElement(Pp,fi({},x,{"aria-current":V,className:he,ref:i,style:He,to:b,viewTransition:g}),typeof S=="function"?S(X):S)});var fu;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(fu||(fu={}));var tp;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(tp||(tp={}));function Qx(n){let r=y.useContext(pi);return r||Be(!1),r}function Zx(n,r){let{target:i,replace:s,state:d,preventScrollReset:f,relative:h,viewTransition:p}=r===void 0?{}:r,b=gi(),g=_a(),S=yi(n,{relative:h});return y.useCallback(x=>{if(Lx(x,i)){x.preventDefault();let E=s!==void 0?s:di(g)===di(S);b(n,{replace:E,state:d,preventScrollReset:f,relative:h,viewTransition:p})}},[g,b,S,s,d,i,n,f,h,p])}function Jx(n,r){r===void 0&&(r={});let i=y.useContext(Gx);i==null&&Be(!1);let{basename:s}=Qx(fu.useViewTransitionState),d=yi(n,{relative:r.relative});if(!i.isTransitioning)return!1;let f=Nl(i.currentLocation.pathname,s)||i.currentLocation.pathname,h=Nl(i.nextLocation.pathname,s)||i.nextLocation.pathname;return uu(d.pathname,h)!=null||uu(d.pathname,f)!=null}const ap=n=>{let r;const i=new Set,s=(g,S)=>{const x=typeof g=="function"?g(r):g;if(!Object.is(x,r)){const E=r;r=S??(typeof x!="object"||x===null)?x:Object.assign({},r,x),i.forEach(C=>C(r,E))}},d=()=>r,p={setState:s,getState:d,getInitialState:()=>b,subscribe:g=>(i.add(g),()=>i.delete(g))},b=r=n(s,d,p);return p},Px=(n=>n?ap(n):ap),Fx=n=>n;function Wx(n,r=Fx){const i=Nr.useSyncExternalStore(n.subscribe,Nr.useCallback(()=>r(n.getState()),[n,r]),Nr.useCallback(()=>r(n.getInitialState()),[n,r]));return Nr.useDebugValue(i),i}const np=n=>{const r=Px(n),i=s=>Wx(r,s);return Object.assign(i,r),i},ta=(n=>n?np(n):np);function Jc(n){return Array.isArray(n)?n.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const i=r;if(typeof i.description=="string")return i.description;if(typeof i.requirement=="string")return i.requirement;if(typeof i.text=="string")return i.text;if(typeof i.id=="string")return`Gap ${i.id}`}return String(r)}):[]}function lp(n){const r=n,i=r.verification??{},s=r.validation??{},d=r.uat??{};return{...n,goal:n.goal??"",success_criteria:n.success_criteria??[],requirements:n.requirements??[],spec_ref:n.spec_ref??null,plan:n.plan??{task_ids:[],task_count:0,complexity:null,waves:[]},execution:n.execution??{method:"",started_at:null,completed_at:null,tasks_completed:0,tasks_total:0,current_wave:0,commits:[]},verification:{status:String(i.status??"pending"),verified_at:i.verified_at??null,must_haves:Array.isArray(i.must_haves)?i.must_haves:[],gaps:Jc(i.gaps)},validation:{status:String(s.status??"pending"),test_coverage:typeof s.test_coverage=="number"||s.test_coverage&&typeof s.test_coverage=="object"?s.test_coverage:null,gaps:Jc(s.gaps)},uat:{status:String(d.status??"pending"),test_count:typeof d.test_count=="number"?d.test_count:0,passed:typeof d.passed=="number"?d.passed:0,gaps:Jc(d.gaps)},reflection:r.reflection??{rounds:0,strategy_adjustments:[]}}}const Ot=ta(n=>({board:null,connected:!1,selectedPhase:null,workspace:null,setBoard:r=>{r&&(r={...r,phases:r.phases.map(i=>lp(i))}),n({board:r})},updatePhase:(r,i)=>n(s=>{if(!s.board)return s;const d=s.board.phases.map(f=>f.phase===r?lp({...f,...i}):f);return{board:{...s.board,phases:d}}}),updateTask:(r,i)=>n(s=>{if(!s.board)return s;const d=s.board.phases.map(f=>f.plan.task_ids.indexOf(r)===-1?f:{...f,updated_at:new Date().toISOString()});return{board:{...s.board,phases:d}}}),setConnected:r=>n({connected:r}),setSelectedPhase:r=>n({selectedPhase:r}),setWorkspace:r=>n({workspace:r})})),ii={pollIntervalMs:3e4,maxConcurrentWorkers:3,stallTimeoutMs:3e5,maxRetries:2,retryBackoffMs:6e4,decisionModel:"sonnet",assessMaxTurns:5,autoApproveThreshold:"low",defaultExecutor:"claude-code",safety:{eventDebounceMs:5e3,circuitBreakerThreshold:3,maxTicksPerHour:120,maxTokensPerHour:5e5,protectedPaths:[".env",".env.*","*.key","*.pem","credentials.*"]},workspace:{enabled:!1,useWorktree:!0,autoCleanup:!0,strict:!1},profile:"development"},Fp={"claude-code":{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},codex:{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},"codex-server":{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},gemini:{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},"gemini-a2a":{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},qwen:{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},opencode:{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""},"agent-sdk":{model:"",approvalMode:"suggest",baseUrl:"",apiKey:"",settingsFile:"",envFile:""}},Pc={general:{theme:"system",language:"en"},agents:Fp,cliTools:"{}",linear:{apiKey:""},searchTool:"mcp__ace-tool__search_context",commander:ii};function _r(n){return JSON.parse(JSON.stringify(n))}const de=ta((n,r)=>({open:!1,activeSection:"general",config:null,draft:null,loading:!1,saving:!1,error:null,chineseResponse:null,setOpen:i=>{n({open:i}),i&&!r().config&&r().loadConfig()},setActiveSection:i=>n({activeSection:i}),loadConfig:async()=>{n({loading:!0,error:null});try{const i=await fetch("/api/settings");if(!i.ok)throw new Error(`Failed to load settings: ${i.status}`);const s=await i.json(),d=Object.fromEntries(Object.entries(Fp).map(([g,S])=>{var x;return[g,{...S,...((x=s.agents)==null?void 0:x[g])||{}}]})),f=typeof s.searchTool=="string"?s.searchTool:Pc.searchTool,h=s.commander,p={...ii,...h,safety:{...ii.safety,...h==null?void 0:h.safety},workspace:{...ii.workspace,...h==null?void 0:h.workspace}},b={...Pc,...s,agents:d,searchTool:f,commander:p};n({config:b,draft:_r(b),loading:!1})}catch(i){const s=_r(Pc);n({config:s,draft:_r(s),loading:!1,error:String(i)})}},updateDraft:(i,s)=>{const{draft:d}=r();d&&n({draft:{...d,[i]:s}})},saveConfig:async i=>{const{draft:s}=r();if(s){n({saving:!0,error:null});try{const d=i==="cliTools"?"/api/settings/cli-tools":i==="searchTool"?"/api/settings/search-tool":`/api/settings/${i}`,f=i==="searchTool"?{name:s[i]}:s[i],h=await fetch(d,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(typeof f=="string"?{content:f}:f)});if(!h.ok)throw new Error(`Failed to save: ${h.status}`);const{config:p}=r();if(p){const b={...p,[i]:_r(s[i])};n({config:b,saving:!1})}else n({saving:!1})}catch(d){n({saving:!1,error:String(d)})}}},discardDraft:i=>{const{config:s,draft:d}=r();!s||!d||n({draft:{...d,[i]:_r(s[i])}})},isDirty:i=>{const{config:s,draft:d}=r();return!s||!d?!1:JSON.stringify(s[i])!==JSON.stringify(d[i])},loadChineseResponse:async()=>{try{const i=await fetch("/api/language/chinese-response");if(!i.ok)return;const s=await i.json();n({chineseResponse:s})}catch{}},toggleChineseResponse:async(i,s)=>{try{const d=await fetch("/api/language/chinese-response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:i,target:s})});if(!d.ok)throw new Error(`Failed: ${d.status}`);await r().loadChineseResponse()}catch(d){n({error:String(d)})}}})),Wp=y.createContext({config:null,register:()=>{},unregister:()=>{}});function $x(){const[n,r]=y.useState(null),i=y.useCallback(d=>r(d),[]),s=y.useCallback(()=>r(null),[]);return{config:n,register:i,unregister:s}}function e0(){return y.useContext(Wp).config}function t0(){const n=e0();return y.useEffect(()=>{if(!n)return;function r(i){if(i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;const s=parseInt(i.key,10);s>=1&&s<=n.items.length&&n.onSwitch(s-1)}return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[n]),!n||n.items.length===0?null:u.jsx("div",{className:"inline-flex items-center bg-bg-tertiary rounded-[10px] p-[3px] gap-[2px]",children:n.items.map((r,i)=>{const s=i===n.activeIndex;return u.jsxs("button",{type:"button",onClick:()=>n.onSwitch(i),className:["relative flex items-center gap-[var(--spacing-1-5)] px-[var(--spacing-3)] py-[var(--spacing-1)] rounded-[8px]","text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)]","transition-colors duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",s?"text-text-primary":"text-text-tertiary hover:text-text-secondary"].join(" "),children:[u.jsx("div",{className:"absolute inset-0 rounded-[8px] shadow-sm",style:{backgroundColor:s?"var(--color-bg-card)":"transparent",opacity:s?1:0,transition:"opacity 150ms ease, background-color 150ms ease"}}),u.jsxs("span",{className:"relative z-10 flex items-center gap-[var(--spacing-1-5)]",children:[u.jsx("span",{className:"w-[14px] h-[14px] flex items-center justify-center",children:r.icon}),u.jsx("span",{children:r.label}),u.jsx("kbd",{className:"text-[length:9px] text-text-placeholder font-mono ml-[var(--spacing-0-5)]",children:r.shortcut})]})]},r.label)})})}const $p="maestro.recentWorkspaces",a0=5;function n0(n){return n.split(/[\\/]/).filter(Boolean).at(-1)??n}function ev(){try{const n=localStorage.getItem($p);if(!n)return[];const r=JSON.parse(n);return Array.isArray(r)?r:[]}catch{return[]}}function l0(n){try{localStorage.setItem($p,JSON.stringify(n))}catch{}}function r0(n){const r=ev().filter(i=>i!==n);r.unshift(n),l0(r.slice(0,a0))}function s0(){const n=Ot(G=>G.workspace),r=Ot(G=>G.setWorkspace),[i,s]=y.useState(!1),[d,f]=y.useState(""),[h,p]=y.useState(null),[b,g]=y.useState(!1),[S,x]=y.useState([]),[E,C]=y.useState(!1),[z,k]=y.useState(null),[R,w]=y.useState(!1),K=y.useRef(null);y.useEffect(()=>{i&&(x(ev()),f(""),p(null),C(!1),k(null))},[i]),y.useEffect(()=>{if(!i)return;function G(X){K.current&&!K.current.contains(X.target)&&s(!1)}return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[i]);const Z=y.useCallback(async G=>{if(G.trim()){g(!0),p(null);try{const X=await fetch("/api/workspace",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:G.trim()})});if(!X.ok){const V=await X.json().catch(()=>({}));p(V.error??`Error ${X.status}`);return}r0(G.trim()),r(G.trim()),s(!1)}catch(X){p(X instanceof Error?X.message:"Network error")}finally{g(!1)}}},[r]),Q=y.useCallback(async G=>{w(!0);try{const X=G?`/api/workspace/browse?path=${encodeURIComponent(G)}`:"/api/workspace/browse",V=await fetch(X);if(!V.ok){p("Failed to browse directory");return}const he=await V.json();k(he),C(!0)}catch{p("Failed to browse directory")}finally{w(!1)}},[]),le=y.useCallback(G=>{G.key==="Escape"&&(E?C(!1):s(!1))},[E]),oe=n?n0(n):"—";return u.jsxs("div",{ref:K,className:"relative flex items-center",onKeyDown:le,children:[u.jsxs("button",{type:"button",onClick:()=>s(G=>!G),className:["flex items-center gap-[var(--spacing-1)] px-[var(--spacing-2)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)] text-text-secondary","transition-colors duration-[var(--duration-fast)] ease-[var(--ease-notion)]","hover:bg-bg-hover hover:text-text-primary","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]"].join(" "),"aria-haspopup":"listbox","aria-expanded":i,children:[u.jsx("span",{className:"text-text-placeholder",children:"/"}),u.jsx("span",{className:"max-w-[160px] truncate",children:oe}),u.jsx("span",{className:"text-[length:9px] text-text-placeholder ml-[2px]",children:"▼"})]}),i&&u.jsx("div",{role:"dialog","aria-label":"Switch workspace",className:["absolute top-full left-0 mt-[4px] w-[360px] z-50","bg-bg-secondary border border-border rounded-[var(--radius-md)]","shadow-[var(--shadow-lg,0_8px_24px_rgba(0,0,0,0.18))]","p-[var(--spacing-2)]"].join(" "),children:E&&z?u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-[var(--spacing-1)] mb-[var(--spacing-2)] px-[var(--spacing-1)]",children:[u.jsx("button",{type:"button",onClick:()=>C(!1),className:"text-[length:var(--font-size-xs)] text-text-secondary hover:text-text-primary px-[var(--spacing-1)] py-[2px] rounded-[var(--radius-sm)] hover:bg-bg-hover",children:"← Back"}),u.jsx("span",{className:"text-[length:var(--font-size-xs)] text-text-placeholder truncate flex-1 text-right",children:z.current})]}),z.parent&&u.jsxs("button",{type:"button",onClick:()=>Q(z.parent),disabled:R,className:["w-full text-left flex items-center gap-[var(--spacing-2)]","px-[var(--spacing-2)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)] text-text-secondary","transition-colors duration-[var(--duration-fast)]","hover:bg-bg-hover cursor-pointer"].join(" "),children:[u.jsx("span",{className:"text-text-placeholder text-[length:var(--font-size-xs)]",children:"📂"}),u.jsx("span",{children:".."})]}),u.jsx("div",{className:"max-h-[240px] overflow-y-auto",children:z.entries.length===0?u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-text-placeholder px-[var(--spacing-2)] py-[var(--spacing-2)] text-center",children:"No subdirectories"}):z.entries.map(G=>u.jsxs("div",{className:"flex items-center gap-[2px]",children:[u.jsxs("button",{type:"button",onClick:()=>Q(G.path),disabled:R,className:["flex-1 text-left flex items-center gap-[var(--spacing-2)]","px-[var(--spacing-2)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)]","transition-colors duration-[var(--duration-fast)]","hover:bg-bg-hover cursor-pointer",G.hasWorkflow?"text-text-primary":"text-text-secondary"].join(" "),children:[u.jsx("span",{className:"text-[length:var(--font-size-xs)]",children:G.hasWorkflow?"📂":"📁"}),u.jsx("span",{className:"truncate",children:G.name}),G.hasWorkflow&&u.jsx("span",{className:"text-[length:9px] text-accent-blue bg-[rgba(55,120,220,0.1)] px-[4px] py-[1px] rounded-[3px] shrink-0",children:".workflow"})]}),G.hasWorkflow&&u.jsx("button",{type:"button",onClick:()=>Z(G.path),disabled:b,className:["shrink-0 px-[var(--spacing-1-5)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-xs)] text-accent-blue","hover:bg-[rgba(55,120,220,0.1)] cursor-pointer","transition-colors duration-[var(--duration-fast)]"].join(" "),children:"Open"})]},G.path))})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"mb-[var(--spacing-2)]",children:[u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-text-placeholder px-[var(--spacing-2)] mb-[var(--spacing-1)]",children:"Recent"}),S.length>0?u.jsx("ul",{role:"listbox",children:S.map(G=>u.jsx("li",{children:u.jsxs("button",{type:"button",role:"option","aria-selected":G===n,onClick:()=>Z(G),disabled:b,className:["w-full text-left flex items-center gap-[var(--spacing-2)]","px-[var(--spacing-2)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)]","transition-colors duration-[var(--duration-fast)]","hover:bg-bg-hover focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",G===n?"text-text-primary":"text-text-secondary",b?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),children:[u.jsx("span",{className:"text-text-placeholder text-[length:var(--font-size-xs)]",children:"📁"}),u.jsx("span",{className:"truncate flex-1",children:G}),G===n&&u.jsx("span",{className:"text-[length:var(--font-size-xs)] text-text-placeholder shrink-0",children:"current"})]})},G))}):u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-text-placeholder px-[var(--spacing-2)] py-[var(--spacing-1)] italic",children:"No recent workspaces"}),u.jsx("div",{className:"border-t border-border mt-[var(--spacing-2)] mb-[var(--spacing-2)]"})]}),u.jsxs("div",{className:"px-[var(--spacing-1)] flex flex-col gap-[var(--spacing-2)]",children:[u.jsx("label",{className:"text-[length:var(--font-size-xs)] text-text-placeholder",children:"Path"}),u.jsxs("div",{className:"flex gap-[var(--spacing-1)]",children:[u.jsx("input",{type:"text",value:d,onChange:G=>f(G.target.value),onKeyDown:G=>{G.key==="Enter"&&Z(d)},placeholder:"/path/to/workspace",autoFocus:!0,className:["flex-1 min-w-0 px-[var(--spacing-2)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","bg-bg-tertiary border border-border","text-[length:var(--font-size-sm)] text-text-primary placeholder:text-text-placeholder","focus:outline-none focus:border-accent-blue","transition-colors duration-[var(--duration-fast)]"].join(" ")}),u.jsx("button",{type:"button",onClick:()=>Q(d.trim()||void 0),disabled:R,title:"Browse folders",className:["shrink-0 flex items-center justify-center w-[32px] rounded-[var(--radius-sm)]","bg-bg-tertiary border border-border text-text-secondary","hover:bg-bg-hover hover:text-text-primary cursor-pointer","transition-colors duration-[var(--duration-fast)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]"].join(" "),children:u.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})})})]}),h&&u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-status-blocked px-[var(--spacing-1)]",children:h}),u.jsx("button",{type:"button",onClick:()=>Z(d),disabled:b||!d.trim(),className:["w-full px-[var(--spacing-3)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)]","bg-bg-tertiary border border-border text-text-secondary","transition-colors duration-[var(--duration-fast)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",b||!d.trim()?"opacity-40 cursor-not-allowed":"hover:bg-bg-hover hover:text-text-primary cursor-pointer"].join(" "),children:b?"Switching...":"Switch workspace"})]})]})})]})}const i_=[{id:"backlog",label:"Backlog",statuses:["not_started","pending"]},{id:"triage",label:"Triage",statuses:[]},{id:"in-progress",label:"In Progress",statuses:["exploring","planning","executing"]},{id:"review",label:"Review",statuses:["verifying","testing"]},{id:"done",label:"Done",statuses:["completed","blocked"]},{id:"deferred",label:"Deferred",statuses:[]}],rp={HEALTH:"/api/health",BOARD:"/api/board",PROJECT:"/api/project",PHASES:"/api/phases",PHASE:"/api/phases/:n",PHASE_TASKS:"/api/phases/:n/tasks",ARTIFACTS:"/api/artifacts",SCRATCH:"/api/scratch",SETTINGS:"/api/settings",SETTINGS_GENERAL:"/api/settings/general",SETTINGS_AGENTS:"/api/settings/agents",SETTINGS_CLI_TOOLS:"/api/settings/cli-tools",SETTINGS_SPECS:"/api/settings/specs"},o_={SPECS:"/api/specs",SPECS_FILES:"/api/specs/files",SPECS_FILE:"/api/specs/file/:name"},c_={WIKI:"/api/wiki",WIKI_STATS:"/api/wiki/stats",WIKI_HEALTH:"/api/wiki/health",WIKI_GRAPH:"/api/wiki/graph",WIKI_ORPHANS:"/api/wiki/orphans",WIKI_HUBS:"/api/wiki/hubs",WIKI_DETAIL:"/api/wiki/:id",WIKI_BACKLINKS:"/api/wiki/:id/backlinks",WIKI_FORWARD:"/api/wiki/:id/forward"},u_={CONFIG:"/api/mcp-config",TOGGLE:"/api/mcp-toggle",COPY_SERVER:"/api/mcp-copy-server",REMOVE_SERVER:"/api/mcp-remove-server",ADD_GLOBAL:"/api/mcp-add-global-server",REMOVE_GLOBAL:"/api/mcp-remove-global-server",UPDATE_SERVER:"/api/mcp-update-server",INSTALL_MAESTRO:"/api/mcp-install-maestro",CODEX_CONFIG:"/api/codex-mcp-config",CODEX_ADD:"/api/codex-mcp-add",CODEX_REMOVE:"/api/codex-mcp-remove",CODEX_TOGGLE:"/api/codex-mcp-toggle",TEMPLATES:"/api/mcp-templates",TEMPLATES_SEARCH:"/api/mcp-templates/search",TEMPLATES_CATEGORIES:"/api/mcp-templates/categories",TEMPLATES_INSTALL:"/api/mcp-templates/install",DETECT_COMMANDS:"/api/mcp/detect-commands"},ke={AGENT_SPAWNED:"agent:spawned",AGENT_ENTRY:"agent:entry",AGENT_APPROVAL:"agent:approval",AGENT_STATUS:"agent:status",AGENT_STOPPED:"agent:stopped",AGENT_THOUGHT:"agent:thought",AGENT_STREAMING:"agent:streaming",EXECUTION_STARTED:"execution:started",EXECUTION_COMPLETED:"execution:completed",EXECUTION_FAILED:"execution:failed",EXECUTION_SCHEDULER_STATUS:"execution:scheduler_status",SUPERVISOR_STATUS:"supervisor:status",COMMANDER_STATUS:"commander:status",COMMANDER_DECISION:"commander:decision",COORDINATE_STATUS:"coordinate:status",COORDINATE_STEP:"coordinate:step",COORDINATE_ANALYSIS:"coordinate:analysis",COORDINATE_CLARIFICATION_NEEDED:"coordinate:clarification_needed",REQUIREMENT_EXPANDED:"requirement:expanded",REQUIREMENT_COMMITTED:"requirement:committed",REQUIREMENT_PROGRESS:"requirement:progress",BOARD_FULL:"board:full",PHASE_UPDATED:"phase:updated",TASK_UPDATED:"task:updated",PROJECT_UPDATED:"project:updated",HEARTBEAT:"heartbeat",CONNECTED:"connected"},Ps={ISSUES:"/api/issues",ISSUE:"/api/issues/:id"},Fc={STATUS:"/api/linear/status",TEAMS:"/api/linear/teams",BOARD:"/api/linear/board",IMPORT:"/api/linear/import",EXPORT:"/api/linear/export"},d_={SESSIONS:"/api/teams/sessions",SESSION:"/api/teams/sessions/:sessionId",SESSION_MESSAGES:"/api/teams/sessions/:sessionId/messages",SESSION_FILE:"/api/teams/sessions/:sessionId/files"},yl={MEMBERS:"/api/collab/members",ACTIVITY:"/api/collab/activity",STATUS:"/api/collab/status",AGGREGATED:"/api/collab/activity/aggregated",PREFLIGHT:"/api/collab/preflight"},f_={DETECT:"/api/install/detect",EXECUTE:"/api/install/execute",MANIFESTS:"/api/install/manifests"},tv={not_started:"#A09D97",pending:"#A09D97",exploring:"#5B8DB8",planning:"#9178B5",executing:"#B89540",verifying:"#C8863A",testing:"#5B8DB8",completed:"#5A9E78",blocked:"#C46555"},av={"claude-code":"var(--color-accent-purple)",codex:"var(--color-accent-green)","codex-server":"var(--color-accent-green)",gemini:"var(--color-accent-blue)","gemini-a2a":"var(--color-accent-blue)",qwen:"var(--color-accent-orange)",opencode:"var(--color-text-tertiary)","agent-sdk":"var(--color-accent-purple)"},m_={"claude-code":"Claude Code",codex:"Codex","codex-server":"Codex Server",gemini:"Gemini","gemini-a2a":"Gemini (A2A)",qwen:"Qwen",opencode:"OpenCode","agent-sdk":"Agent SDK"},h_={open:"#A09D97",registered:"#C8863A",analyzing:"#5B8DB8",planned:"#9178B5",in_progress:"#B89540",resolved:"#5A9E78",closed:"#6B6966",deferred:"#8B8685"};function p_(n){switch(n.status){case"closed":return"closed";case"resolved":return"resolved";case"in_progress":return"in_progress";case"deferred":return"deferred";case"registered":return n.solution?"planned":n.analysis?"analyzing":"registered";case"open":return n.solution?"planned":n.analysis?"analyzing":"open";default:return"open"}}const Fs=ta((n,r)=>({members:[],activity:[],presence:[],aggregated:[],loading:!1,error:null,activeTab:"overview",statusFilter:"all",typeFilter:"all",memberFilter:"all",fetchMembers:async()=>{n({loading:!0,error:null});try{const i=await fetch(yl.MEMBERS);if(!i.ok)throw new Error(`Failed: ${i.status}`);const s=await i.json();n({members:s,loading:!1})}catch(i){n({loading:!1,error:String(i)})}},fetchActivity:async(i,s)=>{n({loading:!0,error:null});try{const d=new URLSearchParams;i!==void 0&&d.set("limit",String(i)),s!==void 0&&d.set("since",s);const f=d.toString(),h=f?`${yl.ACTIVITY}?${f}`:yl.ACTIVITY,p=await fetch(h);if(!p.ok)throw new Error(`Failed: ${p.status}`);const b=await p.json();n({activity:b,loading:!1})}catch(d){n({loading:!1,error:String(d)})}},fetchPresence:async()=>{n({loading:!0,error:null});try{const i=await fetch(yl.STATUS);if(!i.ok)throw new Error(`Failed: ${i.status}`);const s=await i.json(),d=Array.isArray(s)?s:s.members??[];n({presence:d,loading:!1})}catch(i){n({loading:!1,error:String(i)})}},fetchAggregated:async()=>{n({loading:!0,error:null});try{const i=await fetch(yl.AGGREGATED);if(!i.ok)throw new Error(`Failed: ${i.status}`);const s=await i.json();n({aggregated:s,loading:!1})}catch(i){n({loading:!1,error:String(i)})}},fetchPreflight:async()=>{try{const i=await fetch(yl.PREFLIGHT);if(!i.ok)throw new Error(`Failed: ${i.status}`);return await i.json()}catch(i){return n({error:String(i)}),null}},initCollab:async()=>{try{const i=await fetch("/api/collab/init",{method:"POST"}),s=await i.json();return i.ok?{success:!0}:{success:!1,error:s.error??`HTTP ${i.status}`}}catch(i){return{success:!1,error:String(i)}}},disableCollab:async()=>{try{const i=await fetch("/api/collab/disable",{method:"POST"}),s=await i.json();return i.ok?(r().clearAll(),{success:!0}):{success:!1,error:s.error??`HTTP ${i.status}`}}catch(i){return{success:!1,error:String(i)}}},addMember:async(i,s,d)=>{try{const f=await fetch("/api/collab/members",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,email:s||"",role:d||"member"})}),h=await f.json();return f.ok?(await r().fetchMembers(),{success:!0}):{success:!1,error:h.error??`HTTP ${f.status}`}}catch(f){return{success:!1,error:String(f)}}},removeMember:async i=>{try{const s=await fetch(`/api/collab/members/${encodeURIComponent(i)}`,{method:"DELETE"}),d=await s.json();return s.ok?(await r().fetchMembers(),{success:!0}):{success:!1,error:d.error??`HTTP ${s.status}`}}catch(s){return{success:!1,error:String(s)}}},setActiveTab:i=>n({activeTab:i}),setStatusFilter:i=>n({statusFilter:i}),setTypeFilter:i=>n({typeFilter:i}),setMemberFilter:i=>n({memberFilter:i}),filteredMembers:()=>{const{members:i,statusFilter:s}=r();return s==="all"?i:i.filter(d=>d.status===s)},filteredActivity:()=>{const{activity:i,typeFilter:s,memberFilter:d}=r();let f=i;return s!=="all"&&(f=f.filter(h=>h.action===s)),d!=="all"&&(f=f.filter(h=>h.user===d)),f},recentActivity:i=>{const{activity:s}=r();return s.slice(-i)},clearAll:()=>n({members:[],activity:[],presence:[],aggregated:[],loading:!1,error:null,activeTab:"overview",statusFilter:"all",typeFilter:"all",memberFilter:"all"})})),i0={online:"#22c55e",offline:"#9ca3af",away:"#eab308"},v_={join:"#22c55e",phase_change:"#a78bfa",task_update:"#34d399",message:"#60a5fa",discussion:"#60a5fa",report:"#f59e0b",sync:"#06b6d4"},sp=4,Ws=32,ip=-8,o0=6e4,op=i0;function c0(){const n=Fs(x=>x.presence),r=Fs(x=>x.fetchPreflight),i=Fs(x=>x.fetchPresence),s=Fs(x=>x.disableCollab),[d,f]=y.useState(null),[h,p]=y.useState(!1);if(y.useEffect(()=>{let x=!1;return(async()=>{const E=await r();if(x)return;const C=(E==null?void 0:E.exists)??!1;f(C),C&&i()})(),()=>{x=!0}},[]),y.useEffect(()=>{if(!d)return;const x=setInterval(()=>{i()},o0);return()=>clearInterval(x)},[d,i]),!d||n.length===0)return null;const b=n.slice(0,sp),g=n.length-sp;async function S(){p(!1),(await s()).success&&f(!1)}return u.jsxs("div",{className:"relative flex items-center flex-shrink-0",children:[u.jsxs("button",{type:"button",onClick:()=>p(x=>!x),className:"flex items-center cursor-pointer",role:"group","aria-label":"Online members",children:[b.map((x,E)=>u.jsxs("div",{title:`${x.name} — ${x.status}`,className:"relative rounded-full border-2 border-bg-secondary",style:{width:Ws,height:Ws,marginLeft:E===0?0:ip,backgroundColor:"#6b7280",zIndex:b.length-E},children:[u.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-white text-[10px] font-semibold select-none",children:x.name.charAt(0).toUpperCase()}),u.jsx("span",{className:"absolute bottom-0 right-0 w-2 h-2 rounded-full border-[1.5px] border-bg-secondary",style:{backgroundColor:op[x.status]}})]},x.uid)),g>0&&u.jsx("div",{className:"relative flex items-center justify-center rounded-full border-2 border-bg-secondary bg-bg-hover",style:{width:Ws,height:Ws,marginLeft:ip,zIndex:0},children:u.jsxs("span",{className:"text-text-secondary text-[9px] font-semibold",children:["+",g]})})]}),h&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>p(!1)}),u.jsxs("div",{className:"absolute right-0 top-full mt-1 z-50 min-w-[180px] rounded-[var(--radius-md,6px)] border border-border bg-bg-primary shadow-lg py-1",children:[u.jsxs("div",{className:"px-3 py-1.5 text-[10px] text-text-quaternary uppercase tracking-wider",children:["Team (",n.length,")"]}),n.map(x=>u.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:op[x.status]}}),u.jsx("span",{className:"text-[length:var(--font-size-xs)] text-text-primary truncate",children:x.name}),u.jsx("span",{className:"text-[10px] text-text-quaternary ml-auto",children:x.status})]},x.uid)),u.jsx("div",{className:"h-px bg-border my-1"}),u.jsx("button",{type:"button",onClick:S,className:"w-full text-left px-3 py-1.5 text-[length:var(--font-size-xs)] text-accent-red hover:bg-bg-hover transition-colors",children:"Disable Team Mode"})]})]})]})}function u0(){const n=Ot(b=>b.board),r=Ot(b=>b.connected),i=de(b=>b.setOpen),{t:s,locale:d,setLocale:f}=yt(),h=n==null?void 0:n.project,p=()=>{f(d==="en"?"zh-CN":"en")};return u.jsxs("header",{role:"banner",className:"flex items-center justify-between px-[var(--spacing-4)] h-[var(--size-topbar-height)] bg-bg-secondary border-b border-border shrink-0",children:[u.jsxs("div",{className:"flex items-center gap-[var(--spacing-3)]",children:[u.jsx("span",{className:"font-[800] text-[length:var(--font-size-base)] text-text-primary tracking-[-0.02em]","aria-hidden":"true",children:"Maestro"}),u.jsx(s0,{}),h&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-text-placeholder text-[length:var(--font-size-sm)]",children:"·"}),u.jsx("span",{className:"text-text-secondary text-[length:var(--font-size-sm)] truncate max-w-[200px]",children:h.current_milestone||h.project_name})]})]}),u.jsx("div",{className:"flex-1 flex justify-center",children:u.jsx(t0,{})}),u.jsxs("div",{className:"flex items-center gap-[var(--spacing-4)]",children:[u.jsxs("button",{type:"button",onClick:p,"aria-label":s("language_switcher.aria_label"),className:["flex items-center gap-[var(--spacing-1-5)] px-[var(--spacing-2)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)]","transition-all duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]","hover:bg-bg-hover",d==="zh-CN"?"text-accent-blue":"text-text-secondary"].join(" "),children:[u.jsx("span",{className:"tabular-nums",children:s(d==="en"?"language_switcher.en":"language_switcher.zh")}),u.jsx("span",{className:"text-text-tertiary",children:"/"}),u.jsx("span",{className:"tabular-nums",children:s(d==="en"?"language_switcher.zh":"language_switcher.en")})]}),h&&u.jsx(c0,{}),h&&u.jsxs("span",{className:"text-[length:var(--font-size-sm)] text-text-secondary transition-opacity duration-[var(--duration-normal)] ease-[var(--ease-in-out)] hidden sm:inline",children:[s("topbar.phase")," ",h.current_phase," ",s("topbar.of")," ",h.phases_summary.total]}),u.jsx("button",{type:"button",onClick:()=>i(!0),"aria-label":"Open settings",className:["flex items-center justify-center w-8 h-8 rounded-[var(--radius-sm)]","text-text-secondary hover:text-text-primary hover:bg-bg-hover","transition-colors duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]"].join(" "),children:u.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}),u.jsxs("span",{role:"status","aria-live":"polite","aria-label":s(r?"topbar.connection.aria_connected":"topbar.connection.aria_disconnected"),className:["flex items-center gap-[5px] text-[length:10px] font-[var(--font-weight-semibold)] px-[10px] py-[3px] rounded-full","transition-colors duration-[var(--duration-smooth)] ease-[var(--ease-notion)]",r?"bg-[rgba(90,158,120,0.12)] text-status-completed":"bg-[rgba(196,101,85,0.12)] text-status-blocked"].join(" "),children:[u.jsx("span",{className:`w-1.5 h-1.5 rounded-full bg-current ${r?"animate-pulse":""}`}),s(r?"topbar.connection.connected":"topbar.connection.disconnected")]})]})]})}/**
|
|
78
|
+
* @license lucide-react v0.577.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const nv=(...n)=>n.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim();/**
|
|
83
|
+
* @license lucide-react v0.577.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const d0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
88
|
+
* @license lucide-react v0.577.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const f0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,s)=>s?s.toUpperCase():i.toLowerCase());/**
|
|
93
|
+
* @license lucide-react v0.577.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const cp=n=>{const r=f0(n);return r.charAt(0).toUpperCase()+r.slice(1)};/**
|
|
98
|
+
* @license lucide-react v0.577.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/var m0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
103
|
+
* @license lucide-react v0.577.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const h0=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};/**
|
|
108
|
+
* @license lucide-react v0.577.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const p0=y.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:d="",children:f,iconNode:h,...p},b)=>y.createElement("svg",{ref:b,...m0,width:r,height:r,stroke:n,strokeWidth:s?Number(i)*24/Number(r):i,className:nv("lucide",d),...!f&&!h0(p)&&{"aria-hidden":"true"},...p},[...h.map(([g,S])=>y.createElement(g,S)),...Array.isArray(f)?f:[f]]));/**
|
|
113
|
+
* @license lucide-react v0.577.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const bt=(n,r)=>{const i=y.forwardRef(({className:s,...d},f)=>y.createElement(p0,{ref:f,iconNode:r,className:nv(`lucide-${d0(cp(n))}`,`lucide-${n}`,s),...d}));return i.displayName=cp(n),i};/**
|
|
118
|
+
* @license lucide-react v0.577.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const v0=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],g0=bt("layout-grid",v0);/**
|
|
123
|
+
* @license lucide-react v0.577.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const y0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],b0=bt("file-text",y0);/**
|
|
128
|
+
* @license lucide-react v0.577.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const x0=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],S0=bt("message-square",x0);/**
|
|
133
|
+
* @license lucide-react v0.577.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const E0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],_0=bt("clock",E0);/**
|
|
138
|
+
* @license lucide-react v0.577.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const C0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],N0=bt("layers",C0);/**
|
|
143
|
+
* @license lucide-react v0.577.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const j0=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],T0=bt("book-open",j0);/**
|
|
148
|
+
* @license lucide-react v0.577.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const w0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],A0=bt("bot",w0);/**
|
|
153
|
+
* @license lucide-react v0.577.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const O0=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],k0=bt("list-checks",O0);/**
|
|
158
|
+
* @license lucide-react v0.577.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const D0=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],R0=bt("activity",D0);/**
|
|
163
|
+
* @license lucide-react v0.577.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const z0=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],M0=bt("users-round",z0);/**
|
|
168
|
+
* @license lucide-react v0.577.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const U0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],L0=bt("panel-left",U0);/**
|
|
173
|
+
* @license lucide-react v0.577.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const B0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],H0=bt("plus",B0);/**
|
|
178
|
+
* @license lucide-react v0.577.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const q0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],G0=bt("x",q0);/**
|
|
183
|
+
* @license lucide-react v0.577.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const Y0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],V0=bt("chevron-down",Y0),up=500,An=ta(n=>({processes:{},entries:{},pendingApprovals:{},activeProcessId:null,processThoughts:{},processStreaming:{},processTokenUsage:{},addProcess:r=>n(i=>{var h;const s=i.entries[r.id];if(s&&s.length>0)return{processes:{...i.processes,[r.id]:r}};const d=(h=r.config)==null?void 0:h.prompt,f=d?[{id:`synth-user-${r.id}`,processId:r.id,timestamp:r.startedAt,type:"user_message",content:d}]:[];return{processes:{...i.processes,[r.id]:r},entries:{...i.entries,[r.id]:f}}}),removeProcess:r=>n(i=>{const{[r]:s,...d}=i.processes;return{processes:d}}),updateProcessStatus:(r,i)=>n(s=>{const d=s.processes[r];return d?{processes:{...s.processes,[r]:{...d,status:i}}}:s}),addEntry:(r,i)=>n(s=>{const d=s.entries[r]??[];if(i.id&&d.some(h=>h.id===i.id))return s;let f;if(i.type==="assistant_message"){const h=d.length-1,p=h>=0?d[h]:null;if(i.partial&&(p==null?void 0:p.type)==="assistant_message"&&p.partial){const b={...p,content:p.content+i.content,id:i.id};f=d.slice(),f[h]=b}else!i.partial&&(p==null?void 0:p.type)==="assistant_message"&&p.partial?(f=d.slice(),f[h]=i):f=[...d,i]}else f=[...d,i];return{entries:{...s.entries,[r]:f.length>up?f.slice(-up):f}}}),setApproval:r=>n(i=>({pendingApprovals:{...i.pendingApprovals,[r.id]:r}})),clearApproval:r=>n(i=>{const{[r]:s,...d}=i.pendingApprovals;return{pendingApprovals:d}}),setActiveProcessId:r=>n({activeProcessId:r}),setProcessThought:(r,i)=>n(s=>({processThoughts:{...s.processThoughts,[r]:i}})),setProcessStreaming:(r,i)=>n(s=>({processStreaming:{...s.processStreaming,[r]:i}})),updateProcessTokenUsage:(r,i,s,d,f)=>n(h=>{const p=h.processTokenUsage[r]??{input:0,output:0,cacheRead:0,cacheWrite:0};return{processTokenUsage:{...h.processTokenUsage,[r]:{input:p.input+i,output:p.output+s,cacheRead:p.cacheRead+d,cacheWrite:p.cacheWrite+f}}}}),dismissProcess:r=>n(i=>{const{[r]:s,...d}=i.processes,{[r]:f,...h}=i.entries,{[r]:p,...b}=i.processThoughts,{[r]:g,...S}=i.processStreaming,{[r]:x,...E}=i.processTokenUsage,C={};for(const[z,k]of Object.entries(i.pendingApprovals))k.processId!==r&&(C[z]=k);return{processes:d,entries:h,processThoughts:b,processStreaming:S,processTokenUsage:E,pendingApprovals:C,activeProcessId:i.activeProcessId===r?null:i.activeProcessId}}),clearAll:()=>n({processes:{},entries:{},pendingApprovals:{},activeProcessId:null,processThoughts:{},processStreaming:{},processTokenUsage:{}})})),mu=ta((n,r)=>({issues:[],loading:!1,error:null,patchIssue:i=>n(s=>{const d=s.issues.findIndex(f=>f.id===i.id);if(d>=0){const f=[...s.issues];return f[d]=i,{issues:f}}return{issues:[...s.issues,i]}}),fetchIssues:async i=>{n({loading:!0,error:null});try{const s=new URLSearchParams;i!=null&&i.status&&s.set("status",i.status),i!=null&&i.type&&s.set("type",i.type);const d=s.toString(),f=Ps.ISSUES+(d?`?${d}`:""),h=await fetch(f);if(!h.ok)throw new Error(`Failed to fetch issues: ${h.status}`);const p=await h.json();n({issues:p,loading:!1})}catch(s){n({loading:!1,error:String(s)})}},createIssue:async i=>{n({error:null});try{const s=await fetch(Ps.ISSUES,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!s.ok){const f=await s.json().catch(()=>({error:`HTTP ${s.status}`}));throw new Error(f.error)}const d=await s.json();return n(f=>({issues:[...f.issues,d]})),d}catch(s){return n({error:String(s)}),null}},updateIssue:async(i,s)=>{n({error:null});const d=r().issues;n(f=>({issues:f.issues.map(h=>h.id===i?{...h,...s,updated_at:new Date().toISOString()}:h)}));try{const f=Ps.ISSUES+`/${i}`,h=await fetch(f,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!h.ok)throw new Error(`Failed to update issue: ${h.status}`);const p=await h.json();n(b=>({issues:b.issues.map(g=>g.id===i?p:g)}))}catch(f){n({issues:d,error:String(f)})}},deleteIssue:async i=>{n({error:null});const s=r().issues;n(d=>({issues:d.issues.filter(f=>f.id!==i)}));try{const d=Ps.ISSUES+`/${i}`,f=await fetch(d,{method:"DELETE"});if(!f.ok)throw new Error(`Failed to delete issue: ${f.status}`)}catch(d){n({issues:s,error:String(d)})}}})),K0=[],dp=[{labelKey:"nav.kanban",tooltipKey:"dock.kanban_tooltip",path:"/kanban",icon:"kanban",shortcut:"K"},{labelKey:"nav.artifacts",tooltipKey:"dock.artifacts_tooltip",path:"/artifacts",icon:"artifacts",shortcut:"A"},{labelKey:"nav.chat",tooltipKey:"dock.chat_tooltip",path:"/chat",icon:"chat",shortcut:"C"},{labelKey:"nav.workflow",tooltipKey:"dock.workflow_tooltip",path:"/workflow",icon:"workflow",shortcut:"W"},{labelKey:"nav.mcp",tooltipKey:"dock.mcp_tooltip",path:"/mcp",icon:"mcp",shortcut:"M"},{labelKey:"nav.specs",tooltipKey:"dock.specs_tooltip",path:"/specs",icon:"specs",shortcut:"S"},{labelKey:"nav.teams",tooltipKey:"dock.teams_tooltip",path:"/teams",icon:"teams",shortcut:"T"},{labelKey:"nav.collab",tooltipKey:"dock.collab_tooltip",path:"/collab",icon:"collab",shortcut:"L"},{labelKey:"nav.requirement",tooltipKey:"dock.requirement_tooltip",path:"/requirement",icon:"requirement",shortcut:"R"},{labelKey:"nav.supervisor",tooltipKey:"dock.supervisor_tooltip",path:"/supervisor",icon:"supervisor",shortcut:"V"}];function X0({isPinned:n,onTogglePin:r}){const{t:i}=yt(),s=Ot(V=>{var he;return((he=V.board)==null?void 0:he.phases)??K0}),d=An(V=>V.processes),f=An(V=>V.activeProcessId),h=Ot(V=>V.selectedPhase),p=Ot(V=>V.setSelectedPhase),b=mu(V=>V.issues),g=mu(V=>V.fetchIssues),S=gi(),x=_a();y.useEffect(()=>{g()},[g]);const E=y.useMemo(()=>{const V={open:0,in_progress:0,resolved:0,closed:0,total:0};for(const he of b)V.total++,he.status in V&&V[he.status]++;return V},[b]),C=y.useRef(null),z=y.useRef(null),[k,R]=y.useState(!1),w=y.useMemo(()=>{const V=Date.now()-864e5;return Object.values(d).filter(he=>new Date(he.startedAt).getTime()>V)},[d]),[K,Z]=y.useState(!1),Q=5,le=y.useCallback(()=>{n||R(!0)},[n]),oe=y.useCallback(V=>{var he;!n&&!(V.relatedTarget instanceof Node&&((he=z.current)!=null&&he.contains(V.relatedTarget)))&&R(!1)},[n]),G=y.useCallback(V=>{var he;!n&&!(V.relatedTarget instanceof Node&&((he=C.current)!=null&&he.contains(V.relatedTarget)))&&R(!1)},[n]),X=y.useCallback(V=>{S(V),R(!1)},[S]);return u.jsxs("div",{className:"relative flex",children:[u.jsxs("nav",{ref:C,role:"navigation","aria-label":i("nav.views"),className:"w-[var(--size-rail-width)] bg-bg-secondary border-r border-border flex-shrink-0 flex flex-col items-center pt-2 gap-0.5 z-50",onMouseEnter:le,onMouseLeave:oe,children:[dp.map(V=>u.jsx(I0,{item:V,isActive:x.pathname.startsWith(V.path),onActivate:()=>X(V.path),t:i},V.path)),u.jsx("div",{className:"w-6 h-px bg-border-divider my-1.5","aria-hidden":"true"}),u.jsx("div",{className:"flex flex-col items-center gap-1.5 py-1",role:"list","aria-label":i("dock.phases_label"),children:w.length>0?w.map(V=>u.jsx(J0,{process:V,isActive:V.id===f,onSelect:()=>{An.getState().setActiveProcessId(V.id),S("/chat")}},V.id)):s.map(V=>u.jsx(P0,{phase:V,t:i},V.phase))}),u.jsx("button",{type:"button",onClick:r,"aria-label":i("dock.toggle_sidebar"),className:["mt-auto mb-2 flex items-center justify-center w-9 h-9 rounded-[6px]","transition-colors duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",n?"text-text-primary bg-bg-active":"text-text-tertiary hover:bg-bg-hover hover:text-text-primary"].join(" "),children:u.jsx(L0,{size:16,strokeWidth:1.8})})]}),u.jsxs("aside",{ref:z,"aria-label":i("dock.views_label"),className:["dock-floating-panel","absolute left-[var(--size-rail-width)] top-0 bottom-0","w-[calc(var(--size-panel-width)-var(--size-rail-width))]","bg-bg-secondary border-r border-border overflow-y-auto z-40","shadow-[4px_0_16px_rgba(0,0,0,0.06)]","transition-[transform,opacity] duration-[200ms] ease-[var(--ease-spring)]",n||k?"translate-x-0 opacity-100 pointer-events-auto":"-translate-x-full opacity-0 pointer-events-none"].join(" "),onMouseLeave:G,children:[u.jsxs("div",{className:"px-2 py-2.5 border-b border-border-divider",children:[u.jsx("h2",{className:"text-[length:var(--font-size-xs)] font-[var(--font-weight-semibold)] text-text-tertiary uppercase tracking-[var(--letter-spacing-wide)] px-2 mb-1",children:i("dock.views_label")}),u.jsx("nav",{className:"flex flex-col gap-0.5",children:dp.map(V=>u.jsx($0,{item:V,t:i},V.path))})]}),w.length>0&&u.jsxs("div",{className:"px-2 py-2.5 border-b border-border-divider",children:[u.jsxs("div",{className:"flex items-center justify-between px-2 mb-1",children:[u.jsxs("h2",{className:"text-[length:var(--font-size-xs)] font-[var(--font-weight-semibold)] text-text-tertiary uppercase tracking-[var(--letter-spacing-wide)]",children:["Sessions",w.length>Q&&u.jsx("span",{className:"ml-1 font-normal text-text-placeholder",children:w.length})]}),u.jsx("button",{type:"button",className:"w-[18px] h-[18px] rounded flex items-center justify-center border-none bg-transparent cursor-pointer transition-all duration-100",style:{color:"var(--color-text-placeholder)"},onMouseEnter:V=>{V.currentTarget.style.color="var(--color-text-primary)",V.currentTarget.style.backgroundColor="var(--color-bg-hover)"},onMouseLeave:V=>{V.currentTarget.style.color="var(--color-text-placeholder)",V.currentTarget.style.backgroundColor="transparent"},"aria-label":"New session",children:u.jsx(H0,{size:12,strokeWidth:2})})]}),u.jsx("nav",{className:"flex flex-col gap-0.5",children:(K?w:w.slice(0,Q)).map(V=>u.jsx(F0,{process:V,isActive:V.id===f},V.id))}),w.length>Q&&u.jsxs("button",{type:"button",onClick:()=>Z(V=>!V),className:"flex items-center gap-1 px-2 py-1 mt-0.5 w-full text-[10px] text-text-placeholder hover:text-text-secondary transition-colors",children:[u.jsx(V0,{size:12,strokeWidth:2,className:`transition-transform duration-150 ${K?"rotate-180":""}`}),u.jsx("span",{children:K?"Show less":`${w.length-Q} more…`})]})]}),b.length>0&&u.jsxs("div",{className:"px-2 py-2.5 border-b border-border-divider",children:[u.jsx("h2",{className:"text-[length:var(--font-size-xs)] font-[var(--font-weight-semibold)] text-text-tertiary uppercase tracking-[var(--letter-spacing-wide)] px-2 mb-1",children:"Issues"}),u.jsxs("button",{type:"button",onClick:()=>{S("/kanban"),R(!1)},className:"flex items-center gap-2 px-2 py-1.5 rounded-[var(--radius-default)] text-left text-[length:var(--font-size-sm)] w-full hover:bg-bg-hover transition-colors",children:[u.jsxs("span",{className:"flex-1 text-text-secondary",children:[E.total," issues"]}),u.jsxs("span",{className:"flex items-center gap-2 text-[10px]",children:[E.open>0&&u.jsxs("span",{style:{color:"#5B8DB8"},children:[E.open," open"]}),E.in_progress>0&&u.jsxs("span",{style:{color:"#B89540"},children:[E.in_progress," active"]}),E.resolved>0&&u.jsxs("span",{style:{color:"#5A9E78"},children:[E.resolved," done"]})]})]})]}),u.jsxs("div",{className:"px-2 py-2.5",children:[u.jsx("h2",{className:"text-[length:var(--font-size-xs)] font-[var(--font-weight-semibold)] text-text-tertiary uppercase tracking-[var(--letter-spacing-wide)] px-2 mb-1",children:i("dock.phases_label")}),u.jsxs("nav",{className:"flex flex-col gap-0.5","aria-label":"Project phases",children:[s.map(V=>u.jsx(e1,{phase:V,selected:h===V.phase,onSelect:()=>{p(h===V.phase?null:V.phase),R(!1)}},V.phase)),s.length===0&&u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-text-secondary italic px-2",children:i("sidebar.no_phases_loaded")})]})]})]})]})}function I0({item:n,isActive:r,onActivate:i,t:s}){return u.jsxs("button",{type:"button",onClick:i,"aria-label":s(n.tooltipKey),"aria-current":r?"page":void 0,className:["group relative flex items-center justify-center w-9 h-9 rounded-[8px]","transition-colors duration-150","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",r?"bg-bg-active text-text-primary":"text-text-tertiary hover:bg-bg-hover hover:text-text-primary"].join(" "),children:[u.jsx(Z0,{icon:n.icon}),u.jsx("span",{className:"absolute left-[calc(100%+8px)] top-1/2 -translate-y-1/2 bg-text-primary text-[11px] font-medium text-white px-2 py-0.5 rounded-[6px] whitespace-nowrap opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity duration-150 z-[200]",children:s(n.tooltipKey)})]})}const Q0={kanban:g0,artifacts:b0,chat:S0,workflow:_0,mcp:N0,specs:T0,teams:A0,requirement:k0,supervisor:R0,collab:M0};function Z0({icon:n}){const r=Q0[n];return u.jsx(r,{size:18,strokeWidth:1.8})}function J0({process:n,isActive:r,onSelect:i}){const s=av[n.type]??"var(--color-text-tertiary)",d=n.status==="running"||n.status==="spawning",f=n.id.startsWith("cli-history-");return u.jsx("span",{role:"listitem",title:`${n.type}${f?" — async delegate":""} — ${n.status}`,onClick:i,className:["relative w-2 h-2 rounded-full cursor-pointer transition-transform duration-150 hover:scale-[1.4]",r?"ring-2 ring-offset-2 ring-offset-bg-secondary":""].join(" "),style:{backgroundColor:d?s:"var(--color-text-placeholder)",color:s,...r?{boxShadow:`0 0 0 2px var(--color-bg-secondary), 0 0 0 3.5px ${s}`}:{}},children:d&&u.jsx("span",{className:"absolute inset-[-2px] rounded-full animate-[sdot-ping_2s_ease_infinite]",style:{background:s,opacity:.4}})})}function P0({phase:n,t:r}){return u.jsx("span",{role:"listitem","aria-label":r("dock.phase_dot_aria",{phase:n.phase,title:n.title,status:n.status}),className:"w-[7px] h-[7px] rotate-45 rounded-[1px] cursor-pointer transition-transform duration-150 hover:scale-[1.4]",style:{backgroundColor:tv[n.status]}})}function F0({process:n,isActive:r}){const i=av[n.type]??"var(--color-text-tertiary)",s=An(b=>b.setActiveProcessId),d=An(b=>b.removeProcess),f=gi(),h=t1(n.startedAt),p=n.id.startsWith("cli-history-");return u.jsxs("div",{className:["group flex items-center gap-2 px-2.5 py-1.5 rounded-[8px] text-left text-[12px] w-full","transition-all duration-150 cursor-pointer",r?"bg-bg-active":"hover:bg-bg-hover"].join(" "),onClick:()=>{s(n.id),f("/chat")},children:[u.jsx("span",{className:"w-[7px] h-[7px] rounded-full shrink-0",style:{backgroundColor:i}}),u.jsx("span",{className:"flex-1 font-medium text-text-primary truncate",children:n.type}),p&&u.jsx("span",{className:"text-[9px] font-semibold px-[4px] py-[1px] rounded shrink-0",style:{backgroundColor:"var(--color-tint-exploring)",color:"var(--color-accent-blue)"},children:"ASYNC"}),u.jsx("span",{className:"text-[10px] text-text-placeholder shrink-0",children:h}),u.jsx("button",{type:"button",onClick:b=>{b.stopPropagation(),d(n.id)},className:"w-4 h-4 rounded flex items-center justify-center shrink-0 opacity-0 group-hover:opacity-100 text-text-placeholder hover:text-text-primary hover:bg-bg-active transition-all duration-100","aria-label":"Close session",children:u.jsx(G0,{size:10,strokeWidth:2})})]})}const W0=["flex items-center gap-2 px-2 py-1.5 rounded-[var(--radius-default)]","text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)] w-full","transition-colors duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]"].join(" ");function $0({item:n,t:r}){return u.jsxs(Ix,{to:n.path,className:({isActive:i})=>`${W0} ${i?"bg-bg-active text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"}`,children:[u.jsx("span",{className:"truncate",children:r(n.labelKey)}),n.shortcut&&u.jsx("span",{className:"ml-auto text-[10px] text-text-placeholder",children:n.shortcut})]})}function e1({phase:n,selected:r,onSelect:i}){const s=tv[n.status];return u.jsxs("button",{type:"button",onClick:i,"aria-current":r?"true":void 0,className:["flex items-center gap-[var(--spacing-2)] px-[var(--spacing-2)] py-[var(--spacing-1-5)] rounded-[var(--radius-default)] text-left text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)] w-full","transition-all duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]","disabled:opacity-[var(--opacity-disabled)] disabled:pointer-events-none",r?"bg-bg-active text-text-primary border-l-2 border-l-accent-blue":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"].join(" "),children:[u.jsx("span",{className:"w-2 h-2 rounded-full shrink-0","aria-hidden":"true",style:{backgroundColor:s}}),u.jsxs("span",{className:"truncate",children:[n.phase,". ",n.title]})]})}function t1(n){const r=Date.now()-new Date(n).getTime(),i=Math.floor(r/6e4);return i<1?"<1m":i<60?`${i}m`:`${Math.floor(i/60)}h`}const a1=["/supervisor","/chat"];function n1({children:n}){const{t:r}=yt(),{pathname:i}=_a(),s=a1.some(d=>i.startsWith(d));return u.jsx("main",{role:"main","aria-label":r("accessibility.main_content"),className:s?"flex-1 overflow-hidden bg-bg-primary":"flex-1 overflow-y-auto bg-bg-primary p-[var(--spacing-4)] sm:p-[var(--spacing-4)] max-sm:p-[var(--spacing-2)]",children:n})}const lv="maestro-layout-state",l1=500,rv=5;function hu(n){return{type:"leaf",id:n,tabs:[],activeTabId:null}}function sv(){return{version:rv,primarySidebar:{visible:!0,width:260,activePanelId:"explorer"},secondarySidebar:{visible:!1,width:300,activePanelId:null},activityBar:{activePanelId:"explorer"},editorArea:hu("editor-group-1"),panel:{visible:!1,height:200,activeTabId:null,isMaximized:!1},focusedGroupId:"editor-group-1",workspaceMode:"conversation"}}function r1(n){const r=n.version??0;let i=n;if(r<2&&(i={...i,secondarySidebar:i.secondarySidebar??{visible:!1,width:300,activePanelId:null},version:2}),i.version<3&&(i={...i,focusedGroupId:i.focusedGroupId??"editor-group-1",version:3}),i.version<4){const s=sv();i={...s,...i,version:4,primarySidebar:{...s.primarySidebar,...i.primarySidebar},secondarySidebar:{...s.secondarySidebar,...i.secondarySidebar},activityBar:{...s.activityBar,...i.activityBar},panel:{...s.panel,...i.panel}}}return i.version<5&&(i={...i,workspaceMode:i.workspaceMode??"conversation",version:5}),i}function Tr(n,r){return n.type==="leaf"?n.id===r?n:null:Tr(n.first,r)??Tr(n.second,r)}let s1=2;function i1(){return`editor-group-${s1++}`}function o1(n,r){var i;switch(r.type){case"SET_SIDEBAR_VISIBLE":{const s=r.side==="primary"?"primarySidebar":"secondarySidebar";return{...n,[s]:{...n[s],visible:r.visible}}}case"SET_SIDEBAR_WIDTH":{const s=r.side==="primary"?"primarySidebar":"secondarySidebar";return{...n,[s]:{...n[s],width:r.width}}}case"SET_ACTIVE_PANEL":{const s=r.side==="primary"?"primarySidebar":"secondarySidebar";return{...n,[s]:{...n[s],activePanelId:r.panelId}}}case"SET_FOCUSED_GROUP":return{...n,focusedGroupId:r.groupId};case"SET_PANEL_VISIBLE":return{...n,panel:{...n.panel,visible:r.visible}};case"SET_PANEL_HEIGHT":return{...n,panel:{...n.panel,height:r.height}};case"SET_PANEL_ACTIVE_TAB":return{...n,panel:{...n.panel,activeTabId:r.tabId}};case"SET_PANEL_MAXIMIZED":return{...n,panel:{...n.panel,isMaximized:r.maximized}};case"OPEN_TAB":{const s=Tr(n.editorArea,r.groupId);return s?s.tabs.find(f=>f.id===r.tab.id)?{...n,focusedGroupId:r.groupId,editorArea:Tn(n.editorArea,r.groupId,{activeTabId:r.tab.id})}:{...n,focusedGroupId:r.groupId,editorArea:Tn(n.editorArea,r.groupId,{tabs:[...s.tabs,r.tab],activeTabId:r.tab.id})}:n}case"CLOSE_TAB":{const s=Tr(n.editorArea,r.groupId);if(!s)return n;const d=s.tabs.filter(h=>h.id!==r.tabId);if(d.length===s.tabs.length)return n;const f=s.activeTabId===r.tabId?((i=d[d.length-1])==null?void 0:i.id)??null:s.activeTabId;return{...n,editorArea:Tn(n.editorArea,r.groupId,{tabs:d,activeTabId:f})}}case"SET_ACTIVE_TAB":return{...n,focusedGroupId:r.groupId,editorArea:Tn(n.editorArea,r.groupId,{activeTabId:r.tabId})};case"SET_WORKSPACE_MODE":{let s={...n,workspaceMode:r.mode};switch(r.mode){case"conversation":s={...s,panel:{...s.panel,visible:!1}};break;case"files":s={...s,panel:{...s.panel,visible:!1}};break;case"fusion":s={...s,panel:{...s.panel,visible:!0}};break}return s}case"SPLIT_GROUP":{const s=i1(),d=Tr(n.editorArea,r.groupId);let f,h=n.editorArea;if(d&&d.activeTabId){const b=d.tabs.find(g=>g.id===d.activeTabId);if(b){f={type:"leaf",id:s,tabs:[b],activeTabId:b.id};const g=d.tabs.filter(x=>x.id!==d.activeTabId),S=g.length>0?g[g.length-1].id:null;h=Tn(n.editorArea,r.groupId,{tabs:g,activeTabId:S})}else f=hu(s)}else f=hu(s);const p=vu(h,r.groupId,r.direction,f);return p?{...n,editorArea:p,focusedGroupId:s}:n}case"CLOSE_GROUP":{const s=gu(n.editorArea,r.groupId);return s?{...n,editorArea:s,focusedGroupId:iv(s).id}:n}case"RESIZE_GROUP":{const s=pu(n.editorArea,r.branchId,{ratio:r.ratio});return s?{...n,editorArea:s}:n}case"MOVE_PANEL":{const d=(r.toSide==="primary"?"secondary":"primary")==="primary"?"primarySidebar":"secondarySidebar",f={},h=n[d];return h.activePanelId===r.panelId&&(f[d]={...h,activePanelId:null}),{...n,...f}}case"RESTORE_STATE":return{...r.state,version:rv};default:return n}}function Tn(n,r,i){return n.type==="leaf"?n.id===r?{...n,...i}:n:{...n,first:Tn(n.first,r,i),second:Tn(n.second,r,i)}}function pu(n,r,i){if(n.type==="leaf")return null;if(n.id===r)return{...n,...i};const s=pu(n.first,r,i);if(s)return{...n,first:s};const d=pu(n.second,r,i);return d?{...n,second:d}:null}function vu(n,r,i,s){if(n.type==="leaf")return n.id!==r?null:{type:"branch",id:`branch-${r}`,direction:i,ratio:.5,first:n,second:s};const d=vu(n.first,r,i,s);if(d)return{...n,first:d};const f=vu(n.second,r,i,s);return f?{...n,second:f}:null}function gu(n,r){if(n.type==="leaf")return null;if(n.first.type==="leaf"&&n.first.id===r)return n.second;if(n.second.type==="leaf"&&n.second.id===r)return n.first;const i=gu(n.first,r);if(i)return{...n,first:i};const s=gu(n.second,r);return s?{...n,second:s}:null}function iv(n){return n.type==="leaf"?n:iv(n.first)}const ov=y.createContext(null);function c1(){try{const n=localStorage.getItem(lv);if(!n)return null;const r=JSON.parse(n);return r1(r)}catch{return null}}function u1({children:n}){const[r,i]=y.useReducer(o1,null,()=>c1()??sv()),s=y.useRef(null),d=y.useRef(r);return d.current=r,y.useEffect(()=>(s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{try{localStorage.setItem(lv,JSON.stringify(d.current))}catch{}},l1),()=>{s.current&&clearTimeout(s.current)}),[r]),u.jsx(ov,{value:{state:r,dispatch:i},children:n})}function Tu(){const n=y.useContext(ov);if(!n)throw new Error("useLayoutContext must be used within a LayoutProvider");return n}function jr(n){const{state:r}=Tu();return n(r)}const d1=[];function fp(n){return d1.filter(r=>r.alignment===n).filter(r=>r.visible?r.visible():!0).sort((r,i)=>i.priority-r.priority)}function mp({children:n,tooltip:r,clickable:i=!1,onClick:s}){const d=i&&s,f=["flex items-center gap-[var(--spacing-1)]","h-full px-[var(--spacing-1-5)]","text-[11px] font-medium leading-none whitespace-nowrap",d?"cursor-pointer hover:bg-bg-hover transition-colors duration-[var(--duration-fast)] ease-[var(--ease-notion)]":"cursor-default"].join(" ");return u.jsx("span",{role:d?"button":void 0,tabIndex:d?0:void 0,title:r,onClick:d?s:void 0,onKeyDown:d?h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s(h))}:void 0,className:f,children:n})}function f1(){const{dispatch:n}=Tu(),r=jr(f=>f.panel.visible),i=fp("left"),s=fp("right");function d(f){f&&(n({type:"SET_PANEL_ACTIVE_TAB",tabId:f}),r||n({type:"SET_PANEL_VISIBLE",visible:!0}))}return u.jsxs("div",{role:"status","aria-live":"polite",className:["flex items-center justify-between shrink-0 select-none","h-[22px] bg-bg-secondary border-t border-border","text-text-secondary text-[11px] font-medium"].join(" "),children:[u.jsx("div",{className:"flex items-center h-full",children:i.map(f=>{const h=f.component,p=!!f.panelTabId;return u.jsx(mp,{tooltip:f.id,clickable:p,onClick:p?()=>d(f.panelTabId):void 0,children:u.jsx(h,{})},f.id)})}),u.jsx("div",{className:"flex items-center h-full",children:s.map(f=>{const h=f.component,p=!!f.panelTabId;return u.jsx(mp,{tooltip:f.id,clickable:p,onClick:p?()=>d(f.panelTabId):void 0,children:u.jsx(h,{})},f.id)})})]})}const m1=y.lazy(()=>ot(()=>import("./OutputPanel-BlBQFJSW.js"),[]).then(n=>({default:n.OutputPanel}))),h1=y.lazy(()=>ot(()=>import("./ProblemsPanel-De3DLvoI.js"),[]).then(n=>({default:n.ProblemsPanel}))),p1=y.lazy(()=>ot(()=>import("./ExecutionPanel-CFt4LJyq.js"),[]).then(n=>({default:n.ExecutionPanel}))),Wc=[{id:"output",label:"Output",panel:m1},{id:"problems",label:"Problems",panel:h1},{id:"execution",label:"Execution",panel:p1}],v1=200,g1=100,y1=500,b1=4;function x1(){const{dispatch:n}=Tu(),r=jr(w=>w.panel.visible),i=jr(w=>w.panel.activeTabId),s=jr(w=>w.panel.isMaximized),d=jr(w=>w.panel.height),f=y.useRef(null),h=y.useRef(!1),p=y.useRef(0),b=y.useRef(0),g=i??"output",S=Wc.find(w=>w.id===g)??Wc[0];y.useEffect(()=>{function w(K){K.ctrlKey&&!K.shiftKey&&!K.altKey&&K.key==="j"&&(K.preventDefault(),n({type:"SET_PANEL_VISIBLE",visible:!r}))}return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[n,r]);const x=y.useCallback(()=>{n({type:"SET_PANEL_VISIBLE",visible:!1})},[n]),E=y.useCallback(()=>{n({type:"SET_PANEL_MAXIMIZED",maximized:!s})},[n,s]),C=y.useCallback(w=>{n({type:"SET_PANEL_ACTIVE_TAB",tabId:w})},[n]),z=y.useCallback(w=>{w.preventDefault(),h.current=!0,p.current=w.clientY,b.current=d;function K(Q){if(!h.current)return;const le=p.current-Q.clientY,oe=Math.max(g1,Math.min(y1,b.current+le));n({type:"SET_PANEL_HEIGHT",height:oe})}function Z(){h.current=!1,document.removeEventListener("mousemove",K),document.removeEventListener("mouseup",Z),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",K),document.addEventListener("mouseup",Z)},[n,d]),k=y.useCallback(()=>{n({type:"SET_PANEL_HEIGHT",height:v1})},[n]);if(!r)return null;const R=s?"100%":`${d}px`;return u.jsxs("div",{ref:f,className:["flex flex-col shrink-0 border-t border-border bg-bg-primary",s?"absolute inset-0 z-10":""].join(" "),style:s?void 0:{height:R},children:[u.jsxs("div",{className:"flex items-center justify-between h-[30px] px-[var(--spacing-1)] border-b border-border shrink-0",children:[u.jsx("div",{role:"tablist","aria-label":"Panel tabs",className:"flex items-center h-full",children:Wc.map(w=>u.jsx("button",{role:"tab",type:"button","aria-selected":w.id===g,"aria-controls":`panel-tabpanel-${w.id}`,id:`panel-tab-${w.id}`,onClick:()=>C(w.id),className:["h-full px-[var(--spacing-2)] text-[11px] font-medium transition-colors duration-[var(--duration-fast)]",w.id===g?"text-text-primary border-b-2 border-text-primary":"text-text-secondary hover:text-text-primary"].join(" "),children:w.label},w.id))}),u.jsxs("div",{className:"flex items-center gap-[var(--spacing-0-5)]",children:[u.jsx("button",{type:"button",onClick:E,title:s?"Restore Panel":"Maximize Panel",className:"flex items-center justify-center w-[22px] h-[22px] rounded-[var(--radius-sm)] text-text-secondary hover:text-text-primary hover:bg-bg-hover transition-colors duration-[var(--duration-fast)]",children:s?u.jsx(E1,{}):u.jsx(S1,{})}),u.jsx("button",{type:"button",onClick:x,title:"Close Panel",className:"flex items-center justify-center w-[22px] h-[22px] rounded-[var(--radius-sm)] text-text-secondary hover:text-text-primary hover:bg-bg-hover transition-colors duration-[var(--duration-fast)]",children:u.jsx(_1,{})})]})]}),u.jsx("div",{role:"tabpanel",id:`panel-tabpanel-${g}`,"aria-labelledby":`panel-tab-${g}`,className:"flex-1 overflow-hidden",children:u.jsx(y.Suspense,{fallback:u.jsx(C1,{}),children:r&&u.jsx(S.panel,{})})}),!s&&u.jsx("div",{className:"absolute top-0 left-0 right-0 cursor-ns-resize hover:bg-border-focused/30 transition-colors duration-[var(--duration-fast)]",style:{height:b1},onMouseDown:z,onDoubleClick:k,title:"Drag to resize. Double-click to reset."})]})}function S1(){return u.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:u.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"1"})})}function E1(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[u.jsx("rect",{x:"4",y:"1",width:"10",height:"10",rx:"1"}),u.jsx("rect",{x:"2",y:"5",width:"10",height:"10",rx:"1"})]})}function _1(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[u.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),u.jsx("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})}function C1(){return u.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-[11px] animate-pulse",children:"Loading..."})}const yu=ta((n,r)=>({slots:{},queue:[],supervisorStatus:null,commanderState:null,commanderConfig:null,recentDecisions:[],selectedIssueIds:new Set,cliPanelIssueId:null,addSlot:i=>n(s=>({slots:{...s.slots,[i.processId]:i}})),removeSlot:i=>n(s=>{const{[i]:d,...f}=s.slots;return{slots:f}}),setQueue:i=>n({queue:i}),setSupervisorStatus:i=>n({supervisorStatus:i,queue:i.queued}),setCommanderState:i=>n({commanderState:i}),setCommanderConfig:i=>n({commanderConfig:i}),fetchCommanderConfig:async()=>{try{const i=await fetch("/api/commander/config");if(i.ok){const s=await i.json();n({commanderConfig:s})}}catch{}},toggleSupervisor:async i=>{try{const s=await fetch("/api/execution/supervisor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:i})});if(s.ok){const d=await s.json();d.status&&n({supervisorStatus:d.status})}}catch{}},addDecision:i=>n(s=>{const d=[...s.recentDecisions,i];return d.length>20&&d.shift(),{recentDecisions:d}}),toggleSelect:i=>n(s=>{const d=new Set(s.selectedIssueIds);return d.has(i)?d.delete(i):d.add(i),{selectedIssueIds:d}}),selectAll:i=>n({selectedIssueIds:new Set(i)}),clearSelection:()=>n({selectedIssueIds:new Set}),openCliPanel:i=>n({cliPanelIssueId:i}),closeCliPanel:()=>n({cliPanelIssueId:null}),getSlotForIssue:i=>{const s=r().slots;for(const d of Object.values(s))if(d.issueId===i)return d},isIssueRunning:i=>{const s=r().slots;return Object.values(s).some(d=>d.issueId===i)}})),cv=ta(n=>({session:null,selectedStepIndex:null,clarificationQuestion:null,onStatus:r=>n({session:r}),onStep:r=>n(i=>{if(!i.session||i.session.sessionId!==r.sessionId)return i;const s=[...i.session.steps],d=s.findIndex(f=>f.index===r.step.index);return d>=0?s[d]=r.step:s.push(r.step),{session:{...i.session,steps:s}}}),onAnalysis:r=>n(i=>{if(!i.session||i.session.sessionId!==r.sessionId)return i;const s=r.steps.map((d,f)=>({index:f,cmd:d.cmd,args:d.args,status:"pending",processId:null,analysis:null,summary:null}));return{session:{...i.session,chainName:r.chainName,intent:r.intent,steps:s}}}),onClarificationNeeded:r=>n(i=>!i.session||i.session.sessionId!==r.sessionId?i:{clarificationQuestion:r.question}),start:(r,i,s)=>{nn({action:"coordinate:start",intent:r,tool:i,autoMode:s})},stop:()=>{nn({action:"coordinate:stop"})},resume:r=>{var s;const i=r??((s=cv.getState().session)==null?void 0:s.sessionId);nn({action:"coordinate:resume",sessionId:i})},sendClarification:(r,i)=>{nn({action:"coordinate:clarify",sessionId:r,response:i}),n({clarificationQuestion:null})},selectStep:r=>n({selectedStepIndex:r})}));function hp(n,r){const i=n.findIndex(s=>s.id===r.id);if(i>=0){const s=[...n];return s[i]=r,s}return[r,...n]}const N1=ta((n,r)=>({currentRequirement:null,history:[],isLoading:!1,error:null,progressMessage:null,committedResult:null,continueFrom:null,expand:(i,s,d)=>{const f=r().continueFrom;n({isLoading:!0,error:null,progressMessage:null,committedResult:null,continueFrom:null,currentRequirement:{id:"",status:"expanding",userInput:i,title:"",summary:"",items:[],depth:s??"standard",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}});try{nn({action:"requirement:expand",text:i,depth:s,method:d??"sdk",...f?{previousRequirementId:f.id}:{}})}catch(h){n({isLoading:!1,error:h instanceof Error?h.message:String(h)})}},refine:i=>{const s=r().currentRequirement;if(s){n({isLoading:!0,error:null,progressMessage:null,currentRequirement:{...s,status:"expanding"}});try{nn({action:"requirement:refine",requirementId:s.id,feedback:i})}catch(d){n({isLoading:!1,error:d instanceof Error?d.message:String(d)})}}},commit:i=>{const s=r().currentRequirement;if(s){n({isLoading:!0,error:null,progressMessage:null,currentRequirement:{...s,status:"committing"}});try{nn({action:"requirement:commit",requirementId:s.id,mode:i})}catch(d){n({isLoading:!1,error:d instanceof Error?d.message:String(d)})}}},resetRequirement:()=>{n({currentRequirement:null,isLoading:!1,error:null,progressMessage:null,committedResult:null,continueFrom:null})},setContinueFrom:i=>{n({continueFrom:i})},loadHistory:i=>{const s=r().history.find(d=>d.id===i);s&&n({currentRequirement:s,isLoading:!1,error:null,progressMessage:null,committedResult:null})},fetchHistory:async()=>{try{const i=await fetch("/api/requirements");if(!i.ok)return;const s=await i.json();Array.isArray(s)&&s.length>0&&n({history:s})}catch{}},onProgress:i=>{n(s=>{const d=s.currentRequirement;if(!d)return s;const f=i.status==="failed";return{currentRequirement:{...d,status:i.status,...f&&i.message?{error:i.message}:{}},progressMessage:i.message??null,...f?{isLoading:!1,error:i.message??"Expansion failed"}:{}}})},onExpanded:i=>{n(s=>({currentRequirement:i.requirement,isLoading:!1,progressMessage:null,history:hp(s.history,i.requirement)}))},onCommitted:i=>{n(s=>{const d=s.currentRequirement;if(!d||d.id!==i.requirementId)return s;const f={...d,status:"done"};return{currentRequirement:f,isLoading:!1,progressMessage:null,committedResult:{requirementId:i.requirementId,mode:i.mode,issueIds:i.issueIds,coordinateSessionId:i.coordinateSessionId},history:hp(s.history,f)}})},onError:i=>{n(s=>{const d=s.currentRequirement;return{currentRequirement:d?{...d,status:"failed",error:i.error}:null,isLoading:!1,error:i.error,progressMessage:null}})},updateItem:(i,s)=>{n(d=>{const f=d.currentRequirement;return f?{currentRequirement:{...f,items:f.items.map(h=>h.id===i?{...h,...s}:h)}}:d})}})),pp=1e3,j1=3e4,T1=["# Analysis Mode Protocol","# Write Mode Protocol"];function w1(n){return T1.some(r=>n.trimStart().startsWith(r))}function A1(n,r){const i=[];for(const s of n){const d={...s,processId:r};if(d.type==="assistant_message"){const f=d.content??"";if(w1(f))continue;d.partial=!1;const h=i[i.length-1];if(h&&h.type==="assistant_message"){h.content+=d.content;continue}}if(d.type==="tool_use"&&(d.status==="completed"||d.status==="failed")){const f=i.findLastIndex(h=>h.type==="tool_use"&&h.status==="running");if(f!==-1){const h=i[f];i[f]={...h,status:d.status,result:d.result??h.result,input:h.input&&Object.keys(h.input).length>0?h.input:d.input};continue}}i.push(d)}return i}let wr=null;function nn(n){wr?wr(n):console.warn("[WS] Cannot send — no active WebSocket connection")}function O1(){const n=y.useRef(null),r=y.useRef(null),i=y.useRef(pp);y.useEffect(()=>{let s=!1;const{setBoard:d,updatePhase:f,updateTask:h,setConnected:p}=Ot.getState(),{addProcess:b,removeProcess:g,updateProcessStatus:S,addEntry:x,setApproval:E,setProcessThought:C,setProcessStreaming:z,updateProcessTokenUsage:k}=An.getState(),{addSlot:R,removeSlot:w,setSupervisorStatus:K,setCommanderState:Z,addDecision:Q}=yu.getState(),{onStatus:le,onStep:oe,onAnalysis:G,onClarificationNeeded:X}=cv.getState(),{fetchIssues:V,patchIssue:he}=mu.getState(),{onProgress:He,onExpanded:ze,onCommitted:kt,onError:ut}=N1.getState();function Ye(){if(s)return;const U=window.location.protocol==="https:"?"wss:":"ws:",I=new WebSocket(`${U}//${window.location.host}/ws`);n.current=I,wr=F=>{I.readyState===WebSocket.OPEN&&I.send(JSON.stringify(F))},I.onopen=()=>{p(!0),i.current=pp,fetch("/api/board").then(F=>F.ok?F.json():null).then(F=>{F&&d(F)}).catch(()=>{}),fetch("/api/agents").then(F=>F.ok?F.json():null).then(async F=>{if(!Array.isArray(F))return;let ae=[];try{const N=await fetch("/api/cli-history?limit=50");N.ok&&(ae=await N.json())}catch{}const L=new Map(ae.map(N=>[N.execId,N]));for(const N of F){const B=N;if(B.id.startsWith("cli-history-")&&B.status==="running"){const P=B.id.slice(12),W=L.get(P);W!=null&&W.completedAt&&(B.status=W.exitCode!=null&&W.exitCode!==0?"error":"stopped")}b(B);const J=B.id.startsWith("cli-history-");fetch(`/api/agents/${encodeURIComponent(B.id)}/entries`).then(P=>P.ok?P.json():null).then(async P=>{let W=Array.isArray(P)?P:[];if(J){const re=B.id.slice(12);try{const Ue=await fetch(`/api/cli-history/${encodeURIComponent(re)}/entries`);if(Ue.ok){const ce=await Ue.json();Array.isArray(ce)&&ce.length>0&&(W=ce)}}catch{}const ve=A1(W,B.id);for(const Ue of ve)x(B.id,Ue)}else for(const re of W)x(B.id,re)}).catch(()=>{})}}).catch(()=>{})},I.onmessage=F=>{let ae;try{ae=JSON.parse(F.data)}catch{console.warn("[WS] Failed to parse message",F.data);return}switch(ae.type){case ke.BOARD_FULL:d(ae.data);break;case ke.PHASE_UPDATED:{const L=ae.data;f(L.phase,L);break}case ke.TASK_UPDATED:{const L=ae.data;L.id&&h(L.id,L);break}case ke.PROJECT_UPDATED:{const L=ae.data,N=Ot.getState().board;N&&d({...N,project:L});break}case ke.HEARTBEAT:case ke.CONNECTED:break;case ke.AGENT_SPAWNED:b(ae.data);break;case ke.AGENT_ENTRY:{const L=ae.data;if(x(L.processId,L),L.type==="token_usage"){const N=L;k(N.processId,N.inputTokens,N.outputTokens,N.cacheReadTokens??0,N.cacheWriteTokens??0)}break}case ke.AGENT_APPROVAL:E(ae.data);break;case ke.AGENT_STATUS:{const L=ae.data;S(L.processId,L.status);break}case ke.AGENT_STOPPED:{const L=ae.data;S(L.processId,"stopped");break}case ke.AGENT_THOUGHT:{const L=ae.data;C(L.processId,L.thought);break}case ke.AGENT_STREAMING:{const L=ae.data;z(L.processId,L.streaming);break}case ke.EXECUTION_STARTED:{const L=ae.data;R({issueId:L.issueId,processId:L.processId,executor:L.executor,startedAt:new Date().toISOString(),lastActivityAt:new Date().toISOString(),turnNumber:1,maxTurns:3}),L.issue?he(L.issue):V();break}case ke.EXECUTION_COMPLETED:{const L=ae.data;w(L.processId),L.issue?he(L.issue):V();break}case ke.EXECUTION_FAILED:{const L=ae.data;w(L.processId),L.issue?he(L.issue):V();break}case ke.SUPERVISOR_STATUS:case ke.EXECUTION_SCHEDULER_STATUS:{const L=ae.data;K(L);break}case ke.COMMANDER_STATUS:{const L=ae.data;Z(L);break}case ke.COMMANDER_DECISION:{const L=ae.data;Q(L);break}case ke.COORDINATE_STATUS:{const L=ae.data;le(L.session);break}case ke.COORDINATE_STEP:{const L=ae.data;oe(L);break}case ke.COORDINATE_ANALYSIS:{const L=ae.data;G(L);break}case ke.COORDINATE_CLARIFICATION_NEEDED:{const L=ae.data;X(L);break}case ke.REQUIREMENT_PROGRESS:He(ae.data);break;case ke.REQUIREMENT_EXPANDED:ze(ae.data);break;case ke.REQUIREMENT_COMMITTED:kt(ae.data);break}},I.onclose=()=>{if(s)return;p(!1),n.current=null,wr=null;const F=i.current;i.current=Math.min(F*2,j1),r.current=setTimeout(Ye,F)},I.onerror=()=>{}}return Ye(),()=>{s=!0,wr=null,r.current&&clearTimeout(r.current),n.current&&(n.current.onopen=null,n.current.onmessage=null,n.current.onerror=null,n.current.onclose=null,n.current.close(),n.current=null),p(!1)}},[])}function rn(n,r,{checkForDefaultPrevented:i=!0}={}){return function(d){if(n==null||n(d),i===!1||!d.defaultPrevented)return r==null?void 0:r(d)}}function vp(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function wu(...n){return r=>{let i=!1;const s=n.map(d=>{const f=vp(d,r);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let d=0;d<s.length;d++){const f=s[d];typeof f=="function"?f():vp(n[d],null)}}}}function kn(...n){return y.useCallback(wu(...n),n)}function k1(n,r){const i=y.createContext(r),s=f=>{const{children:h,...p}=f,b=y.useMemo(()=>p,Object.values(p));return u.jsx(i.Provider,{value:b,children:h})};s.displayName=n+"Provider";function d(f){const h=y.useContext(i);if(h)return h;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[s,d]}function D1(n,r=[]){let i=[];function s(f,h){const p=y.createContext(h),b=i.length;i=[...i,h];const g=x=>{var w;const{scope:E,children:C,...z}=x,k=((w=E==null?void 0:E[n])==null?void 0:w[b])||p,R=y.useMemo(()=>z,Object.values(z));return u.jsx(k.Provider,{value:R,children:C})};g.displayName=f+"Provider";function S(x,E){var k;const C=((k=E==null?void 0:E[n])==null?void 0:k[b])||p,z=y.useContext(C);if(z)return z;if(h!==void 0)return h;throw new Error(`\`${x}\` must be used within \`${f}\``)}return[g,S]}const d=()=>{const f=i.map(h=>y.createContext(h));return function(p){const b=(p==null?void 0:p[n])||f;return y.useMemo(()=>({[`__scope${n}`]:{...p,[n]:b}}),[p,b])}};return d.scopeName=n,[s,R1(d,...r)]}function R1(...n){const r=n[0];if(n.length===1)return r;const i=()=>{const s=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(f){const h=s.reduce((p,{useScope:b,scopeName:g})=>{const x=b(f)[`__scope${g}`];return{...p,...x}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return i.scopeName=r.scopeName,i}var kr=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},z1=_u[" useId ".trim().toString()]||(()=>{}),M1=0;function $c(n){const[r,i]=y.useState(z1());return kr(()=>{i(s=>s??String(M1++))},[n]),n||(r?`radix-${r}`:"")}var U1=_u[" useInsertionEffect ".trim().toString()]||kr;function L1({prop:n,defaultProp:r,onChange:i=()=>{},caller:s}){const[d,f,h]=B1({defaultProp:r,onChange:i}),p=n!==void 0,b=p?n:d;{const S=y.useRef(n!==void 0);y.useEffect(()=>{const x=S.current;x!==p&&console.warn(`${s} is changing from ${x?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=p},[p,s])}const g=y.useCallback(S=>{var x;if(p){const E=H1(S)?S(n):S;E!==n&&((x=h.current)==null||x.call(h,E))}else f(S)},[p,n,f,h]);return[b,g]}function B1({defaultProp:n,onChange:r}){const[i,s]=y.useState(n),d=y.useRef(i),f=y.useRef(r);return U1(()=>{f.current=r},[r]),y.useEffect(()=>{var h;d.current!==i&&((h=f.current)==null||h.call(f,i),d.current=i)},[i,d]),[i,s,f]}function H1(n){return typeof n=="function"}function q1(n){const r=G1(n),i=y.forwardRef((s,d)=>{const{children:f,...h}=s,p=y.Children.toArray(f),b=p.find(V1);if(b){const g=b.props.children,S=p.map(x=>x===b?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:x);return u.jsx(r,{...h,ref:d,children:y.isValidElement(g)?y.cloneElement(g,void 0,S):null})}return u.jsx(r,{...h,ref:d,children:f})});return i.displayName=`${n}.Slot`,i}function G1(n){const r=y.forwardRef((i,s)=>{const{children:d,...f}=i;if(y.isValidElement(d)){const h=X1(d),p=K1(f,d.props);return d.type!==y.Fragment&&(p.ref=s?wu(s,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var Y1=Symbol("radix.slottable");function V1(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Y1}function K1(n,r){const i={...r};for(const s in r){const d=n[s],f=r[s];/^on[A-Z]/.test(s)?d&&f?i[s]=(...p)=>{const b=f(...p);return d(...p),b}:d&&(i[s]=d):s==="style"?i[s]={...d,...f}:s==="className"&&(i[s]=[d,f].filter(Boolean).join(" "))}return{...n,...i}}function X1(n){var s,d;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var I1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ca=I1.reduce((n,r)=>{const i=q1(`Primitive.${r}`),s=y.forwardRef((d,f)=>{const{asChild:h,...p}=d,b=h?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(b,{...p,ref:f})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function Q1(n,r){n&&Hp.flushSync(()=>n.dispatchEvent(r))}function Dr(n){const r=y.useRef(n);return y.useEffect(()=>{r.current=n}),y.useMemo(()=>(...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},[])}function Z1(n,r=globalThis==null?void 0:globalThis.document){const i=Dr(n);y.useEffect(()=>{const s=d=>{d.key==="Escape"&&i(d)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[i,r])}var J1="DismissableLayer",bu="dismissableLayer.update",P1="dismissableLayer.pointerDownOutside",F1="dismissableLayer.focusOutside",gp,uv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dv=y.forwardRef((n,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:p,...b}=n,g=y.useContext(uv),[S,x]=y.useState(null),E=(S==null?void 0:S.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=y.useState({}),z=kn(r,G=>x(G)),k=Array.from(g.layers),[R]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),w=k.indexOf(R),K=S?k.indexOf(S):-1,Z=g.layersWithOutsidePointerEventsDisabled.size>0,Q=K>=w,le=eS(G=>{const X=G.target,V=[...g.branches].some(he=>he.contains(X));!Q||V||(d==null||d(G),h==null||h(G),G.defaultPrevented||p==null||p())},E),oe=tS(G=>{const X=G.target;[...g.branches].some(he=>he.contains(X))||(f==null||f(G),h==null||h(G),G.defaultPrevented||p==null||p())},E);return Z1(G=>{K===g.layers.size-1&&(s==null||s(G),!G.defaultPrevented&&p&&(G.preventDefault(),p()))},E),y.useEffect(()=>{if(S)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(gp=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(S)),g.layers.add(S),yp(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=gp)}},[S,E,i,g]),y.useEffect(()=>()=>{S&&(g.layers.delete(S),g.layersWithOutsidePointerEventsDisabled.delete(S),yp())},[S,g]),y.useEffect(()=>{const G=()=>C({});return document.addEventListener(bu,G),()=>document.removeEventListener(bu,G)},[]),u.jsx(Ca.div,{...b,ref:z,style:{pointerEvents:Z?Q?"auto":"none":void 0,...n.style},onFocusCapture:rn(n.onFocusCapture,oe.onFocusCapture),onBlurCapture:rn(n.onBlurCapture,oe.onBlurCapture),onPointerDownCapture:rn(n.onPointerDownCapture,le.onPointerDownCapture)})});dv.displayName=J1;var W1="DismissableLayerBranch",$1=y.forwardRef((n,r)=>{const i=y.useContext(uv),s=y.useRef(null),d=kn(r,s);return y.useEffect(()=>{const f=s.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),u.jsx(Ca.div,{...n,ref:d})});$1.displayName=W1;function eS(n,r=globalThis==null?void 0:globalThis.document){const i=Dr(n),s=y.useRef(!1),d=y.useRef(()=>{});return y.useEffect(()=>{const f=p=>{if(p.target&&!s.current){let b=function(){fv(P1,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",d.current),d.current=b,r.addEventListener("click",d.current,{once:!0})):b()}else r.removeEventListener("click",d.current);s.current=!1},h=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),r.removeEventListener("pointerdown",f),r.removeEventListener("click",d.current)}},[r,i]),{onPointerDownCapture:()=>s.current=!0}}function tS(n,r=globalThis==null?void 0:globalThis.document){const i=Dr(n),s=y.useRef(!1);return y.useEffect(()=>{const d=f=>{f.target&&!s.current&&fv(F1,i,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",d),()=>r.removeEventListener("focusin",d)},[r,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function yp(){const n=new CustomEvent(bu);document.dispatchEvent(n)}function fv(n,r,i,{discrete:s}){const d=i.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});r&&d.addEventListener(n,r,{once:!0}),s?Q1(d,f):d.dispatchEvent(f)}var eu="focusScope.autoFocusOnMount",tu="focusScope.autoFocusOnUnmount",bp={bubbles:!1,cancelable:!0},aS="FocusScope",mv=y.forwardRef((n,r)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:d,onUnmountAutoFocus:f,...h}=n,[p,b]=y.useState(null),g=Dr(d),S=Dr(f),x=y.useRef(null),E=kn(r,k=>b(k)),C=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let k=function(Z){if(C.paused||!p)return;const Q=Z.target;p.contains(Q)?x.current=Q:en(x.current,{select:!0})},R=function(Z){if(C.paused||!p)return;const Q=Z.relatedTarget;Q!==null&&(p.contains(Q)||en(x.current,{select:!0}))},w=function(Z){if(document.activeElement===document.body)for(const le of Z)le.removedNodes.length>0&&en(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",R);const K=new MutationObserver(w);return p&&K.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",R),K.disconnect()}}},[s,p,C.paused]),y.useEffect(()=>{if(p){Sp.add(C);const k=document.activeElement;if(!p.contains(k)){const w=new CustomEvent(eu,bp);p.addEventListener(eu,g),p.dispatchEvent(w),w.defaultPrevented||(nS(oS(hv(p)),{select:!0}),document.activeElement===k&&en(p))}return()=>{p.removeEventListener(eu,g),setTimeout(()=>{const w=new CustomEvent(tu,bp);p.addEventListener(tu,S),p.dispatchEvent(w),w.defaultPrevented||en(k??document.body,{select:!0}),p.removeEventListener(tu,S),Sp.remove(C)},0)}}},[p,g,S,C]);const z=y.useCallback(k=>{if(!i&&!s||C.paused)return;const R=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,w=document.activeElement;if(R&&w){const K=k.currentTarget,[Z,Q]=lS(K);Z&&Q?!k.shiftKey&&w===Q?(k.preventDefault(),i&&en(Z,{select:!0})):k.shiftKey&&w===Z&&(k.preventDefault(),i&&en(Q,{select:!0})):w===K&&k.preventDefault()}},[i,s,C.paused]);return u.jsx(Ca.div,{tabIndex:-1,...h,ref:E,onKeyDown:z})});mv.displayName=aS;function nS(n,{select:r=!1}={}){const i=document.activeElement;for(const s of n)if(en(s,{select:r}),document.activeElement!==i)return}function lS(n){const r=hv(n),i=xp(r,n),s=xp(r.reverse(),n);return[i,s]}function hv(n){const r=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const d=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||d?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function xp(n,r){for(const i of n)if(!rS(i,{upTo:r}))return i}function rS(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function sS(n){return n instanceof HTMLInputElement&&"select"in n}function en(n,{select:r=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&sS(n)&&r&&n.select()}}var Sp=iS();function iS(){let n=[];return{add(r){const i=n[0];r!==i&&(i==null||i.pause()),n=Ep(n,r),n.unshift(r)},remove(r){var i;n=Ep(n,r),(i=n[0])==null||i.resume()}}}function Ep(n,r){const i=[...n],s=i.indexOf(r);return s!==-1&&i.splice(s,1),i}function oS(n){return n.filter(r=>r.tagName!=="A")}var cS="Portal",pv=y.forwardRef((n,r)=>{var p;const{container:i,...s}=n,[d,f]=y.useState(!1);kr(()=>f(!0),[]);const h=i||d&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return h?Yb.createPortal(u.jsx(Ca.div,{...s,ref:r}),h):null});pv.displayName=cS;function uS(n,r){return y.useReducer((i,s)=>r[i][s]??i,n)}var bi=n=>{const{present:r,children:i}=n,s=dS(r),d=typeof i=="function"?i({present:s.isPresent}):y.Children.only(i),f=kn(s.ref,fS(d));return typeof i=="function"||s.isPresent?y.cloneElement(d,{ref:f}):null};bi.displayName="Presence";function dS(n){const[r,i]=y.useState(),s=y.useRef(null),d=y.useRef(n),f=y.useRef("none"),h=n?"mounted":"unmounted",[p,b]=uS(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const g=$s(s.current);f.current=p==="mounted"?g:"none"},[p]),kr(()=>{const g=s.current,S=d.current;if(S!==n){const E=f.current,C=$s(g);n?b("MOUNT"):C==="none"||(g==null?void 0:g.display)==="none"?b("UNMOUNT"):b(S&&E!==C?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,b]),kr(()=>{if(r){let g;const S=r.ownerDocument.defaultView??window,x=C=>{const k=$s(s.current).includes(CSS.escape(C.animationName));if(C.target===r&&k&&(b("ANIMATION_END"),!d.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",g=S.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},E=C=>{C.target===r&&(f.current=$s(s.current))};return r.addEventListener("animationstart",E),r.addEventListener("animationcancel",x),r.addEventListener("animationend",x),()=>{S.clearTimeout(g),r.removeEventListener("animationstart",E),r.removeEventListener("animationcancel",x),r.removeEventListener("animationend",x)}}else b("ANIMATION_END")},[r,b]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:y.useCallback(g=>{s.current=g?getComputedStyle(g):null,i(g)},[])}}function $s(n){return(n==null?void 0:n.animationName)||"none"}function fS(n){var s,d;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var au=0;function mS(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??_p()),document.body.insertAdjacentElement("beforeend",n[1]??_p()),au++,()=>{au===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),au--}},[])}function _p(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var $t=function(){return $t=Object.assign||function(r){for(var i,s=1,d=arguments.length;s<d;s++){i=arguments[s];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},$t.apply(this,arguments)};function vv(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,s=Object.getOwnPropertySymbols(n);d<s.length;d++)r.indexOf(s[d])<0&&Object.prototype.propertyIsEnumerable.call(n,s[d])&&(i[s[d]]=n[s[d]]);return i}function hS(n,r,i){if(i||arguments.length===2)for(var s=0,d=r.length,f;s<d;s++)(f||!(s in r))&&(f||(f=Array.prototype.slice.call(r,0,s)),f[s]=r[s]);return n.concat(f||Array.prototype.slice.call(r))}var oi="right-scroll-bar-position",ci="width-before-scroll-bar",pS="with-scroll-bars-hidden",vS="--removed-body-scroll-bar-size";function nu(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function gS(n,r){var i=y.useState(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(s){var d=i.value;d!==s&&(i.value=s,i.callback(s,d))}}}})[0];return i.callback=r,i.facade}var yS=typeof window<"u"?y.useLayoutEffect:y.useEffect,Cp=new WeakMap;function bS(n,r){var i=gS(null,function(s){return n.forEach(function(d){return nu(d,s)})});return yS(function(){var s=Cp.get(i);if(s){var d=new Set(s),f=new Set(n),h=i.current;d.forEach(function(p){f.has(p)||nu(p,null)}),f.forEach(function(p){d.has(p)||nu(p,h)})}Cp.set(i,n)},[n]),i}function xS(n){return n}function SS(n,r){r===void 0&&(r=xS);var i=[],s=!1,d={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(f){var h=r(f,s);return i.push(h),function(){i=i.filter(function(p){return p!==h})}},assignSyncMedium:function(f){for(s=!0;i.length;){var h=i;i=[],h.forEach(f)}i={push:function(p){return f(p)},filter:function(){return i}}},assignMedium:function(f){s=!0;var h=[];if(i.length){var p=i;i=[],p.forEach(f),h=i}var b=function(){var S=h;h=[],S.forEach(f)},g=function(){return Promise.resolve().then(b)};g(),i={push:function(S){h.push(S),g()},filter:function(S){return h=h.filter(S),i}}}};return d}function ES(n){n===void 0&&(n={});var r=SS(null);return r.options=$t({async:!0,ssr:!1},n),r}var gv=function(n){var r=n.sideCar,i=vv(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return y.createElement(s,$t({},i))};gv.isSideCarExport=!0;function _S(n,r){return n.useMedium(r),gv}var yv=ES(),lu=function(){},xi=y.forwardRef(function(n,r){var i=y.useRef(null),s=y.useState({onScrollCapture:lu,onWheelCapture:lu,onTouchMoveCapture:lu}),d=s[0],f=s[1],h=n.forwardProps,p=n.children,b=n.className,g=n.removeScrollBar,S=n.enabled,x=n.shards,E=n.sideCar,C=n.noRelative,z=n.noIsolation,k=n.inert,R=n.allowPinchZoom,w=n.as,K=w===void 0?"div":w,Z=n.gapMode,Q=vv(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),le=E,oe=bS([i,r]),G=$t($t({},Q),d);return y.createElement(y.Fragment,null,S&&y.createElement(le,{sideCar:yv,removeScrollBar:g,shards:x,noRelative:C,noIsolation:z,inert:k,setCallbacks:f,allowPinchZoom:!!R,lockRef:i,gapMode:Z}),h?y.cloneElement(y.Children.only(p),$t($t({},G),{ref:oe})):y.createElement(K,$t({},G,{className:b,ref:oe}),p))});xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xi.classNames={fullWidth:ci,zeroRight:oi};var CS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NS(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=CS();return r&&n.setAttribute("nonce",r),n}function jS(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function TS(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var wS=function(){var n=0,r=null;return{add:function(i){n==0&&(r=NS())&&(jS(r,i),TS(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},AS=function(){var n=wS();return function(r,i){y.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&i])}},bv=function(){var n=AS(),r=function(i){var s=i.styles,d=i.dynamic;return n(s,d),null};return r},OS={left:0,top:0,right:0,gap:0},ru=function(n){return parseInt(n||"",10)||0},kS=function(n){var r=window.getComputedStyle(document.body),i=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],d=r[n==="padding"?"paddingRight":"marginRight"];return[ru(i),ru(s),ru(d)]},DS=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return OS;var r=kS(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},RS=bv(),Cl="data-scroll-locked",zS=function(n,r,i,s){var d=n.left,f=n.top,h=n.right,p=n.gap;return i===void 0&&(i="margin"),`
|
|
188
|
+
.`.concat(pS,` {
|
|
189
|
+
overflow: hidden `).concat(s,`;
|
|
190
|
+
padding-right: `).concat(p,"px ").concat(s,`;
|
|
191
|
+
}
|
|
192
|
+
body[`).concat(Cl,`] {
|
|
193
|
+
overflow: hidden `).concat(s,`;
|
|
194
|
+
overscroll-behavior: contain;
|
|
195
|
+
`).concat([r&&"position: relative ".concat(s,";"),i==="margin"&&`
|
|
196
|
+
padding-left: `.concat(d,`px;
|
|
197
|
+
padding-top: `).concat(f,`px;
|
|
198
|
+
padding-right: `).concat(h,`px;
|
|
199
|
+
margin-left:0;
|
|
200
|
+
margin-top:0;
|
|
201
|
+
margin-right: `).concat(p,"px ").concat(s,`;
|
|
202
|
+
`),i==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.`).concat(oi,` {
|
|
206
|
+
right: `).concat(p,"px ").concat(s,`;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.`).concat(ci,` {
|
|
210
|
+
margin-right: `).concat(p,"px ").concat(s,`;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.`).concat(oi," .").concat(oi,` {
|
|
214
|
+
right: 0 `).concat(s,`;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.`).concat(ci," .").concat(ci,` {
|
|
218
|
+
margin-right: 0 `).concat(s,`;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
body[`).concat(Cl,`] {
|
|
222
|
+
`).concat(vS,": ").concat(p,`px;
|
|
223
|
+
}
|
|
224
|
+
`)},Np=function(){var n=parseInt(document.body.getAttribute(Cl)||"0",10);return isFinite(n)?n:0},MS=function(){y.useEffect(function(){return document.body.setAttribute(Cl,(Np()+1).toString()),function(){var n=Np()-1;n<=0?document.body.removeAttribute(Cl):document.body.setAttribute(Cl,n.toString())}},[])},US=function(n){var r=n.noRelative,i=n.noImportant,s=n.gapMode,d=s===void 0?"margin":s;MS();var f=y.useMemo(function(){return DS(d)},[d]);return y.createElement(RS,{styles:zS(f,!r,d,i?"":"!important")})},xu=!1;if(typeof window<"u")try{var ei=Object.defineProperty({},"passive",{get:function(){return xu=!0,!0}});window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{xu=!1}var bl=xu?{passive:!1}:!1,LS=function(n){return n.tagName==="TEXTAREA"},xv=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!LS(n)&&i[r]==="visible")},BS=function(n){return xv(n,"overflowY")},HS=function(n){return xv(n,"overflowX")},jp=function(n,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var d=Sv(n,s);if(d){var f=Ev(n,s),h=f[1],p=f[2];if(h>p)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},qS=function(n){var r=n.scrollTop,i=n.scrollHeight,s=n.clientHeight;return[r,i,s]},GS=function(n){var r=n.scrollLeft,i=n.scrollWidth,s=n.clientWidth;return[r,i,s]},Sv=function(n,r){return n==="v"?BS(r):HS(r)},Ev=function(n,r){return n==="v"?qS(r):GS(r)},YS=function(n,r){return n==="h"&&r==="rtl"?-1:1},VS=function(n,r,i,s,d){var f=YS(n,window.getComputedStyle(r).direction),h=f*s,p=i.target,b=r.contains(p),g=!1,S=h>0,x=0,E=0;do{if(!p)break;var C=Ev(n,p),z=C[0],k=C[1],R=C[2],w=k-R-f*z;(z||w)&&Sv(n,p)&&(x+=w,E+=z);var K=p.parentNode;p=K&&K.nodeType===Node.DOCUMENT_FRAGMENT_NODE?K.host:K}while(!b&&p!==document.body||b&&(r.contains(p)||r===p));return(S&&Math.abs(x)<1||!S&&Math.abs(E)<1)&&(g=!0),g},ti=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Tp=function(n){return[n.deltaX,n.deltaY]},wp=function(n){return n&&"current"in n?n.current:n},KS=function(n,r){return n[0]===r[0]&&n[1]===r[1]},XS=function(n){return`
|
|
225
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
226
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
227
|
+
`)},IS=0,xl=[];function QS(n){var r=y.useRef([]),i=y.useRef([0,0]),s=y.useRef(),d=y.useState(IS++)[0],f=y.useState(bv)[0],h=y.useRef(n);y.useEffect(function(){h.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var k=hS([n.lockRef.current],(n.shards||[]).map(wp),!0).filter(Boolean);return k.forEach(function(R){return R.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),k.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var p=y.useCallback(function(k,R){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!h.current.allowPinchZoom;var w=ti(k),K=i.current,Z="deltaX"in k?k.deltaX:K[0]-w[0],Q="deltaY"in k?k.deltaY:K[1]-w[1],le,oe=k.target,G=Math.abs(Z)>Math.abs(Q)?"h":"v";if("touches"in k&&G==="h"&&oe.type==="range")return!1;var X=window.getSelection(),V=X&&X.anchorNode,he=V?V===oe||V.contains(oe):!1;if(he)return!1;var He=jp(G,oe);if(!He)return!0;if(He?le=G:(le=G==="v"?"h":"v",He=jp(G,oe)),!He)return!1;if(!s.current&&"changedTouches"in k&&(Z||Q)&&(s.current=le),!le)return!0;var ze=s.current||le;return VS(ze,R,k,ze==="h"?Z:Q)},[]),b=y.useCallback(function(k){var R=k;if(!(!xl.length||xl[xl.length-1]!==f)){var w="deltaY"in R?Tp(R):ti(R),K=r.current.filter(function(le){return le.name===R.type&&(le.target===R.target||R.target===le.shadowParent)&&KS(le.delta,w)})[0];if(K&&K.should){R.cancelable&&R.preventDefault();return}if(!K){var Z=(h.current.shards||[]).map(wp).filter(Boolean).filter(function(le){return le.contains(R.target)}),Q=Z.length>0?p(R,Z[0]):!h.current.noIsolation;Q&&R.cancelable&&R.preventDefault()}}},[]),g=y.useCallback(function(k,R,w,K){var Z={name:k,delta:R,target:w,should:K,shadowParent:ZS(w)};r.current.push(Z),setTimeout(function(){r.current=r.current.filter(function(Q){return Q!==Z})},1)},[]),S=y.useCallback(function(k){i.current=ti(k),s.current=void 0},[]),x=y.useCallback(function(k){g(k.type,Tp(k),k.target,p(k,n.lockRef.current))},[]),E=y.useCallback(function(k){g(k.type,ti(k),k.target,p(k,n.lockRef.current))},[]);y.useEffect(function(){return xl.push(f),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:E}),document.addEventListener("wheel",b,bl),document.addEventListener("touchmove",b,bl),document.addEventListener("touchstart",S,bl),function(){xl=xl.filter(function(k){return k!==f}),document.removeEventListener("wheel",b,bl),document.removeEventListener("touchmove",b,bl),document.removeEventListener("touchstart",S,bl)}},[]);var C=n.removeScrollBar,z=n.inert;return y.createElement(y.Fragment,null,z?y.createElement(f,{styles:XS(d)}):null,C?y.createElement(US,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function ZS(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const JS=_S(yv,QS);var _v=y.forwardRef(function(n,r){return y.createElement(xi,$t({},n,{ref:r,sideCar:JS}))});_v.classNames=xi.classNames;var PS=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},Sl=new WeakMap,ai=new WeakMap,ni={},su=0,Cv=function(n){return n&&(n.host||Cv(n.parentNode))},FS=function(n,r){return r.map(function(i){if(n.contains(i))return i;var s=Cv(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},WS=function(n,r,i,s){var d=FS(r,Array.isArray(n)?n:[n]);ni[i]||(ni[i]=new WeakMap);var f=ni[i],h=[],p=new Set,b=new Set(d),g=function(x){!x||p.has(x)||(p.add(x),g(x.parentNode))};d.forEach(g);var S=function(x){!x||b.has(x)||Array.prototype.forEach.call(x.children,function(E){if(p.has(E))S(E);else try{var C=E.getAttribute(s),z=C!==null&&C!=="false",k=(Sl.get(E)||0)+1,R=(f.get(E)||0)+1;Sl.set(E,k),f.set(E,R),h.push(E),k===1&&z&&ai.set(E,!0),R===1&&E.setAttribute(i,"true"),z||E.setAttribute(s,"true")}catch(w){console.error("aria-hidden: cannot operate on ",E,w)}})};return S(r),p.clear(),su++,function(){h.forEach(function(x){var E=Sl.get(x)-1,C=f.get(x)-1;Sl.set(x,E),f.set(x,C),E||(ai.has(x)||x.removeAttribute(s),ai.delete(x)),C||x.removeAttribute(i)}),su--,su||(Sl=new WeakMap,Sl=new WeakMap,ai=new WeakMap,ni={})}},$S=function(n,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),d=PS(n);return d?(s.push.apply(s,Array.from(d.querySelectorAll("[aria-live], script"))),WS(s,d,i,"aria-hidden")):function(){return null}};function eE(n){const r=tE(n),i=y.forwardRef((s,d)=>{const{children:f,...h}=s,p=y.Children.toArray(f),b=p.find(nE);if(b){const g=b.props.children,S=p.map(x=>x===b?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:x);return u.jsx(r,{...h,ref:d,children:y.isValidElement(g)?y.cloneElement(g,void 0,S):null})}return u.jsx(r,{...h,ref:d,children:f})});return i.displayName=`${n}.Slot`,i}function tE(n){const r=y.forwardRef((i,s)=>{const{children:d,...f}=i;if(y.isValidElement(d)){const h=rE(d),p=lE(f,d.props);return d.type!==y.Fragment&&(p.ref=s?wu(s,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var aE=Symbol("radix.slottable");function nE(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===aE}function lE(n,r){const i={...r};for(const s in r){const d=n[s],f=r[s];/^on[A-Z]/.test(s)?d&&f?i[s]=(...p)=>{const b=f(...p);return d(...p),b}:d&&(i[s]=d):s==="style"?i[s]={...d,...f}:s==="className"&&(i[s]=[d,f].filter(Boolean).join(" "))}return{...n,...i}}function rE(n){var s,d;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var Si="Dialog",[Nv]=D1(Si),[sE,Qt]=Nv(Si),jv=n=>{const{__scopeDialog:r,children:i,open:s,defaultOpen:d,onOpenChange:f,modal:h=!0}=n,p=y.useRef(null),b=y.useRef(null),[g,S]=L1({prop:s,defaultProp:d??!1,onChange:f,caller:Si});return u.jsx(sE,{scope:r,triggerRef:p,contentRef:b,contentId:$c(),titleId:$c(),descriptionId:$c(),open:g,onOpenChange:S,onOpenToggle:y.useCallback(()=>S(x=>!x),[S]),modal:h,children:i})};jv.displayName=Si;var Tv="DialogTrigger",iE=y.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,d=Qt(Tv,i),f=kn(r,d.triggerRef);return u.jsx(Ca.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":ku(d.open),...s,ref:f,onClick:rn(n.onClick,d.onOpenToggle)})});iE.displayName=Tv;var Au="DialogPortal",[oE,wv]=Nv(Au,{forceMount:void 0}),Av=n=>{const{__scopeDialog:r,forceMount:i,children:s,container:d}=n,f=Qt(Au,r);return u.jsx(oE,{scope:r,forceMount:i,children:y.Children.map(s,h=>u.jsx(bi,{present:i||f.open,children:u.jsx(pv,{asChild:!0,container:d,children:h})}))})};Av.displayName=Au;var mi="DialogOverlay",Ov=y.forwardRef((n,r)=>{const i=wv(mi,n.__scopeDialog),{forceMount:s=i.forceMount,...d}=n,f=Qt(mi,n.__scopeDialog);return f.modal?u.jsx(bi,{present:s||f.open,children:u.jsx(uE,{...d,ref:r})}):null});Ov.displayName=mi;var cE=eE("DialogOverlay.RemoveScroll"),uE=y.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,d=Qt(mi,i);return u.jsx(_v,{as:cE,allowPinchZoom:!0,shards:[d.contentRef],children:u.jsx(Ca.div,{"data-state":ku(d.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),On="DialogContent",kv=y.forwardRef((n,r)=>{const i=wv(On,n.__scopeDialog),{forceMount:s=i.forceMount,...d}=n,f=Qt(On,n.__scopeDialog);return u.jsx(bi,{present:s||f.open,children:f.modal?u.jsx(dE,{...d,ref:r}):u.jsx(fE,{...d,ref:r})})});kv.displayName=On;var dE=y.forwardRef((n,r)=>{const i=Qt(On,n.__scopeDialog),s=y.useRef(null),d=kn(r,i.contentRef,s);return y.useEffect(()=>{const f=s.current;if(f)return $S(f)},[]),u.jsx(Dv,{...n,ref:d,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rn(n.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=i.triggerRef.current)==null||h.focus()}),onPointerDownOutside:rn(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0;(h.button===2||p)&&f.preventDefault()}),onFocusOutside:rn(n.onFocusOutside,f=>f.preventDefault())})}),fE=y.forwardRef((n,r)=>{const i=Qt(On,n.__scopeDialog),s=y.useRef(!1),d=y.useRef(!1);return u.jsx(Dv,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,p;(h=n.onCloseAutoFocus)==null||h.call(n,f),f.defaultPrevented||(s.current||(p=i.triggerRef.current)==null||p.focus(),f.preventDefault()),s.current=!1,d.current=!1},onInteractOutside:f=>{var b,g;(b=n.onInteractOutside)==null||b.call(n,f),f.defaultPrevented||(s.current=!0,f.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const h=f.target;((g=i.triggerRef.current)==null?void 0:g.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&d.current&&f.preventDefault()}})}),Dv=y.forwardRef((n,r)=>{const{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:d,onCloseAutoFocus:f,...h}=n,p=Qt(On,i),b=y.useRef(null),g=kn(r,b);return mS(),u.jsxs(u.Fragment,{children:[u.jsx(mv,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:d,onUnmountAutoFocus:f,children:u.jsx(dv,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":ku(p.open),...h,ref:g,onDismiss:()=>p.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(hE,{titleId:p.titleId}),u.jsx(vE,{contentRef:b,descriptionId:p.descriptionId})]})]})}),Ou="DialogTitle",Rv=y.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,d=Qt(Ou,i);return u.jsx(Ca.h2,{id:d.titleId,...s,ref:r})});Rv.displayName=Ou;var zv="DialogDescription",mE=y.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,d=Qt(zv,i);return u.jsx(Ca.p,{id:d.descriptionId,...s,ref:r})});mE.displayName=zv;var Mv="DialogClose",Uv=y.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,d=Qt(Mv,i);return u.jsx(Ca.button,{type:"button",...s,ref:r,onClick:rn(n.onClick,()=>d.onOpenChange(!1))})});Uv.displayName=Mv;function ku(n){return n?"open":"closed"}var Lv="DialogTitleWarning",[g_,Bv]=k1(Lv,{contentName:On,titleName:Ou,docsSlug:"dialog"}),hE=({titleId:n})=>{const r=Bv(Lv),i=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
228
|
+
|
|
229
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
230
|
+
|
|
231
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},pE="DialogDescriptionWarning",vE=({contentRef:n,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bv(pE).contentName}}.`;return y.useEffect(()=>{var f;const d=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");r&&d&&(document.getElementById(r)||console.warn(s))},[s,n,r]),null},gE=jv,yE=Av,bE=Ov,xE=kv,SE=Rv,EE=Uv;const Hv="maestro-ui-prefs";function qv(){try{const n=localStorage.getItem(Hv);return n?JSON.parse(n):{}}catch{return{}}}function iu(n){try{localStorage.setItem(Hv,JSON.stringify({...qv(),...n}))}catch{}}const ui=qv(),El=ta(n=>({createModalStyle:ui.createModalStyle??2,detailModalStyle:ui.detailModalStyle??1,stylePreset:ui.stylePreset??"default",setCreateModalStyle:r=>{n({createModalStyle:r}),iu({createModalStyle:r})},setDetailModalStyle:r=>{n({detailModalStyle:r}),iu({detailModalStyle:r})},setStylePreset:r=>{n({stylePreset:r}),iu({stylePreset:r}),document.documentElement.dataset.style=r}}));document.documentElement.dataset.style=ui.stylePreset??"default";function Gv(n){var r,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(r=0;r<d;r++)n[r]&&(i=Gv(n[r]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function _E(){for(var n,r,i=0,s="",d=arguments.length;i<d;i++)(n=arguments[i])&&(r=Gv(n))&&(s&&(s+=" "),s+=r);return s}const CE=(n,r)=>{const i=new Array(n.length+r.length);for(let s=0;s<n.length;s++)i[s]=n[s];for(let s=0;s<r.length;s++)i[n.length+s]=r[s];return i},NE=(n,r)=>({classGroupId:n,validator:r}),Yv=(n=new Map,r=null,i)=>({nextPart:n,validators:r,classGroupId:i}),hi="-",Ap=[],jE="arbitrary..",TE=n=>{const r=AE(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return wE(h);const p=h.split(hi),b=p[0]===""&&p.length>1?1:0;return Vv(p,b,r)},getConflictingClassGroupIds:(h,p)=>{if(p){const b=s[h],g=i[h];return b?g?CE(g,b):b:g||Ap}return i[h]||Ap}}},Vv=(n,r,i)=>{if(n.length-r===0)return i.classGroupId;const d=n[r],f=i.nextPart.get(d);if(f){const g=Vv(n,r+1,f);if(g)return g}const h=i.validators;if(h===null)return;const p=r===0?n.join(hi):n.slice(r).join(hi),b=h.length;for(let g=0;g<b;g++){const S=h[g];if(S.validator(p))return S.classGroupId}},wE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),i=r.indexOf(":"),s=r.slice(0,i);return s?jE+s:void 0})(),AE=n=>{const{theme:r,classGroups:i}=n;return OE(i,r)},OE=(n,r)=>{const i=Yv();for(const s in n){const d=n[s];Du(d,i,s,r)}return i},Du=(n,r,i,s)=>{const d=n.length;for(let f=0;f<d;f++){const h=n[f];kE(h,r,i,s)}},kE=(n,r,i,s)=>{if(typeof n=="string"){DE(n,r,i);return}if(typeof n=="function"){RE(n,r,i,s);return}zE(n,r,i,s)},DE=(n,r,i)=>{const s=n===""?r:Kv(r,n);s.classGroupId=i},RE=(n,r,i,s)=>{if(ME(n)){Du(n(s),r,i,s);return}r.validators===null&&(r.validators=[]),r.validators.push(NE(i,n))},zE=(n,r,i,s)=>{const d=Object.entries(n),f=d.length;for(let h=0;h<f;h++){const[p,b]=d[h];Du(b,Kv(r,p),i,s)}},Kv=(n,r)=>{let i=n;const s=r.split(hi),d=s.length;for(let f=0;f<d;f++){const h=s[f];let p=i.nextPart.get(h);p||(p=Yv(),i.nextPart.set(h,p)),i=p}return i},ME=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,UE=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),s=Object.create(null);const d=(f,h)=>{i[f]=h,r++,r>n&&(r=0,s=i,i=Object.create(null))};return{get(f){let h=i[f];if(h!==void 0)return h;if((h=s[f])!==void 0)return d(f,h),h},set(f,h){f in i?i[f]=h:d(f,h)}}},Su="!",Op=":",LE=[],kp=(n,r,i,s,d)=>({modifiers:n,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:s,isExternal:d}),BE=n=>{const{prefix:r,experimentalParseClassName:i}=n;let s=d=>{const f=[];let h=0,p=0,b=0,g;const S=d.length;for(let k=0;k<S;k++){const R=d[k];if(h===0&&p===0){if(R===Op){f.push(d.slice(b,k)),b=k+1;continue}if(R==="/"){g=k;continue}}R==="["?h++:R==="]"?h--:R==="("?p++:R===")"&&p--}const x=f.length===0?d:d.slice(b);let E=x,C=!1;x.endsWith(Su)?(E=x.slice(0,-1),C=!0):x.startsWith(Su)&&(E=x.slice(1),C=!0);const z=g&&g>b?g-b:void 0;return kp(f,C,E,z)};if(r){const d=r+Op,f=s;s=h=>h.startsWith(d)?f(h.slice(d.length)):kp(LE,!1,h,void 0,!0)}if(i){const d=s;s=f=>i({className:f,parseClassName:d})}return s},HE=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((i,s)=>{r.set(i,1e6+s)}),i=>{const s=[];let d=[];for(let f=0;f<i.length;f++){const h=i[f],p=h[0]==="[",b=r.has(h);p||b?(d.length>0&&(d.sort(),s.push(...d),d=[]),s.push(h)):d.push(h)}return d.length>0&&(d.sort(),s.push(...d)),s}},qE=n=>({cache:UE(n.cacheSize),parseClassName:BE(n),sortModifiers:HE(n),...TE(n)}),GE=/\s+/,YE=(n,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:d,sortModifiers:f}=r,h=[],p=n.trim().split(GE);let b="";for(let g=p.length-1;g>=0;g-=1){const S=p[g],{isExternal:x,modifiers:E,hasImportantModifier:C,baseClassName:z,maybePostfixModifierPosition:k}=i(S);if(x){b=S+(b.length>0?" "+b:b);continue}let R=!!k,w=s(R?z.substring(0,k):z);if(!w){if(!R){b=S+(b.length>0?" "+b:b);continue}if(w=s(z),!w){b=S+(b.length>0?" "+b:b);continue}R=!1}const K=E.length===0?"":E.length===1?E[0]:f(E).join(":"),Z=C?K+Su:K,Q=Z+w;if(h.indexOf(Q)>-1)continue;h.push(Q);const le=d(w,R);for(let oe=0;oe<le.length;++oe){const G=le[oe];h.push(Z+G)}b=S+(b.length>0?" "+b:b)}return b},VE=(...n)=>{let r=0,i,s,d="";for(;r<n.length;)(i=n[r++])&&(s=Xv(i))&&(d&&(d+=" "),d+=s);return d},Xv=n=>{if(typeof n=="string")return n;let r,i="";for(let s=0;s<n.length;s++)n[s]&&(r=Xv(n[s]))&&(i&&(i+=" "),i+=r);return i},KE=(n,...r)=>{let i,s,d,f;const h=b=>{const g=r.reduce((S,x)=>x(S),n());return i=qE(g),s=i.cache.get,d=i.cache.set,f=p,p(b)},p=b=>{const g=s(b);if(g)return g;const S=YE(b,i);return d(b,S),S};return f=h,(...b)=>f(VE(...b))},XE=[],Pe=n=>{const r=i=>i[n]||XE;return r.isThemeGetter=!0,r},Iv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,IE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,QE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,JE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wa=n=>IE.test(n),pe=n=>!!n&&!Number.isNaN(Number(n)),$a=n=>!!n&&Number.isInteger(Number(n)),ou=n=>n.endsWith("%")&&pe(n.slice(0,-1)),Sa=n=>QE.test(n),Zv=()=>!0,WE=n=>ZE.test(n)&&!JE.test(n),Ru=()=>!1,$E=n=>PE.test(n),e2=n=>FE.test(n),t2=n=>!ee(n)&&!te(n),a2=n=>sn(n,Fv,Ru),ee=n=>Iv.test(n),jn=n=>sn(n,Wv,WE),Dp=n=>sn(n,u2,pe),n2=n=>sn(n,eg,Zv),l2=n=>sn(n,$v,Ru),Rp=n=>sn(n,Jv,Ru),r2=n=>sn(n,Pv,e2),li=n=>sn(n,tg,$E),te=n=>Qv.test(n),Cr=n=>Dn(n,Wv),s2=n=>Dn(n,$v),zp=n=>Dn(n,Jv),i2=n=>Dn(n,Fv),o2=n=>Dn(n,Pv),ri=n=>Dn(n,tg,!0),c2=n=>Dn(n,eg,!0),sn=(n,r,i)=>{const s=Iv.exec(n);return s?s[1]?r(s[1]):i(s[2]):!1},Dn=(n,r,i=!1)=>{const s=Qv.exec(n);return s?s[1]?r(s[1]):i:!1},Jv=n=>n==="position"||n==="percentage",Pv=n=>n==="image"||n==="url",Fv=n=>n==="length"||n==="size"||n==="bg-size",Wv=n=>n==="length",u2=n=>n==="number",$v=n=>n==="family-name",eg=n=>n==="number"||n==="weight",tg=n=>n==="shadow",d2=()=>{const n=Pe("color"),r=Pe("font"),i=Pe("text"),s=Pe("font-weight"),d=Pe("tracking"),f=Pe("leading"),h=Pe("breakpoint"),p=Pe("container"),b=Pe("spacing"),g=Pe("radius"),S=Pe("shadow"),x=Pe("inset-shadow"),E=Pe("text-shadow"),C=Pe("drop-shadow"),z=Pe("blur"),k=Pe("perspective"),R=Pe("aspect"),w=Pe("ease"),K=Pe("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],le=()=>[...Q(),te,ee],oe=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],X=()=>[te,ee,b],V=()=>[Wa,"full","auto",...X()],he=()=>[$a,"none","subgrid",te,ee],He=()=>["auto",{span:["full",$a,te,ee]},$a,te,ee],ze=()=>[$a,"auto",te,ee],kt=()=>["auto","min","max","fr",te,ee],ut=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ye=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...X()],I=()=>[Wa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...X()],F=()=>[Wa,"screen","full","dvw","lvw","svw","min","max","fit",...X()],ae=()=>[Wa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...X()],L=()=>[n,te,ee],N=()=>[...Q(),zp,Rp,{position:[te,ee]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",i2,a2,{size:[te,ee]}],P=()=>[ou,Cr,jn],W=()=>["","none","full",g,te,ee],re=()=>["",pe,Cr,jn],ve=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[pe,ou,zp,Rp],Na=()=>["","none",z,te,ee],aa=()=>["none",pe,te,ee],ja=()=>["none",pe,te,ee],Rn=()=>[pe,te,ee],Dt=()=>[Wa,"full",...X()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sa],breakpoint:[Sa],color:[Zv],container:[Sa],"drop-shadow":[Sa],ease:["in","out","in-out"],font:[t2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sa],shadow:[Sa],spacing:["px",pe],text:[Sa],"text-shadow":[Sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wa,ee,te,R]}],container:["container"],columns:[{columns:[pe,ee,te,p]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:le()}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[$a,"auto",te,ee]}],basis:[{basis:[Wa,"full","auto",p,...X()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,Wa,"auto","initial","none",ee]}],grow:[{grow:["",pe,te,ee]}],shrink:[{shrink:["",pe,te,ee]}],order:[{order:[$a,"first","last","none",te,ee]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:He()}],"col-start":[{"col-start":ze()}],"col-end":[{"col-end":ze()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:He()}],"row-start":[{"row-start":ze()}],"row-end":[{"row-end":ze()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":kt()}],"auto-rows":[{"auto-rows":kt()}],gap:[{gap:X()}],"gap-x":[{"gap-x":X()}],"gap-y":[{"gap-y":X()}],"justify-content":[{justify:[...ut(),"normal"]}],"justify-items":[{"justify-items":[...Ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ye()]}],"align-content":[{content:["normal",...ut()]}],"align-items":[{items:[...Ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":ut()}],"place-items":[{"place-items":[...Ye(),"baseline"]}],"place-self":[{"place-self":["auto",...Ye()]}],p:[{p:X()}],px:[{px:X()}],py:[{py:X()}],ps:[{ps:X()}],pe:[{pe:X()}],pbs:[{pbs:X()}],pbe:[{pbe:X()}],pt:[{pt:X()}],pr:[{pr:X()}],pb:[{pb:X()}],pl:[{pl:X()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":X()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":X()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[p,"screen",...I()]}],"min-w":[{"min-w":[p,"screen","none",...I()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[h]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",i,Cr,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,c2,n2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ou,ee]}],"font-family":[{font:[s2,l2,r]}],"font-features":[{"font-features":[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,te,ee]}],"line-clamp":[{"line-clamp":[pe,"none",te,Dp]}],leading:[{leading:[f,...X()]}],"list-image":[{"list-image":["none",te,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",te,jn]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[pe,"auto",te,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$a,te,ee],radial:["",te,ee],conic:[$a,te,ee]},o2,r2]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,te,ee]}],"outline-w":[{outline:["",pe,Cr,jn]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",S,ri,li]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",x,ri,li]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[pe,jn]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",E,ri,li]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[pe,te,ee]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[te,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,ee]}],filter:[{filter:["","none",te,ee]}],blur:[{blur:Na()}],brightness:[{brightness:[pe,te,ee]}],contrast:[{contrast:[pe,te,ee]}],"drop-shadow":[{"drop-shadow":["","none",C,ri,li]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",pe,te,ee]}],"hue-rotate":[{"hue-rotate":[pe,te,ee]}],invert:[{invert:["",pe,te,ee]}],saturate:[{saturate:[pe,te,ee]}],sepia:[{sepia:["",pe,te,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",te,ee]}],"backdrop-blur":[{"backdrop-blur":Na()}],"backdrop-brightness":[{"backdrop-brightness":[pe,te,ee]}],"backdrop-contrast":[{"backdrop-contrast":[pe,te,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,te,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,te,ee]}],"backdrop-invert":[{"backdrop-invert":["",pe,te,ee]}],"backdrop-opacity":[{"backdrop-opacity":[pe,te,ee]}],"backdrop-saturate":[{"backdrop-saturate":[pe,te,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,te,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":X()}],"border-spacing-x":[{"border-spacing-x":X()}],"border-spacing-y":[{"border-spacing-y":X()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",te,ee]}],ease:[{ease:["linear","initial",w,te,ee]}],delay:[{delay:[pe,te,ee]}],animate:[{animate:["none",K,te,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,te,ee]}],"perspective-origin":[{"perspective-origin":le()}],rotate:[{rotate:aa()}],"rotate-x":[{"rotate-x":aa()}],"rotate-y":[{"rotate-y":aa()}],"rotate-z":[{"rotate-z":aa()}],scale:[{scale:ja()}],"scale-x":[{"scale-x":ja()}],"scale-y":[{"scale-y":ja()}],"scale-z":[{"scale-z":ja()}],"scale-3d":["scale-3d"],skew:[{skew:Rn()}],"skew-x":[{"skew-x":Rn()}],"skew-y":[{"skew-y":Rn()}],transform:[{transform:[te,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:le()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Dt()}],"translate-x":[{"translate-x":Dt()}],"translate-y":[{"translate-y":Dt()}],"translate-z":[{"translate-z":Dt()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mbs":[{"scroll-mbs":X()}],"scroll-mbe":[{"scroll-mbe":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pbs":[{"scroll-pbs":X()}],"scroll-pbe":[{"scroll-pbe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te,ee]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[pe,Cr,jn,Dp]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},f2=KE(d2);function rt(...n){return f2(_E(n))}function _l({enabled:n,onClick:r}){return u.jsx("button",{type:"button",onClick:r,className:rt("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent","transition-colors duration-[var(--duration-fast)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",n?"bg-accent-blue":"bg-border"),children:u.jsx("span",{className:rt("pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow-sm","transition-transform duration-[var(--duration-fast)]",n?"translate-x-5":"translate-x-0")})})}function Fe({title:n,description:r,children:i,className:s}){return u.jsxs("div",{className:rt("rounded-[var(--radius-default)] border border-border bg-bg-secondary p-[var(--spacing-4)]",s),children:[u.jsxs("div",{className:"mb-[var(--spacing-3)]",children:[u.jsx("h3",{className:"text-[length:var(--font-size-sm)] font-[var(--font-weight-semibold)] text-text-primary",children:n}),r&&u.jsx("p",{className:"mt-[var(--spacing-1)] text-[length:var(--font-size-xs)] text-text-secondary",children:r})]}),i]})}function Le({label:n,description:r,htmlFor:i,children:s}){return u.jsxs("div",{className:"flex items-start justify-between gap-[var(--spacing-4)] py-[var(--spacing-2)]",children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("label",{htmlFor:i,className:"text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)] text-text-primary",children:n}),r&&u.jsx("p",{className:"mt-[var(--spacing-0-5)] text-[length:var(--font-size-xs)] text-text-secondary",children:r})]}),u.jsx("div",{className:"shrink-0",children:s})]})}function tn({id:n,value:r,onChange:i,placeholder:s,className:d,type:f="text"}){return u.jsx("input",{id:n,type:f,value:r,onChange:h=>i(h.target.value),placeholder:s,className:rt("w-48 px-[var(--spacing-2)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","border border-border bg-bg-primary text-text-primary text-[length:var(--font-size-sm)]","focus:outline-none focus:border-accent-blue focus:shadow-[var(--shadow-focus-ring)]","transition-colors duration-[var(--duration-fast)]","placeholder:text-text-tertiary",d)})}function wn({id:n,value:r,onChange:i,options:s,className:d}){return u.jsx("select",{id:n,value:r,onChange:f=>i(f.target.value),className:rt("w-48 px-[var(--spacing-2)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","border border-border bg-bg-primary text-text-primary text-[length:var(--font-size-sm)]","focus:outline-none focus:border-accent-blue focus:shadow-[var(--shadow-focus-ring)]","transition-colors duration-[var(--duration-fast)]",d),children:s.map(f=>u.jsx("option",{value:f.value,children:f.label},f.value))})}function jl({dirty:n,saving:r,onSave:i,onDiscard:s}){if(!n)return null;const{t:d}=yt();return u.jsxs("div",{className:"sticky bottom-0 left-0 right-0 flex items-center justify-end gap-[var(--spacing-2)] px-[var(--spacing-4)] py-[var(--spacing-3)] border-t border-border bg-bg-secondary/95 backdrop-blur-sm",children:[u.jsx("button",{type:"button",onClick:s,disabled:r,className:rt("px-[var(--spacing-3)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)]","border border-border text-text-secondary","hover:bg-bg-hover hover:text-text-primary","transition-colors duration-[var(--duration-fast)]","disabled:opacity-50 disabled:pointer-events-none"),children:d("settings.discard")}),u.jsx("button",{type:"button",onClick:i,disabled:r,className:rt("px-[var(--spacing-3)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)]","bg-accent-blue text-white","hover:opacity-90","transition-colors duration-[var(--duration-fast)]","disabled:opacity-50 disabled:pointer-events-none"),children:d(r?"settings.saving":"settings.save")})]})}const m2=["default","cowork"],h2={default:"settings.general.style_default",cowork:"settings.general.style_cowork"};function p2(){const{t:n}=yt(),r=El(s=>s.stylePreset),i=El(s=>s.setStylePreset);return u.jsx(Le,{label:n("settings.general.style_preset_label"),description:n("settings.general.style_preset_desc"),children:u.jsx("div",{className:"flex items-center gap-[var(--spacing-1)]",children:m2.map(s=>u.jsx("button",{type:"button",onClick:()=>i(s),className:rt("px-3 py-1 rounded-[var(--radius-sm)] text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)] transition-all duration-[var(--duration-fast)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",r===s?"bg-accent-blue text-white":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"),children:n(h2[s])},s))})})}function v2(){const{t:n}=yt(),r=Ot(z=>z.connected),i=de(z=>{var k;return(k=z.draft)==null?void 0:k.general}),s=de(z=>z.saving),d=de(z=>z.isDirty("general")),f=de(z=>z.updateDraft),h=de(z=>z.saveConfig),p=de(z=>z.discardDraft),b=de(z=>{var k;return((k=z.draft)==null?void 0:k.searchTool)??"mcp__ace-tool__search_context"}),g=de(z=>z.isDirty("searchTool")),S=de(z=>z.chineseResponse),x=de(z=>z.loadChineseResponse),E=de(z=>z.toggleChineseResponse);if(y.useEffect(()=>{x()},[x]),!i)return null;const C=z=>{f("general",{...i,...z})};return u.jsxs("div",{className:"flex flex-col gap-[var(--spacing-4)]",children:[u.jsx(Fe,{title:n("settings.general.connection_card"),description:n("settings.general.connection_desc"),children:u.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)]",children:[u.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${r?"bg-status-completed":"bg-status-blocked"}`}),u.jsx("span",{className:"text-[length:var(--font-size-sm)] text-text-primary",children:n(r?"settings.general.connected":"settings.general.disconnected")})]})}),u.jsxs(Fe,{title:n("settings.general.appearance_card"),description:n("settings.general.appearance_desc"),children:[u.jsx(Le,{label:n("settings.general.theme_label"),description:n("settings.general.theme_desc"),htmlFor:"settings-theme",children:u.jsx(wn,{id:"settings-theme",value:i.theme,onChange:z=>C({theme:z}),options:[{value:"system",label:n("settings.general.theme_system")},{value:"dark",label:n("settings.general.theme_dark")},{value:"light",label:n("settings.general.theme_light")}]})}),u.jsx(Le,{label:n("settings.general.language_label"),description:n("settings.general.language_desc"),htmlFor:"settings-language",children:u.jsx(wn,{id:"settings-language",value:i.language,onChange:z=>C({language:z}),options:[{value:"en",label:"English"},{value:"zh-CN",label:"中文"}]})}),u.jsx(p2,{})]}),u.jsxs(Fe,{title:n("settings.general.search_tool_card"),description:n("settings.general.search_tool_desc"),children:[u.jsx(Le,{label:n("settings.general.search_tool_label"),description:n("settings.general.search_tool_desc"),htmlFor:"settings-search-tool",children:u.jsx(tn,{id:"settings-search-tool",value:b,onChange:z=>f("searchTool",z),placeholder:"mcp__ace-tool__search_context",className:"w-72 font-mono text-[length:var(--font-size-xs)]"})}),u.jsx(jl,{dirty:g,saving:s,onSave:()=>void h("searchTool"),onDiscard:()=>p("searchTool")})]}),S&&u.jsxs(Fe,{title:n("settings.general.response_lang_card"),description:n("settings.general.response_lang_desc"),children:[u.jsx(Le,{label:n("settings.general.chinese_claude_label"),description:n("settings.general.chinese_claude_desc"),children:u.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)]",children:[u.jsx("span",{className:"text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)] text-accent-blue bg-accent-blue/10 px-[var(--spacing-1-5)] py-0.5 rounded-[var(--radius-sm)]",children:"Claude"}),u.jsx(_l,{enabled:S.claudeEnabled,onClick:()=>void E(!S.claudeEnabled,"claude")})]})}),u.jsx(Le,{label:n("settings.general.chinese_codex_label"),description:n("settings.general.chinese_codex_desc"),children:u.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)]",children:[u.jsx("span",{className:"text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)] text-green-400 bg-green-400/10 px-[var(--spacing-1-5)] py-0.5 rounded-[var(--radius-sm)]",children:"Codex"}),u.jsx(_l,{enabled:S.codexEnabled,onClick:()=>void E(!S.codexEnabled,"codex")})]})}),S.codexNeedsMigration&&u.jsx("div",{className:"mt-[var(--spacing-2)] px-[var(--spacing-3)] py-[var(--spacing-2)] rounded-[var(--radius-sm)] bg-status-blocked/10 border border-status-blocked/30",children:u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-status-blocked",children:n("settings.general.codex_migrate_hint")})}),!S.guidelinesExists&&u.jsx("div",{className:"mt-[var(--spacing-2)] px-[var(--spacing-3)] py-[var(--spacing-2)] rounded-[var(--radius-sm)] bg-status-blocked/10 border border-status-blocked/30",children:u.jsx("p",{className:"text-[length:var(--font-size-xs)] text-status-blocked",children:n("settings.general.guidelines_missing")})})]}),u.jsx(jl,{dirty:d,saving:s,onSave:()=>void h("general"),onDiscard:()=>p("general")})]})}const g2={"claude-code":{apiKeyLabel:"API Key",apiKeyPlaceholder:"sk-ant-...",apiKeyEnvHint:"ANTHROPIC_API_KEY",showBaseUrl:!0,baseUrlPlaceholder:"https://api.anthropic.com",showSettingsFile:!0,settingsFileDescription:"Path to Claude Code settings JSON (maps model aliases, sets env vars)"},"agent-sdk":{apiKeyLabel:"API Key",apiKeyPlaceholder:"sk-ant-...",apiKeyEnvHint:"ANTHROPIC_API_KEY",showBaseUrl:!0,baseUrlPlaceholder:"https://api.anthropic.com",showSettingsFile:!0,settingsFileDescription:"Path to Claude Code settings JSON (maps model aliases, sets env vars)"},codex:{apiKeyLabel:"OpenAI API Key",apiKeyPlaceholder:"sk-...",apiKeyEnvHint:"OPENAI_API_KEY",showBaseUrl:!1,showSettingsFile:!0,settingsFileLabel:"Profile",settingsFilePlaceholder:"my-profile",settingsFileDescription:"Profile name from ~/.codex/config.toml (passed as --profile)"},"codex-server":{apiKeyLabel:"OpenAI API Key",apiKeyPlaceholder:"sk-...",apiKeyEnvHint:"OPENAI_API_KEY",showBaseUrl:!1,showSettingsFile:!0,settingsFileLabel:"Profile",settingsFilePlaceholder:"my-profile",settingsFileDescription:"Profile name from ~/.codex/config.toml"},gemini:{apiKeyLabel:"Gemini API Key",apiKeyPlaceholder:"AIza...",apiKeyEnvHint:"GEMINI_API_KEY",showBaseUrl:!1,showSettingsFile:!1},"gemini-a2a":{apiKeyLabel:"Gemini API Key",apiKeyPlaceholder:"AIza...",apiKeyEnvHint:"GEMINI_API_KEY",showBaseUrl:!1,showSettingsFile:!1},qwen:{apiKeyLabel:"DashScope API Key",apiKeyPlaceholder:"sk-...",apiKeyEnvHint:"DASHSCOPE_API_KEY",showBaseUrl:!1,showSettingsFile:!1},opencode:{apiKeyLabel:"API Key",apiKeyPlaceholder:"",apiKeyEnvHint:"OPENAI_API_KEY",showBaseUrl:!1,showSettingsFile:!1}},y2=[{type:"claude-code",label:"Claude Code"},{type:"agent-sdk",label:"Agent SDK"},{type:"codex",label:"Codex"},{type:"gemini",label:"Gemini"},{type:"gemini-a2a",label:"Gemini (A2A)"},{type:"qwen",label:"Qwen"},{type:"opencode",label:"OpenCode"}];function b2(){const{t:n}=yt(),r=de(E=>{var C;return(C=E.draft)==null?void 0:C.agents}),i=de(E=>E.saving),s=de(E=>E.isDirty("agents")),d=de(E=>E.updateDraft),f=de(E=>E.saveConfig),h=de(E=>E.discardDraft),[p,b]=y.useState(null),g=E=>n({"claude-code":"settings.agents.claude_code_desc","agent-sdk":"settings.agents.agent_sdk_desc",codex:"settings.agents.codex_desc",gemini:"settings.agents.gemini_desc","gemini-a2a":"settings.agents.gemini_desc",qwen:"settings.agents.qwen_desc",opencode:"settings.agents.opencode_desc"}[E]??"settings.agents.claude_code_desc");if(!r)return null;const S=(E,C)=>{d("agents",{...r,[E]:{...r[E],...C}})},x=E=>{b(C=>C===E?null:E)};return u.jsxs("div",{className:"flex flex-col gap-[var(--spacing-3)]",children:[y2.map(({type:E,label:C})=>{const z=r[E],k=p===E,R=g2[E];return u.jsxs(Fe,{title:C,description:g(E),children:[u.jsx("button",{type:"button",onClick:()=>x(E),className:rt("w-full text-left text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)]","text-accent-blue hover:underline","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)] rounded-[var(--radius-sm)]"),children:n(k?"settings.agents.hide_config":"settings.agents.show_config")}),k&&u.jsxs("div",{className:"mt-[var(--spacing-3)] border-t border-border-divider pt-[var(--spacing-3)]",children:[u.jsx(Le,{label:n("settings.agents.model_label"),description:n("settings.agents.model_desc"),htmlFor:`agent-model-${E}`,children:u.jsx(tn,{id:`agent-model-${E}`,value:z.model,onChange:w=>S(E,{model:w}),placeholder:n("settings.agents.model_placeholder")})}),u.jsx(Le,{label:n("settings.agents.approval_label"),description:n("settings.agents.approval_desc"),htmlFor:`agent-approval-${E}`,children:u.jsx(wn,{id:`agent-approval-${E}`,value:z.approvalMode,onChange:w=>S(E,{approvalMode:w}),options:[{value:"suggest",label:n("settings.agents.approval_suggest")},{value:"auto",label:n("settings.agents.approval_auto")}]})}),(R==null?void 0:R.showBaseUrl)&&u.jsx(Le,{label:n("settings.agents.base_url_label"),description:n("settings.agents.base_url_desc"),htmlFor:`agent-baseurl-${E}`,children:u.jsx(tn,{id:`agent-baseurl-${E}`,value:z.baseUrl??"",onChange:w=>S(E,{baseUrl:w}),placeholder:R.baseUrlPlaceholder??""})}),R&&u.jsx(Le,{label:R.apiKeyLabel,description:`Overrides ${R.apiKeyEnvHint} env var`,htmlFor:`agent-apikey-${E}`,children:u.jsx(tn,{id:`agent-apikey-${E}`,value:z.apiKey??"",onChange:w=>S(E,{apiKey:w}),placeholder:R.apiKeyPlaceholder,type:"password"})}),(R==null?void 0:R.showSettingsFile)&&u.jsx(Le,{label:R.settingsFileLabel??n("settings.agents.settings_file_label"),description:R.settingsFileDescription??n("settings.agents.settings_file_desc"),htmlFor:`agent-settings-file-${E}`,children:u.jsx(tn,{id:`agent-settings-file-${E}`,value:z.settingsFile??"",onChange:w=>S(E,{settingsFile:w}),placeholder:R.settingsFilePlaceholder??"D:\\settings.json"})}),u.jsx(Le,{label:n("settings.agents.env_file_label"),description:n("settings.agents.env_file_desc"),htmlFor:`agent-envfile-${E}`,children:u.jsx(tn,{id:`agent-envfile-${E}`,value:z.envFile??"",onChange:w=>S(E,{envFile:w}),placeholder:"~/.env.gemini"})})]})]},E)}),u.jsx(jl,{dirty:s,saving:i,onSave:()=>void f("agents"),onDiscard:()=>h("agents")})]})}function x2(){const{t:n}=yt(),r=de(x=>{var E;return((E=x.draft)==null?void 0:E.cliTools)??"{}"}),i=de(x=>x.saving),s=de(x=>x.isDirty("cliTools")),d=de(x=>x.updateDraft),f=de(x=>x.saveConfig),h=de(x=>x.discardDraft),[p,b]=y.useState(null),g=y.useCallback(x=>{d("cliTools",x);try{JSON.parse(x),b(null)}catch(E){b(E instanceof Error?E.message:"Invalid JSON")}},[d]),S=y.useCallback(()=>{try{const x=JSON.parse(r),E=JSON.stringify(x,null,2);d("cliTools",E),b(null)}catch{}},[r,d]);return u.jsxs("div",{className:"flex flex-col gap-[var(--spacing-4)]",children:[u.jsxs(Fe,{title:n("settings.cli_tools.config_card"),description:n("settings.cli_tools.config_desc"),children:[u.jsxs("div",{className:"flex items-center justify-between mb-[var(--spacing-2)]",children:[u.jsx("span",{className:"text-[length:var(--font-size-xs)] text-text-tertiary",children:"~/.maestro/cli-tools.json"}),u.jsx("button",{type:"button",onClick:S,className:rt("text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)]","text-accent-blue hover:underline","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)] rounded-[var(--radius-sm)]"),children:n("settings.cli_tools.format_json")})]}),u.jsx("textarea",{value:r,onChange:x=>g(x.target.value),spellCheck:!1,className:rt("w-full h-80 px-[var(--spacing-3)] py-[var(--spacing-2)] rounded-[var(--radius-sm)]","border bg-bg-primary text-text-primary text-[length:var(--font-size-sm)]","font-mono leading-relaxed resize-y","focus:outline-none focus:shadow-[var(--shadow-focus-ring)]","transition-colors duration-[var(--duration-fast)]",p?"border-status-blocked":"border-border focus:border-accent-blue")}),p&&u.jsx("p",{className:"mt-[var(--spacing-1)] text-[length:var(--font-size-xs)] text-status-blocked",children:p})]}),u.jsx(jl,{dirty:s&&!p,saving:i,onSave:()=>void f("cliTools"),onDiscard:()=>{h("cliTools"),b(null)}})]})}function S2(){const{t:n}=yt(),[r,i]=y.useState([]),[s,d]=y.useState(!0),[f,h]=y.useState(null);return y.useEffect(()=>{let p=!1;async function b(){try{const g=await fetch("/api/settings/specs");if(!g.ok)throw new Error(`Failed to load specs: ${g.status}`);const S=await g.json();p||(i(S.specs??[]),d(!1))}catch(g){p||(h(g instanceof Error?g.message:"Failed to load specs"),d(!1))}}return b(),()=>{p=!0}},[]),s?u.jsx("div",{className:"flex items-center justify-center py-[var(--spacing-8)]",children:u.jsx("span",{className:"text-[length:var(--font-size-sm)] text-text-secondary",children:n("settings.specs.loading")})}):f?u.jsx(Fe,{title:n("settings.specs.error_card"),description:n("settings.specs.error_desc"),children:u.jsx("p",{className:"text-[length:var(--font-size-sm)] text-status-blocked",children:f})}):r.length===0?u.jsx(Fe,{title:n("settings.specs.empty_card"),description:n("settings.specs.empty_desc"),children:u.jsx("p",{className:"text-[length:var(--font-size-sm)] text-text-secondary italic",children:n("settings.specs.empty_hint")})}):u.jsx("div",{className:"flex flex-col gap-[var(--spacing-3)]",children:r.map(p=>u.jsx(Fe,{title:p.name,description:p.path,children:p.createdAt&&u.jsxs("span",{className:"text-[length:var(--font-size-xs)] text-text-tertiary",children:[n("settings.specs.created"),": ",p.createdAt]})},p.name))})}const si=ta((n,r)=>({configured:null,teams:[],selectedTeamId:null,board:null,selectedIssue:null,loading:!1,error:null,checkStatus:async()=>{try{const i=await fetch(Fc.STATUS);if(!i.ok)throw new Error(`HTTP ${i.status}`);const s=await i.json();n({configured:s.configured})}catch(i){n({configured:!1,error:String(i)})}},fetchTeams:async()=>{n({loading:!0,error:null});try{const i=await fetch(Fc.TEAMS);if(!i.ok)throw new Error(`HTTP ${i.status}`);const s=await i.json();if(n({teams:s,loading:!1}),s.length>0&&!r().selectedTeamId){const d=s[0].id;n({selectedTeamId:d}),r().fetchBoard(d)}}catch(i){n({loading:!1,error:String(i)})}},selectTeam:i=>{n({selectedTeamId:i,board:null,selectedIssue:null}),r().fetchBoard(i)},fetchBoard:async i=>{n({loading:!0,error:null});try{const s=await fetch(`${Fc.BOARD}?teamId=${i}`);if(!s.ok){const f=await s.json().catch(()=>({error:`HTTP ${s.status}`}));throw new Error(f.error)}const d=await s.json();n({board:d,loading:!1})}catch(s){n({loading:!1,error:String(s)})}},selectIssue:i=>{n({selectedIssue:i})},refresh:async()=>{const i=r().selectedTeamId;i&&await r().fetchBoard(i)},importIssues:async i=>{const s=await fetch("/api/linear/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issues:i})});if(!s.ok){const d=await s.json().catch(()=>({error:`HTTP ${s.status}`}));throw new Error(d.error)}return await s.json()},exportIssues:async(i,s)=>{const d=await fetch("/api/linear/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issues:i,teamId:s})});if(!d.ok){const f=await d.json().catch(()=>({error:`HTTP ${d.status}`}));throw new Error(f.error)}return await d.json()}}));function E2(){const{t:n}=yt(),r=de(w=>{var K;return(K=w.draft)==null?void 0:K.linear}),i=de(w=>w.saving),s=de(w=>w.isDirty("linear")),d=de(w=>w.updateDraft),f=de(w=>w.saveConfig),h=de(w=>w.discardDraft),p=si(w=>w.configured),b=si(w=>w.teams),g=si(w=>w.checkStatus),S=si(w=>w.fetchTeams),[x,E]=y.useState(!1),[C,z]=y.useState(null);if(!r)return null;const k=async()=>{E(!0),z(null);try{await g();const w=await fetch("/api/linear/teams");if(!w.ok){const Z=await w.json().catch(()=>({error:`HTTP ${w.status}`}));throw new Error(Z.error)}const K=await w.json();await S(),z({ok:!0,message:`Connected! Found ${K.length} team(s)`})}catch(w){z({ok:!1,message:String(w)})}finally{E(!1)}},R=async()=>{await f("linear"),await g(),r.apiKey&&await S()};return u.jsxs("div",{className:"flex flex-col gap-[var(--spacing-4)]",children:[u.jsxs(Fe,{title:n("settings.linear.integration_card"),description:n("settings.linear.integration_desc"),children:[u.jsx(Le,{label:n("settings.linear.api_key_label"),description:n("settings.linear.api_key_desc"),htmlFor:"settings-linear-api-key",children:u.jsx("input",{id:"settings-linear-api-key",type:"password",value:r.apiKey,onChange:w=>d("linear",{...r,apiKey:w.target.value}),placeholder:"lin_api_...",className:rt("w-48 px-[var(--spacing-2)] py-[var(--spacing-1)] rounded-[var(--radius-sm)]","border border-border bg-bg-primary text-text-primary text-[length:var(--font-size-sm)]","focus:outline-none focus:border-accent-blue focus:shadow-[var(--shadow-focus-ring)]","transition-colors duration-[var(--duration-fast)]","placeholder:text-text-tertiary")})}),u.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)] pt-[var(--spacing-2)]",children:[u.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${p===!0?"bg-status-completed":p===!1?"bg-status-blocked":"bg-bg-hover"}`}),u.jsx("span",{className:"text-[length:var(--font-size-sm)] text-text-secondary",children:n(p===!0?"settings.linear.connected":p===!1?"settings.linear.not_configured":"settings.linear.checking")})]}),u.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)] pt-[var(--spacing-2)]",children:[u.jsx("button",{type:"button",onClick:()=>void k(),disabled:x,className:rt("px-[var(--spacing-3)] py-[var(--spacing-1-5)] rounded-[var(--radius-sm)]","text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)]","border border-border text-text-secondary","hover:bg-bg-hover hover:text-text-primary","transition-colors duration-[var(--duration-fast)]","disabled:opacity-50 disabled:pointer-events-none"),children:n(x?"settings.linear.testing":"settings.linear.test_connection")}),C&&u.jsx("span",{className:rt("text-[length:var(--font-size-xs)]",C.ok?"text-status-completed":"text-status-blocked"),children:C.message})]})]}),p&&b.length>0&&u.jsx(Fe,{title:n("settings.linear.teams_card"),description:n("settings.linear.teams_desc"),children:u.jsx("div",{className:"flex flex-col gap-[var(--spacing-1)]",children:b.map(w=>u.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)] py-[var(--spacing-1-5)] text-[length:var(--font-size-sm)]",children:[u.jsx("span",{className:"font-mono text-text-tertiary text-[length:var(--font-size-xs)]",children:w.key}),u.jsx("span",{className:"text-text-primary",children:w.name})]},w.id))})}),u.jsx(jl,{dirty:s,saving:i,onSave:()=>void R(),onDiscard:()=>h("linear")})]})}function _2(){return u.jsxs("div",{className:"w-full h-full rounded-[6px] overflow-hidden flex flex-col",style:{backgroundColor:"#1D1B18",borderTop:"2px solid #C8863A"},children:[u.jsxs("div",{className:"px-2.5 py-2 flex-1",children:[u.jsx("div",{className:"h-[7px] rounded w-[72%] mb-2",style:{backgroundColor:"rgba(255,255,255,0.18)"}}),u.jsx("div",{className:"flex gap-1 mt-2 flex-wrap",children:["#C46555","#5B8DB8","#9178B5","#A09D97"].map(n=>u.jsx("div",{className:"h-[5px] rounded-full",style:{width:22,backgroundColor:`${n}55`}},n))})]}),u.jsxs("div",{className:"px-2.5 py-1.5 border-t flex items-center gap-1",style:{borderColor:"rgba(255,255,255,0.07)"},children:[u.jsx("div",{className:"h-[4px] rounded w-6",style:{backgroundColor:"rgba(255,255,255,0.15)"}}),u.jsx("div",{className:"h-[4px] rounded w-6 ml-1",style:{backgroundColor:"rgba(255,255,255,0.15)"}})]})]})}function C2(){return u.jsxs("div",{className:"w-full h-full rounded-[6px] overflow-hidden flex flex-col",style:{backgroundColor:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:[u.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-b",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[5px] rounded w-14",style:{backgroundColor:"var(--color-text-primary)",opacity:.7}}),u.jsx("div",{className:"w-3 h-3 rounded-sm",style:{backgroundColor:"var(--color-bg-hover)"}})]}),u.jsxs("div",{className:"px-2 py-1.5 flex-1 space-y-1.5",children:[u.jsx("div",{className:"h-[3px] rounded w-6",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[6px] rounded border w-full",style:{borderColor:"var(--color-border)"}}),u.jsx("div",{className:"h-[3px] rounded w-8",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[12px] rounded border w-full",style:{borderColor:"var(--color-border)"}}),u.jsx("div",{className:"flex gap-1",children:["#C46555","#5B8DB8","#9178B5","#A09D97"].map(n=>u.jsx("div",{className:"h-[5px] rounded",style:{width:16,backgroundColor:`${n}25`}},n))})]}),u.jsxs("div",{className:"flex justify-end gap-1 px-2 py-1.5 border-t",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[6px] rounded w-8",style:{backgroundColor:"var(--color-bg-secondary)",border:"1px solid var(--color-border)"}}),u.jsx("div",{className:"h-[6px] rounded w-10",style:{backgroundColor:"#C8863A"}})]})]})}function N2(){return u.jsx("div",{className:"w-full h-full rounded-[6px] overflow-hidden flex flex-col items-center justify-center px-3",style:{backgroundColor:"var(--color-bg-primary)"},children:u.jsxs("div",{className:"w-full",children:[u.jsx("div",{className:"h-[3px] rounded w-10 mb-2",style:{backgroundColor:"var(--color-text-tertiary)",opacity:.5}}),u.jsx("div",{className:"h-[10px] rounded w-[85%] mb-1.5",style:{backgroundColor:"var(--color-text-primary)",opacity:.55}}),u.jsx("div",{className:"h-[4px] rounded w-full mb-1",style:{backgroundColor:"var(--color-text-secondary)",opacity:.3}}),u.jsx("div",{className:"h-[4px] rounded w-[70%] mb-3",style:{backgroundColor:"var(--color-text-secondary)",opacity:.3}}),u.jsxs("div",{className:"flex gap-1 items-center pt-1.5 border-t",style:{borderColor:"var(--color-border-divider)"},children:[["#C46555","#5B8DB8","#9178B5"].map(n=>u.jsx("div",{className:"h-[4px] rounded-full",style:{width:18,backgroundColor:`${n}45`}},n)),u.jsx("div",{className:"ml-auto h-[5px] rounded w-8",style:{backgroundColor:"#C8863A",opacity:.7}})]})]})})}function j2(){return u.jsxs("div",{className:"w-full h-full rounded-[6px] overflow-hidden flex relative",style:{backgroundColor:"var(--color-bg-secondary)"},children:[u.jsx("div",{className:"flex-1",style:{backgroundColor:"rgba(0,0,0,0.12)"}}),u.jsxs("div",{className:"w-[45%] h-full flex flex-col",style:{backgroundColor:"var(--color-bg-card)",borderLeft:"1px solid var(--color-border)"},children:[u.jsxs("div",{className:"px-2 py-1.5 border-b flex items-center gap-1",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[3px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[4px] rounded-full w-7 ml-1",style:{backgroundColor:"#5B8DB825"}})]}),u.jsxs("div",{className:"px-2 py-1.5 space-y-1.5 flex-1",children:[u.jsx("div",{className:"h-[6px] rounded w-[85%]",style:{backgroundColor:"var(--color-text-primary)",opacity:.6}}),u.jsx("div",{className:"h-[3px] rounded w-8 mt-1",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[4px] rounded w-12",style:{backgroundColor:"var(--color-bg-secondary)"}}),u.jsx("div",{className:"h-[3px] rounded w-8",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[4px] rounded w-16",style:{backgroundColor:"var(--color-bg-secondary)"}})]})]})]})}function T2(){return u.jsx("div",{className:"w-full h-full rounded-[6px] overflow-hidden flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.35)"},children:u.jsxs("div",{className:"w-[88%] h-[78%] rounded-[5px] overflow-hidden flex",style:{backgroundColor:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:[u.jsxs("div",{className:"flex-1 px-2 py-1.5 border-r",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"flex gap-1 mb-1.5",children:["#C46555","#5B8DB8"].map(n=>u.jsx("div",{className:"h-[4px] rounded-full w-8",style:{backgroundColor:`${n}30`}},n))}),u.jsx("div",{className:"h-[7px] rounded w-[90%] mb-1",style:{backgroundColor:"var(--color-text-primary)",opacity:.6}}),u.jsx("div",{className:"h-[3px] rounded w-full mb-1",style:{backgroundColor:"var(--color-text-secondary)",opacity:.35}}),u.jsx("div",{className:"h-[3px] rounded w-[80%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.35}})]}),u.jsxs("div",{className:"w-[36%] px-1.5 py-1.5 space-y-1.5",style:{backgroundColor:"var(--color-bg-secondary)"},children:[u.jsx("div",{className:"h-[3px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),[["#C46555",18],["#5B8DB8",14],["#A09D97",20]].map(([n,r],i)=>u.jsx("div",{className:"h-[4px] rounded-full",style:{width:r,backgroundColor:`${n}35`}},i))]})]})})}function w2(){return u.jsxs("div",{className:"w-full h-full rounded-[6px] overflow-hidden flex flex-col",style:{backgroundColor:"var(--color-bg-primary)"},children:[u.jsxs("div",{className:"flex items-center justify-between px-2 py-1 border-b shrink-0",style:{borderColor:"var(--color-border-divider)",backgroundColor:"var(--color-bg-card)"},children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("div",{className:"h-[3px] rounded w-6",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("span",{className:"text-[6px]",style:{color:"var(--color-text-tertiary)"},children:"›"}),u.jsx("div",{className:"h-[3px] rounded w-8",style:{backgroundColor:"var(--color-text-primary)",opacity:.5}})]}),u.jsxs("div",{className:"flex gap-1",children:[u.jsx("div",{className:"h-[4px] rounded-full w-8",style:{backgroundColor:"#C4655525"}}),u.jsx("div",{className:"h-[4px] rounded-full w-6",style:{backgroundColor:"#5B8DB825"}})]})]}),u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[u.jsxs("div",{className:"flex-1 px-3 py-2 space-y-1.5",children:[u.jsx("div",{className:"h-[3px] rounded w-16",style:{backgroundColor:"var(--color-text-tertiary)",opacity:.5}}),u.jsx("div",{className:"h-[8px] rounded w-[80%]",style:{backgroundColor:"var(--color-text-primary)",opacity:.55}}),u.jsx("div",{className:"h-[3px] rounded w-full",style:{backgroundColor:"var(--color-text-secondary)",opacity:.28}}),u.jsx("div",{className:"h-[3px] rounded w-[75%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.28}})]}),u.jsx("div",{className:"w-[30%] px-1.5 py-2 border-l space-y-1.5",style:{borderColor:"var(--color-border)",backgroundColor:"var(--color-bg-secondary)"},children:[12,16,10,14].map((n,r)=>u.jsx("div",{className:"h-[3px] rounded",style:{width:n,backgroundColor:"var(--color-text-tertiary)",opacity:.5}},r))})]})]})}function Mp({value:n,current:r,label:i,description:s,accentColor:d,children:f,onSelect:h}){const p=n===r;return u.jsxs("button",{type:"button",onClick:()=>h(n),className:"flex-1 min-w-0 rounded-[10px] overflow-hidden border-2 transition-all duration-200 text-left focus-visible:outline-none",style:{borderColor:p?d:"var(--color-border)",backgroundColor:p?`${d}06`:"var(--color-bg-card)",boxShadow:p?`0 0 0 3px ${d}20`:"var(--shadow-sm)",transform:p?"translateY(-1px)":"none"},children:[u.jsx("div",{className:"h-[100px] p-2",style:{backgroundColor:p?`${d}08`:"var(--color-bg-secondary)"},children:f}),u.jsxs("div",{className:"px-3 py-2.5 border-t",style:{borderColor:"var(--color-border-divider)"},children:[u.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[p&&u.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:d}}),u.jsx("span",{className:"text-[11px] font-semibold",style:{color:p?d:"var(--color-text-primary)"},children:i})]}),u.jsx("p",{className:"text-[10px] leading-snug",style:{color:"var(--color-text-tertiary)"},children:s})]})]})}function A2(){const n=[{color:"#A09D97",cards:[72,60,85]},{color:"#B89540",cards:[90,65]},{color:"#5A9E78",cards:[55]}];return u.jsx("div",{className:"absolute inset-0 flex gap-2 p-3",style:{backgroundColor:"var(--color-bg-secondary)"},children:n.map((r,i)=>u.jsxs("div",{className:"flex-1 rounded-[8px] overflow-hidden",style:{backgroundColor:"var(--color-bg-primary)"},children:[u.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1.5 border-b",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:r.color}}),u.jsx("div",{className:"h-[5px] rounded w-12",style:{backgroundColor:"var(--color-text-secondary)",opacity:.4}})]}),u.jsx("div",{className:"p-1.5 space-y-1.5",children:r.cards.map((s,d)=>u.jsxs("div",{className:"rounded-[5px] p-1.5",style:{backgroundColor:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:[u.jsxs("div",{className:"flex gap-1 mb-1",children:[u.jsx("div",{className:"h-[4px] rounded-full w-10",style:{backgroundColor:`${r.color}35`}}),u.jsx("div",{className:"h-[4px] rounded-full w-7 ml-auto",style:{backgroundColor:"rgba(160,157,151,0.25)"}})]}),u.jsx("div",{className:"h-[4px] rounded",style:{width:`${s}%`,backgroundColor:"var(--color-text-secondary)",opacity:.3}})]},d))})]},i))})}function O2({style:n,animKey:r}){return n===1?u.jsx("div",{className:"absolute inset-0 flex items-start justify-center pt-[14%]",style:{backgroundColor:"rgba(0,0,0,0.65)"},children:u.jsxs("div",{className:"w-[70%] rounded-[10px] overflow-hidden motion-safe:animate-[modal-enter_240ms_ease-out_both]",style:{backgroundColor:"#1D1B18",borderTop:"2px solid #C8863A",boxShadow:"0 16px 50px rgba(0,0,0,0.5)"},children:[u.jsx("div",{className:"px-4 py-3",children:u.jsx("div",{className:"h-[8px] rounded w-[60%]",style:{backgroundColor:"rgba(255,255,255,0.22)"}})}),u.jsx("div",{className:"px-4 pb-3 pt-2 border-t",style:{borderColor:"rgba(255,255,255,0.07)"},children:u.jsx("div",{className:"flex gap-1.5",children:["#C46555","#5B8DB8","#9178B5","#A09D97"].map(i=>u.jsx("div",{className:"h-[6px] rounded-full w-8",style:{backgroundColor:`${i}45`}},i))})}),u.jsx("div",{className:"px-4 py-2 border-t flex items-center",style:{borderColor:"rgba(255,255,255,0.07)"},children:u.jsx("div",{className:"h-[4px] rounded w-24",style:{backgroundColor:"rgba(255,255,255,0.12)"}})})]},r)}):n===2?u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.38)"},children:u.jsxs("div",{className:"w-[72%] rounded-[12px] overflow-hidden motion-safe:animate-[modal-enter_240ms_ease-out_both]",style:{backgroundColor:"var(--color-bg-card)",border:"1px solid var(--color-border)",boxShadow:"0 12px 40px rgba(0,0,0,0.2)"},children:[u.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[7px] rounded w-16",style:{backgroundColor:"var(--color-text-primary)",opacity:.65}}),u.jsx("div",{className:"w-4 h-4 rounded",style:{backgroundColor:"var(--color-bg-hover)"}})]}),u.jsxs("div",{className:"px-4 py-3 space-y-2",children:[u.jsx("div",{className:"h-[4px] rounded w-8",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[8px] rounded border w-full",style:{borderColor:"var(--color-border)"}}),u.jsx("div",{className:"h-[4px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[16px] rounded border w-full",style:{borderColor:"var(--color-border)"}}),u.jsx("div",{className:"flex gap-1.5",children:["#C46555","#5B8DB8","#9178B5","#A09D97"].map(i=>u.jsx("div",{className:"h-[7px] rounded w-12",style:{backgroundColor:`${i}22`}},i))})]}),u.jsxs("div",{className:"flex justify-end gap-2 px-4 py-2.5 border-t",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[8px] rounded w-10",style:{backgroundColor:"var(--color-bg-secondary)",border:"1px solid var(--color-border)"}}),u.jsx("div",{className:"h-[8px] rounded w-16",style:{backgroundColor:"#C8863A"}})]})]},r)}):u.jsx("div",{className:"absolute inset-0 flex items-center justify-center motion-safe:animate-[modal-enter_240ms_ease-out_both]",style:{backgroundColor:"var(--color-bg-primary)"},children:u.jsxs("div",{className:"w-[80%]",children:[u.jsx("div",{className:"h-[4px] rounded w-20 mb-3",style:{backgroundColor:"var(--color-text-tertiary)",opacity:.5}}),u.jsx("div",{className:"h-[14px] rounded w-[70%] mb-3",style:{backgroundColor:"var(--color-text-primary)",opacity:.55}}),u.jsxs("div",{className:"space-y-1.5 mb-6",children:[u.jsx("div",{className:"h-[5px] rounded w-full",style:{backgroundColor:"var(--color-text-secondary)",opacity:.25}}),u.jsx("div",{className:"h-[5px] rounded w-[85%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.25}})]}),u.jsxs("div",{className:"flex items-center gap-2 pt-2 border-t",style:{borderColor:"var(--color-border-divider)"},children:[["#C46555","#5B8DB8","#9178B5"].map(i=>u.jsx("div",{className:"h-[6px] rounded-full w-10",style:{backgroundColor:`${i}35`}},i)),u.jsx("div",{className:"ml-auto h-[8px] rounded w-12",style:{backgroundColor:"#C8863A"}})]})]})},r)}function k2({style:n,animKey:r}){return n===1?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(0,0,0,0.2)"}}),u.jsxs("div",{className:"absolute top-0 right-0 bottom-0 w-[42%] flex flex-col motion-safe:animate-[slide-in-right_240ms_ease-out_both]",style:{backgroundColor:"var(--color-bg-card)",borderLeft:"1px solid var(--color-border)",boxShadow:"0 0 30px rgba(0,0,0,0.15)"},children:[u.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[4px] rounded w-16",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsxs("div",{className:"flex gap-1",children:[u.jsx("div",{className:"h-[5px] rounded-full w-8",style:{backgroundColor:"#C4655530"}}),u.jsx("div",{className:"h-[5px] rounded-full w-8",style:{backgroundColor:"#5B8DB830"}})]})]}),u.jsxs("div",{className:"px-3 py-3 space-y-2.5 flex-1",children:[u.jsx("div",{className:"h-[8px] rounded w-[85%]",style:{backgroundColor:"var(--color-text-primary)",opacity:.55}}),u.jsx("div",{className:"h-[4px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[6px] rounded w-16",style:{backgroundColor:"var(--color-bg-secondary)"}}),u.jsx("div",{className:"h-[4px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("div",{className:"h-[4px] rounded w-full",style:{backgroundColor:"var(--color-text-secondary)",opacity:.25}}),u.jsx("div",{className:"h-[4px] rounded w-[80%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.25}})]})]})]},r)]}):n===2?u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.45)"},children:u.jsxs("div",{className:"w-[88%] h-[78%] rounded-[10px] overflow-hidden flex motion-safe:animate-[modal-enter_240ms_ease-out_both]",style:{backgroundColor:"var(--color-bg-card)",border:"1px solid var(--color-border)",boxShadow:"0 12px 40px rgba(0,0,0,0.25)"},children:[u.jsxs("div",{className:"flex-1 flex flex-col border-r",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"flex items-center justify-between px-3 py-2 border-b shrink-0",style:{borderColor:"var(--color-border-divider)"},children:u.jsx("div",{className:"h-[4px] rounded w-14",style:{backgroundColor:"var(--color-text-tertiary)"}})}),u.jsxs("div",{className:"flex-1 px-3 py-3 space-y-2",children:[u.jsx("div",{className:"flex gap-1",children:["#C46555","#5B8DB8"].map(i=>u.jsx("div",{className:"h-[5px] rounded-full w-10",style:{backgroundColor:`${i}30`}},i))}),u.jsx("div",{className:"h-[9px] rounded w-[80%]",style:{backgroundColor:"var(--color-text-primary)",opacity:.55}}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("div",{className:"h-[4px] rounded w-full",style:{backgroundColor:"var(--color-text-secondary)",opacity:.25}}),u.jsx("div",{className:"h-[4px] rounded w-[75%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.25}})]})]})]}),u.jsxs("div",{className:"w-[36%] px-2.5 py-3 space-y-2.5",style:{backgroundColor:"var(--color-bg-secondary)"},children:[u.jsx("div",{className:"h-[4px] rounded w-14",style:{backgroundColor:"var(--color-text-tertiary)"}}),[["#C46555",20],["#5B8DB8",16],["#A09D97",22]].map(([i,s],d)=>u.jsx("div",{className:"h-[6px] rounded-full",style:{width:s,backgroundColor:`${i}35`}},d)),u.jsxs("div",{className:"pt-2 border-t space-y-1.5",style:{borderColor:"var(--color-border-divider)"},children:[u.jsx("div",{className:"h-[4px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("div",{className:"h-[4px] rounded w-12",style:{backgroundColor:"var(--color-text-secondary)",opacity:.35}})]})]})]},r)}):u.jsxs("div",{className:"absolute inset-0 flex flex-col motion-safe:animate-[slide-up_240ms_ease-out_both]",style:{backgroundColor:"var(--color-bg-primary)"},children:[u.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b shrink-0",style:{borderColor:"var(--color-border-divider)",backgroundColor:"var(--color-bg-card)"},children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("div",{className:"h-[4px] rounded w-8",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("span",{className:"text-[8px]",style:{color:"var(--color-text-tertiary)"},children:"›"}),u.jsx("div",{className:"h-[4px] rounded w-10",style:{backgroundColor:"var(--color-text-tertiary)"}}),u.jsx("span",{className:"text-[8px]",style:{color:"var(--color-text-tertiary)"},children:"›"}),u.jsx("div",{className:"h-[4px] rounded w-16",style:{backgroundColor:"var(--color-text-primary)",opacity:.5}})]}),u.jsxs("div",{className:"flex gap-1.5",children:[u.jsx("div",{className:"h-[5px] rounded-full w-9",style:{backgroundColor:"#C4655525"}}),u.jsx("div",{className:"h-[5px] rounded-full w-8",style:{backgroundColor:"#5B8DB825"}}),u.jsx("div",{className:"h-[6px] rounded w-10",style:{backgroundColor:"var(--color-bg-secondary)",border:"1px solid var(--color-border)"}})]})]}),u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[u.jsxs("div",{className:"flex-1 px-6 py-4 space-y-2",children:[u.jsx("div",{className:"h-[4px] rounded w-16",style:{backgroundColor:"var(--color-text-tertiary)",opacity:.5}}),u.jsx("div",{className:"h-[11px] rounded w-[65%]",style:{backgroundColor:"var(--color-text-primary)",opacity:.55}}),u.jsxs("div",{className:"space-y-1.5 pt-1",children:[u.jsx("div",{className:"h-[4px] rounded w-full",style:{backgroundColor:"var(--color-text-secondary)",opacity:.22}}),u.jsx("div",{className:"h-[4px] rounded w-[80%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.22}}),u.jsx("div",{className:"h-[4px] rounded w-[60%]",style:{backgroundColor:"var(--color-text-secondary)",opacity:.22}})]})]}),u.jsx("div",{className:"w-[28%] border-l px-2.5 py-4 space-y-2.5",style:{borderColor:"var(--color-border)",backgroundColor:"var(--color-bg-secondary)"},children:[["#C46555",22],["#5B8DB8",18],["#A09D97",24]].map(([i,s],d)=>u.jsxs("div",{children:[u.jsx("div",{className:"h-[3px] rounded w-8 mb-1",style:{backgroundColor:"var(--color-text-tertiary)",opacity:.6}}),u.jsx("div",{className:"h-[5px] rounded-full",style:{width:s,backgroundColor:`${i}35`}})]},d))})]})]},r)}function D2({target:n,createStyle:r,detailStyle:i,animKey:s,labels:d,captions:f,createBtnLabel:h,detailBtnLabel:p}){const b=n==="create"?r:i,g=n==="create"?"var(--color-accent-orange)":"var(--color-accent-blue)";return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx("div",{className:"h-px flex-1",style:{backgroundColor:"var(--color-border-divider)"}}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:g}}),u.jsxs("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:"var(--color-text-tertiary)"},children:["Live Preview — ",d[n][b]]})]}),u.jsx("div",{className:"h-px flex-1",style:{backgroundColor:"var(--color-border-divider)"}})]}),u.jsxs("div",{className:"relative rounded-[10px] overflow-hidden border",style:{height:220,borderColor:"var(--color-border)",backgroundColor:"var(--color-bg-secondary)"},children:[u.jsx(A2,{}),n==="create"?u.jsx(O2,{style:r,animKey:s}):u.jsx(k2,{style:i,animKey:s})]}),u.jsx("p",{className:"mt-2 text-[10px] text-center",style:{color:"var(--color-text-tertiary)"},children:f[n][b]})]})}function R2(){const{t:n}=yt(),r=El(C=>C.createModalStyle),i=El(C=>C.detailModalStyle),s=El(C=>C.setCreateModalStyle),d=El(C=>C.setDetailModalStyle),[f,h]=y.useState("create"),[p,b]=y.useState("initial");function g(C){s(C),h("create"),b(`create-${C}-${Date.now()}`)}function S(C){d(C),h("detail"),b(`detail-${C}-${Date.now()}`)}const x=[{value:1,label:n("settings.kanban.create_command"),description:n("settings.kanban.create_command_desc"),thumb:u.jsx(_2,{})},{value:2,label:n("settings.kanban.create_form"),description:n("settings.kanban.create_form_desc"),thumb:u.jsx(C2,{})},{value:3,label:n("settings.kanban.create_focus"),description:n("settings.kanban.create_focus_desc"),thumb:u.jsx(N2,{})}],E=[{value:1,label:n("settings.kanban.detail_panel"),description:n("settings.kanban.detail_panel_desc"),thumb:u.jsx(j2,{})},{value:2,label:n("settings.kanban.detail_overlay"),description:n("settings.kanban.detail_overlay_desc"),thumb:u.jsx(T2,{})},{value:3,label:n("settings.kanban.detail_page"),description:n("settings.kanban.detail_page_desc"),thumb:u.jsx(w2,{})}];return u.jsxs("div",{className:"flex flex-col gap-[var(--spacing-5)]",children:[u.jsx(Fe,{title:n("settings.kanban.create_card"),description:n("settings.kanban.create_desc"),children:u.jsx("div",{className:"flex gap-3 mt-1",children:x.map(C=>u.jsx(Mp,{value:C.value,current:r,label:C.label,description:C.description,accentColor:"var(--color-accent-orange)",onSelect:g,children:C.thumb},C.value))})}),u.jsx(Fe,{title:n("settings.kanban.detail_card"),description:n("settings.kanban.detail_desc"),children:u.jsx("div",{className:"flex gap-3 mt-1",children:E.map(C=>u.jsx(Mp,{value:C.value,current:i,label:C.label,description:C.description,accentColor:"var(--color-accent-blue)",onSelect:S,children:C.thumb},C.value))})}),u.jsxs(Fe,{title:n("settings.kanban.preview_card"),description:n("settings.kanban.preview_desc"),children:[u.jsx("div",{className:"flex gap-1 mb-4",children:["create","detail"].map(C=>u.jsx("button",{type:"button",onClick:()=>{h(C),b(`${C}-${r}-${i}-${Date.now()}`)},className:"px-3 py-1 rounded-[var(--radius-sm)] text-[11px] font-medium transition-all",style:{backgroundColor:f===C?"var(--color-bg-active)":"transparent",color:f===C?"var(--color-text-primary)":"var(--color-text-tertiary)"},children:n(C==="create"?"settings.kanban.preview_create":"settings.kanban.preview_detail")},C))}),u.jsx(D2,{target:f,createStyle:r,detailStyle:i,animKey:p,labels:{create:{1:n("settings.kanban.create_command"),2:n("settings.kanban.create_form"),3:n("settings.kanban.create_focus")},detail:{1:n("settings.kanban.detail_panel"),2:n("settings.kanban.detail_overlay"),3:n("settings.kanban.detail_page")}},captions:{create:{1:n("settings.kanban.create_caption_1"),2:n("settings.kanban.create_caption_2"),3:n("settings.kanban.create_caption_3")},detail:{1:n("settings.kanban.detail_caption_1"),2:n("settings.kanban.detail_caption_2"),3:n("settings.kanban.detail_caption_3")}},createBtnLabel:n("settings.kanban.preview_create"),detailBtnLabel:n("settings.kanban.preview_detail")})]})]})}const z2=["development","staging","production","custom"],M2=["haiku","sonnet","opus"],U2=["low","medium","high"],L2=[{value:"claude-code",label:"Claude Code"},{value:"agent-sdk",label:"Agent SDK"},{value:"codex",label:"Codex"},{value:"gemini",label:"Gemini"},{value:"qwen",label:"Qwen"},{value:"opencode",label:"OpenCode"}];function Wt({label:n,description:r,value:i,onChange:s,id:d,min:f=0}){return u.jsx(Le,{label:n,description:r,htmlFor:d,children:u.jsx(tn,{id:d,type:"text",value:String(i),onChange:h=>{const p=Number(h);!isNaN(p)&&p>=f&&s(p)},className:"w-32 font-mono"})})}function B2(){const{t:n}=yt(),r=de(C=>{var z;return(z=C.draft)==null?void 0:z.commander}),i=de(C=>C.saving),s=de(C=>C.isDirty("commander")),d=de(C=>C.updateDraft),f=de(C=>C.saveConfig),h=de(C=>C.discardDraft),p=z2.map(C=>({value:C,label:n(`settings.commander.profile_${C}`)})),b=M2.map(C=>({value:C,label:n(`settings.commander.model_${C}`)})),g=U2.map(C=>({value:C,label:n(`settings.commander.threshold_${C}`)}));if(!r)return null;const S=C=>{d("commander",{...r,...C})},x=C=>{d("commander",{...r,safety:{...r.safety,...C}})},E=C=>{d("commander",{...r,workspace:{...r.workspace,...C}})};return u.jsxs("div",{className:"flex flex-col gap-[var(--spacing-4)]",children:[u.jsx(Fe,{title:n("settings.commander.profile_card"),description:n("settings.commander.profile_desc"),children:u.jsx(Le,{label:n("settings.commander.environment_label"),description:n("settings.commander.environment_desc"),htmlFor:"cmd-profile",children:u.jsx(wn,{id:"cmd-profile",value:r.profile,onChange:C=>S({profile:C}),options:p})})}),u.jsxs(Fe,{title:n("settings.commander.core_card"),description:n("settings.commander.core_desc"),children:[u.jsx(Wt,{id:"cmd-poll-interval",label:n("settings.commander.poll_interval_label"),description:n("settings.commander.poll_interval_desc"),value:r.pollIntervalMs,onChange:C=>S({pollIntervalMs:C})}),u.jsx(Wt,{id:"cmd-max-workers",label:n("settings.commander.max_workers_label"),description:n("settings.commander.max_workers_desc"),value:r.maxConcurrentWorkers,onChange:C=>S({maxConcurrentWorkers:C})}),u.jsx(Wt,{id:"cmd-stall-timeout",label:n("settings.commander.stall_timeout_label"),description:n("settings.commander.stall_timeout_desc"),value:r.stallTimeoutMs,onChange:C=>S({stallTimeoutMs:C})}),u.jsx(Wt,{id:"cmd-max-retries",label:n("settings.commander.max_retries_label"),description:n("settings.commander.max_retries_desc"),value:r.maxRetries,onChange:C=>S({maxRetries:C})}),u.jsx(Wt,{id:"cmd-retry-backoff",label:n("settings.commander.retry_backoff_label"),description:n("settings.commander.retry_backoff_desc"),value:r.retryBackoffMs,onChange:C=>S({retryBackoffMs:C})})]}),u.jsxs(Fe,{title:n("settings.commander.decision_card"),description:n("settings.commander.decision_desc"),children:[u.jsx(Le,{label:n("settings.commander.decision_model_label"),description:n("settings.commander.decision_model_desc"),htmlFor:"cmd-decision-model",children:u.jsx(wn,{id:"cmd-decision-model",value:r.decisionModel,onChange:C=>S({decisionModel:C}),options:b})}),u.jsx(Wt,{id:"cmd-assess-turns",label:n("settings.commander.assess_turns_label"),description:n("settings.commander.assess_turns_desc"),value:r.assessMaxTurns,onChange:C=>S({assessMaxTurns:C})}),u.jsx(Le,{label:n("settings.commander.threshold_label"),description:n("settings.commander.threshold_desc"),htmlFor:"cmd-approve-threshold",children:u.jsx(wn,{id:"cmd-approve-threshold",value:r.autoApproveThreshold,onChange:C=>S({autoApproveThreshold:C}),options:g})}),u.jsx(Le,{label:n("settings.commander.executor_label"),description:n("settings.commander.executor_desc"),htmlFor:"cmd-executor",children:u.jsx(wn,{id:"cmd-executor",value:r.defaultExecutor,onChange:C=>S({defaultExecutor:C}),options:L2})})]}),u.jsxs(Fe,{title:n("settings.commander.safety_card"),description:n("settings.commander.safety_desc"),children:[u.jsx(Wt,{id:"cmd-debounce",label:n("settings.commander.debounce_label"),description:n("settings.commander.debounce_desc"),value:r.safety.eventDebounceMs,onChange:C=>x({eventDebounceMs:C})}),u.jsx(Wt,{id:"cmd-circuit-breaker",label:n("settings.commander.circuit_breaker_label"),description:n("settings.commander.circuit_breaker_desc"),value:r.safety.circuitBreakerThreshold,onChange:C=>x({circuitBreakerThreshold:C})}),u.jsx(Wt,{id:"cmd-max-ticks",label:n("settings.commander.max_ticks_label"),description:n("settings.commander.max_ticks_desc"),value:r.safety.maxTicksPerHour,onChange:C=>x({maxTicksPerHour:C})}),u.jsx(Wt,{id:"cmd-max-tokens",label:n("settings.commander.max_tokens_label"),description:n("settings.commander.max_tokens_desc"),value:r.safety.maxTokensPerHour,onChange:C=>x({maxTokensPerHour:C})}),u.jsx(Le,{label:n("settings.commander.protected_paths_label"),description:n("settings.commander.protected_paths_desc"),htmlFor:"cmd-protected-paths",children:u.jsx(tn,{id:"cmd-protected-paths",value:r.safety.protectedPaths.join(", "),onChange:C=>x({protectedPaths:C.split(",").map(z=>z.trim()).filter(Boolean)}),placeholder:".env, *.key, credentials.*",className:"w-72 font-mono text-[length:var(--font-size-xs)]"})})]}),u.jsxs(Fe,{title:n("settings.commander.workspace_card"),description:n("settings.commander.workspace_desc"),children:[u.jsx(Le,{label:n("settings.commander.workspace_enabled_label"),description:n("settings.commander.workspace_enabled_desc"),children:u.jsx(_l,{enabled:r.workspace.enabled,onClick:()=>E({enabled:!r.workspace.enabled})})}),u.jsx(Le,{label:n("settings.commander.workspace_worktree_label"),description:n("settings.commander.workspace_worktree_desc"),children:u.jsx(_l,{enabled:r.workspace.useWorktree,onClick:()=>E({useWorktree:!r.workspace.useWorktree})})}),u.jsx(Le,{label:n("settings.commander.workspace_autocleanup_label"),description:n("settings.commander.workspace_autocleanup_desc"),children:u.jsx(_l,{enabled:r.workspace.autoCleanup,onClick:()=>E({autoCleanup:!r.workspace.autoCleanup})})}),u.jsx(Le,{label:n("settings.commander.workspace_strict_label"),description:n("settings.commander.workspace_strict_desc"),children:u.jsx(_l,{enabled:r.workspace.strict,onClick:()=>E({strict:!r.workspace.strict})})})]}),u.jsx(jl,{dirty:s,saving:i,onSave:()=>void f("commander"),onDiscard:()=>h("commander")})]})}function H2({section:n}){switch(n){case"general":return u.jsx(v2,{});case"agents":return u.jsx(b2,{});case"cli-tools":return u.jsx(x2,{});case"specs":return u.jsx(S2,{});case"linear":return u.jsx(E2,{});case"kanban":return u.jsx(R2,{});case"commander":return u.jsx(B2,{});default:return null}}const q2=["general","agents","commander","cli-tools","specs","linear","kanban"],G2={general:"cog",agents:"bot",commander:"commander","cli-tools":"terminal",specs:"file-text",linear:"linear",kanban:"kanban"};function Y2({icon:n}){const r="w-4 h-4 shrink-0";switch(n){case"cog":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]});case"bot":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("rect",{x:"3",y:"11",width:"18",height:"10",rx:"2"}),u.jsx("circle",{cx:"12",cy:"5",r:"2"}),u.jsx("path",{d:"M12 7v4"}),u.jsx("line",{x1:"8",y1:"16",x2:"8",y2:"16"}),u.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"16"})]});case"terminal":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("polyline",{points:"4 17 10 11 4 5"}),u.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]});case"file-text":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),u.jsx("polyline",{points:"14 2 14 8 20 8"}),u.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),u.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),u.jsx("polyline",{points:"10 9 9 9 8 9"})]});case"linear":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M3 17l6-6"}),u.jsx("path",{d:"M10 18l4-4"}),u.jsx("path",{d:"M14 20l7-7"})]});case"kanban":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("rect",{x:"3",y:"3",width:"5",height:"18",rx:"1"}),u.jsx("rect",{x:"10",y:"3",width:"5",height:"12",rx:"1"}),u.jsx("rect",{x:"17",y:"3",width:"5",height:"15",rx:"1"})]});case"commander":return u.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),u.jsx("path",{d:"M9 9h6"}),u.jsx("path",{d:"M9 13h6"}),u.jsx("circle",{cx:"9",cy:"9",r:"0.5",fill:"currentColor"}),u.jsx("circle",{cx:"9",cy:"13",r:"0.5",fill:"currentColor"}),u.jsx("circle",{cx:"15",cy:"9",r:"0.5",fill:"currentColor"}),u.jsx("circle",{cx:"15",cy:"13",r:"0.5",fill:"currentColor"})]});default:return null}}function V2(){const{t:n}=yt(),r=de(S=>S.open),i=de(S=>S.setOpen),s=de(S=>S.activeSection),d=de(S=>S.setActiveSection),f=de(S=>S.loading),h=de(S=>S.config),p=de(S=>S.draft),b=de(S=>!S.config||!S.draft?!1:JSON.stringify(S.config.general)!==JSON.stringify(S.draft.general)||JSON.stringify(S.config.agents)!==JSON.stringify(S.draft.agents)||S.config.cliTools!==S.draft.cliTools||JSON.stringify(S.config.linear)!==JSON.stringify(S.draft.linear)||S.config.searchTool!==S.draft.searchTool||JSON.stringify(S.config.commander)!==JSON.stringify(S.draft.commander)),g=y.useCallback(S=>{!S&&b&&!window.confirm(n("settings.unsaved_confirm"))||i(S)},[b,i]);return y.useEffect(()=>{function S(x){(x.metaKey||x.ctrlKey)&&x.key===","&&(x.preventDefault(),i(!r))}return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[r,i]),u.jsx(gE,{open:r,onOpenChange:g,children:u.jsxs(yE,{children:[u.jsx(bE,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),u.jsxs(xE,{className:rt("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[900px] max-w-[95vw] h-[700px] max-h-[90vh]","rounded-[var(--radius-lg)] border border-border bg-bg-primary shadow-[var(--style-modal-shadow)]","flex flex-col overflow-hidden","focus:outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"),children:[u.jsxs("div",{className:"flex items-center justify-between px-[var(--spacing-6)] py-[var(--spacing-4)] border-b border-border shrink-0",children:[u.jsx(SE,{className:"text-[length:var(--font-size-lg)] font-[var(--font-weight-semibold)] text-text-primary",children:n("settings.title")}),u.jsx(EE,{className:rt("w-8 h-8 flex items-center justify-center rounded-[var(--radius-sm)]","text-text-secondary hover:text-text-primary hover:bg-bg-hover","transition-colors duration-[var(--duration-fast)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]"),"aria-label":"Close settings",children:u.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[u.jsx("nav",{className:"w-56 shrink-0 border-r border-border bg-bg-secondary p-[var(--spacing-3)] overflow-y-auto","aria-label":"Settings sections",children:u.jsx("div",{className:"flex flex-col gap-[var(--spacing-0-5)]",children:q2.map(S=>u.jsxs("button",{type:"button",onClick:()=>d(S),className:rt("flex items-center gap-[var(--spacing-2)] px-[var(--spacing-2)] py-[var(--spacing-1-5)] rounded-[var(--radius-default)] text-left text-[length:var(--font-size-sm)] font-[var(--font-weight-medium)] w-full","transition-all duration-[var(--duration-fast)] ease-[var(--ease-notion)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",s===S?"bg-bg-active text-text-primary":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"),"aria-current":s===S?"page":void 0,children:[u.jsx(Y2,{icon:G2[S]}),u.jsx("span",{className:"truncate",children:n(`settings.nav.${S==="cli-tools"?"cli_tools":S}`)})]},S))})}),u.jsx("div",{className:"flex-1 overflow-y-auto p-[var(--spacing-6)]",children:f&&!h?u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("span",{className:"text-[length:var(--font-size-sm)] text-text-secondary",children:n("settings.loading")})}):p?u.jsx(H2,{section:s}):u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("span",{className:"text-[length:var(--font-size-sm)] text-text-secondary",children:n("settings.failed")})})})]})]})]})})}const K2={idle:"#5A9E78",thinking:"#B89540",dispatching:"#5A84B8",paused:"var(--color-text-tertiary)"};function X2(){var d;const n=yu(f=>f.supervisorStatus),r=yu(f=>f.commanderState),i=y.useCallback(()=>{nn({action:"supervisor:toggle",enabled:!(n!=null&&n.enabled)})},[n==null?void 0:n.enabled]),s=n!=null&&n.lastTickAt?I2(n.lastTickAt):"never";return u.jsx("div",{className:"shrink-0",children:u.jsxs("div",{className:"flex items-center gap-[var(--spacing-3)] px-[var(--spacing-4)] py-[var(--spacing-1-5)] border-t border-border-divider bg-bg-secondary text-[length:var(--font-size-xs)] shrink-0",children:[u.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-[var(--spacing-1)] text-text-secondary hover:text-text-primary transition-colors",children:[u.jsx("span",{className:["w-2 h-2 rounded-full",n!=null&&n.enabled?"bg-[#5A9E78]":"bg-text-tertiary"].join(" ")}),u.jsxs("span",{className:"font-[var(--font-weight-medium)]",children:["Supervisor ",n!=null&&n.enabled?"ON":"OFF"]})]}),(n==null?void 0:n.enabled)&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-px h-3 bg-border-divider"}),u.jsxs("span",{className:"text-text-secondary",children:["Running: ",u.jsx("span",{className:"text-text-primary font-[var(--font-weight-medium)]",children:n.running.length})]}),u.jsxs("span",{className:"text-text-secondary",children:["Queued: ",u.jsx("span",{className:"text-text-primary font-[var(--font-weight-medium)]",children:n.queued.length})]}),n.retrying.length>0&&u.jsxs("span",{className:"text-[#B89540]",children:["Retrying: ",u.jsx("span",{className:"font-[var(--font-weight-medium)]",children:n.retrying.length})]}),u.jsxs("span",{className:"text-text-tertiary",children:["Last tick: ",s]}),n.stats.totalDispatched>0&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-px h-3 bg-border-divider"}),u.jsxs("span",{className:"text-text-tertiary",children:[n.stats.totalCompleted,"/",n.stats.totalDispatched," done",n.stats.totalFailed>0&&u.jsxs("span",{className:"text-[#C46555]",children:[" (",n.stats.totalFailed," failed)"]})]})]})]}),r&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-px h-3 bg-border-divider"}),u.jsxs("div",{className:"flex items-center gap-[var(--spacing-1)] text-text-secondary",children:[u.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:K2[r.status]??"var(--color-text-tertiary)"}}),u.jsxs("span",{className:"font-[var(--font-weight-medium)]",children:["Commander ",r.status]})]}),u.jsxs("span",{className:"text-text-tertiary",children:["Tick #",r.tickCount]}),((d=r.lastDecision)==null?void 0:d.actions[0])&&u.jsxs("span",{className:"text-text-tertiary",children:["Last: ",r.lastDecision.actions[0].type]})]}),u.jsx("div",{className:"flex-1"}),u.jsx(Pp,{to:"/supervisor",className:"text-text-secondary hover:text-text-primary transition-colors font-[var(--font-weight-medium)]",children:"Supervisor →"})]})})}function I2(n){const r=Date.now(),i=new Date(n).getTime();if(isNaN(i))return"never";const s=r-i;if(s<0)return"just now";const d=Math.floor(s/1e3);return d<5?"just now":d<60?`${d}s ago`:`${Math.floor(d/60)}m ago`}function Q2(){const{t:n}=yt(),r=Ot(k=>k.connected),[i,s]=y.useState(!1),[d,f]=y.useState(null),[h,p]=y.useState(!1),[b,g]=y.useState(!1),S=()=>g(k=>!k),x=$x(),E=_a(),C=E.pathname.startsWith("/kanban"),z=E.pathname.startsWith("/chat");return O1(),y.useEffect(()=>{async function k(){try{const[R,w,K]=await Promise.all([fetch(rp.BOARD),fetch("/api/agents"),fetch(rp.HEALTH)]);if(!R.ok){s(!0);return}const Z=await R.json();if(Ot.getState().setBoard(Z),s(!1),w.ok){const Q=await w.json(),{addProcess:le}=An.getState();for(const oe of Q)le(oe)}if(K.ok){const Q=await K.json();Q.workspace&&Ot.getState().setWorkspace(Q.workspace),Q.latestVersion&&Q.version&&Q.latestVersion!==Q.version&&localStorage.getItem("maestro-update-dismissed")!==Q.latestVersion&&f(Q.latestVersion)}}catch{s(!0)}}k()},[]),u.jsx(u1,{children:u.jsx(Wp,{value:x,children:u.jsxs("div",{className:"h-screen w-screen flex flex-col overflow-hidden bg-bg-primary",children:[u.jsx(V2,{}),i&&!r&&u.jsx("div",{role:"alert","aria-live":"assertive",className:"px-[var(--spacing-4)] py-[var(--spacing-2)] border-b text-[length:var(--font-size-xs)] text-center shrink-0 rounded-[var(--radius-default)] mx-[var(--spacing-3)] mt-[var(--spacing-2)]",style:{backgroundColor:"var(--color-status-bg-blocked)",color:"var(--color-status-blocked)",borderColor:"var(--color-status-blocked)"},children:n("connection_error")}),d&&!h&&u.jsxs("div",{role:"status",className:"px-[var(--spacing-4)] py-[var(--spacing-2)] border-b text-[length:var(--font-size-xs)] shrink-0 rounded-[var(--radius-default)] mx-[var(--spacing-3)] mt-[var(--spacing-2)] flex items-center justify-center gap-[var(--spacing-2)]",style:{backgroundColor:"var(--color-status-bg-exploring)",color:"var(--color-status-exploring)",borderColor:"var(--color-status-exploring)"},children:[u.jsx("span",{children:n("update_available",{version:d})}),u.jsx("button",{type:"button",onClick:()=>{p(!0),localStorage.setItem("maestro-update-dismissed",d)},className:"ml-[var(--spacing-1)] hover:opacity-70 transition-opacity duration-[var(--duration-fast)]","aria-label":n("dismiss"),children:"×"})]}),u.jsx(u0,{}),u.jsxs("div",{className:"flex flex-1 overflow-hidden relative",children:[u.jsx(X0,{isPinned:b,onTogglePin:S}),u.jsxs(n1,{children:[u.jsx(Rx,{}),C&&u.jsx(X2,{})]})]}),!z&&u.jsx(f1,{}),!z&&u.jsx(x1,{})]})})})}const Z2=y.lazy(()=>ot(()=>import("./KanbanPage-C8USth6H.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(n=>({default:n.KanbanPage}))),J2=y.lazy(()=>ot(()=>import("./ArtifactsPage-DZNCi6tn.js"),__vite__mapDeps([11,12,13,1,14,15,6,7,16,17,18,19])).then(n=>({default:n.ArtifactsPage}))),P2=y.lazy(()=>ot(()=>import("./ChatPage-D9zTkJZo.js"),__vite__mapDeps([20,4,5,6,7,8,9,14,13,15])).then(n=>({default:n.ChatPage}))),F2=y.lazy(()=>ot(()=>import("./WorkflowPage-D_Fzdy3_.js"),__vite__mapDeps([21,1,2,22,23,17,9,24])).then(n=>({default:n.WorkflowPage}))),W2=y.lazy(()=>ot(()=>import("./McpPage-BKfCVIyU.js"),__vite__mapDeps([25,23,8,13,26,7,15,10,19,27,18,22,12,28])).then(n=>({default:n.McpPage}))),$2=y.lazy(()=>ot(()=>import("./SpecsPage-9lwxKT27.js"),__vite__mapDeps([29,1,24,23,13,16,19,9,26,27,22])).then(n=>({default:n.SpecsPage}))),e_=y.lazy(()=>ot(()=>import("./TeamsPage-DsuM6OwC.js"),__vite__mapDeps([30,23,13,7,26,31,18,19])).then(n=>({default:n.TeamsPage}))),t_=y.lazy(()=>ot(()=>import("./RequirementPage-Bllxe2XI.js"),__vite__mapDeps([32,1,5,26,12])).then(n=>({default:n.RequirementPage}))),a_=y.lazy(()=>ot(()=>import("./RequirementBoardPage-Bf1trzqs.js"),__vite__mapDeps([33,16,28,31,3])).then(n=>({default:n.RequirementBoardPage}))),n_=y.lazy(()=>ot(()=>import("./SupervisorPage-SusdfHFq.js"),[]).then(n=>({default:n.SupervisorPage}))),l_=y.lazy(()=>ot(()=>import("./CollabPage-B4NAHXS2.js"),__vite__mapDeps([34,18,19])).then(n=>({default:n.CollabPage})));function It(){return u.jsx("div",{className:"flex items-center justify-center h-full text-text-tertiary text-[length:var(--font-size-sm)]",children:"Loading..."})}function r_(){return u.jsx(Vx,{children:u.jsx(Mx,{children:u.jsxs(it,{element:u.jsx(Q2,{}),children:[u.jsx(it,{index:!0,element:u.jsx(Zc,{to:"/kanban",replace:!0})}),u.jsx(it,{path:"kanban",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(Z2,{})})}),u.jsx(it,{path:"artifacts",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(J2,{})})}),u.jsx(it,{path:"chat",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(P2,{})})}),u.jsx(it,{path:"workflow",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(F2,{})})}),u.jsx(it,{path:"mcp",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(W2,{})})}),u.jsx(it,{path:"specs",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx($2,{})})}),u.jsx(it,{path:"wiki",element:u.jsx(Zc,{to:"/artifacts",replace:!0})}),u.jsx(it,{path:"teams",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(e_,{})})}),u.jsx(it,{path:"requirement",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(t_,{})})}),u.jsx(it,{path:"requirement/:id/board",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(a_,{})})}),u.jsx(it,{path:"supervisor",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(n_,{})})}),u.jsx(it,{path:"collab",element:u.jsx(y.Suspense,{fallback:u.jsx(It,{}),children:u.jsx(l_,{})})}),u.jsx(it,{path:"*",element:u.jsx(Zc,{to:"/kanban",replace:!0})})]})})})}const ag=document.getElementById("root");if(!ag)throw new Error("Root element not found");Mb.createRoot(ag).render(u.jsx(y.StrictMode,{children:u.jsx(Gb,{children:u.jsx(r_,{})})}));export{cv as $,rp as A,T0 as B,i_ as C,H0 as D,Nr as E,b0 as F,Up as G,u_ as H,h_ as I,f_ as J,o_ as K,Pp as L,S0 as M,_0 as N,bE as O,yE as P,N0 as Q,gE as R,tv as S,SE as T,d_ as U,Wp as V,c_ as W,G0 as X,N1 as Y,s_ as Z,X2 as _,Ot as a,i0 as a0,Fs as a1,v_ as a2,yu as b,mu as c,bt as d,si as e,xE as f,p_ as g,EE as h,rt as i,u as j,An as k,gi as l,El as m,g0 as n,ta as o,R0 as p,Tu as q,y as r,nn as s,Hp as t,yt as u,jr as v,m_ as w,Yb as x,V0 as y,av as z};
|