agent-tower 0.4.15 → 0.4.16-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.test.js +2 -0
- package/dist/app.test.js.map +1 -1
- package/dist/core/event-bus.d.ts +2 -0
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/executors/__tests__/codex.executor.test.d.ts +2 -0
- package/dist/executors/__tests__/codex.executor.test.d.ts.map +1 -0
- package/dist/executors/__tests__/codex.executor.test.js +28 -0
- package/dist/executors/__tests__/codex.executor.test.js.map +1 -0
- package/dist/executors/codex.executor.d.ts +1 -0
- package/dist/executors/codex.executor.d.ts.map +1 -1
- package/dist/executors/codex.executor.js +19 -1
- package/dist/executors/codex.executor.js.map +1 -1
- package/dist/git/git-cli.d.ts +18 -1
- package/dist/git/git-cli.d.ts.map +1 -1
- package/dist/git/git-cli.js +17 -1
- package/dist/git/git-cli.js.map +1 -1
- package/dist/git/worktree.manager.d.ts +29 -2
- package/dist/git/worktree.manager.d.ts.map +1 -1
- package/dist/git/worktree.manager.js +137 -16
- package/dist/git/worktree.manager.js.map +1 -1
- package/dist/git/worktree.manager.test.d.ts +2 -0
- package/dist/git/worktree.manager.test.d.ts.map +1 -0
- package/dist/git/worktree.manager.test.js +104 -0
- package/dist/git/worktree.manager.test.js.map +1 -0
- package/dist/mcp/context.d.ts +3 -0
- package/dist/mcp/context.d.ts.map +1 -1
- package/dist/mcp/context.js +10 -1
- package/dist/mcp/context.js.map +1 -1
- package/dist/mcp/http-client.d.ts +24 -1
- package/dist/mcp/http-client.d.ts.map +1 -1
- package/dist/mcp/http-client.js +37 -3
- package/dist/mcp/http-client.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +190 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/middleware/tunnel-auth.d.ts.map +1 -1
- package/dist/middleware/tunnel-auth.js +2 -0
- package/dist/middleware/tunnel-auth.js.map +1 -1
- package/dist/output/__tests__/codex-parser.test.d.ts +2 -0
- package/dist/output/__tests__/codex-parser.test.d.ts.map +1 -0
- package/dist/output/__tests__/codex-parser.test.js +148 -0
- package/dist/output/__tests__/codex-parser.test.js.map +1 -0
- package/dist/output/codex-parser.d.ts +12 -0
- package/dist/output/codex-parser.d.ts.map +1 -1
- package/dist/output/codex-parser.js +129 -12
- package/dist/output/codex-parser.js.map +1 -1
- package/dist/routes/__tests__/attachments.test.d.ts +2 -0
- package/dist/routes/__tests__/attachments.test.d.ts.map +1 -0
- package/dist/routes/__tests__/attachments.test.js +86 -0
- package/dist/routes/__tests__/attachments.test.js.map +1 -0
- package/dist/routes/__tests__/filesystem.test.d.ts +2 -0
- package/dist/routes/__tests__/filesystem.test.d.ts.map +1 -0
- package/dist/routes/__tests__/filesystem.test.js +80 -0
- package/dist/routes/__tests__/filesystem.test.js.map +1 -0
- package/dist/routes/__tests__/previews.test.d.ts +2 -0
- package/dist/routes/__tests__/previews.test.d.ts.map +1 -0
- package/dist/routes/__tests__/previews.test.js +89 -0
- package/dist/routes/__tests__/previews.test.js.map +1 -0
- package/dist/routes/__tests__/tasks.test.d.ts +2 -0
- package/dist/routes/__tests__/tasks.test.d.ts.map +1 -0
- package/dist/routes/__tests__/tasks.test.js +72 -0
- package/dist/routes/__tests__/tasks.test.js.map +1 -0
- package/dist/routes/attachments.d.ts.map +1 -1
- package/dist/routes/attachments.js +36 -16
- package/dist/routes/attachments.js.map +1 -1
- package/dist/routes/filesystem.d.ts.map +1 -1
- package/dist/routes/filesystem.js +24 -3
- package/dist/routes/filesystem.js.map +1 -1
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +6 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/previews.d.ts +6 -0
- package/dist/routes/previews.d.ts.map +1 -0
- package/dist/routes/previews.js +413 -0
- package/dist/routes/previews.js.map +1 -0
- package/dist/routes/projects.d.ts.map +1 -1
- package/dist/routes/projects.js +1 -0
- package/dist/routes/projects.js.map +1 -1
- package/dist/routes/system.d.ts.map +1 -1
- package/dist/routes/system.js +35 -1
- package/dist/routes/system.js.map +1 -1
- package/dist/routes/tasks.js +2 -2
- package/dist/routes/tasks.js.map +1 -1
- package/dist/routes/team-runs.d.ts +11 -0
- package/dist/routes/team-runs.d.ts.map +1 -0
- package/dist/routes/team-runs.js +309 -0
- package/dist/routes/team-runs.js.map +1 -0
- package/dist/routes/tunnel.d.ts.map +1 -1
- package/dist/routes/tunnel.js +20 -0
- package/dist/routes/tunnel.js.map +1 -1
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/routes/workspaces.js +15 -1
- package/dist/routes/workspaces.js.map +1 -1
- package/dist/services/__tests__/preview.service.test.d.ts +2 -0
- package/dist/services/__tests__/preview.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/preview.service.test.js +29 -0
- package/dist/services/__tests__/preview.service.test.js.map +1 -0
- package/dist/services/__tests__/session-manager.team-run.test.d.ts +2 -0
- package/dist/services/__tests__/session-manager.team-run.test.d.ts.map +1 -0
- package/dist/services/__tests__/session-manager.team-run.test.js +286 -0
- package/dist/services/__tests__/session-manager.team-run.test.js.map +1 -0
- package/dist/services/__tests__/task.service.test.d.ts +2 -0
- package/dist/services/__tests__/task.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/task.service.test.js +65 -0
- package/dist/services/__tests__/task.service.test.js.map +1 -0
- package/dist/services/__tests__/team-lock.service.test.d.ts +2 -0
- package/dist/services/__tests__/team-lock.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/team-lock.service.test.js +81 -0
- package/dist/services/__tests__/team-lock.service.test.js.map +1 -0
- package/dist/services/__tests__/team-reconciler.service.test.d.ts +2 -0
- package/dist/services/__tests__/team-reconciler.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/team-reconciler.service.test.js +1536 -0
- package/dist/services/__tests__/team-reconciler.service.test.js.map +1 -0
- package/dist/services/__tests__/team-run.service.test.d.ts +2 -0
- package/dist/services/__tests__/team-run.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/team-run.service.test.js +699 -0
- package/dist/services/__tests__/team-run.service.test.js.map +1 -0
- package/dist/services/__tests__/team-scheduler.service.test.d.ts +2 -0
- package/dist/services/__tests__/team-scheduler.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/team-scheduler.service.test.js +1688 -0
- package/dist/services/__tests__/team-scheduler.service.test.js.map +1 -0
- package/dist/services/__tests__/tunnel.service.test.d.ts +2 -0
- package/dist/services/__tests__/tunnel.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/tunnel.service.test.js +138 -0
- package/dist/services/__tests__/tunnel.service.test.js.map +1 -0
- package/dist/services/__tests__/workspace.service.test.d.ts +2 -0
- package/dist/services/__tests__/workspace.service.test.d.ts.map +1 -0
- package/dist/services/__tests__/workspace.service.test.js +695 -0
- package/dist/services/__tests__/workspace.service.test.js.map +1 -0
- package/dist/services/attachment-context.d.ts +3 -0
- package/dist/services/attachment-context.d.ts.map +1 -0
- package/dist/services/attachment-context.js +34 -0
- package/dist/services/attachment-context.js.map +1 -0
- package/dist/services/preview.service.d.ts +19 -0
- package/dist/services/preview.service.d.ts.map +1 -0
- package/dist/services/preview.service.js +147 -0
- package/dist/services/preview.service.js.map +1 -0
- package/dist/services/project.service.d.ts +2 -0
- package/dist/services/project.service.d.ts.map +1 -1
- package/dist/services/project.service.js +87 -18
- package/dist/services/project.service.js.map +1 -1
- package/dist/services/session-manager.d.ts +43 -1
- package/dist/services/session-manager.d.ts.map +1 -1
- package/dist/services/session-manager.js +110 -2
- package/dist/services/session-manager.js.map +1 -1
- package/dist/services/task.service.d.ts +6 -0
- package/dist/services/task.service.d.ts.map +1 -1
- package/dist/services/task.service.js +15 -3
- package/dist/services/task.service.js.map +1 -1
- package/dist/services/team-lock.service.d.ts +25 -0
- package/dist/services/team-lock.service.d.ts.map +1 -0
- package/dist/services/team-lock.service.js +56 -0
- package/dist/services/team-lock.service.js.map +1 -0
- package/dist/services/team-reconciler.service.d.ts +44 -0
- package/dist/services/team-reconciler.service.d.ts.map +1 -0
- package/dist/services/team-reconciler.service.js +286 -0
- package/dist/services/team-reconciler.service.js.map +1 -0
- package/dist/services/team-run-events.d.ts +13 -0
- package/dist/services/team-run-events.d.ts.map +1 -0
- package/dist/services/team-run-events.js +27 -0
- package/dist/services/team-run-events.js.map +1 -0
- package/dist/services/team-run.service.d.ts +92 -0
- package/dist/services/team-run.service.d.ts.map +1 -0
- package/dist/services/team-run.service.js +835 -0
- package/dist/services/team-run.service.js.map +1 -0
- package/dist/services/team-scheduler.service.d.ts +104 -0
- package/dist/services/team-scheduler.service.d.ts.map +1 -0
- package/dist/services/team-scheduler.service.js +843 -0
- package/dist/services/team-scheduler.service.js.map +1 -0
- package/dist/services/tunnel.service.d.ts +31 -5
- package/dist/services/tunnel.service.d.ts.map +1 -1
- package/dist/services/tunnel.service.js +293 -32
- package/dist/services/tunnel.service.js.map +1 -1
- package/dist/services/workspace.service.d.ts +161 -7
- package/dist/services/workspace.service.d.ts.map +1 -1
- package/dist/services/workspace.service.js +396 -51
- package/dist/services/workspace.service.js.map +1 -1
- package/dist/socket/events.d.ts +1 -1
- package/dist/socket/events.d.ts.map +1 -1
- package/dist/socket/events.js.map +1 -1
- package/dist/socket/socket-gateway.d.ts.map +1 -1
- package/dist/socket/socket-gateway.js +5 -1
- package/dist/socket/socket-gateway.js.map +1 -1
- package/dist/web/assets/AgentDemoPage-Bf6labVB.js +1 -0
- package/dist/web/assets/{DemoPage-XwuS8vNB.js → DemoPage-DlfG47rV.js} +3 -3
- package/dist/web/assets/{GeneralSettingsPage-CliIgpwf.js → GeneralSettingsPage-DefqwzVn.js} +1 -1
- package/dist/web/assets/MemberAvatar-DVw_TedB.js +1 -0
- package/dist/web/assets/NotificationSettingsPage-C9h1U1Za.js +1 -0
- package/dist/web/assets/{ProfileSettingsPage-CkU_kZKG.js → ProfileSettingsPage-BkZE2yVP.js} +1 -1
- package/dist/web/assets/ProjectKanbanPage-B1Ckl1uY.js +89 -0
- package/dist/web/assets/ProjectSettingsPage-ByZ13awb.js +2 -0
- package/dist/web/assets/{ProviderSettingsPage-CfvdeoEU.js → ProviderSettingsPage-DSQYe8B6.js} +12 -12
- package/dist/web/assets/TeamSettingsPage-DUukJ_Ih.js +1 -0
- package/dist/web/assets/agent-tower-logo-COx9gy77.png +0 -0
- package/dist/web/assets/{button-BWFTEdOr.js → button-Bpm98eOV.js} +1 -1
- package/dist/web/assets/{chevron-down-CuPdBAx-.js → chevron-down-DSKKXCi8.js} +1 -1
- package/dist/web/assets/{chevron-right-Cs8vYTMn.js → chevron-right-CZdDV9GU.js} +1 -1
- package/dist/web/assets/chevron-up-gnnlwvYe.js +1 -0
- package/dist/web/assets/{circle-check-BXZTzqw0.js → circle-check-DeD_VuLK.js} +1 -1
- package/dist/web/assets/{code-block-OCS4YCEC-BxUpvXK_.js → code-block-OCS4YCEC-BrGjkdjS.js} +1 -1
- package/dist/web/assets/{confirm-dialog-CDLHRthd.js → confirm-dialog-CEVVvAcE.js} +1 -1
- package/dist/web/assets/folder-picker-ZBQlFEWL.js +1 -0
- package/dist/web/assets/index-B5g4V0NU.js +13 -0
- package/dist/web/assets/index-ltjI8o6A.css +1 -0
- package/dist/web/assets/loader-circle-GMfBClX0.js +1 -0
- package/dist/web/assets/{log-adapter-CeKrvZcz.js → log-adapter-DKKM3sxS.js} +1 -1
- package/dist/web/assets/{mermaid-NOHMQCX5-BOSwJqP0.js → mermaid-NOHMQCX5-D5USvUiZ.js} +44 -44
- package/dist/web/assets/modal-JMpuh-LG.js +1 -0
- package/dist/web/assets/{pencil-BMxBxIhw.js → pencil-QrCW47nn.js} +1 -1
- package/dist/web/assets/{select-BUmRG0LY.js → select-CINRzLiE.js} +1 -1
- package/dist/web/assets/upload-vFxZxKHo.js +1 -0
- package/dist/web/assets/{use-profiles-C1vlPE-2.js → use-profiles-SrVWPYv0.js} +1 -1
- package/dist/web/assets/{use-providers-Cdxr4Jbz.js → use-providers-BihMydl0.js} +1 -1
- package/dist/web/avatars/presets/avatar-preset-01-developer.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-02-architect.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-03-tester.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-04-devops.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-05-data-scientist.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-06-frontend.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-07-backend.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-08-security.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-09-project-manager.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-10-product-manager.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-11-scrum-master.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-12-tech-lead.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-13-coordinator.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-14-mentor.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-15-reviewer.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-16-ui-designer.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-17-ux-researcher.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-18-documenter.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-19-translator.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-20-analyst.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-21-consultant.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-22-creative-director.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-23-support.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-24-assistant.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-25-robot.png +0 -0
- package/dist/web/avatars/presets/avatar-preset-grid.png +0 -0
- package/dist/web/index.html +2 -2
- package/node_modules/@agent-tower/shared/dist/socket/events.d.ts +10 -0
- package/node_modules/@agent-tower/shared/dist/socket/events.d.ts.map +1 -1
- package/node_modules/@agent-tower/shared/dist/socket/events.js +1 -0
- package/node_modules/@agent-tower/shared/dist/socket/events.js.map +1 -1
- package/node_modules/@agent-tower/shared/dist/types.d.ts +161 -0
- package/node_modules/@agent-tower/shared/dist/types.d.ts.map +1 -1
- package/node_modules/@agent-tower/shared/dist/types.js.map +1 -1
- package/node_modules/@prisma/client/.prisma/client/default.d.ts +1 -0
- package/node_modules/@prisma/client/.prisma/client/default.js +1 -0
- package/node_modules/@prisma/client/.prisma/client/edge.d.ts +1 -0
- package/node_modules/@prisma/client/.prisma/client/edge.js +396 -0
- package/node_modules/@prisma/client/.prisma/client/index-browser.js +385 -0
- package/node_modules/@prisma/client/.prisma/client/index.d.ts +26996 -0
- package/node_modules/@prisma/client/.prisma/client/index.js +421 -0
- package/node_modules/@prisma/client/.prisma/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/node_modules/@prisma/client/.prisma/client/package.json +97 -0
- package/node_modules/@prisma/client/.prisma/client/query_engine-windows.dll.node +0 -0
- package/node_modules/@prisma/client/.prisma/client/schema.prisma +296 -0
- package/node_modules/@prisma/client/.prisma/client/wasm.d.ts +1 -0
- package/node_modules/@prisma/client/.prisma/client/wasm.js +385 -0
- package/node_modules/@prisma/client/package.json +3 -2
- package/package.json +2 -1
- package/prisma/migrations/20260515000000_add_workspace_preview_target/migration.sql +2 -0
- package/prisma/migrations/20260518000000_add_team_run_collaboration/migration.sql +150 -0
- package/prisma/migrations/20260522000000_add_team_member_session_policy/migration.sql +2 -0
- package/prisma/migrations/20260526000000_add_team_run_main_and_dedicated_workspaces/migration.sql +21 -0
- package/prisma/schema.prisma +147 -1
- package/dist/web/assets/AgentDemoPage-ClnGPAV9.js +0 -1
- package/dist/web/assets/NotificationSettingsPage-y3vhVgPv.js +0 -1
- package/dist/web/assets/ProjectKanbanPage-BddzfZRV.js +0 -87
- package/dist/web/assets/ProjectSettingsPage-B6xhbziO.js +0 -2
- package/dist/web/assets/circle-alert-EUyZcWhp.js +0 -1
- package/dist/web/assets/folder-picker-CUbhsnhi.js +0 -1
- package/dist/web/assets/index-BGvfX18x.css +0 -1
- package/dist/web/assets/index-CHN8jahE.js +0 -13
- package/dist/web/assets/loader-circle-BHzDVpxt.js +0 -1
- package/dist/web/assets/modal-D_AU4URz.js +0 -1
- package/dist/web/assets/use-projects-Bcd5hIOY.js +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProjectKanbanPage-B1Ckl1uY.js","assets/mermaid-NOHMQCX5-D5USvUiZ.js","assets/log-adapter-DKKM3sxS.js","assets/chevron-right-CZdDV9GU.js","assets/chevron-down-DSKKXCi8.js","assets/utils-CkSf8FUe.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/modal-JMpuh-LG.js","assets/button-Bpm98eOV.js","assets/loader-circle-GMfBClX0.js","assets/MemberAvatar-DVw_TedB.js","assets/chevron-up-gnnlwvYe.js","assets/folder-picker-ZBQlFEWL.js","assets/use-providers-BihMydl0.js","assets/confirm-dialog-CEVVvAcE.js","assets/select-CINRzLiE.js","assets/ProjectKanbanPage-G5OQeJvU.css","assets/DemoPage-DlfG47rV.js","assets/AgentDemoPage-Bf6labVB.js","assets/use-profiles-SrVWPYv0.js","assets/GeneralSettingsPage-DefqwzVn.js","assets/ProfileSettingsPage-BkZE2yVP.js","assets/pencil-QrCW47nn.js","assets/ProviderSettingsPage-DSQYe8B6.js","assets/upload-vFxZxKHo.js","assets/circle-check-DeD_VuLK.js","assets/TeamSettingsPage-DUukJ_Ih.js","assets/NotificationSettingsPage-C9h1U1Za.js","assets/ProjectSettingsPage-ByZ13awb.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function k0(a,i){for(var r=0;r<i.length;r++){const s=i[r];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)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 r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function vy(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ac={exports:{}},gr={};var mp;function q0(){if(mp)return gr;mp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:s,key:h,ref:c!==void 0?c:null,props:f}}return gr.Fragment=i,gr.jsx=r,gr.jsxs=r,gr}var pp;function j0(){return pp||(pp=1,Ac.exports=q0()),Ac.exports}var re=j0(),Cc={exports:{}},Re={};var yp;function H0(){if(yp)return Re;yp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),w=Symbol.iterator;function M(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,X={};function K(T,k,H){this.props=T,this.context=k,this.refs=X,this.updater=H||B}K.prototype.isReactComponent={},K.prototype.setState=function(T,k){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,k,"setState")},K.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Z(){}Z.prototype=K.prototype;function $(T,k,H){this.props=T,this.context=k,this.refs=X,this.updater=H||B}var be=$.prototype=new Z;be.constructor=$,j(be,K.prototype),be.isPureReactComponent=!0;var me=Array.isArray;function ye(){}var C={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ge(T,k,H){var F=H.ref;return{$$typeof:a,type:T,key:k,ref:F!==void 0?F:null,props:H}}function xe(T,k){return ge(T.type,k,T.props)}function _e(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function we(T){var k={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(H){return k[H]})}var Be=/\/+/g;function Ke(T,k){return typeof T=="object"&&T!==null&&T.key!=null?we(""+T.key):k.toString(36)}function Te(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ye,ye):(T.status="pending",T.then(function(k){T.status==="pending"&&(T.status="fulfilled",T.value=k)},function(k){T.status==="pending"&&(T.status="rejected",T.reason=k)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function x(T,k,H,F,ee){var ue=typeof T;(ue==="undefined"||ue==="boolean")&&(T=null);var Ae=!1;if(T===null)Ae=!0;else switch(ue){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(T.$$typeof){case a:case i:Ae=!0;break;case b:return Ae=T._init,x(Ae(T._payload),k,H,F,ee)}}if(Ae)return ee=ee(T),Ae=F===""?"."+Ke(T,0):F,me(ee)?(H="",Ae!=null&&(H=Ae.replace(Be,"$&/")+"/"),x(ee,k,H,"",function(bn){return bn})):ee!=null&&(_e(ee)&&(ee=xe(ee,H+(ee.key==null||T&&T.key===ee.key?"":(""+ee.key).replace(Be,"$&/")+"/")+Ae)),k.push(ee)),1;Ae=0;var Ee=F===""?".":F+":";if(me(T))for(var Fe=0;Fe<T.length;Fe++)F=T[Fe],ue=Ee+Ke(F,Fe),Ae+=x(F,k,H,ue,ee);else if(Fe=M(T),typeof Fe=="function")for(T=Fe.call(T),Fe=0;!(F=T.next()).done;)F=F.value,ue=Ee+Ke(F,Fe++),Ae+=x(F,k,H,ue,ee);else if(ue==="object"){if(typeof T.then=="function")return x(Te(T),k,H,F,ee);throw k=String(T),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function G(T,k,H){if(T==null)return T;var F=[],ee=0;return x(T,F,"","",function(ue){return k.call(H,ue,ee++)}),F}function P(T){if(T._status===-1){var k=T._result;k=k(),k.then(function(H){(T._status===0||T._status===-1)&&(T._status=1,T._result=H)},function(H){(T._status===0||T._status===-1)&&(T._status=2,T._result=H)}),T._status===-1&&(T._status=0,T._result=k)}if(T._status===1)return T._result.default;throw T._result}var fe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},he={map:G,forEach:function(T,k,H){G(T,function(){k.apply(this,arguments)},H)},count:function(T){var k=0;return G(T,function(){k++}),k},toArray:function(T){return G(T,function(k){return k})||[]},only:function(T){if(!_e(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Re.Activity=y,Re.Children=he,Re.Component=K,Re.Fragment=r,Re.Profiler=c,Re.PureComponent=$,Re.StrictMode=s,Re.Suspense=g,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return C.H.useMemoCache(T)}},Re.cache=function(T){return function(){return T.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(T,k,H){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var F=j({},T.props),ee=T.key;if(k!=null)for(ue in k.key!==void 0&&(ee=""+k.key),k)!W.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(F[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)F.children=H;else if(1<ue){for(var Ae=Array(ue),Ee=0;Ee<ue;Ee++)Ae[Ee]=arguments[Ee+2];F.children=Ae}return ge(T.type,ee,F)},Re.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},Re.createElement=function(T,k,H){var F,ee={},ue=null;if(k!=null)for(F in k.key!==void 0&&(ue=""+k.key),k)W.call(k,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ee[F]=k[F]);var Ae=arguments.length-2;if(Ae===1)ee.children=H;else if(1<Ae){for(var Ee=Array(Ae),Fe=0;Fe<Ae;Fe++)Ee[Fe]=arguments[Fe+2];ee.children=Ee}if(T&&T.defaultProps)for(F in Ae=T.defaultProps,Ae)ee[F]===void 0&&(ee[F]=Ae[F]);return ge(T,ue,ee)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(T){return{$$typeof:m,render:T}},Re.isValidElement=_e,Re.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:P}},Re.memo=function(T,k){return{$$typeof:p,type:T,compare:k===void 0?null:k}},Re.startTransition=function(T){var k=C.T,H={};C.T=H;try{var F=T(),ee=C.S;ee!==null&&ee(H,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(ye,fe)}catch(ue){fe(ue)}finally{k!==null&&H.types!==null&&(k.types=H.types),C.T=k}},Re.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Re.use=function(T){return C.H.use(T)},Re.useActionState=function(T,k,H){return C.H.useActionState(T,k,H)},Re.useCallback=function(T,k){return C.H.useCallback(T,k)},Re.useContext=function(T){return C.H.useContext(T)},Re.useDebugValue=function(){},Re.useDeferredValue=function(T,k){return C.H.useDeferredValue(T,k)},Re.useEffect=function(T,k){return C.H.useEffect(T,k)},Re.useEffectEvent=function(T){return C.H.useEffectEvent(T)},Re.useId=function(){return C.H.useId()},Re.useImperativeHandle=function(T,k,H){return C.H.useImperativeHandle(T,k,H)},Re.useInsertionEffect=function(T,k){return C.H.useInsertionEffect(T,k)},Re.useLayoutEffect=function(T,k){return C.H.useLayoutEffect(T,k)},Re.useMemo=function(T,k){return C.H.useMemo(T,k)},Re.useOptimistic=function(T,k){return C.H.useOptimistic(T,k)},Re.useReducer=function(T,k,H){return C.H.useReducer(T,k,H)},Re.useRef=function(T){return C.H.useRef(T)},Re.useState=function(T){return C.H.useState(T)},Re.useSyncExternalStore=function(T,k,H){return C.H.useSyncExternalStore(T,k,H)},Re.useTransition=function(){return C.H.useTransition()},Re.version="19.2.4",Re}var gp;function sf(){return gp||(gp=1,Cc.exports=H0()),Cc.exports}var _=sf();const I=vy(_),Q0=k0({__proto__:null,default:I},[_]);var Oc={exports:{}},vr={},xc={exports:{}},Mc={};var vp;function Y0(){return vp||(vp=1,(function(a){function i(x,G){var P=x.length;x.push(G);e:for(;0<P;){var fe=P-1>>>1,he=x[fe];if(0<c(he,G))x[fe]=G,x[P]=he,P=fe;else break e}}function r(x){return x.length===0?null:x[0]}function s(x){if(x.length===0)return null;var G=x[0],P=x.pop();if(P!==G){x[0]=P;e:for(var fe=0,he=x.length,T=he>>>1;fe<T;){var k=2*(fe+1)-1,H=x[k],F=k+1,ee=x[F];if(0>c(H,P))F<he&&0>c(ee,H)?(x[fe]=ee,x[F]=P,fe=F):(x[fe]=H,x[k]=P,fe=k);else if(F<he&&0>c(ee,P))x[fe]=ee,x[F]=P,fe=F;else break e}}return G}function c(x,G){var P=x.sortIndex-G.sortIndex;return P!==0?P:x.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var g=[],p=[],b=1,y=null,w=3,M=!1,B=!1,j=!1,X=!1,K=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function be(x){for(var G=r(p);G!==null;){if(G.callback===null)s(p);else if(G.startTime<=x)s(p),G.sortIndex=G.expirationTime,i(g,G);else break;G=r(p)}}function me(x){if(j=!1,be(x),!B)if(r(g)!==null)B=!0,ye||(ye=!0,we());else{var G=r(p);G!==null&&Te(me,G.startTime-x)}}var ye=!1,C=-1,W=5,ge=-1;function xe(){return X?!0:!(a.unstable_now()-ge<W)}function _e(){if(X=!1,ye){var x=a.unstable_now();ge=x;var G=!0;try{e:{B=!1,j&&(j=!1,Z(C),C=-1),M=!0;var P=w;try{t:{for(be(x),y=r(g);y!==null&&!(y.expirationTime>x&&xe());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,w=y.priorityLevel;var he=fe(y.expirationTime<=x);if(x=a.unstable_now(),typeof he=="function"){y.callback=he,be(x),G=!0;break t}y===r(g)&&s(g),be(x)}else s(g);y=r(g)}if(y!==null)G=!0;else{var T=r(p);T!==null&&Te(me,T.startTime-x),G=!1}}break e}finally{y=null,w=P,M=!1}G=void 0}}finally{G?we():ye=!1}}}var we;if(typeof $=="function")we=function(){$(_e)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,Ke=Be.port2;Be.port1.onmessage=_e,we=function(){Ke.postMessage(null)}}else we=function(){K(_e,0)};function Te(x,G){C=K(function(){x(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(x){x.callback=null},a.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<x?Math.floor(1e3/x):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(x){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var P=w;w=G;try{return x()}finally{w=P}},a.unstable_requestPaint=function(){X=!0},a.unstable_runWithPriority=function(x,G){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var P=w;w=x;try{return G()}finally{w=P}},a.unstable_scheduleCallback=function(x,G,P){var fe=a.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?fe+P:fe):P=fe,x){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=P+he,x={id:b++,callback:G,priorityLevel:x,startTime:P,expirationTime:he,sortIndex:-1},P>fe?(x.sortIndex=P,i(p,x),r(g)===null&&x===r(p)&&(j?(Z(C),C=-1):j=!0,Te(me,P-fe))):(x.sortIndex=he,i(g,x),B||M||(B=!0,ye||(ye=!0,we()))),x},a.unstable_shouldYield=xe,a.unstable_wrapCallback=function(x){var G=w;return function(){var P=w;w=G;try{return x.apply(this,arguments)}finally{w=P}}}})(Mc)),Mc}var bp;function K0(){return bp||(bp=1,xc.exports=Y0()),xc.exports}var Dc={exports:{}},Kt={};var Sp;function V0(){if(Sp)return Kt;Sp=1;var a=sf();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:p,implementation:b}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Kt.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,b)},Kt.flushSync=function(g){var p=h.T,b=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=b,s.d.f()}},Kt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},Kt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Kt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,y=m(b,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:M}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:w,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Kt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},Kt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=m(b,p.crossOrigin);s.d.L(g,b,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Kt.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},Kt.requestFormReset=function(g){s.d.r(g)},Kt.unstable_batchedUpdates=function(g,p){return g(p)},Kt.useFormState=function(g,p,b){return h.H.useFormState(g,p,b)},Kt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Kt.version="19.2.4",Kt}var Ep;function by(){if(Ep)return Dc.exports;Ep=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Dc.exports=V0(),Dc.exports}var Tp;function G0(){if(Tp)return vr;Tp=1;var a=K0(),i=sf(),r=by();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n: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 m(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 g(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return g(o),e;if(u===l)return g(o),t;u=u.sibling}throw Error(s(188))}if(n.return!==l.return)n=o,l=u;else{for(var d=!1,v=o.child;v;){if(v===n){d=!0,n=o,l=u;break}if(v===l){d=!0,l=o,n=u;break}v=v.sibling}if(!d){for(v=u.child;v;){if(v===n){d=!0,n=u,l=o;break}if(v===l){d=!0,l=u,n=o;break}v=v.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,w=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),$=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function we(e){return e===null||typeof e!="object"?null:(e=_e&&e[_e]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function Ke(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case K:return"Profiler";case X:return"StrictMode";case me:return"Suspense";case ye:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case $:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case C:return t=e.displayName||null,t!==null?t:Ke(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return Ke(e(t))}catch{}}return null}var Te=Array.isArray,x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},fe=[],he=-1;function T(e){return{current:e}}function k(e){0>he||(e.current=fe[he],fe[he]=null,he--)}function H(e,t){he++,fe[he]=e.current,e.current=t}var F=T(null),ee=T(null),ue=T(null),Ae=T(null);function Ee(e,t){switch(H(ue,t),H(ee,e),H(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?km(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=km(t),e=qm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(F),H(F,e)}function Fe(){k(F),k(ee),k(ue)}function bn(e){e.memoizedState!==null&&H(Ae,e);var t=F.current,n=qm(t,e.type);t!==n&&(H(ee,e),H(F,n))}function kn(e){ee.current===e&&(k(F),k(ee)),Ae.current===e&&(k(Ae),hr._currentValue=P)}var et,qn;function Ft(e){if(et===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);et=t&&t[1]||"",qn=-1<n.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+et+e+qn}var ui=!1;function Pt(e,t){if(!e||ui)return"";ui=!0;var n=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(L){var z=L}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(L){z=L}e.call(Y.prototype)}}else{try{throw Error()}catch(L){z=L}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(L){if(L&&z&&typeof L.stack=="string")return[L.stack,z.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 u=l.DetermineComponentFrameRoot(),d=u[0],v=u[1];if(d&&v){var E=d.split(`
|
|
5
|
+
`),N=v.split(`
|
|
6
|
+
`);for(o=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(l===E.length||o===N.length)for(l=E.length-1,o=N.length-1;1<=l&&0<=o&&E[l]!==N[o];)o--;for(;1<=l&&0<=o;l--,o--)if(E[l]!==N[o]){if(l!==1||o!==1)do if(l--,o--,0>o||E[l]!==N[o]){var q=`
|
|
7
|
+
`+E[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=o);break}}}finally{ui=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ft(n):""}function ra(e,t){switch(e.tag){case 26:case 27:case 5:return Ft(e.type);case 16:return Ft("Lazy");case 13:return e.child!==t&&t!==null?Ft("Suspense Fallback"):Ft("Suspense");case 19:return Ft("SuspenseList");case 0:case 15:return Pt(e.type,!1);case 11:return Pt(e.type.render,!1);case 1:return Pt(e.type,!0);case 31:return Ft("Activity");default:return""}}function ci(e){try{var t="",n=null;do t+=ra(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
8
|
+
Error generating stack: `+l.message+`
|
|
9
|
+
`+l.stack}}var Qt=Object.prototype.hasOwnProperty,fi=a.unstable_scheduleCallback,di=a.unstable_cancelCallback,zt=a.unstable_shouldYield,Pn=a.unstable_requestPaint,ut=a.unstable_now,sa=a.unstable_getCurrentPriorityLevel,Jn=a.unstable_ImmediatePriority,Na=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,Gt=a.unstable_LowPriority,Sn=a.unstable_IdlePriority,qi=a.log,En=a.unstable_setDisableYieldValue,oa=null,it=null;function Jt(e){if(typeof qi=="function"&&En(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(oa,e)}catch{}}var Ct=Math.clz32?Math.clz32:rn,ji=Math.log,hi=Math.LN2;function rn(e){return e>>>=0,e===0?32:31-(ji(e)/hi|0)|0}var jn=256,ua=262144,Hn=4194304;function Tn(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 Se(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,u=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~u,l!==0?o=Tn(l):(d&=v,d!==0?o=Tn(d):n||(n=v&~e,n!==0&&(o=Tn(n))))):(v=l&~u,v!==0?o=Tn(v):d!==0?o=Tn(d):n||(n=l&~e,n!==0&&(o=Tn(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(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 gt(){var e=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),e}function sn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yt(e,t,n,l,o,u){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,E=e.expirationTimes,N=e.hiddenUpdates;for(n=d&~n;0<n;){var q=31-Ct(n),Y=1<<q;v[q]=0,E[q]=-1;var z=N[q];if(z!==null)for(N[q]=null,q=0;q<z.length;q++){var L=z[q];L!==null&&(L.lane&=-536870913)}n&=~Y}l!==0&&ca(e,l,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(d&~t))}function ca(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function S(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Ct(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function A(e,t){var n=t&-t;return n=(n&42)!==0?1:U(n),(n&(e.suspendedLanes|t))!==0?0:n}function U(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 V(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function J(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:sp(e.type))}function oe(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var ne=Math.random().toString(36).slice(2),te="__reactFiber$"+ne,ae="__reactProps$"+ne,se="__reactContainer$"+ne,pe="__reactEvents$"+ne,ce="__reactListeners$"+ne,Ve="__reactHandles$"+ne,ke="__reactResources$"+ne,ct="__reactMarker$"+ne;function ft(e){delete e[te],delete e[ae],delete e[pe],delete e[ce],delete e[Ve]}function dt(e){var t=e[te];if(t)return t;for(var n=e.parentNode;n;){if(t=n[se]||n[te]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gm(e);e!==null;){if(n=e[te])return n;e=Gm(e)}return t}e=n,n=e.parentNode}return null}function qe(e){if(e=e[te]||e[se]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function $t(e){var t=e[ke];return t||(t=e[ke]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[ct]=!0}var Qn=new Set,on={};function Yn(e,t){wn(e,t),wn(e+"Capture",t)}function wn(e,t){for(on[e]=t,e=0;e<t.length;e++)Qn.add(t[e])}var fa=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]*$"),mi={},pi={};function je(e){return Qt.call(pi,e)?!0:Qt.call(mi,e)?!1:fa.test(e)?pi[e]=!0:(mi[e]=!0,!1)}function vt(e,t,n){if(je(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function Kn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Lt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function He(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lr(e,t,n){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,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(d){n=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xl(e){if(!e._valueTracker){var t=yi(e)?"checked":"value";e._valueTracker=Lr(e,t,""+e[t])}}function Mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=yi(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Br(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 Dg=/[\n"\\]/g;function Rn(e){return e.replace(Dg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function So(e,t,n,l,o,u,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+He(t)):e.value!==""+He(t)&&(e.value=""+He(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Eo(e,d,He(t)):n!=null?Eo(e,d,He(n)):l!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+He(v):e.removeAttribute("name")}function Df(e,t,n,l,o,u,d,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){xl(e);return}n=n!=null?""+He(n):"",t=t!=null?""+He(t):n,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,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),xl(e)}function Eo(e,t,n){t==="number"&&Br(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Hi(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+He(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Nf(e,t,n){if(t!=null&&(t=""+He(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+He(n):""}function zf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(Te(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=He(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),xl(e)}function Qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ng=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 Uf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Ng.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Lf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.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)&&n[o]!==l&&Uf(e,o,l)}else for(var u in t)t.hasOwnProperty(u)&&Uf(e,u,t[u])}function To(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 zg=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"]]),Ug=/^[\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 kr(e){return Ug.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function da(){}var wo=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yi=null,Ki=null;function Bf(e){var t=qe(e);if(t&&(e=t.stateNode)){var n=e[ae]||null;e:switch(e=t.stateNode,t.type){case"input":if(So(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Rn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[ae]||null;if(!o)throw Error(s(90));So(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Mf(l)}break e;case"textarea":Nf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Hi(e,!!n.multiple,t,!1)}}}var _o=!1;function kf(e,t,n){if(_o)return e(t,n);_o=!0;try{var l=e(t);return l}finally{if(_o=!1,(Yi!==null||Ki!==null)&&(Rs(),Yi&&(t=Yi,e=Ki,Ki=Yi=null,Bf(t),e)))for(t=0;t<e.length;t++)Bf(e[t])}}function Ml(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ae]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ao=!1;if(ha)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Ao=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Ao=!1}var za=null,Co=null,qr=null;function qf(){if(qr)return qr;var e,t=Co,n=t.length,l,o="value"in za?za.value:za.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===o[u-l];l++);return qr=o.slice(e,1<l?1-l:void 0)}function jr(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 Hr(){return!0}function jf(){return!1}function It(e){function t(n,l,o,u,d){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Hr:jf,this.isPropagationStopped=jf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){},isPersistent:Hr}),t}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qr=It(gi),Nl=y({},gi,{view:0,detail:0}),Lg=It(Nl),Oo,xo,zl,Yr=y({},Nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==zl&&(zl&&e.type==="mousemove"?(Oo=e.screenX-zl.screenX,xo=e.screenY-zl.screenY):xo=Oo=0,zl=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Hf=It(Yr),Bg=y({},Yr,{dataTransfer:0}),kg=It(Bg),qg=y({},Nl,{relatedTarget:0}),Mo=It(qg),jg=y({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),Hg=It(jg),Qg=y({},gi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yg=It(Qg),Kg=y({},gi,{data:0}),Qf=It(Kg),Vg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gg={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"},Xg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xg[e])?!!t[e]:!1}function Do(){return Zg}var Fg=y({},Nl,{key:function(e){if(e.key){var t=Vg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,charCode:function(e){return e.type==="keypress"?jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pg=It(Fg),Jg=y({},Yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yf=It(Jg),$g=y({},Nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),Ig=It($g),Wg=y({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=It(Wg),tv=y({},Yr,{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}),nv=It(tv),av=y({},gi,{newState:0,oldState:0}),iv=It(av),lv=[9,13,27,32],No=ha&&"CompositionEvent"in window,Ul=null;ha&&"documentMode"in document&&(Ul=document.documentMode);var rv=ha&&"TextEvent"in window&&!Ul,Kf=ha&&(!No||Ul&&8<Ul&&11>=Ul),Vf=" ",Gf=!1;function Xf(e,t){switch(e){case"keyup":return lv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vi=!1;function sv(e,t){switch(e){case"compositionend":return Zf(t);case"keypress":return t.which!==32?null:(Gf=!0,Vf);case"textInput":return e=t.data,e===Vf&&Gf?null:e;default:return null}}function ov(e,t){if(Vi)return e==="compositionend"||!No&&Xf(e,t)?(e=qf(),qr=Co=za=null,Vi=!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 Kf&&t.locale!=="ko"?null:t.data;default:return null}}var uv={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 Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uv[e.type]:t==="textarea"}function Pf(e,t,n,l){Yi?Ki?Ki.push(l):Ki=[l]:Yi=l,t=Ds(t,"onChange"),0<t.length&&(n=new Qr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ll=null,Bl=null;function cv(e){Dm(e,0)}function Kr(e){var t=Dt(e);if(Mf(t))return e}function Jf(e,t){if(e==="change")return t}var $f=!1;if(ha){var zo;if(ha){var Uo="oninput"in document;if(!Uo){var If=document.createElement("div");If.setAttribute("oninput","return;"),Uo=typeof If.oninput=="function"}zo=Uo}else zo=!1;$f=zo&&(!document.documentMode||9<document.documentMode)}function Wf(){Ll&&(Ll.detachEvent("onpropertychange",ed),Bl=Ll=null)}function ed(e){if(e.propertyName==="value"&&Kr(Bl)){var t=[];Pf(t,Bl,e,Ro(e)),kf(cv,t)}}function fv(e,t,n){e==="focusin"?(Wf(),Ll=t,Bl=n,Ll.attachEvent("onpropertychange",ed)):e==="focusout"&&Wf()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kr(Bl)}function hv(e,t){if(e==="click")return Kr(t)}function mv(e,t){if(e==="input"||e==="change")return Kr(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var un=typeof Object.is=="function"?Object.is:pv;function kl(e,t){if(un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Qt.call(t,o)||!un(e[o],t[o]))return!1}return!0}function td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nd(e,t){var n=td(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=td(n)}}function ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Br(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Br(e.document)}return t}function Lo(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 yv=ha&&"documentMode"in document&&11>=document.documentMode,Gi=null,Bo=null,ql=null,ko=!1;function ld(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ko||Gi==null||Gi!==Br(l)||(l=Gi,"selectionStart"in l&&Lo(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}),ql&&kl(ql,l)||(ql=l,l=Ds(Bo,"onSelect"),0<l.length&&(t=new Qr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Gi)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xi={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},qo={},rd={};ha&&(rd=document.createElement("div").style,"AnimationEvent"in window||(delete Xi.animationend.animation,delete Xi.animationiteration.animation,delete Xi.animationstart.animation),"TransitionEvent"in window||delete Xi.transitionend.transition);function bi(e){if(qo[e])return qo[e];if(!Xi[e])return e;var t=Xi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rd)return qo[e]=t[n];return e}var sd=bi("animationend"),od=bi("animationiteration"),ud=bi("animationstart"),gv=bi("transitionrun"),vv=bi("transitionstart"),bv=bi("transitioncancel"),cd=bi("transitionend"),fd=new Map,jo="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(" ");jo.push("scrollEnd");function Vn(e,t){fd.set(e,t),Yn(t,[e])}var Vr=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)},_n=[],Zi=0,Ho=0;function Gr(){for(var e=Zi,t=Ho=Zi=0;t<e;){var n=_n[t];_n[t++]=null;var l=_n[t];_n[t++]=null;var o=_n[t];_n[t++]=null;var u=_n[t];if(_n[t++]=null,l!==null&&o!==null){var d=l.pending;d===null?o.next=o:(o.next=d.next,d.next=o),l.pending=o}u!==0&&dd(n,o,u)}}function Xr(e,t,n,l){_n[Zi++]=e,_n[Zi++]=t,_n[Zi++]=n,_n[Zi++]=l,Ho|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qo(e,t,n,l){return Xr(e,t,n,l),Zr(e)}function Si(e,t){return Xr(e,null,null,t),Zr(e)}function dd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-Ct(n),e=u.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),u):null}function Zr(e){if(50<rr)throw rr=0,Ju=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fi={};function Sv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 cn(e,t,n,l){return new Sv(e,t,n,l)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ma(e,t){var n=e.alternate;return n===null?(n=cn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fr(e,t,n,l,o,u){var d=0;if(l=e,typeof e=="function")Yo(e)&&(d=1);else if(typeof e=="string")d=_0(e,n,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=cn(31,n,t,o),e.elementType=ge,e.lanes=u,e;case j:return Ei(n.children,o,u,t);case X:d=8,o|=24;break;case K:return e=cn(12,n,t,o|2),e.elementType=K,e.lanes=u,e;case me:return e=cn(13,n,t,o),e.elementType=me,e.lanes=u,e;case ye:return e=cn(19,n,t,o),e.elementType=ye,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:d=10;break e;case Z:d=9;break e;case be:d=11;break e;case C:d=14;break e;case W:d=16,l=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=cn(d,n,t,o),t.elementType=e,t.type=l,t.lanes=u,t}function Ei(e,t,n,l){return e=cn(7,e,l,t),e.lanes=n,e}function Ko(e,t,n){return e=cn(6,e,null,t),e.lanes=n,e}function md(e){var t=cn(18,null,null,0);return t.stateNode=e,t}function Vo(e,t,n){return t=cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pd=new WeakMap;function An(e,t){if(typeof e=="object"&&e!==null){var n=pd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ci(t)},pd.set(e,t),t)}return{value:e,source:t,stack:ci(t)}}var Pi=[],Ji=0,Pr=null,jl=0,Cn=[],On=0,Ua=null,$n=1,In="";function pa(e,t){Pi[Ji++]=jl,Pi[Ji++]=Pr,Pr=e,jl=t}function yd(e,t,n){Cn[On++]=$n,Cn[On++]=In,Cn[On++]=Ua,Ua=e;var l=$n;e=In;var o=32-Ct(l)-1;l&=~(1<<o),n+=1;var u=32-Ct(t)+o;if(30<u){var d=o-o%5;u=(l&(1<<d)-1).toString(32),l>>=d,o-=d,$n=1<<32-Ct(t)+o|n<<o|l,In=u+e}else $n=1<<u|n<<o|l,In=e}function Go(e){e.return!==null&&(pa(e,1),yd(e,1,0))}function Xo(e){for(;e===Pr;)Pr=Pi[--Ji],Pi[Ji]=null,jl=Pi[--Ji],Pi[Ji]=null;for(;e===Ua;)Ua=Cn[--On],Cn[On]=null,In=Cn[--On],Cn[On]=null,$n=Cn[--On],Cn[On]=null}function gd(e,t){Cn[On++]=$n,Cn[On++]=In,Cn[On++]=Ua,$n=t.id,In=t.overflow,Ua=e}var Bt=null,lt=null,Qe=!1,La=null,xn=!1,Zo=Error(s(519));function Ba(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(An(t,e)),Zo}function vd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[te]=e,t[ae]=l,n){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(n=0;n<or.length;n++)ze(or[n],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),Df(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),zf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Lm(t.textContent,n)?(l.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),l.onScroll!=null&&ze("scroll",t),l.onScrollEnd!=null&&ze("scrollend",t),l.onClick!=null&&(t.onclick=da),t=!0):t=!1,t||Ba(e,!0)}function bd(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Bt=Bt.return}}function $i(e){if(e!==Bt)return!1;if(!Qe)return bd(e),Qe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||fc(e.type,e.memoizedProps)),n=!n),n&<&&Ba(e),bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=Vm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=Vm(e)}else t===27?(t=lt,Ja(e.type)?(e=yc,yc=null,lt=e):lt=t):lt=Bt?Dn(e.stateNode.nextSibling):null;return!0}function Ti(){lt=Bt=null,Qe=!1}function Fo(){var e=La;return e!==null&&(nn===null?nn=e:nn.push.apply(nn,e),La=null),e}function Hl(e){La===null?La=[e]:La.push(e)}var Po=T(null),wi=null,ya=null;function ka(e,t,n){H(Po,t._currentValue),t._currentValue=n}function ga(e){e._currentValue=Po.current,k(Po)}function Jo(e,t,n){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===n)break;e=e.return}}function $o(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var d=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var E=0;E<t.length;E++)if(v.context===t[E]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Jo(u.return,n,e),l||(d=null);break e}u=v.next}}else if(o.tag===18){if(d=o.return,d===null)throw Error(s(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Jo(d,n,e),d=null}else d=o.child;if(d!==null)d.return=o;else for(d=o;d!==null;){if(d===e){d=null;break}if(o=d.sibling,o!==null){o.return=d.return,d=o;break}d=d.return}o=d}}function Ii(e,t,n,l){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var d=o.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var v=o.type;un(o.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(o===Ae.current){if(d=o.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(hr):e=[hr])}o=o.return}e!==null&&$o(t,e,n,l),t.flags|=262144}function Jr(e){for(e=e.firstContext;e!==null;){if(!un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ri(e){wi=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Sd(wi,e)}function $r(e,t){return wi===null&&Ri(e),Sd(e,t)}function Sd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ya===null){if(e===null)throw Error(s(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var Ev=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Tv=a.unstable_scheduleCallback,wv=a.unstable_NormalPriority,Tt={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new Ev,data:new Map,refCount:0}}function Ql(e){e.refCount--,e.refCount===0&&Tv(wv,function(){e.controller.abort()})}var Yl=null,Wo=0,Wi=0,el=null;function Rv(e,t){if(Yl===null){var n=Yl=[];Wo=0,Wi=nc(),el={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Wo++,t.then(Ed,Ed),t}function Ed(){if(--Wo===0&&Yl!==null){el!==null&&(el.status="fulfilled");var e=Yl;Yl=null,Wi=0,el=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _v(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var Td=x.S;x.S=function(e,t){lm=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rv(e,t),Td!==null&&Td(e,t)};var _i=T(null);function eu(){var e=_i.current;return e!==null?e:tt.pooledCache}function Ir(e,t){t===null?H(_i,_i.current):H(_i,t.pool)}function wd(){var e=eu();return e===null?null:{parent:Tt._currentValue,pool:e}}var tl=Error(s(460)),tu=Error(s(474)),Wr=Error(s(542)),es={then:function(){}};function Rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _d(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(da,da),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e;default:if(typeof t.status=="string")t.then(da,da);else{if(e=tt,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,Cd(e),e}throw Ci=t,tl}}function Ai(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ci=n,tl):n}}var Ci=null;function Ad(){if(Ci===null)throw Error(s(459));var e=Ci;return Ci=null,e}function Cd(e){if(e===tl||e===Wr)throw Error(s(483))}var nl=null,Kl=0;function ts(e){var t=Kl;return Kl+=1,nl===null&&(nl=[]),_d(nl,e,t)}function Vl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ns(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Od(e){function t(O,R){if(e){var D=O.deletions;D===null?(O.deletions=[R],O.flags|=16):D.push(R)}}function n(O,R){if(!e)return null;for(;R!==null;)t(O,R),R=R.sibling;return null}function l(O){for(var R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function o(O,R){return O=ma(O,R),O.index=0,O.sibling=null,O}function u(O,R,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<R?(O.flags|=67108866,R):D):(O.flags|=67108866,R)):(O.flags|=1048576,R)}function d(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,R,D,Q){return R===null||R.tag!==6?(R=Ko(D,O.mode,Q),R.return=O,R):(R=o(R,D),R.return=O,R)}function E(O,R,D,Q){var de=D.type;return de===j?q(O,R,D.props.children,Q,D.key):R!==null&&(R.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===W&&Ai(de)===R.type)?(R=o(R,D.props),Vl(R,D),R.return=O,R):(R=Fr(D.type,D.key,D.props,null,O.mode,Q),Vl(R,D),R.return=O,R)}function N(O,R,D,Q){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=Vo(D,O.mode,Q),R.return=O,R):(R=o(R,D.children||[]),R.return=O,R)}function q(O,R,D,Q,de){return R===null||R.tag!==7?(R=Ei(D,O.mode,Q,de),R.return=O,R):(R=o(R,D),R.return=O,R)}function Y(O,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Ko(""+R,O.mode,D),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return D=Fr(R.type,R.key,R.props,null,O.mode,D),Vl(D,R),D.return=O,D;case B:return R=Vo(R,O.mode,D),R.return=O,R;case W:return R=Ai(R),Y(O,R,D)}if(Te(R)||we(R))return R=Ei(R,O.mode,D,null),R.return=O,R;if(typeof R.then=="function")return Y(O,ts(R),D);if(R.$$typeof===$)return Y(O,$r(O,R),D);ns(O,R)}return null}function z(O,R,D,Q){var de=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return de!==null?null:v(O,R,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return D.key===de?E(O,R,D,Q):null;case B:return D.key===de?N(O,R,D,Q):null;case W:return D=Ai(D),z(O,R,D,Q)}if(Te(D)||we(D))return de!==null?null:q(O,R,D,Q,null);if(typeof D.then=="function")return z(O,R,ts(D),Q);if(D.$$typeof===$)return z(O,R,$r(O,D),Q);ns(O,D)}return null}function L(O,R,D,Q,de){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return O=O.get(D)||null,v(R,O,""+Q,de);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case M:return O=O.get(Q.key===null?D:Q.key)||null,E(R,O,Q,de);case B:return O=O.get(Q.key===null?D:Q.key)||null,N(R,O,Q,de);case W:return Q=Ai(Q),L(O,R,D,Q,de)}if(Te(Q)||we(Q))return O=O.get(D)||null,q(R,O,Q,de,null);if(typeof Q.then=="function")return L(O,R,D,ts(Q),de);if(Q.$$typeof===$)return L(O,R,D,$r(R,Q),de);ns(R,Q)}return null}function ie(O,R,D,Q){for(var de=null,Ge=null,le=R,Me=R=0,Le=null;le!==null&&Me<D.length;Me++){le.index>Me?(Le=le,le=null):Le=le.sibling;var Xe=z(O,le,D[Me],Q);if(Xe===null){le===null&&(le=Le);break}e&&le&&Xe.alternate===null&&t(O,le),R=u(Xe,R,Me),Ge===null?de=Xe:Ge.sibling=Xe,Ge=Xe,le=Le}if(Me===D.length)return n(O,le),Qe&&pa(O,Me),de;if(le===null){for(;Me<D.length;Me++)le=Y(O,D[Me],Q),le!==null&&(R=u(le,R,Me),Ge===null?de=le:Ge.sibling=le,Ge=le);return Qe&&pa(O,Me),de}for(le=l(le);Me<D.length;Me++)Le=L(le,O,Me,D[Me],Q),Le!==null&&(e&&Le.alternate!==null&&le.delete(Le.key===null?Me:Le.key),R=u(Le,R,Me),Ge===null?de=Le:Ge.sibling=Le,Ge=Le);return e&&le.forEach(function(ti){return t(O,ti)}),Qe&&pa(O,Me),de}function ve(O,R,D,Q){if(D==null)throw Error(s(151));for(var de=null,Ge=null,le=R,Me=R=0,Le=null,Xe=D.next();le!==null&&!Xe.done;Me++,Xe=D.next()){le.index>Me?(Le=le,le=null):Le=le.sibling;var ti=z(O,le,Xe.value,Q);if(ti===null){le===null&&(le=Le);break}e&&le&&ti.alternate===null&&t(O,le),R=u(ti,R,Me),Ge===null?de=ti:Ge.sibling=ti,Ge=ti,le=Le}if(Xe.done)return n(O,le),Qe&&pa(O,Me),de;if(le===null){for(;!Xe.done;Me++,Xe=D.next())Xe=Y(O,Xe.value,Q),Xe!==null&&(R=u(Xe,R,Me),Ge===null?de=Xe:Ge.sibling=Xe,Ge=Xe);return Qe&&pa(O,Me),de}for(le=l(le);!Xe.done;Me++,Xe=D.next())Xe=L(le,O,Me,Xe.value,Q),Xe!==null&&(e&&Xe.alternate!==null&&le.delete(Xe.key===null?Me:Xe.key),R=u(Xe,R,Me),Ge===null?de=Xe:Ge.sibling=Xe,Ge=Xe);return e&&le.forEach(function(B0){return t(O,B0)}),Qe&&pa(O,Me),de}function We(O,R,D,Q){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case M:e:{for(var de=D.key;R!==null;){if(R.key===de){if(de=D.type,de===j){if(R.tag===7){n(O,R.sibling),Q=o(R,D.props.children),Q.return=O,O=Q;break e}}else if(R.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===W&&Ai(de)===R.type){n(O,R.sibling),Q=o(R,D.props),Vl(Q,D),Q.return=O,O=Q;break e}n(O,R);break}else t(O,R);R=R.sibling}D.type===j?(Q=Ei(D.props.children,O.mode,Q,D.key),Q.return=O,O=Q):(Q=Fr(D.type,D.key,D.props,null,O.mode,Q),Vl(Q,D),Q.return=O,O=Q)}return d(O);case B:e:{for(de=D.key;R!==null;){if(R.key===de)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){n(O,R.sibling),Q=o(R,D.children||[]),Q.return=O,O=Q;break e}else{n(O,R);break}else t(O,R);R=R.sibling}Q=Vo(D,O.mode,Q),Q.return=O,O=Q}return d(O);case W:return D=Ai(D),We(O,R,D,Q)}if(Te(D))return ie(O,R,D,Q);if(we(D)){if(de=we(D),typeof de!="function")throw Error(s(150));return D=de.call(D),ve(O,R,D,Q)}if(typeof D.then=="function")return We(O,R,ts(D),Q);if(D.$$typeof===$)return We(O,R,$r(O,D),Q);ns(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(n(O,R.sibling),Q=o(R,D),Q.return=O,O=Q):(n(O,R),Q=Ko(D,O.mode,Q),Q.return=O,O=Q),d(O)):n(O,R)}return function(O,R,D,Q){try{Kl=0;var de=We(O,R,D,Q);return nl=null,de}catch(le){if(le===tl||le===Wr)throw le;var Ge=cn(29,le,null,O.mode);return Ge.lanes=Q,Ge.return=O,Ge}}}var Oi=Od(!0),xd=Od(!1),qa=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ze&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Zr(e),dd(e,null,n),t}return Xr(e,l,t,n),Zr(e)}function Gl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,S(e,n)}}function iu(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var lu=!1;function Xl(){if(lu){var e=el;if(e!==null)throw e}}function Zl(e,t,n,l){lu=!1;var o=e.updateQueue;qa=!1;var u=o.firstBaseUpdate,d=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var E=v,N=E.next;E.next=null,d===null?u=N:d.next=N,d=E;var q=e.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==d&&(v===null?q.firstBaseUpdate=N:v.next=N,q.lastBaseUpdate=E))}if(u!==null){var Y=o.baseState;d=0,q=N=E=null,v=u;do{var z=v.lane&-536870913,L=z!==v.lane;if(L?(Ue&z)===z:(l&z)===z){z!==0&&z===Wi&&(lu=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ie=e,ve=v;z=t;var We=n;switch(ve.tag){case 1:if(ie=ve.payload,typeof ie=="function"){Y=ie.call(We,Y,z);break e}Y=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ve.payload,z=typeof ie=="function"?ie.call(We,Y,z):ie,z==null)break e;Y=y({},Y,z);break e;case 2:qa=!0}}z=v.callback,z!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[z]:L.push(z))}else L={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(N=q=L,E=Y):q=q.next=L,d|=z;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;L=v,v=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);q===null&&(E=Y),o.baseState=E,o.firstBaseUpdate=N,o.lastBaseUpdate=q,u===null&&(o.shared.lanes=0),Ga|=d,e.lanes=d,e.memoizedState=Y}}function Md(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Dd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Md(n[e],t)}var al=T(null),as=T(0);function Nd(e,t){e=Aa,H(as,e),H(al,t),Aa=e|t.baseLanes}function ru(){H(as,Aa),H(al,al.current)}function su(){Aa=as.current,k(al),k(as)}var fn=T(null),Mn=null;function Qa(e){var t=e.alternate;H(bt,bt.current&1),H(fn,e),Mn===null&&(t===null||al.current!==null||t.memoizedState!==null)&&(Mn=e)}function ou(e){H(bt,bt.current),H(fn,e),Mn===null&&(Mn=e)}function zd(e){e.tag===22?(H(bt,bt.current),H(fn,e),Mn===null&&(Mn=e)):Ya()}function Ya(){H(bt,bt.current),H(fn,fn.current)}function dn(e){k(fn),Mn===e&&(Mn=null),k(bt)}var bt=T(0);function is(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mc(n)||pc(n)))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 va=0,Ce=null,$e=null,wt=null,ls=!1,il=!1,xi=!1,rs=0,Fl=0,ll=null,Av=0;function ht(){throw Error(s(321))}function uu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!un(e[n],t[n]))return!1;return!0}function cu(e,t,n,l,o,u){return va=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,x.H=e===null||e.memoizedState===null?yh:_u,xi=!1,u=n(l,o),xi=!1,il&&(u=Ld(t,n,l,o)),Ud(e),u}function Ud(e){x.H=$l;var t=$e!==null&&$e.next!==null;if(va=0,wt=$e=Ce=null,ls=!1,Fl=0,ll=null,t)throw Error(s(300));e===null||Rt||(e=e.dependencies,e!==null&&Jr(e)&&(Rt=!0))}function Ld(e,t,n,l){Ce=e;var o=0;do{if(il&&(ll=null),Fl=0,il=!1,25<=o)throw Error(s(301));if(o+=1,wt=$e=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=gh,u=t(n,l)}while(il);return u}function Cv(){var e=x.H,t=e.useState()[0];return t=typeof t.then=="function"?Pl(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Ce.flags|=1024),t}function fu(){var e=rs!==0;return rs=0,e}function du(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function hu(e){if(ls){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ls=!1}va=0,wt=$e=Ce=null,il=!1,Fl=rs=0,ll=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Ce.memoizedState=wt=e:wt=wt.next=e,wt}function St(){if($e===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=wt===null?Ce.memoizedState:wt.next;if(t!==null)wt=t,$e=e;else{if(e===null)throw Ce.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},wt===null?Ce.memoizedState=wt=e:wt=wt.next=e}return wt}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pl(e){var t=Fl;return Fl+=1,ll===null&&(ll=[]),e=_d(ll,e,t),t=Ce,(wt===null?t.memoizedState:wt.next)===null&&(t=t.alternate,x.H=t===null||t.memoizedState===null?yh:_u),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Pl(e);if(e.$$typeof===$)return kt(e)}throw Error(s(438,String(e)))}function mu(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ce.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}),n===null&&(n=ss(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=xe;return t.index++,n}function ba(e,t){return typeof t=="function"?t(e):t}function us(e){var t=St();return pu(t,$e,e)}function pu(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var o=e.baseQueue,u=l.pending;if(u!==null){if(o!==null){var d=o.next;o.next=u.next,u.next=d}t.baseQueue=o=u,l.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=d=null,E=null,N=t,q=!1;do{var Y=N.lane&-536870913;if(Y!==N.lane?(Ue&Y)===Y:(va&Y)===Y){var z=N.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Y===Wi&&(q=!0);else if((va&z)===z){N=N.next,z===Wi&&(q=!0);continue}else Y={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},E===null?(v=E=Y,d=u):E=E.next=Y,Ce.lanes|=z,Ga|=z;Y=N.action,xi&&n(u,Y),u=N.hasEagerState?N.eagerState:n(u,Y)}else z={lane:Y,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},E===null?(v=E=z,d=u):E=E.next=z,Ce.lanes|=Y,Ga|=Y;N=N.next}while(N!==null&&N!==t);if(E===null?d=u:E.next=v,!un(u,e.memoizedState)&&(Rt=!0,q&&(n=el,n!==null)))throw n;e.memoizedState=u,e.baseState=d,e.baseQueue=E,l.lastRenderedState=u}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function yu(e){var t=St(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var d=o=o.next;do u=e(u,d.action),d=d.next;while(d!==o);un(u,t.memoizedState)||(Rt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function Bd(e,t,n){var l=Ce,o=St(),u=Qe;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!un(($e||o).memoizedState,n);if(d&&(o.memoizedState=n,Rt=!0),o=o.queue,bu(jd.bind(null,l,o,e),[e]),o.getSnapshot!==t||d||wt!==null&&wt.memoizedState.tag&1){if(l.flags|=2048,rl(9,{destroy:void 0},qd.bind(null,l,o,n,t),null),tt===null)throw Error(s(349));u||(va&127)!==0||kd(l,t,n)}return n}function kd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=ss(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qd(e,t,n,l){t.value=n,t.getSnapshot=l,Hd(t)&&Qd(e)}function jd(e,t,n){return n(function(){Hd(t)&&Qd(e)})}function Hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!un(e,n)}catch{return!0}}function Qd(e){var t=Si(e,2);t!==null&&an(t,e,2)}function gu(e){var t=Xt();if(typeof e=="function"){var n=e;if(e=n(),xi){Jt(!0);try{n()}finally{Jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t}function Yd(e,t,n,l){return e.baseState=n,pu(e,$e,typeof l=="function"?l:ba)}function Ov(e,t,n,l,o){if(ds(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};x.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,Kd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Kd(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var u=x.T,d={};x.T=d;try{var v=n(o,l),E=x.S;E!==null&&E(d,v),Vd(e,t,v)}catch(N){vu(e,t,N)}finally{u!==null&&d.types!==null&&(u.types=d.types),x.T=u}}else try{u=n(o,l),Vd(e,t,u)}catch(N){vu(e,t,N)}}function Vd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Gd(e,t,l)},function(l){return vu(e,t,l)}):Gd(e,t,n)}function Gd(e,t,n){t.status="fulfilled",t.value=n,Xd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Kd(e,n)))}function vu(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Xd(t),t=t.next;while(t!==l)}e.action=null}function Xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zd(e,t){return t}function Fd(e,t){if(Qe){var n=tt.formState;if(n!==null){e:{var l=Ce;if(Qe){if(lt){t:{for(var o=lt,u=xn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Dn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){lt=Dn(o.nextSibling),l=o.data==="F!";break e}}Ba(l)}l=!1}l&&(t=n[0])}}return n=Xt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zd,lastRenderedState:t},n.queue=l,n=hh.bind(null,Ce,l),l.dispatch=n,l=gu(!1),u=Ru.bind(null,Ce,!1,l.queue),l=Xt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Ov.bind(null,Ce,o,u,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Pd(e){var t=St();return Jd(t,$e,e)}function Jd(e,t,n){if(t=pu(e,t,Zd)[0],e=us(ba)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Pl(t)}catch(d){throw d===tl?Wr:d}else l=t;t=St();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,rl(9,{destroy:void 0},xv.bind(null,o,n),null)),[l,u,e]}function xv(e,t){e.action=t}function $d(e){var t=St(),n=$e;if(n!==null)return Jd(t,n,e);St(),t=t.memoizedState,n=St();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function rl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=ss(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Id(){return St().memoizedState}function cs(e,t,n,l){var o=Xt();Ce.flags|=e,o.memoizedState=rl(1|t,{destroy:void 0},n,l===void 0?null:l)}function fs(e,t,n,l){var o=St();l=l===void 0?null:l;var u=o.memoizedState.inst;$e!==null&&l!==null&&uu(l,$e.memoizedState.deps)?o.memoizedState=rl(t,u,n,l):(Ce.flags|=e,o.memoizedState=rl(1|t,u,n,l))}function Wd(e,t){cs(8390656,8,e,t)}function bu(e,t){fs(2048,8,e,t)}function Mv(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=ss(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function eh(e){var t=St().memoizedState;return Mv({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function th(e,t){return fs(4,2,e,t)}function nh(e,t){return fs(4,4,e,t)}function ah(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ih(e,t,n){n=n!=null?n.concat([e]):null,fs(4,4,ah.bind(null,t,e),n)}function Su(){}function lh(e,t){var n=St();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&uu(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function rh(e,t){var n=St();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&uu(t,l[1]))return l[0];if(l=e(),xi){Jt(!0);try{e()}finally{Jt(!1)}}return n.memoizedState=[l,t],l}function Eu(e,t,n){return n===void 0||(va&1073741824)!==0&&(Ue&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=sm(),Ce.lanes|=e,Ga|=e,n)}function sh(e,t,n,l){return un(n,t)?n:al.current!==null?(e=Eu(e,n,l),un(e,t)||(Rt=!0),e):(va&42)===0||(va&1073741824)!==0&&(Ue&261930)===0?(Rt=!0,e.memoizedState=n):(e=sm(),Ce.lanes|=e,Ga|=e,t)}function oh(e,t,n,l,o){var u=G.p;G.p=u!==0&&8>u?u:8;var d=x.T,v={};x.T=v,Ru(e,!1,t,n);try{var E=o(),N=x.S;if(N!==null&&N(v,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=_v(E,l);Jl(e,t,q,pn(e))}else Jl(e,t,l,pn(e))}catch(Y){Jl(e,t,{then:function(){},status:"rejected",reason:Y},pn())}finally{G.p=u,d!==null&&v.types!==null&&(d.types=v.types),x.T=d}}function Dv(){}function Tu(e,t,n,l){if(e.tag!==5)throw Error(s(476));var o=uh(e).queue;oh(e,o,t,P,n===null?Dv:function(){return ch(e),n(l)})}function uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ch(e){var t=uh(e);t.next===null&&(t=e.alternate.memoizedState),Jl(e,t.next.queue,{},pn())}function wu(){return kt(hr)}function fh(){return St().memoizedState}function dh(){return St().memoizedState}function Nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pn();e=ja(n);var l=Ha(t,e,n);l!==null&&(an(l,t,n),Gl(l,t,n)),t={cache:Io()},e.payload=t;return}t=t.return}}function zv(e,t,n){var l=pn();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ds(e)?mh(t,n):(n=Qo(e,t,n,l),n!==null&&(an(n,e,l),ph(n,t,l)))}function hh(e,t,n){var l=pn();Jl(e,t,n,l)}function Jl(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ds(e))mh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,v=u(d,n);if(o.hasEagerState=!0,o.eagerState=v,un(v,d))return Xr(e,t,o,0),tt===null&&Gr(),!1}catch{}if(n=Qo(e,t,o,l),n!==null)return an(n,e,l),ph(n,t,l),!0}return!1}function Ru(e,t,n,l){if(l={lane:2,revertLane:nc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ds(e)){if(t)throw Error(s(479))}else t=Qo(e,n,l,2),t!==null&&an(t,e,2)}function ds(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function mh(e,t){il=ls=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,S(e,n)}}var $l={readContext:kt,use:os,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};$l.useEffectEvent=ht;var yh={readContext:kt,use:os,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Wd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,cs(4194308,4,ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Xt();t=t===void 0?null:t;var l=e();if(xi){Jt(!0);try{e()}finally{Jt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Xt();if(n!==void 0){var o=n(t);if(xi){Jt(!0);try{n(t)}finally{Jt(!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=zv.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=gu(e);var t=e.queue,n=hh.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Su,useDeferredValue:function(e,t){var n=Xt();return Eu(n,e,t)},useTransition:function(){var e=gu(!1);return e=oh.bind(null,Ce,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ce,o=Xt();if(Qe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),tt===null)throw Error(s(349));(Ue&127)!==0||kd(l,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Wd(jd.bind(null,l,u,e),[e]),l.flags|=2048,rl(9,{destroy:void 0},qd.bind(null,l,u,n,t),null),n},useId:function(){var e=Xt(),t=tt.identifierPrefix;if(Qe){var n=In,l=$n;n=(l&~(1<<32-Ct(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=rs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Av++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wu,useFormState:Fd,useActionState:Fd,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ru.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:mu,useCacheRefresh:function(){return Xt().memoizedState=Nv.bind(null,Ce)},useEffectEvent:function(e){var t=Xt(),n={impl:e};return t.memoizedState=n,function(){if((Ze&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},_u={readContext:kt,use:os,useCallback:lh,useContext:kt,useEffect:bu,useImperativeHandle:ih,useInsertionEffect:th,useLayoutEffect:nh,useMemo:rh,useReducer:us,useRef:Id,useState:function(){return us(ba)},useDebugValue:Su,useDeferredValue:function(e,t){var n=St();return sh(n,$e.memoizedState,e,t)},useTransition:function(){var e=us(ba)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Pl(e),t]},useSyncExternalStore:Bd,useId:fh,useHostTransitionStatus:wu,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var n=St();return Yd(n,$e,e,t)},useMemoCache:mu,useCacheRefresh:dh};_u.useEffectEvent=eh;var gh={readContext:kt,use:os,useCallback:lh,useContext:kt,useEffect:bu,useImperativeHandle:ih,useInsertionEffect:th,useLayoutEffect:nh,useMemo:rh,useReducer:yu,useRef:Id,useState:function(){return yu(ba)},useDebugValue:Su,useDeferredValue:function(e,t){var n=St();return $e===null?Eu(n,e,t):sh(n,$e.memoizedState,e,t)},useTransition:function(){var e=yu(ba)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Pl(e),t]},useSyncExternalStore:Bd,useId:fh,useHostTransitionStatus:wu,useFormState:$d,useActionState:$d,useOptimistic:function(e,t){var n=St();return $e!==null?Yd(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:mu,useCacheRefresh:dh};gh.useEffectEvent=eh;function Au(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cu={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=pn(),o=ja(l);o.payload=t,n!=null&&(o.callback=n),t=Ha(e,o,l),t!==null&&(an(t,e,l),Gl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=pn(),o=ja(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ha(e,o,l),t!==null&&(an(t,e,l),Gl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pn(),l=ja(n);l.tag=2,t!=null&&(l.callback=t),t=Ha(e,l,n),t!==null&&(an(t,e,n),Gl(t,e,n))}};function vh(e,t,n,l,o,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,d):t.prototype&&t.prototype.isPureReactComponent?!kl(n,l)||!kl(o,u):!0}function bh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Cu.enqueueReplaceState(t,t.state,null)}function Mi(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Sh(e){Vr(e)}function Eh(e){console.error(e)}function Th(e){Vr(e)}function hs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function wh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ou(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){hs(e,t)},n}function Rh(e){return e=ja(e),e.tag=3,e}function _h(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;e.payload=function(){return o(u)},e.callback=function(){wh(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){wh(t,n,l),typeof o!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function Uv(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Ii(t,n,o,!0),n=fn.current,n!==null){switch(n.tag){case 31:case 13:return Mn===null?_s():n.alternate===null&&mt===0&&(mt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===es?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Wu(e,l,o)),!1;case 22:return n.flags|=65536,l===es?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Wu(e,l,o)),!1}throw Error(s(435,n.tag))}return Wu(e,l,o),_s(),!1}if(Qe)return t=fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Zo&&(e=Error(s(422),{cause:l}),Hl(An(e,n)))):(l!==Zo&&(t=Error(s(423),{cause:l}),Hl(An(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=An(l,n),o=Ou(e.stateNode,l,o),iu(e,o),mt!==4&&(mt=2)),!1;var u=Error(s(520),{cause:l});if(u=An(u,n),lr===null?lr=[u]:lr.push(u),mt!==4&&(mt=2),t===null)return!0;l=An(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Ou(n.stateNode,l,e),iu(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xa===null||!Xa.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Rh(o),_h(o,e,n,l),iu(n,o),!1}n=n.return}while(n!==null);return!1}var xu=Error(s(461)),Rt=!1;function qt(e,t,n,l){t.child=e===null?xd(t,null,n,l):Oi(t,e.child,n,l)}function Ah(e,t,n,l,o){n=n.render;var u=t.ref;if("ref"in l){var d={};for(var v in l)v!=="ref"&&(d[v]=l[v])}else d=l;return Ri(t),l=cu(e,t,n,d,u,o),v=fu(),e!==null&&!Rt?(du(e,t,o),Sa(e,t,o)):(Qe&&v&&Go(t),t.flags|=1,qt(e,t,l,o),t.child)}function Ch(e,t,n,l,o){if(e===null){var u=n.type;return typeof u=="function"&&!Yo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Oh(e,t,u,l,o)):(e=Fr(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ku(e,o)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:kl,n(d,l)&&e.ref===t.ref)return Sa(e,t,o)}return t.flags|=1,e=ma(u,l),e.ref=t.ref,e.return=t,t.child=e}function Oh(e,t,n,l,o){if(e!==null){var u=e.memoizedProps;if(kl(u,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=u,ku(e,o))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,Sa(e,t,o)}return Mu(e,t,n,l,o)}function xh(e,t,n,l){var o=l.children,u=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(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,t.child=null;return Mh(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ir(t,u!==null?u.cachePool:null),u!==null?Nd(t,u):ru(),zd(t);else return l=t.lanes=536870912,Mh(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Ir(t,u.cachePool),Nd(t,u),Ya(),t.memoizedState=null):(e!==null&&Ir(t,null),ru(),Ya());return qt(e,t,o,n),t.child}function Il(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mh(e,t,n,l,o){var u=eu();return u=u===null?null:{parent:Tt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ir(t,null),ru(),zd(t),e!==null&&Ii(e,t,l,!0),t.childLanes=o,null}function ms(e,t){return t=ys({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dh(e,t,n){return Oi(t,e.child,null,n),e=ms(t,t.pendingProps),e.flags|=2,dn(t),t.memoizedState=null,e}function Lv(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Qe){if(l.mode==="hidden")return e=ms(t,l),t.lanes=536870912,Il(null,e);if(ou(t),(e=lt)?(e=Km(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:$n,overflow:In}:null,retryLane:536870912,hydrationErrors:null},n=md(e),n.return=t,t.child=n,Bt=t,lt=null)):e=null,e===null)throw Ba(t);return t.lanes=536870912,null}return ms(t,l)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(ou(t),o)if(t.flags&256)t.flags&=-257,t=Dh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Rt||Ii(e,t,n,!1),o=(n&e.childLanes)!==0,Rt||o){if(l=tt,l!==null&&(d=A(l,n),d!==0&&d!==u.retryLane))throw u.retryLane=d,Si(e,d),an(l,e,d),xu;_s(),t=Dh(e,t,n)}else e=u.treeContext,lt=Dn(d.nextSibling),Bt=t,Qe=!0,La=null,xn=!1,e!==null&&gd(t,e),t=ms(t,l),t.flags|=4096;return t}return e=ma(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ps(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Mu(e,t,n,l,o){return Ri(t),n=cu(e,t,n,l,void 0,o),l=fu(),e!==null&&!Rt?(du(e,t,o),Sa(e,t,o)):(Qe&&l&&Go(t),t.flags|=1,qt(e,t,n,o),t.child)}function Nh(e,t,n,l,o,u){return Ri(t),t.updateQueue=null,n=Ld(t,l,n,o),Ud(e),l=fu(),e!==null&&!Rt?(du(e,t,u),Sa(e,t,u)):(Qe&&l&&Go(t),t.flags|=1,qt(e,t,n,u),t.child)}function zh(e,t,n,l,o){if(Ri(t),t.stateNode===null){var u=Fi,d=n.contextType;typeof d=="object"&&d!==null&&(u=kt(d)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Cu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},nu(t),d=n.contextType,u.context=typeof d=="object"&&d!==null?kt(d):Fi,u.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Au(t,n,d,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&Cu.enqueueReplaceState(u,u.state,null),Zl(t,l,u,o),Xl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,E=Mi(n,v);u.props=E;var N=u.context,q=n.contextType;d=Fi,typeof q=="object"&&q!==null&&(d=kt(q));var Y=n.getDerivedStateFromProps;q=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||N!==d)&&bh(t,u,l,d),qa=!1;var z=t.memoizedState;u.state=z,Zl(t,l,u,o),Xl(),N=t.memoizedState,v||z!==N||qa?(typeof Y=="function"&&(Au(t,n,Y,l),N=t.memoizedState),(E=qa||vh(t,n,E,l,z,N,d))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),u.props=l,u.state=N,u.context=d,l=E):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,au(e,t),d=t.memoizedProps,q=Mi(n,d),u.props=q,Y=t.pendingProps,z=u.context,N=n.contextType,E=Fi,typeof N=="object"&&N!==null&&(E=kt(N)),v=n.getDerivedStateFromProps,(N=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==Y||z!==E)&&bh(t,u,l,E),qa=!1,z=t.memoizedState,u.state=z,Zl(t,l,u,o),Xl();var L=t.memoizedState;d!==Y||z!==L||qa||e!==null&&e.dependencies!==null&&Jr(e.dependencies)?(typeof v=="function"&&(Au(t,n,v,l),L=t.memoizedState),(q=qa||vh(t,n,q,l,z,L,E)||e!==null&&e.dependencies!==null&&Jr(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,L,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,L,E)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),u.props=l,u.state=L,u.context=E,l=q):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,ps(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Oi(t,e.child,null,o),t.child=Oi(t,null,n,o)):qt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=Sa(e,t,o),e}function Uh(e,t,n,l){return Ti(),t.flags|=256,qt(e,t,n,l),t.child}var Du={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(e){return{baseLanes:e,cachePool:wd()}}function zu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=mn),e}function Lh(e,t,n){var l=t.pendingProps,o=!1,u=(t.flags&128)!==0,d;if((d=u)||(d=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),d&&(o=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Qe){if(o?Qa(t):Ya(),(e=lt)?(e=Km(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:$n,overflow:In}:null,retryLane:536870912,hydrationErrors:null},n=md(e),n.return=t,t.child=n,Bt=t,lt=null)):e=null,e===null)throw Ba(t);return pc(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,o?(Ya(),o=t.mode,v=ys({mode:"hidden",children:v},o),l=Ei(l,o,n,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Nu(n),l.childLanes=zu(e,d,n),t.memoizedState=Du,Il(null,l)):(Qa(t),Uu(t,v))}var E=e.memoizedState;if(E!==null&&(v=E.dehydrated,v!==null)){if(u)t.flags&256?(Qa(t),t.flags&=-257,t=Lu(e,t,n)):t.memoizedState!==null?(Ya(),t.child=e.child,t.flags|=128,t=null):(Ya(),v=l.fallback,o=t.mode,l=ys({mode:"visible",children:l.children},o),v=Ei(v,o,n,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,Oi(t,e.child,null,n),l=t.child,l.memoizedState=Nu(n),l.childLanes=zu(e,d,n),t.memoizedState=Du,t=Il(null,l));else if(Qa(t),pc(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var N=d.dgst;d=N,l=Error(s(419)),l.stack="",l.digest=d,Hl({value:l,source:null,stack:null}),t=Lu(e,t,n)}else if(Rt||Ii(e,t,n,!1),d=(n&e.childLanes)!==0,Rt||d){if(d=tt,d!==null&&(l=A(d,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,Si(e,l),an(d,e,l),xu;mc(v)||_s(),t=Lu(e,t,n)}else mc(v)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,lt=Dn(v.nextSibling),Bt=t,Qe=!0,La=null,xn=!1,e!==null&&gd(t,e),t=Uu(t,l.children),t.flags|=4096);return t}return o?(Ya(),v=l.fallback,o=t.mode,E=e.child,N=E.sibling,l=ma(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,N!==null?v=ma(N,v):(v=Ei(v,o,n,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,Il(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Nu(n):(o=v.cachePool,o!==null?(E=Tt._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=wd(),v={baseLanes:v.baseLanes|n,cachePool:o}),l.memoizedState=v,l.childLanes=zu(e,d,n),t.memoizedState=Du,Il(e.child,l)):(Qa(t),n=e.child,e=n.sibling,n=ma(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Uu(e,t){return t=ys({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ys(e,t){return e=cn(22,e,null,t),e.lanes=0,e}function Lu(e,t,n){return Oi(t,e.child,null,n),e=Uu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Jo(e.return,t,n)}function Bu(e,t,n,l,o,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=o,d.treeForkCount=u)}function kh(e,t,n){var l=t.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var d=bt.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,H(bt,d),qt(e,t,l,n),l=Qe?jl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bh(e,n,t);else if(e.tag===19)Bh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&is(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bu(t,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&is(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bu(t,!0,n,null,u,l);break;case"together":Bu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Sa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ga|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ii(e,t,n,!1),(n&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,n=ma(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ma(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Jr(e)))}function Bv(e,t,n){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),ka(t,Tt,e.memoizedState.cache),Ti();break;case 27:case 5:bn(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:ka(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ou(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Qa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Lh(e,t,n):(Qa(t),e=Sa(e,t,n),e!==null?e.sibling:null);Qa(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Ii(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return kh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(bt,bt.current),l)break;return null;case 22:return t.lanes=0,xh(e,t,n,t.pendingProps);case 24:ka(t,Tt,e.memoizedState.cache)}return Sa(e,t,n)}function qh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!ku(e,n)&&(t.flags&128)===0)return Rt=!1,Bv(e,t,n);Rt=(e.flags&131072)!==0}else Rt=!1,Qe&&(t.flags&1048576)!==0&&yd(t,jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ai(t.elementType),t.type=e,typeof e=="function")Yo(e)?(l=Mi(e,l),t.tag=1,t=zh(null,t,e,l,n)):(t.tag=0,t=Mu(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===be){t.tag=11,t=Ah(null,t,e,l,n);break e}else if(o===C){t.tag=14,t=Ch(null,t,e,l,n);break e}}throw t=Ke(e)||e,Error(s(306,t,""))}}return t;case 0:return Mu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Mi(l,t.pendingProps),zh(e,t,l,o,n);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;o=u.element,au(e,t),Zl(t,l,null,n);var d=t.memoizedState;if(l=d.cache,ka(t,Tt,l),l!==u.cache&&$o(t,[Tt],n,!0),Xl(),l=d.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Uh(e,t,l,n);break e}else if(l!==o){o=An(Error(s(424)),t),Hl(o),t=Uh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,lt=Dn(e.firstChild),Bt=t,Qe=!0,La=null,xn=!0,n=xd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ti(),l===o){t=Sa(e,t,n);break e}qt(e,t,l,n)}t=t.child}return t;case 26:return ps(e,t),e===null?(n=Pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Qe||(n=t.type,e=t.pendingProps,l=Ns(ue.current).createElement(n),l[te]=t,l[ae]=e,jt(l,n,e),st(l),t.stateNode=l):t.memoizedState=Pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return bn(t),e===null&&Qe&&(l=t.stateNode=Xm(t.type,t.pendingProps,ue.current),Bt=t,xn=!0,o=lt,Ja(t.type)?(yc=o,lt=Dn(l.firstChild)):lt=o),qt(e,t,t.pendingProps.children,n),ps(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qe&&((o=l=lt)&&(l=d0(l,t.type,t.pendingProps,xn),l!==null?(t.stateNode=l,Bt=t,lt=Dn(l.firstChild),xn=!1,o=!0):o=!1),o||Ba(t)),bn(t),o=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,l=u.children,fc(o,u)?l=null:d!==null&&fc(o,d)&&(t.flags|=32),t.memoizedState!==null&&(o=cu(e,t,Cv,null,null,n),hr._currentValue=o),ps(e,t),qt(e,t,l,n),t.child;case 6:return e===null&&Qe&&((e=n=lt)&&(n=h0(n,t.pendingProps,xn),n!==null?(t.stateNode=n,Bt=t,lt=null,e=!0):e=!1),e||Ba(t)),null;case 13:return Lh(e,t,n);case 4:return Ee(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Oi(t,null,l,n):qt(e,t,l,n),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,n);case 7:return qt(e,t,t.pendingProps,n),t.child;case 8:return qt(e,t,t.pendingProps.children,n),t.child;case 12:return qt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,ka(t,t.type,l.value),qt(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Ri(t),o=kt(o),l=l(o),t.flags|=1,qt(e,t,l,n),t.child;case 14:return Ch(e,t,t.type,t.pendingProps,n);case 15:return Oh(e,t,t.type,t.pendingProps,n);case 19:return kh(e,t,n);case 31:return Lv(e,t,n);case 22:return xh(e,t,n,t.pendingProps);case 24:return Ri(t),l=kt(Tt),e===null?(o=eu(),o===null&&(o=tt,u=Io(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:l,cache:o},nu(t),ka(t,Tt,o)):((e.lanes&n)!==0&&(au(e,t),Zl(t,null,null,n),Xl()),o=e.memoizedState,u=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ka(t,Tt,l)):(l=u.cache,ka(t,Tt,l),l!==o.cache&&$o(t,[Tt],n,!0))),qt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Ea(e){e.flags|=4}function qu(e,t,n,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(fm())e.flags|=8192;else throw Ci=es,tu}else e.flags&=-16777217}function jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t))if(fm())e.flags|=8192;else throw Ci=es,tu}function gs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gt():536870912,e.lanes|=t,cl|=t)}function Wl(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=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;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function kv(e,t,n){var l=t.pendingProps;switch(Xo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return rt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ga(Tt),Fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($i(t)?Ea(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fo())),rt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Ea(t),u!==null?(rt(t),jh(t,u)):(rt(t),qu(t,o,null,l,n))):u?u!==e.memoizedState?(Ea(t),rt(t),jh(t,u)):(rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ea(t),rt(t),qu(t,o,e,l,n)),null;case 27:if(kn(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ea(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return rt(t),null}e=F.current,$i(t)?vd(t):(e=Xm(o,l,n),t.stateNode=e,Ea(t))}return rt(t),null;case 5:if(kn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ea(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return rt(t),null}if(u=F.current,$i(t))vd(t);else{var d=Ns(ue.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?d.createElement(o,{is:l.is}):d.createElement(o)}}u[te]=t,u[ae]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=u;e:switch(jt(u,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&&Ea(t)}}return rt(t),qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Ea(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,$i(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=Bt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[te]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Lm(e.nodeValue,n)),e||Ba(t,!0)}else e=Ns(e).createTextNode(l),e[te]=t,t.stateNode=e}return rt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=$i(t),n!==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[te]=t}else Ti(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),e=!1}else n=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(dn(t),t):(dn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return rt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=$i(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[te]=t}else Ti(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),o=!1}else o=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(dn(t),t):(dn(t),null)}return dn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gs(t,t.updateQueue),rt(t),null);case 4:return Fe(),e===null&&rc(t.stateNode.containerInfo),rt(t),null;case 10:return ga(t.type),rt(t),null;case 19:if(k(bt),l=t.memoizedState,l===null)return rt(t),null;if(o=(t.flags&128)!==0,u=l.rendering,u===null)if(o)Wl(l,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=is(e),u!==null){for(t.flags|=128,Wl(l,!1),e=u.updateQueue,t.updateQueue=e,gs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hd(n,e),n=n.sibling;return H(bt,bt.current&1|2),Qe&&pa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ut()>Ts&&(t.flags|=128,o=!0,Wl(l,!1),t.lanes=4194304)}else{if(!o)if(e=is(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,gs(t,e),Wl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!Qe)return rt(t),null}else 2*ut()-l.renderingStartTime>Ts&&n!==536870912&&(t.flags|=128,o=!0,Wl(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ut(),e.sibling=null,n=bt.current,H(bt,o?n&1|2:n&1),Qe&&pa(t,l.treeForkCount),e):(rt(t),null);case 22:case 23:return dn(t),su(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),n=t.updateQueue,n!==null&&gs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&k(_i),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ga(Tt),rt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function qv(e,t){switch(Xo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(Tt),Fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kn(t),null;case 31:if(t.memoizedState!==null){if(dn(t),t.alternate===null)throw Error(s(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(dn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(bt),null;case 4:return Fe(),null;case 10:return ga(t.type),null;case 22:case 23:return dn(t),su(),e!==null&&k(_i),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ga(Tt),null;case 25:return null;default:return null}}function Hh(e,t){switch(Xo(t),t.tag){case 3:ga(Tt),Fe();break;case 26:case 27:case 5:kn(t);break;case 4:Fe();break;case 31:t.memoizedState!==null&&dn(t);break;case 13:dn(t);break;case 19:k(bt);break;case 10:ga(t.type);break;case 22:case 23:dn(t),su(),e!==null&&k(_i);break;case 24:ga(Tt)}}function er(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var u=n.create,d=n.inst;l=u(),d.destroy=l}n=n.next}while(n!==o)}}catch(v){Je(t,t.return,v)}}function Ka(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&e)===e){var d=l.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,o=t;var E=n,N=v;try{N()}catch(q){Je(o,E,q)}}}l=l.next}while(l!==u)}}catch(q){Je(t,t.return,q)}}function Qh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Dd(t,n)}catch(l){Je(e,e.return,l)}}}function Yh(e,t,n){n.props=Mi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Je(e,t,l)}}function tr(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){Je(e,t,o)}}function Wn(e,t){var n=e.ref,l=e.refCleanup;if(n!==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 n=="function")try{n(null)}catch(o){Je(e,t,o)}else n.current=null}function Kh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Je(e,e.return,o)}}function ju(e,t,n){try{var l=e.stateNode;r0(l,e.type,n,t),l[ae]=t}catch(o){Je(e,e.return,o)}}function Vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ja(e.type)||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vh(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&&Ja(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 Qu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=da));else if(l!==4&&(l===27&&Ja(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qu(e,t,n),e=e.sibling;e!==null;)Qu(e,t,n),e=e.sibling}function vs(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Ja(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}function Gh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);jt(t,l,n),t[te]=e,t[ae]=n}catch(u){Je(e,e.return,u)}}var Ta=!1,_t=!1,Yu=!1,Xh=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function jv(e,t){if(e=e.containerInfo,uc=js,e=id(e),Lo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,v=-1,E=-1,N=0,q=0,Y=e,z=null;t:for(;;){for(var L;Y!==n||o!==0&&Y.nodeType!==3||(v=d+o),Y!==u||l!==0&&Y.nodeType!==3||(E=d+l),Y.nodeType===3&&(d+=Y.nodeValue.length),(L=Y.firstChild)!==null;)z=Y,Y=L;for(;;){if(Y===e)break t;if(z===n&&++N===o&&(v=d),z===u&&++q===l&&(E=d),(L=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=L}n=v===-1||E===-1?null:{start:v,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(cc={focusedElem:e,selectionRange:n},js=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,u=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(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var ie=Mi(n.type,o);e=l.getSnapshotBeforeUpdate(ie,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Je(n,n.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)hc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hc(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,Nt=e;break}Nt=t.return}}function Zh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Ra(e,n),l&4&&er(5,n);break;case 1:if(Ra(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Je(n,n.return,d)}else{var o=Mi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Je(n,n.return,d)}}l&64&&Qh(n),l&512&&tr(n,n.return);break;case 3:if(Ra(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Dd(e,t)}catch(d){Je(n,n.return,d)}}break;case 27:t===null&&l&4&&Gh(n);case 26:case 5:Ra(e,n),t===null&&l&4&&Kh(n),l&512&&tr(n,n.return);break;case 12:Ra(e,n);break;case 31:Ra(e,n),l&4&&Jh(e,n);break;case 13:Ra(e,n),l&4&&$h(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Fv.bind(null,n),m0(e,n))));break;case 22:if(l=n.memoizedState!==null||Ta,!l){t=t!==null&&t.memoizedState!==null||_t,o=Ta;var u=_t;Ta=l,(_t=t)&&!u?_a(e,n,(n.subtreeFlags&8772)!==0):Ra(e,n),Ta=o,_t=u}break;case 30:break;default:Ra(e,n)}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ft(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 ot=null,Wt=!1;function wa(e,t,n){for(n=n.child;n!==null;)Ph(e,t,n),n=n.sibling}function Ph(e,t,n){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(oa,n)}catch{}switch(n.tag){case 26:_t||Wn(n,t),wa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:_t||Wn(n,t);var l=ot,o=Wt;Ja(n.type)&&(ot=n.stateNode,Wt=!1),wa(e,t,n),cr(n.stateNode),ot=l,Wt=o;break;case 5:_t||Wn(n,t);case 6:if(l=ot,o=Wt,ot=null,wa(e,t,n),ot=l,Wt=o,ot!==null)if(Wt)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(n.stateNode)}catch(u){Je(n,t,u)}else try{ot.removeChild(n.stateNode)}catch(u){Je(n,t,u)}break;case 18:ot!==null&&(Wt?(e=ot,Qm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vl(e)):Qm(ot,n.stateNode));break;case 4:l=ot,o=Wt,ot=n.stateNode.containerInfo,Wt=!0,wa(e,t,n),ot=l,Wt=o;break;case 0:case 11:case 14:case 15:Ka(2,n,t),_t||Ka(4,n,t),wa(e,t,n);break;case 1:_t||(Wn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Yh(n,t,l)),wa(e,t,n);break;case 21:wa(e,t,n);break;case 22:_t=(l=_t)||n.memoizedState!==null,wa(e,t,n),_t=l;break;default:wa(e,t,n)}}function Jh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vl(e)}catch(n){Je(t,t.return,n)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vl(e)}catch(n){Je(t,t.return,n)}}function Hv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xh),t;default:throw Error(s(435,e.tag))}}function bs(e,t){var n=Hv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Pv.bind(null,e,l);l.then(o,o)}})}function en(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Ja(v.type)){ot=v.stateNode,Wt=!1;break e}break;case 5:ot=v.stateNode,Wt=!1;break e;case 3:case 4:ot=v.stateNode.containerInfo,Wt=!0;break e}v=v.return}if(ot===null)throw Error(s(160));Ph(u,d,o),ot=null,Wt=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ih(t,e),t=t.sibling}var Gn=null;function Ih(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(t,e),tn(e),l&4&&(Ka(3,e,e.return),er(3,e),Ka(5,e,e.return));break;case 1:en(t,e),tn(e),l&512&&(_t||n===null||Wn(n,n.return)),l&64&&Ta&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=Gn;if(en(t,e),tn(e),l&512&&(_t||n===null||Wn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[ct]||u[te]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),jt(u,l,n),u[te]=e,st(u),l=u;break e;case"link":var d=Im("link","href",o).get(l+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(u=d[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break t}}u=o.createElement(l),jt(u,l,n),o.head.appendChild(u);break;case"meta":if(d=Im("meta","content",o).get(l+(n.content||""))){for(v=0;v<d.length;v++)if(u=d[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break t}}u=o.createElement(l),jt(u,l,n),o.head.appendChild(u);break;default:throw Error(s(468,l))}u[te]=e,st(u),l=u}e.stateNode=l}else Wm(o,e.type,e.stateNode);else e.stateNode=$m(o,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Wm(o,e.type,e.stateNode):$m(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ju(e,e.memoizedProps,n.memoizedProps)}break;case 27:en(t,e),tn(e),l&512&&(_t||n===null||Wn(n,n.return)),n!==null&&l&4&&ju(e,e.memoizedProps,n.memoizedProps);break;case 5:if(en(t,e),tn(e),l&512&&(_t||n===null||Wn(n,n.return)),e.flags&32){o=e.stateNode;try{Qi(o,"")}catch(ie){Je(e,e.return,ie)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,ju(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Yu=!0);break;case 6:if(en(t,e),tn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){Je(e,e.return,ie)}}break;case 3:if(Ls=null,o=Gn,Gn=zs(t.containerInfo),en(t,e),Gn=o,tn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(t.containerInfo)}catch(ie){Je(e,e.return,ie)}Yu&&(Yu=!1,Wh(e));break;case 4:l=Gn,Gn=zs(e.stateNode.containerInfo),en(t,e),tn(e),Gn=l;break;case 12:en(t,e),tn(e);break;case 31:en(t,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,bs(e,l)));break;case 13:en(t,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Es=ut()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,bs(e,l)));break;case 22:o=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,N=Ta,q=_t;if(Ta=N||o,_t=q||E,en(t,e),_t=q,Ta=N,tn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||E||Ta||_t||Di(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(u=E.stateNode,o)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=E.stateNode;var Y=E.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ie){Je(E,E.return,ie)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(ie){Je(E,E.return,ie)}}}else if(t.tag===18){if(n===null){E=t;try{var L=E.stateNode;o?Ym(L,!0):Ym(E.stateNode,!1)}catch(ie){Je(E,E.return,ie)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,bs(e,n))));break;case 19:en(t,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,bs(e,l)));break;case 30:break;case 21:break;default:en(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Vh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,u=Hu(e);vs(e,u,o);break;case 5:var d=n.stateNode;n.flags&32&&(Qi(d,""),n.flags&=-33);var v=Hu(e);vs(e,v,d);break;case 3:case 4:var E=n.stateNode.containerInfo,N=Hu(e);Qu(e,N,E);break;default:throw Error(s(161))}}catch(q){Je(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ra(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zh(e,t.alternate,t),t=t.sibling}function Di(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ka(4,t,t.return),Di(t);break;case 1:Wn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Yh(t,t.return,n),Di(t);break;case 27:cr(t.stateNode);case 26:case 5:Wn(t,t.return),Di(t);break;case 22:t.memoizedState===null&&Di(t);break;case 30:Di(t);break;default:Di(t)}e=e.sibling}}function _a(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,u=t,d=u.flags;switch(u.tag){case 0:case 11:case 15:_a(o,u,n),er(4,u);break;case 1:if(_a(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Je(l,l.return,N)}if(l=u,o=l.updateQueue,o!==null){var v=l.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)Md(E[o],v)}catch(N){Je(l,l.return,N)}}n&&d&64&&Qh(u),tr(u,u.return);break;case 27:Gh(u);case 26:case 5:_a(o,u,n),n&&l===null&&d&4&&Kh(u),tr(u,u.return);break;case 12:_a(o,u,n);break;case 31:_a(o,u,n),n&&d&4&&Jh(o,u);break;case 13:_a(o,u,n),n&&d&4&&$h(o,u);break;case 22:u.memoizedState===null&&_a(o,u,n),tr(u,u.return);break;case 30:break;default:_a(o,u,n)}t=t.sibling}}function Ku(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ql(n))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ql(e))}function Xn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)em(e,t,n,l),t=t.sibling}function em(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Xn(e,t,n,l),o&2048&&er(9,t);break;case 1:Xn(e,t,n,l);break;case 3:Xn(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ql(e)));break;case 12:if(o&2048){Xn(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,d=u.id,v=u.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Je(t,t.return,E)}}else Xn(e,t,n,l);break;case 31:Xn(e,t,n,l);break;case 13:Xn(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,d=t.alternate,t.memoizedState!==null?u._visibility&2?Xn(e,t,n,l):nr(e,t):u._visibility&2?Xn(e,t,n,l):(u._visibility|=2,sl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ku(d,t);break;case 24:Xn(e,t,n,l),o&2048&&Vu(t.alternate,t);break;default:Xn(e,t,n,l)}}function sl(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,d=t,v=n,E=l,N=d.flags;switch(d.tag){case 0:case 11:case 15:sl(u,d,v,E,o),er(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&2?sl(u,d,v,E,o):nr(u,d):(q._visibility|=2,sl(u,d,v,E,o)),o&&N&2048&&Ku(d.alternate,d);break;case 24:sl(u,d,v,E,o),o&&N&2048&&Vu(d.alternate,d);break;default:sl(u,d,v,E,o)}t=t.sibling}}function nr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:nr(n,l),o&2048&&Ku(l.alternate,l);break;case 24:nr(n,l),o&2048&&Vu(l.alternate,l);break;default:nr(n,l)}t=t.sibling}}var ar=8192;function ol(e,t,n){if(e.subtreeFlags&ar)for(e=e.child;e!==null;)tm(e,t,n),e=e.sibling}function tm(e,t,n){switch(e.tag){case 26:ol(e,t,n),e.flags&ar&&e.memoizedState!==null&&A0(n,Gn,e.memoizedState,e.memoizedProps);break;case 5:ol(e,t,n);break;case 3:case 4:var l=Gn;Gn=zs(e.stateNode.containerInfo),ol(e,t,n),Gn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ar,ar=16777216,ol(e,t,n),ar=l):ol(e,t,n));break;default:ol(e,t,n)}}function nm(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 ir(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Nt=l,im(l,e)}nm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)am(e),e=e.sibling}function am(e){switch(e.tag){case 0:case 11:case 15:ir(e),e.flags&2048&&Ka(9,e,e.return);break;case 3:ir(e);break;case 12:ir(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ss(e)):ir(e);break;default:ir(e)}}function Ss(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Nt=l,im(l,e)}nm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ka(8,t,t.return),Ss(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ss(t));break;default:Ss(t)}e=e.sibling}}function im(e,t){for(;Nt!==null;){var n=Nt;switch(n.tag){case 0:case 11:case 15:Ka(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ql(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Nt=l;else e:for(n=e;Nt!==null;){l=Nt;var o=l.sibling,u=l.return;if(Fh(l),l===n){Nt=null;break e}if(o!==null){o.return=u,Nt=o;break e}Nt=u}}}var Qv={getCacheForType:function(e){var t=kt(Tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return kt(Tt).controller.signal}},Yv=typeof WeakMap=="function"?WeakMap:Map,Ze=0,tt=null,Ne=null,Ue=0,Pe=0,hn=null,Va=!1,ul=!1,Gu=!1,Aa=0,mt=0,Ga=0,Ni=0,Xu=0,mn=0,cl=0,lr=null,nn=null,Zu=!1,Es=0,lm=0,Ts=1/0,ws=null,Xa=null,Ot=0,Za=null,fl=null,Ca=0,Fu=0,Pu=null,rm=null,rr=0,Ju=null;function pn(){return(Ze&2)!==0&&Ue!==0?Ue&-Ue:x.T!==null?nc():J()}function sm(){if(mn===0)if((Ue&536870912)===0||Qe){var e=ua;ua<<=1,(ua&3932160)===0&&(ua=262144),mn=e}else mn=536870912;return e=fn.current,e!==null&&(e.flags|=32),mn}function an(e,t,n){(e===tt&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(dl(e,0),Fa(e,Ue,mn,!1)),at(e,n),((Ze&2)===0||e!==tt)&&(e===tt&&((Ze&2)===0&&(Ni|=n),mt===4&&Fa(e,Ue,mn,!1)),ea(e))}function om(e,t,n){if((Ze&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||nt(e,t),o=l?Gv(e,t):Iu(e,t,!0),u=l;do{if(o===0){ul&&!l&&Fa(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Kv(n)){o=Iu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;o=lr;var E=v.current.memoizedState.isDehydrated;if(E&&(dl(v,d).flags|=256),d=Iu(v,d,!1),d!==2){if(Gu&&!E){v.errorRecoveryDisabledLanes|=u,Ni|=u,o=4;break e}u=nn,nn=o,u!==null&&(nn===null?nn=u:nn.push.apply(nn,u))}o=d}if(u=!1,o!==2)continue}}if(o===1){dl(e,0),Fa(e,t,0,!0);break}e:{switch(l=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Fa(l,t,mn,!Va);break e;case 2:nn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Es+300-ut(),10<o)){if(Fa(l,t,mn,!Va),Se(l,0,!0)!==0)break e;Ca=t,l.timeoutHandle=jm(um.bind(null,l,n,nn,ws,Zu,t,mn,Ni,cl,Va,u,"Throttled",-0,0),o);break e}um(l,n,nn,ws,Zu,t,mn,Ni,cl,Va,u,null,-0,0)}}break}while(!0);ea(e)}function um(e,t,n,l,o,u,d,v,E,N,q,Y,z,L){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:da},tm(t,u,Y);var ie=(u&62914560)===u?Es-ut():(u&4194048)===u?lm-ut():0;if(ie=C0(Y,ie),ie!==null){Ca=u,e.cancelPendingCommit=ie(gm.bind(null,e,t,u,n,l,o,d,v,E,q,Y,null,z,L)),Fa(e,u,d,!N);return}}gm(e,t,u,n,l,o,d,v,E)}function Kv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!un(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t,n,l){t&=~Xu,t&=~Ni,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var u=31-Ct(o),d=1<<u;l[u]=-1,o&=~d}n!==0&&ca(e,n,t)}function Rs(){return(Ze&6)===0?(sr(0),!1):!0}function $u(){if(Ne!==null){if(Pe===0)var e=Ne.return;else e=Ne,ya=wi=null,hu(e),nl=null,Kl=0,e=Ne;for(;e!==null;)Hh(e.alternate,e),e=e.return;Ne=null}}function dl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,u0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ca=0,$u(),tt=e,Ne=n=ma(e.current,null),Ue=t,Pe=0,hn=null,Va=!1,ul=nt(e,t),Gu=!1,cl=mn=Xu=Ni=Ga=mt=0,nn=lr=null,Zu=!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-Ct(l),u=1<<o;t|=e[o],l&=~u}return Aa=t,Gr(),n}function cm(e,t){Ce=null,x.H=$l,t===tl||t===Wr?(t=Ad(),Pe=3):t===tu?(t=Ad(),Pe=4):Pe=t===xu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,hn=t,Ne===null&&(mt=1,hs(e,An(t,e.current)))}function fm(){var e=fn.current;return e===null?!0:(Ue&4194048)===Ue?Mn===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?e===Mn:!1}function dm(){var e=x.H;return x.H=$l,e===null?$l:e}function hm(){var e=x.A;return x.A=Qv,e}function _s(){mt=4,Va||(Ue&4194048)!==Ue&&fn.current!==null||(ul=!0),(Ga&134217727)===0&&(Ni&134217727)===0||tt===null||Fa(tt,Ue,mn,!1)}function Iu(e,t,n){var l=Ze;Ze|=2;var o=dm(),u=hm();(tt!==e||Ue!==t)&&(ws=null,dl(e,t)),t=!1;var d=mt;e:do try{if(Pe!==0&&Ne!==null){var v=Ne,E=hn;switch(Pe){case 8:$u(),d=6;break e;case 3:case 2:case 9:case 6:fn.current===null&&(t=!0);var N=Pe;if(Pe=0,hn=null,hl(e,v,E,N),n&&ul){d=0;break e}break;default:N=Pe,Pe=0,hn=null,hl(e,v,E,N)}}Vv(),d=mt;break}catch(q){cm(e,q)}while(!0);return t&&e.shellSuspendCounter++,ya=wi=null,Ze=l,x.H=o,x.A=u,Ne===null&&(tt=null,Ue=0,Gr()),d}function Vv(){for(;Ne!==null;)mm(Ne)}function Gv(e,t){var n=Ze;Ze|=2;var l=dm(),o=hm();tt!==e||Ue!==t?(ws=null,Ts=ut()+500,dl(e,t)):ul=nt(e,t);e:do try{if(Pe!==0&&Ne!==null){t=Ne;var u=hn;t:switch(Pe){case 1:Pe=0,hn=null,hl(e,t,u,1);break;case 2:case 9:if(Rd(u)){Pe=0,hn=null,pm(t);break}t=function(){Pe!==2&&Pe!==9||tt!==e||(Pe=7),ea(e)},u.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:Rd(u)?(Pe=0,hn=null,pm(t)):(Pe=0,hn=null,hl(e,t,u,7));break;case 5:var d=null;switch(Ne.tag){case 26:d=Ne.memoizedState;case 5:case 27:var v=Ne;if(d?ep(d):v.stateNode.complete){Pe=0,hn=null;var E=v.sibling;if(E!==null)Ne=E;else{var N=v.return;N!==null?(Ne=N,As(N)):Ne=null}break t}}Pe=0,hn=null,hl(e,t,u,5);break;case 6:Pe=0,hn=null,hl(e,t,u,6);break;case 8:$u(),mt=6;break e;default:throw Error(s(462))}}Xv();break}catch(q){cm(e,q)}while(!0);return ya=wi=null,x.H=l,x.A=o,Ze=n,Ne!==null?0:(tt=null,Ue=0,Gr(),mt)}function Xv(){for(;Ne!==null&&!zt();)mm(Ne)}function mm(e){var t=qh(e.alternate,e,Aa);e.memoizedProps=e.pendingProps,t===null?As(e):Ne=t}function pm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Nh(n,t,t.pendingProps,t.type,void 0,Ue);break;case 11:t=Nh(n,t,t.pendingProps,t.type.render,t.ref,Ue);break;case 5:hu(t);default:Hh(n,t),t=Ne=hd(t,Aa),t=qh(n,t,Aa)}e.memoizedProps=e.pendingProps,t===null?As(e):Ne=t}function hl(e,t,n,l){ya=wi=null,hu(t),nl=null,Kl=0;var o=t.return;try{if(Uv(e,o,t,n,Ue)){mt=1,hs(e,An(n,e.current)),Ne=null;return}}catch(u){if(o!==null)throw Ne=o,u;mt=1,hs(e,An(n,e.current)),Ne=null;return}t.flags&32768?(Qe||l===1?e=!0:ul||(Ue&536870912)!==0?e=!1:(Va=e=!0,(l===2||l===9||l===3||l===6)&&(l=fn.current,l!==null&&l.tag===13&&(l.flags|=16384))),ym(t,e)):As(t)}function As(e){var t=e;do{if((t.flags&32768)!==0){ym(t,Va);return}e=t.return;var n=kv(t.alternate,t,Aa);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);mt===0&&(mt=5)}function ym(e,t){do{var n=qv(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);mt=6,Ne=null}function gm(e,t,n,l,o,u,d,v,E){e.cancelPendingCommit=null;do Cs();while(Ot!==0);if((Ze&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Ho,Yt(e,n,u,d,v,E),e===tt&&(Ne=tt=null,Ue=0),fl=t,Za=e,Ca=n,Fu=u,Pu=o,rm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jv(Ut,function(){return Tm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=x.T,x.T=null,o=G.p,G.p=2,d=Ze,Ze|=4;try{jv(e,t,n)}finally{Ze=d,G.p=o,x.T=l}}Ot=1,vm(),bm(),Sm()}}function vm(){if(Ot===1){Ot=0;var e=Za,t=fl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=x.T,x.T=null;var l=G.p;G.p=2;var o=Ze;Ze|=4;try{Ih(t,e);var u=cc,d=id(e.containerInfo),v=u.focusedElem,E=u.selectionRange;if(d!==v&&v&&v.ownerDocument&&ad(v.ownerDocument.documentElement,v)){if(E!==null&&Lo(v)){var N=E.start,q=E.end;if(q===void 0&&(q=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(q,v.value.length);else{var Y=v.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var L=z.getSelection(),ie=v.textContent.length,ve=Math.min(E.start,ie),We=E.end===void 0?ve:Math.min(E.end,ie);!L.extend&&ve>We&&(d=We,We=ve,ve=d);var O=nd(v,ve),R=nd(v,We);if(O&&R&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==R.node||L.focusOffset!==R.offset)){var D=Y.createRange();D.setStart(O.node,O.offset),L.removeAllRanges(),ve>We?(L.addRange(D),L.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),L.addRange(D))}}}}for(Y=[],L=v;L=L.parentNode;)L.nodeType===1&&Y.push({element:L,left:L.scrollLeft,top:L.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}}js=!!uc,cc=uc=null}finally{Ze=o,G.p=l,x.T=n}}e.current=t,Ot=2}}function bm(){if(Ot===2){Ot=0;var e=Za,t=fl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=x.T,x.T=null;var l=G.p;G.p=2;var o=Ze;Ze|=4;try{Zh(e,t.alternate,t)}finally{Ze=o,G.p=l,x.T=n}}Ot=3}}function Sm(){if(Ot===4||Ot===3){Ot=0,Pn();var e=Za,t=fl,n=Ca,l=rm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ot=5:(Ot=0,fl=Za=null,Em(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Xa=null),V(n),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(oa,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=x.T,o=G.p,G.p=2,x.T=null;try{for(var u=e.onRecoverableError,d=0;d<l.length;d++){var v=l[d];u(v.value,{componentStack:v.stack})}}finally{x.T=t,G.p=o}}(Ca&3)!==0&&Cs(),ea(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Ju?rr++:(rr=0,Ju=e):rr=0,sr(0)}}function Em(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ql(t)))}function Cs(){return vm(),bm(),Sm(),Tm()}function Tm(){if(Ot!==5)return!1;var e=Za,t=Fu;Fu=0;var n=V(Ca),l=x.T,o=G.p;try{G.p=32>n?32:n,x.T=null,n=Pu,Pu=null;var u=Za,d=Ca;if(Ot=0,fl=Za=null,Ca=0,(Ze&6)!==0)throw Error(s(331));var v=Ze;if(Ze|=4,am(u.current),em(u,u.current,d,n),Ze=v,sr(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(oa,u)}catch{}return!0}finally{G.p=o,x.T=l,Em(e,t)}}function wm(e,t,n){t=An(n,t),t=Ou(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(at(e,2),ea(e))}function Je(e,t,n){if(e.tag===3)wm(e,e,n);else for(;t!==null;){if(t.tag===3){wm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xa===null||!Xa.has(l))){e=An(n,e),n=Rh(2),l=Ha(t,n,2),l!==null&&(_h(n,l,t,e),at(l,2),ea(l));break}}t=t.return}}function Wu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Yv;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(n)||(Gu=!0,o.add(n),e=Zv.bind(null,e,t,n),t.then(e,e))}function Zv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tt===e&&(Ue&n)===n&&(mt===4||mt===3&&(Ue&62914560)===Ue&&300>ut()-Es?(Ze&2)===0&&dl(e,0):Xu|=n,cl===Ue&&(cl=0)),ea(e)}function Rm(e,t){t===0&&(t=gt()),e=Si(e,t),e!==null&&(at(e,t),ea(e))}function Fv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rm(e,n)}function Pv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=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),Rm(e,n)}function Jv(e,t){return fi(e,t)}var Os=null,ml=null,ec=!1,xs=!1,tc=!1,Pa=0;function ea(e){e!==ml&&e.next===null&&(ml===null?Os=ml=e:ml=ml.next=e),xs=!0,ec||(ec=!0,Iv())}function sr(e,t){if(!tc&&xs){tc=!0;do for(var n=!1,l=Os;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var d=l.suspendedLanes,v=l.pingedLanes;u=(1<<31-Ct(42|e)+1)-1,u&=o&~(d&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Om(l,u))}else u=Ue,u=Se(l,l===tt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||nt(l,u)||(n=!0,Om(l,u));l=l.next}while(n);tc=!1}}function $v(){_m()}function _m(){xs=ec=!1;var e=0;Pa!==0&&o0()&&(e=Pa);for(var t=ut(),n=null,l=Os;l!==null;){var o=l.next,u=Am(l,t);u===0?(l.next=null,n===null?Os=o:n.next=o,o===null&&(ml=n)):(n=l,(e!==0||(u&3)!==0)&&(xs=!0)),l=o}Ot!==0&&Ot!==5||sr(e),Pa!==0&&(Pa=0)}function Am(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var d=31-Ct(u),v=1<<d,E=o[d];E===-1?((v&n)===0||(v&l)!==0)&&(o[d]=yt(v,t)):E<=t&&(e.expiredLanes|=v),u&=~v}if(t=tt,n=Ue,n=Se(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&di(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&di(l),V(n)){case 2:case 8:n=Na;break;case 32:n=Ut;break;case 268435456:n=Sn;break;default:n=Ut}return l=Cm.bind(null,e),n=fi(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&di(l),e.callbackPriority=2,e.callbackNode=null,2}function Cm(e,t){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cs()&&e.callbackNode!==n)return null;var l=Ue;return l=Se(e,e===tt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(om(e,l,t),Am(e,ut()),e.callbackNode!=null&&e.callbackNode===n?Cm.bind(null,e):null)}function Om(e,t){if(Cs())return null;om(e,t,!0)}function Iv(){c0(function(){(Ze&6)!==0?fi(Jn,$v):_m()})}function nc(){if(Pa===0){var e=Wi;e===0&&(e=jn,jn<<=1,(jn&261888)===0&&(jn=256)),Pa=e}return Pa}function xm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:kr(""+e)}function Mm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Wv(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var u=xm((o[ae]||null).action),d=l.submitter;d&&(t=(t=d[ae]||null)?xm(t.formAction):d.getAttribute("formAction"),t!==null&&(u=t,d=null));var v=new Qr("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Pa!==0){var E=d?Mm(o,d):new FormData(o);Tu(n,{pending:!0,data:E,method:o.method,action:u},null,E)}}else typeof u=="function"&&(v.preventDefault(),E=d?Mm(o,d):new FormData(o),Tu(n,{pending:!0,data:E,method:o.method,action:u},u,E))},currentTarget:o}]})}}for(var ac=0;ac<jo.length;ac++){var ic=jo[ac],e0=ic.toLowerCase(),t0=ic[0].toUpperCase()+ic.slice(1);Vn(e0,"on"+t0)}Vn(sd,"onAnimationEnd"),Vn(od,"onAnimationIteration"),Vn(ud,"onAnimationStart"),Vn("dblclick","onDoubleClick"),Vn("focusin","onFocus"),Vn("focusout","onBlur"),Vn(gv,"onTransitionRun"),Vn(vv,"onTransitionStart"),Vn(bv,"onTransitionCancel"),Vn(cd,"onTransitionEnd"),wn("onMouseEnter",["mouseout","mouseover"]),wn("onMouseLeave",["mouseout","mouseover"]),wn("onPointerEnter",["pointerout","pointerover"]),wn("onPointerLeave",["pointerout","pointerover"]),Yn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var or="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(" "),n0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(or));function Dm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var d=l.length-1;0<=d;d--){var v=l[d],E=v.instance,N=v.currentTarget;if(v=v.listener,E!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(q){Vr(q)}o.currentTarget=null,u=E}else for(d=0;d<l.length;d++){if(v=l[d],E=v.instance,N=v.currentTarget,v=v.listener,E!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(q){Vr(q)}o.currentTarget=null,u=E}}}}function ze(e,t){var n=t[pe];n===void 0&&(n=t[pe]=new Set);var l=e+"__bubble";n.has(l)||(Nm(t,e,2,!1),n.add(l))}function lc(e,t,n){var l=0;t&&(l|=4),Nm(n,e,l,t)}var Ms="_reactListening"+Math.random().toString(36).slice(2);function rc(e){if(!e[Ms]){e[Ms]=!0,Qn.forEach(function(n){n!=="selectionchange"&&(n0.has(n)||lc(n,!1,e),lc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ms]||(t[Ms]=!0,lc("selectionchange",!1,t))}}function Nm(e,t,n,l){switch(sp(t)){case 2:var o=M0;break;case 8:o=D0;break;default:o=Ec}n=o.bind(null,t,n,e),o=void 0,!Ao||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function sc(e,t,n,l,o){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var v=l.stateNode.containerInfo;if(v===o)break;if(d===4)for(d=l.return;d!==null;){var E=d.tag;if((E===3||E===4)&&d.stateNode.containerInfo===o)return;d=d.return}for(;v!==null;){if(d=dt(v),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){l=u=d;continue e}v=v.parentNode}}l=l.return}kf(function(){var N=u,q=Ro(n),Y=[];e:{var z=fd.get(e);if(z!==void 0){var L=Qr,ie=e;switch(e){case"keypress":if(jr(n)===0)break e;case"keydown":case"keyup":L=Pg;break;case"focusin":ie="focus",L=Mo;break;case"focusout":ie="blur",L=Mo;break;case"beforeblur":case"afterblur":L=Mo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ig;break;case sd:case od:case ud:L=Hg;break;case cd:L=ev;break;case"scroll":case"scrollend":L=Lg;break;case"wheel":L=nv;break;case"copy":case"cut":case"paste":L=Yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Yf;break;case"toggle":case"beforetoggle":L=iv}var ve=(t&4)!==0,We=!ve&&(e==="scroll"||e==="scrollend"),O=ve?z!==null?z+"Capture":null:z;ve=[];for(var R=N,D;R!==null;){var Q=R;if(D=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||D===null||O===null||(Q=Ml(R,O),Q!=null&&ve.push(ur(R,Q,D))),We)break;R=R.return}0<ve.length&&(z=new L(z,ie,null,n,q),Y.push({event:z,listeners:ve}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",z&&n!==wo&&(ie=n.relatedTarget||n.fromElement)&&(dt(ie)||ie[se]))break e;if((L||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,L?(ie=n.relatedTarget||n.toElement,L=N,ie=ie?dt(ie):null,ie!==null&&(We=f(ie),ve=ie.tag,ie!==We||ve!==5&&ve!==27&&ve!==6)&&(ie=null)):(L=null,ie=N),L!==ie)){if(ve=Hf,Q="onMouseLeave",O="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Yf,Q="onPointerLeave",O="onPointerEnter",R="pointer"),We=L==null?z:Dt(L),D=ie==null?z:Dt(ie),z=new ve(Q,R+"leave",L,n,q),z.target=We,z.relatedTarget=D,Q=null,dt(q)===N&&(ve=new ve(O,R+"enter",ie,n,q),ve.target=D,ve.relatedTarget=We,Q=ve),We=Q,L&&ie)t:{for(ve=a0,O=L,R=ie,D=0,Q=O;Q;Q=ve(Q))D++;Q=0;for(var de=R;de;de=ve(de))Q++;for(;0<D-Q;)O=ve(O),D--;for(;0<Q-D;)R=ve(R),Q--;for(;D--;){if(O===R||R!==null&&O===R.alternate){ve=O;break t}O=ve(O),R=ve(R)}ve=null}else ve=null;L!==null&&zm(Y,z,L,ve,!1),ie!==null&&We!==null&&zm(Y,We,ie,ve,!0)}}e:{if(z=N?Dt(N):window,L=z.nodeName&&z.nodeName.toLowerCase(),L==="select"||L==="input"&&z.type==="file")var Ge=Jf;else if(Ff(z))if($f)Ge=mv;else{Ge=dv;var le=fv}else L=z.nodeName,!L||L.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&To(N.elementType)&&(Ge=Jf):Ge=hv;if(Ge&&(Ge=Ge(e,N))){Pf(Y,Ge,n,q);break e}le&&le(e,z,N),e==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&Eo(z,"number",z.value)}switch(le=N?Dt(N):window,e){case"focusin":(Ff(le)||le.contentEditable==="true")&&(Gi=le,Bo=N,ql=null);break;case"focusout":ql=Bo=Gi=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,ld(Y,n,q);break;case"selectionchange":if(yv)break;case"keydown":case"keyup":ld(Y,n,q)}var Me;if(No)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Vi?Xf(e,n)&&(Le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Le="onCompositionStart");Le&&(Kf&&n.locale!=="ko"&&(Vi||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Vi&&(Me=qf()):(za=q,Co="value"in za?za.value:za.textContent,Vi=!0)),le=Ds(N,Le),0<le.length&&(Le=new Qf(Le,e,null,n,q),Y.push({event:Le,listeners:le}),Me?Le.data=Me:(Me=Zf(n),Me!==null&&(Le.data=Me)))),(Me=rv?sv(e,n):ov(e,n))&&(Le=Ds(N,"onBeforeInput"),0<Le.length&&(le=new Qf("onBeforeInput","beforeinput",null,n,q),Y.push({event:le,listeners:Le}),le.data=Me)),Wv(Y,e,N,n,q)}Dm(Y,t)})}function ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ds(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ml(e,n),o!=null&&l.unshift(ur(e,o,u)),o=Ml(e,t),o!=null&&l.push(ur(e,o,u))),e.tag===3)return l;e=e.return}return[]}function a0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zm(e,t,n,l,o){for(var u=t._reactName,d=[];n!==null&&n!==l;){var v=n,E=v.alternate,N=v.stateNode;if(v=v.tag,E!==null&&E===l)break;v!==5&&v!==26&&v!==27||N===null||(E=N,o?(N=Ml(n,u),N!=null&&d.unshift(ur(n,N,E))):o||(N=Ml(n,u),N!=null&&d.push(ur(n,N,E)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var i0=/\r\n?/g,l0=/\u0000|\uFFFD/g;function Um(e){return(typeof e=="string"?e:""+e).replace(i0,`
|
|
10
|
+
`).replace(l0,"")}function Lm(e,t){return t=Um(t),Um(e)===t}function Ie(e,t,n,l,o,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Qi(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Qi(e,""+l);break;case"className":Kn(e,"class",l);break;case"tabIndex":Kn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,n,l);break;case"style":Lf(e,l,u);break;case"data":if(t!=="object"){Kn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=kr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ie(e,t,"name",o.name,o,null),Ie(e,t,"formEncType",o.formEncType,o,null),Ie(e,t,"formMethod",o.formMethod,o,null),Ie(e,t,"formTarget",o.formTarget,o,null)):(Ie(e,t,"encType",o.encType,o,null),Ie(e,t,"method",o.method,o,null),Ie(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=kr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=da);break;case"onScroll":l!=null&&ze("scroll",e);break;case"onScrollEnd":l!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}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}n=kr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":ze("beforetoggle",e),ze("toggle",e),vt(e,"popover",l);break;case"xlinkActuate":Lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Lt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Lt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Lt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Lt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zg.get(n)||n,vt(e,n,l))}}function oc(e,t,n,l,o,u){switch(n){case"style":Lf(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Qi(e,l):(typeof l=="number"||typeof l=="bigint")&&Qi(e,""+l);break;case"onScroll":l!=null&&ze("scroll",e);break;case"onScrollEnd":l!=null&&ze("scrollend",e);break;case"onClick":l!=null&&(e.onclick=da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!on.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[ae]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):vt(e,n,l)}}}function jt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ie(e,t,u,d,n,null)}}o&&Ie(e,t,"srcSet",n.srcSet,n,null),l&&Ie(e,t,"src",n.src,n,null);return;case"input":ze("invalid",e);var v=u=d=o=null,E=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":o=q;break;case"type":d=q;break;case"checked":E=q;break;case"defaultChecked":N=q;break;case"value":u=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:Ie(e,t,l,q,n,null)}}Df(e,u,v,E,N,d,o,!1);return;case"select":ze("invalid",e),l=d=u=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":d=v;break;case"multiple":l=v;default:Ie(e,t,o,v,n,null)}t=u,n=d,e.multiple=!!l,t!=null?Hi(e,!!l,t,!1):n!=null&&Hi(e,!!l,n,!0);return;case"textarea":ze("invalid",e),u=o=l=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":l=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ie(e,t,d,v,n,null)}zf(e,l,o,u);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ie(e,t,E,l,n,null));return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(l=0;l<or.length;l++)ze(or[l],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ie(e,t,N,l,n,null)}return;default:if(To(t)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&oc(e,t,q,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Ie(e,t,v,l,n,null))}function r0(e,t,n,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,u=null,d=null,v=null,E=null,N=null,q=null;for(L in n){var Y=n[L];if(n.hasOwnProperty(L)&&Y!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":E=Y;default:l.hasOwnProperty(L)||Ie(e,t,L,null,l,Y)}}for(var z in l){var L=l[z];if(Y=n[z],l.hasOwnProperty(z)&&(L!=null||Y!=null))switch(z){case"type":u=L;break;case"name":o=L;break;case"checked":N=L;break;case"defaultChecked":q=L;break;case"value":d=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==Y&&Ie(e,t,z,L,l,Y)}}So(e,d,v,E,N,q,u,o);return;case"select":L=d=v=z=null;for(u in n)if(E=n[u],n.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":L=E;default:l.hasOwnProperty(u)||Ie(e,t,u,null,l,E)}for(o in l)if(u=l[o],E=n[o],l.hasOwnProperty(o)&&(u!=null||E!=null))switch(o){case"value":z=u;break;case"defaultValue":v=u;break;case"multiple":d=u;default:u!==E&&Ie(e,t,o,u,l,E)}t=v,n=d,l=L,z!=null?Hi(e,!!n,z,!1):!!l!=!!n&&(t!=null?Hi(e,!!n,t,!0):Hi(e,!!n,n?[]:"",!1));return;case"textarea":L=z=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ie(e,t,v,null,l,o)}for(d in l)if(o=l[d],u=n[d],l.hasOwnProperty(d)&&(o!=null||u!=null))switch(d){case"value":z=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&Ie(e,t,d,o,l,u)}Nf(e,z,L);return;case"option":for(var ie in n)z=n[ie],n.hasOwnProperty(ie)&&z!=null&&!l.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:Ie(e,t,ie,null,l,z));for(E in l)z=l[E],L=n[E],l.hasOwnProperty(E)&&z!==L&&(z!=null||L!=null)&&(E==="selected"?e.selected=z&&typeof z!="function"&&typeof z!="symbol":Ie(e,t,E,z,l,L));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 ve in n)z=n[ve],n.hasOwnProperty(ve)&&z!=null&&!l.hasOwnProperty(ve)&&Ie(e,t,ve,null,l,z);for(N in l)if(z=l[N],L=n[N],l.hasOwnProperty(N)&&z!==L&&(z!=null||L!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:Ie(e,t,N,z,l,L)}return;default:if(To(t)){for(var We in n)z=n[We],n.hasOwnProperty(We)&&z!==void 0&&!l.hasOwnProperty(We)&&oc(e,t,We,void 0,l,z);for(q in l)z=l[q],L=n[q],!l.hasOwnProperty(q)||z===L||z===void 0&&L===void 0||oc(e,t,q,z,l,L);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!l.hasOwnProperty(O)&&Ie(e,t,O,null,l,z);for(Y in l)z=l[Y],L=n[Y],!l.hasOwnProperty(Y)||z===L||z==null&&L==null||Ie(e,t,Y,z,l,L)}function Bm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,d=o.initiatorType,v=o.duration;if(u&&v&&Bm(d)){for(d=0,v=o.responseEnd,l+=1;l<n.length;l++){var E=n[l],N=E.startTime;if(N>v)break;var q=E.transferSize,Y=E.initiatorType;q&&Bm(Y)&&(E=E.responseEnd,d+=q*(E<v?1:(v-N)/(E-N)))}if(--l,t+=8*(u+d)/(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 uc=null,cc=null;function Ns(e){return e.nodeType===9?e:e.ownerDocument}function km(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 qm(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 fc(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 dc=null;function o0(){var e=window.event;return e&&e.type==="popstate"?e===dc?!1:(dc=e,!0):(dc=null,!1)}var jm=typeof setTimeout=="function"?setTimeout:void 0,u0=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,c0=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(e){return Hm.resolve(null).then(e).catch(f0)}:jm;function f0(e){setTimeout(function(){throw e})}function Ja(e){return e==="head"}function Qm(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),vl(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")cr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,cr(n);for(var u=n.firstChild;u;){var d=u.nextSibling,v=u.nodeName;u[ct]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=d}}else n==="body"&&cr(e.ownerDocument.body);n=o}while(n);vl(t)}function Ym(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function hc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":hc(n),ft(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function d0(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ct])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==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(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function h0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Dn(e.nextSibling),e===null))return null;return e}function Km(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Dn(e.nextSibling),e===null))return null;return e}function mc(e){return e.data==="$?"||e.data==="$~"}function pc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Dn(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 yc=null;function Vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Dn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Xm(e,t,n){switch(t=Ns(n),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 cr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ft(e)}var Nn=new Map,Zm=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=G.d;G.d={f:p0,r:y0,D:g0,C:v0,L:b0,m:S0,X:T0,S:E0,M:w0};function p0(){var e=Oa.f(),t=Rs();return e||t}function y0(e){var t=qe(e);t!==null&&t.tag===5&&t.type==="form"?ch(t):Oa.r(e)}var pl=typeof document>"u"?null:document;function Fm(e,t,n){var l=pl;if(l&&typeof t=="string"&&t){var o=Rn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Zm.has(o)||(Zm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),jt(t,"link",e),st(t),l.head.appendChild(t)))}}function g0(e){Oa.D(e),Fm("dns-prefetch",e,null)}function v0(e,t){Oa.C(e,t),Fm("preconnect",e,t)}function b0(e,t,n){Oa.L(e,t,n);var l=pl;if(l&&e&&t){var o='link[rel="preload"][as="'+Rn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Rn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Rn(n.imageSizes)+'"]')):o+='[href="'+Rn(e)+'"]';var u=o;switch(t){case"style":u=yl(e);break;case"script":u=gl(e)}Nn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Nn.set(u,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(fr(u))||t==="script"&&l.querySelector(dr(u))||(t=l.createElement("link"),jt(t,"link",e),st(t),l.head.appendChild(t)))}}function S0(e,t){Oa.m(e,t);var n=pl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Rn(l)+'"][href="'+Rn(e)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=gl(e)}if(!Nn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Nn.set(u,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(dr(u)))return}l=n.createElement("link"),jt(l,"link",e),st(l),n.head.appendChild(l)}}}function E0(e,t,n){Oa.S(e,t,n);var l=pl;if(l&&e){var o=$t(l).hoistableStyles,u=yl(e);t=t||"default";var d=o.get(u);if(!d){var v={loading:0,preload:null};if(d=l.querySelector(fr(u)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Nn.get(u))&&gc(e,n);var E=d=l.createElement("link");st(E),jt(E,"link",e),E._p=new Promise(function(N,q){E.onload=N,E.onerror=q}),E.addEventListener("load",function(){v.loading|=1}),E.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Us(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:v},o.set(u,d)}}}function T0(e,t){Oa.X(e,t);var n=pl;if(n&&e){var l=$t(n).hoistableScripts,o=gl(e),u=l.get(o);u||(u=n.querySelector(dr(o)),u||(e=y({src:e,async:!0},t),(t=Nn.get(o))&&vc(e,t),u=n.createElement("script"),st(u),jt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function w0(e,t){Oa.M(e,t);var n=pl;if(n&&e){var l=$t(n).hoistableScripts,o=gl(e),u=l.get(o);u||(u=n.querySelector(dr(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Nn.get(o))&&vc(e,t),u=n.createElement("script"),st(u),jt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Pm(e,t,n,l){var o=(o=ue.current)?zs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=yl(n.href),n=$t(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=yl(n.href);var u=$t(o).hoistableStyles,d=u.get(e);if(d||(o=o.ownerDocument||o,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=o.querySelector(fr(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Nn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Nn.set(e,n),u||R0(o,e,n,d.state))),t&&l===null)throw Error(s(528,""));return d}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gl(n),n=$t(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function yl(e){return'href="'+Rn(e)+'"'}function fr(e){return'link[rel="stylesheet"]['+e+"]"}function Jm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function R0(e,t,n,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}),jt(t,"link",n),st(t),e.head.appendChild(t))}function gl(e){return'[src="'+Rn(e)+'"]'}function dr(e){return"script[async]"+e}function $m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rn(n.href)+'"]');if(l)return t.instance=l,st(l),l;var o=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),jt(l,"style",o),Us(l,n.precedence,e),t.instance=l;case"stylesheet":o=yl(n.href);var u=e.querySelector(fr(o));if(u)return t.state.loading|=4,t.instance=u,st(u),u;l=Jm(n),(o=Nn.get(o))&&gc(l,o),u=(e.ownerDocument||e).createElement("link"),st(u);var d=u;return d._p=new Promise(function(v,E){d.onload=v,d.onerror=E}),jt(u,"link",l),t.state.loading|=4,Us(u,n.precedence,e),t.instance=u;case"script":return u=gl(n.src),(o=e.querySelector(dr(u)))?(t.instance=o,st(o),o):(l=n,(o=Nn.get(u))&&(l=y({},n),vc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),st(o),jt(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,Us(l,n.precedence,e));return t.instance}function Us(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,d=0;d<l.length;d++){var v=l[d];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ls=null;function Im(e,t,n){if(Ls===null){var l=new Map,o=Ls=new Map;o.set(n,l)}else o=Ls,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[ct]||u[te]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(t)||"";d=e+d;var v=l.get(d);v?v.push(u):l.set(d,[u])}}return l}function Wm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function _0(e,t,n){if(n===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 ep(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function A0(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=yl(l.href),u=t.querySelector(fr(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Bs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,st(u);return}u=t.ownerDocument||t,l=Jm(l),(o=Nn.get(o))&&gc(l,o),u=u.createElement("link"),st(u);var d=u;d._p=new Promise(function(v,E){d.onload=v,d.onerror=E}),jt(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Bs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bc=0;function C0(e,t){return e.stylesheets&&e.count===0&&qs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&qs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&bc===0&&(bc=62500*s0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>bc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Bs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ks=null;function qs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ks=new Map,t.forEach(O0,e),ks=null,Bs.call(e))}function O0(e,t){if(!(t.state.loading&4)){var n=ks.get(e);if(n)var l=n.get(null);else{n=new Map,ks.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var d=o[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}o=t.instance,d=o.getAttribute("data-precedence"),u=n.get(d)||l,u===l&&n.set(null,o),n.set(d,o),this.count++,l=Bs.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var hr={$$typeof:$,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function x0(e,t,n,l,o,u,d,v,E){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=sn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sn(0),this.hiddenUpdates=sn(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function tp(e,t,n,l,o,u,d,v,E,N,q,Y){return e=new x0(e,t,n,d,E,N,q,Y,v),t=1,u===!0&&(t|=24),u=cn(3,null,null,t),e.current=u,u.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},nu(u),e}function np(e){return e?(e=Fi,e):Fi}function ap(e,t,n,l,o,u){o=np(o),l.context===null?l.context=o:l.pendingContext=o,l=ja(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Ha(e,l,t),n!==null&&(an(n,e,t),Gl(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sc(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=Si(e,67108864);t!==null&&an(t,e,67108864),Sc(e,67108864)}}function rp(e){if(e.tag===13||e.tag===31){var t=pn();t=U(t);var n=Si(e,t);n!==null&&an(n,e,t),Sc(e,t)}}var js=!0;function M0(e,t,n,l){var o=x.T;x.T=null;var u=G.p;try{G.p=2,Ec(e,t,n,l)}finally{G.p=u,x.T=o}}function D0(e,t,n,l){var o=x.T;x.T=null;var u=G.p;try{G.p=8,Ec(e,t,n,l)}finally{G.p=u,x.T=o}}function Ec(e,t,n,l){if(js){var o=Tc(l);if(o===null)sc(e,t,l,Hs,n),op(e,l);else if(z0(o,e,t,n,l))l.stopPropagation();else if(op(e,l),t&4&&-1<N0.indexOf(e)){for(;o!==null;){var u=qe(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=Tn(u.pendingLanes);if(d!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var E=1<<31-Ct(d);v.entanglements[1]|=E,d&=~E}ea(u),(Ze&6)===0&&(Ts=ut()+500,sr(0))}}break;case 31:case 13:v=Si(u,2),v!==null&&an(v,u,2),Rs(),Sc(u,2)}if(u=Tc(l),u===null&&sc(e,t,l,Hs,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else sc(e,t,l,null,n)}}function Tc(e){return e=Ro(e),wc(e)}var Hs=null;function wc(e){if(Hs=null,e=dt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hs=e,null}function sp(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(sa()){case Jn:return 2;case Na:return 8;case Ut:case Gt:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Rc=!1,$a=null,Ia=null,Wa=null,mr=new Map,pr=new Map,ei=[],N0="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 op(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":mr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pr.delete(t.pointerId)}}function yr(e,t,n,l,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},t!==null&&(t=qe(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function z0(e,t,n,l,o){switch(t){case"focusin":return $a=yr($a,e,t,n,l,o),!0;case"dragenter":return Ia=yr(Ia,e,t,n,l,o),!0;case"mouseover":return Wa=yr(Wa,e,t,n,l,o),!0;case"pointerover":var u=o.pointerId;return mr.set(u,yr(mr.get(u)||null,e,t,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,pr.set(u,yr(pr.get(u)||null,e,t,n,l,o)),!0}return!1}function up(e){var t=dt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,oe(e.priority,function(){rp(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,oe(e.priority,function(){rp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);wo=l,n.target.dispatchEvent(l),wo=null}else return t=qe(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function cp(e,t,n){Qs(e)&&n.delete(t)}function U0(){Rc=!1,$a!==null&&Qs($a)&&($a=null),Ia!==null&&Qs(Ia)&&(Ia=null),Wa!==null&&Qs(Wa)&&(Wa=null),mr.forEach(cp),pr.forEach(cp)}function Ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,U0)))}var Ks=null;function fp(e){Ks!==e&&(Ks=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ks===e&&(Ks=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(wc(l||n)===null)continue;break}var u=qe(n);u!==null&&(e.splice(t,3),t-=3,Tu(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function vl(e){function t(E){return Ys(E,e)}$a!==null&&Ys($a,e),Ia!==null&&Ys(Ia,e),Wa!==null&&Ys(Wa,e),mr.forEach(t),pr.forEach(t);for(var n=0;n<ei.length;n++){var l=ei[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ei.length&&(n=ei[0],n.blockedOn===null);)up(n),n.blockedOn===null&&ei.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],d=o[ae]||null;if(typeof u=="function")d||fp(n);else if(d){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,d=u[ae]||null)v=d.formAction;else if(wc(o)!==null)continue}else v=d.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),fp(n)}}}function dp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return o=d})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.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(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function _c(e){this._internalRoot=e}Vs.prototype.render=_c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=pn();ap(n,l,e,t,null,null)},Vs.prototype.unmount=_c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),Rs(),t[se]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=J();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ei.length&&t!==0&&t<ei[n].priority;n++);ei.splice(n,0,e),n===0&&up(e)}};var hp=i.version;if(hp!=="19.2.4")throw Error(s(527,hp,"19.2.4"));G.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=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var L0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{oa=Gs.inject(L0),it=Gs}catch{}}return vr.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,l="",o=Sh,u=Eh,d=Th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,l,null,o,u,d,dp),e[se]=t.current,rc(e),new _c(t)},vr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var l=!1,o="",u=Sh,d=Eh,v=Th,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=tp(e,1,!0,t,n??null,l,o,E,u,d,v,dp),t.context=np(null),n=t.current,l=pn(),l=U(l),o=ja(l),o.callback=null,Ha(n,o,l),n=l,t.current.lanes=n,at(t,n),ea(t),e[se]=t.current,rc(e),new Vs(t)},vr.version="19.2.4",vr}var wp;function X0(){if(wp)return Oc.exports;wp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Oc.exports=G0(),Oc.exports}var Z0=X0(),Rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},F0={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},P0=class{#e=F0;#t=!1;setTimeoutProvider(a){this.#e=a}setTimeout(a,i){return this.#e.setTimeout(a,i)}clearTimeout(a){this.#e.clearTimeout(a)}setInterval(a,i){return this.#e.setInterval(a,i)}clearInterval(a){this.#e.clearInterval(a)}},zi=new P0;function J0(a){setTimeout(a,0)}var Li=typeof window>"u"||"Deno"in globalThis;function Zt(){}function $0(a,i){return typeof a=="function"?a(i):a}function Qc(a){return typeof a=="number"&&a>=0&&a!==1/0}function Sy(a,i){return Math.max(a+(i||0)-Date.now(),0)}function li(a,i){return typeof a=="function"?a(i):a}function Un(a,i){return typeof a=="function"?a(i):a}function Rp(a,i){const{type:r="all",exact:s,fetchStatus:c,predicate:f,queryKey:h,stale:m}=a;if(h){if(s){if(i.queryHash!==of(h,i.options))return!1}else if(!Cr(i.queryKey,h))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||c&&c!==i.state.fetchStatus||f&&!f(i))}function _p(a,i){const{exact:r,status:s,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(r){if(Bi(i.options.mutationKey)!==Bi(f))return!1}else if(!Cr(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||c&&!c(i))}function of(a,i){return(i?.queryKeyHashFn||Bi)(a)}function Bi(a){return JSON.stringify(a,(i,r)=>Yc(r)?Object.keys(r).sort().reduce((s,c)=>(s[c]=r[c],s),{}):r)}function Cr(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(r=>Cr(a[r],i[r])):!1}var I0=Object.prototype.hasOwnProperty;function Ey(a,i,r=0){if(a===i)return a;if(r>500)return i;const s=Ap(a)&&Ap(i);if(!s&&!(Yc(a)&&Yc(i)))return i;const f=(s?a:Object.keys(a)).length,h=s?i:Object.keys(i),m=h.length,g=s?new Array(m):{};let p=0;for(let b=0;b<m;b++){const y=s?b:h[b],w=a[y],M=i[y];if(w===M){g[y]=w,(s?b<f:I0.call(a,y))&&p++;continue}if(w===null||M===null||typeof w!="object"||typeof M!="object"){g[y]=M;continue}const B=Ey(w,M,r+1);g[y]=B,B===w&&p++}return f===m&&p===f?a:g}function oo(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const r in a)if(a[r]!==i[r])return!1;return!0}function Ap(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Yc(a){if(!Cp(a))return!1;const i=a.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!Cp(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Cp(a){return Object.prototype.toString.call(a)==="[object Object]"}function W0(a){return new Promise(i=>{zi.setTimeout(i,a)})}function Kc(a,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(a,i):r.structuralSharing!==!1?Ey(a,i):i}function eb(a,i,r=0){const s=[...a,i];return r&&s.length>r?s.slice(1):s}function tb(a,i,r=0){const s=[i,...a];return r&&s.length>r?s.slice(0,-1):s}var uf=Symbol();function Ty(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===uf?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function cf(a,i){return typeof a=="function"?a(...i):!!a}function nb(a,i,r){let s=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??=i(),s||(s=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),a}var ab=class extends Rl{#e;#t;#n;constructor(){super(),this.#n=a=>{if(!Li&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},ff=new ab;function Vc(){let a,i;const r=new Promise((c,f)=>{a=c,i=f});r.status="pending",r.catch(()=>{});function s(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{s({status:"fulfilled",value:c}),a(c)},r.reject=c=>{s({status:"rejected",reason:c}),i(c)},r}var ib=J0;function lb(){let a=[],i=0,r=m=>{m()},s=m=>{m()},c=ib;const f=m=>{i?a.push(m):c(()=>{r(m)})},h=()=>{const m=a;a=[],m.length&&c(()=>{s(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||h()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{c=m}}}var xt=lb(),rb=class extends Rl{#e=!0;#t;#n;constructor(){super(),this.#n=a=>{if(!Li&&window.addEventListener){const i=()=>a(!0),r=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(r=>{r(a)}))}isOnline(){return this.#e}},uo=new rb;function sb(a){return Math.min(1e3*2**a,3e4)}function wy(a){return(a??"online")==="online"?uo.isOnline():!0}var Gc=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function Ry(a){let i=!1,r=0,s;const c=Vc(),f=()=>c.status!=="pending",h=j=>{if(!f()){const X=new Gc(j);w(X),a.onCancel?.(X)}},m=()=>{i=!0},g=()=>{i=!1},p=()=>ff.isFocused()&&(a.networkMode==="always"||uo.isOnline())&&a.canRun(),b=()=>wy(a.networkMode)&&a.canRun(),y=j=>{f()||(s?.(),c.resolve(j))},w=j=>{f()||(s?.(),c.reject(j))},M=()=>new Promise(j=>{s=X=>{(f()||p())&&j(X)},a.onPause?.()}).then(()=>{s=void 0,f()||a.onContinue?.()}),B=()=>{if(f())return;let j;const X=r===0?a.initialPromise:void 0;try{j=X??a.fn()}catch(K){j=Promise.reject(K)}Promise.resolve(j).then(y).catch(K=>{if(f())return;const Z=a.retry??(Li?0:3),$=a.retryDelay??sb,be=typeof $=="function"?$(r,K):$,me=Z===!0||typeof Z=="number"&&r<Z||typeof Z=="function"&&Z(r,K);if(i||!me){w(K);return}r++,a.onFail?.(r,K),W0(be).then(()=>p()?void 0:M()).then(()=>{i?w(K):B()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(s?.(),c),cancelRetry:m,continueRetry:g,canStart:b,start:()=>(b()?B():M().then(B),c)}}var _y=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qc(this.gcTime)&&(this.#e=zi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Li?1/0:300*1e3))}clearGcTimeout(){this.#e&&(zi.clearTimeout(this.#e),this.#e=void 0)}},ob=class extends _y{#e;#t;#n;#i;#a;#r;#s;constructor(a){super(),this.#s=!1,this.#r=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#i=a.client,this.#n=this.#i.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=xp(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#r,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=xp(this.options);i.data!==void 0&&(this.setState(Op(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,i){const r=Kc(this.state.data,a,this.options);return this.#l({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(a,i){this.#l({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>Un(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>li(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!Sy(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},c=()=>{const m=Ty(this.options,i),p=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#s=!1,this.options.persister?this.options.persister(m,p,this):m(p)},h=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return s(m),m})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#l({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=Ry({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:m=>{m instanceof Gc&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(m,g)=>{this.#l({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Gc){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#l({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#l(a){const i=r=>{switch(a.type){case"failed":return{...r,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ay(r.data,this.options),fetchMeta:a.meta??null};case"success":const s={...r,...Op(a.data,a.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=a.manual?s:void 0,s;case"error":const c=a.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...a.state}}};this.state=i(this.state),xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function Ay(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wy(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Op(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xp(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,r=i!==void 0,s=r?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ub=class extends Rl{constructor(a,i){super(),this.options=i,this.#e=a,this.#l=null,this.#s=Vc(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#r;#s;#l;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Mp(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#E(),this.#t.removeObserver(this)}setOptions(a){const i=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#t.setOptions(this.options),i._defaulted&&!oo(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Dp(this.#t,r,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==r||Un(this.options.enabled,this.#t)!==Un(i.enabled,this.#t)||li(this.options.staleTime,this.#t)!==li(i.staleTime,this.#t))&&this.#y();const c=this.#g();s&&(this.#t!==r||Un(this.options.enabled,this.#t)!==Un(i.enabled,this.#t)||c!==this.#o)&&this.#v(c)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),r=this.createResult(i,a);return fb(this,r)&&(this.#i=r,this.#r=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#i}trackResult(a,i){return new Proxy(a,{get:(r,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(a){this.#m.add(a)}getCurrentQuery(){return this.#t}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#e.defaultQueryOptions(a),r=this.#e.getQueryCache().build(this.#e,i);return r.fetch().then(()=>this.createResult(r,i))}fetch(a){return this.#f({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(a){this.#T();let i=this.#t.fetch(this.options,a);return a?.throwOnError||(i=i.catch(Zt)),i}#y(){this.#S();const a=li(this.options.staleTime,this.#t);if(Li||this.#i.isStale||!Qc(a))return;const r=Sy(this.#i.dataUpdatedAt,a)+1;this.#u=zi.setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(a){this.#E(),this.#o=a,!(Li||Un(this.options.enabled,this.#t)===!1||!Qc(this.#o)||this.#o===0)&&(this.#c=zi.setInterval(()=>{(this.options.refetchIntervalInBackground||ff.isFocused())&&this.#f()},this.#o))}#b(){this.#y(),this.#v(this.#g())}#S(){this.#u&&(zi.clearTimeout(this.#u),this.#u=void 0)}#E(){this.#c&&(zi.clearInterval(this.#c),this.#c=void 0)}createResult(a,i){const r=this.#t,s=this.options,c=this.#i,f=this.#a,h=this.#r,g=a!==r?a.state:this.#n,{state:p}=a;let b={...p},y=!1,w;if(i._optimisticResults){const W=this.hasListeners(),ge=!W&&Mp(a,i),xe=W&&Dp(a,r,i,s);(ge||xe)&&(b={...b,...Ay(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:M,errorUpdatedAt:B,status:j}=b;w=b.data;let X=!1;if(i.placeholderData!==void 0&&w===void 0&&j==="pending"){let W;c?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(W=c.data,X=!0):W=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,W!==void 0&&(j="success",w=Kc(c?.data,W,i),y=!0)}if(i.select&&w!==void 0&&!X)if(c&&w===f?.data&&i.select===this.#p)w=this.#d;else try{this.#p=i.select,w=i.select(w),w=Kc(c?.data,w,i),this.#d=w,this.#l=null}catch(W){this.#l=W}this.#l&&(M=this.#l,w=this.#d,B=Date.now(),j="error");const K=b.fetchStatus==="fetching",Z=j==="pending",$=j==="error",be=Z&&K,me=w!==void 0,C={status:j,fetchStatus:b.fetchStatus,isPending:Z,isSuccess:j==="success",isError:$,isInitialLoading:be,isLoading:be,data:w,dataUpdatedAt:b.dataUpdatedAt,error:M,errorUpdatedAt:B,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:K,isRefetching:K&&!Z,isLoadingError:$&&!me,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:$&&me,isStale:df(a,i),refetch:this.refetch,promise:this.#s,isEnabled:Un(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const W=C.data!==void 0,ge=C.status==="error"&&!W,xe=Be=>{ge?Be.reject(C.error):W&&Be.resolve(C.data)},_e=()=>{const Be=this.#s=C.promise=Vc();xe(Be)},we=this.#s;switch(we.status){case"pending":a.queryHash===r.queryHash&&xe(we);break;case"fulfilled":(ge||C.data!==we.value)&&_e();break;case"rejected":(!ge||C.error!==we.reason)&&_e();break}}return C}updateResult(){const a=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#r=this.options,this.#a.data!==void 0&&(this.#h=this.#t),oo(i,a))return;this.#i=i;const r=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(h=>{const m=h;return this.#i[m]!==a[m]&&f.has(m)})};this.#w({listeners:r()})}#T(){const a=this.#e.getQueryCache().build(this.#e,this.options);if(a===this.#t)return;const i=this.#t;this.#t=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(a){xt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cb(a,i){return Un(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function Mp(a,i){return cb(a,i)||a.state.data!==void 0&&Xc(a,i,i.refetchOnMount)}function Xc(a,i,r){if(Un(i.enabled,a)!==!1&&li(i.staleTime,a)!=="static"){const s=typeof r=="function"?r(a):r;return s==="always"||s!==!1&&df(a,i)}return!1}function Dp(a,i,r,s){return(a!==i||Un(s.enabled,a)===!1)&&(!r.suspense||a.state.status!=="error")&&df(a,r)}function df(a,i){return Un(i.enabled,a)!==!1&&a.isStaleByTime(li(i.staleTime,a))}function fb(a,i){return!oo(a.getCurrentResult(),i)}function Np(a){return{onFetch:(i,r)=>{const s=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let b=!1;const y=B=>{nb(B,()=>i.signal,()=>b=!0)},w=Ty(i.options,i.fetchOptions),M=async(B,j,X)=>{if(b)return Promise.reject();if(j==null&&B.pages.length)return Promise.resolve(B);const Z=(()=>{const ye={client:i.client,queryKey:i.queryKey,pageParam:j,direction:X?"backward":"forward",meta:i.options.meta};return y(ye),ye})(),$=await w(Z),{maxPages:be}=i.options,me=X?tb:eb;return{pages:me(B.pages,$,be),pageParams:me(B.pageParams,j,be)}};if(c&&f.length){const B=c==="backward",j=B?Cy:Zc,X={pages:f,pageParams:h},K=j(s,X);m=await M(X,K,B)}else{const B=a??f.length;do{const j=g===0?h[0]??s.initialPageParam:Zc(s,m);if(g>0&&j==null)break;m=await M(m,j),g++}while(g<B)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=p}}}function Zc(a,{pages:i,pageParams:r}){const s=i.length-1;return i.length>0?a.getNextPageParam(i[s],i,r[s],r):void 0}function Cy(a,{pages:i,pageParams:r}){return i.length>0?a.getPreviousPageParam?.(i[0],i,r[0],r):void 0}function Ew(a,i){return i?Zc(a,i)!=null:!1}function Tw(a,i){return!i||!a.getPreviousPageParam?!1:Cy(a,i)!=null}var db=class extends _y{#e;#t;#n;#i;constructor(a){super(),this.#e=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#t=[],this.state=a.state||Oy(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#t.includes(a)||(this.#t.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#t=this.#t.filter(i=>i!==a),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Ry({fn:()=>this.options.mutationFn?this.options.mutationFn(a,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#i.canStart();try{if(s)i();else{this.#a({type:"pending",variables:a,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(a,this,r);const h=await this.options.onMutate?.(a,r);h!==this.state.context&&this.#a({type:"pending",context:h,variables:a,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,a,this.state.context,this,r),await this.options.onSuccess?.(f,a,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,a,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,a,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,a,this.state.context,r)}catch(h){Promise.reject(h)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,r)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(a){const i=r=>{switch(a.type){case"failed":return{...r,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...r,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:a.error,failureCount:r.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),xt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function Oy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hb=class extends Rl{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(a,i,r){const s=new db({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:r});return this.add(s),s}add(a){this.#e.add(a);const i=Xs(a);if(typeof i=="string"){const r=this.#t.get(i);r?r.push(a):this.#t.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=Xs(a);if(typeof i=="string"){const r=this.#t.get(i);if(r)if(r.length>1){const s=r.indexOf(a);s!==-1&&r.splice(s,1)}else r[0]===a&&this.#t.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Xs(a);if(typeof i=="string"){const s=this.#t.get(i)?.find(c=>c.state.status==="pending");return!s||s===a}else return!0}runNext(a){const i=Xs(a);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==a&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){xt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(r=>_p(i,r))}findAll(a={}){return this.getAll().filter(i=>_p(a,i))}notify(a){xt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return xt.batch(()=>Promise.all(a.map(i=>i.continue().catch(Zt))))}};function Xs(a){return a.options.scope?.id}var mb=class extends Rl{#e;#t=void 0;#n;#i;constructor(i,r){super(),this.#e=i,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const r=this.options;this.options=this.#e.defaultMutationOptions(i),oo(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Bi(r.mutationKey)!==Bi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#r(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#r()}mutate(i,r){return this.#i=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??Oy();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#r(i){xt.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#t.variables,s=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#i.onSuccess?.(i.data,r,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(i.data,null,r,s,c)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#i.onError?.(i.error,r,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(void 0,i.error,r,s,c)}catch(f){Promise.reject(f)}}}this.listeners.forEach(r=>{r(this.#t)})})}},pb=class extends Rl{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,r){const s=i.queryKey,c=i.queryHash??of(s,i);let f=this.get(c);return f||(f=new ob({client:a,queryKey:s,queryHash:c,options:a.defaultQueryOptions(i),state:r,defaultOptions:a.getQueryDefaults(s)}),this.add(f)),f}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){xt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(r=>Rp(i,r))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(r=>Rp(a,r)):i}notify(a){xt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},yb=class{#e;#t;#n;#i;#a;#r;#s;#l;constructor(a={}){this.#e=a.queryCache||new pb,this.#t=a.mutationCache||new hb,this.#n=a.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=ff.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=uo.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#l?.(),this.#l=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#t.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),r=this.#e.build(this,i),s=r.state.data;return s===void 0?this.fetchQuery(a):(a.revalidateIfStale&&r.isStaleByTime(li(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:r})=>{const s=r.data;return[i,s]})}setQueryData(a,i,r){const s=this.defaultQueryOptions({queryKey:a}),f=this.#e.get(s.queryHash)?.state.data,h=$0(i,f);if(h!==void 0)return this.#e.build(this,s).setData(h,{...r,manual:!0})}setQueriesData(a,i,r){return xt.batch(()=>this.#e.findAll(a).map(({queryKey:s})=>[s,this.setQueryData(s,i,r)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;xt.batch(()=>{i.findAll(a).forEach(r=>{i.remove(r)})})}resetQueries(a,i){const r=this.#e;return xt.batch(()=>(r.findAll(a).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const r={revert:!0,...i},s=xt.batch(()=>this.#e.findAll(a).map(c=>c.cancel(r)));return Promise.all(s).then(Zt).catch(Zt)}invalidateQueries(a,i={}){return xt.batch(()=>(this.#e.findAll(a).forEach(r=>{r.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},s=xt.batch(()=>this.#e.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(Zt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Zt)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(li(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Zt).catch(Zt)}fetchInfiniteQuery(a){return a.behavior=Np(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Zt).catch(Zt)}ensureInfiniteQueryData(a){return a.behavior=Np(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return uo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#i.set(Bi(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#i.values()],r={};return i.forEach(s=>{Cr(a,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(a,i){this.#a.set(Bi(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],r={};return i.forEach(s=>{Cr(a,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=of(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===uf&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},xy=_.createContext(void 0),Ht=a=>{const i=_.useContext(xy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},gb=({client:a,children:i})=>(_.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),re.jsx(xy.Provider,{value:a,children:i})),My=_.createContext(!1),vb=()=>_.useContext(My);My.Provider;function bb(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var Sb=_.createContext(bb()),Eb=()=>_.useContext(Sb),Tb=(a,i,r)=>{const s=r?.state.error&&typeof a.throwOnError=="function"?cf(a.throwOnError,[r.state.error,r]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||s)&&(i.isReset()||(a.retryOnMount=!1))},wb=a=>{_.useEffect(()=>{a.clearReset()},[a])},Rb=({result:a,errorResetBoundary:i,throwOnError:r,query:s,suspense:c})=>a.isError&&!i.isReset()&&!a.isFetching&&s&&(c&&a.data===void 0||cf(r,[a.error,s])),_b=a=>{if(a.suspense){const r=c=>c==="static"?c:Math.max(c??1e3,1e3),s=a.staleTime;a.staleTime=typeof s=="function"?(...c)=>r(s(...c)):r(s),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Ab=(a,i)=>a.isLoading&&a.isFetching&&!i,Cb=(a,i)=>a?.suspense&&i.isPending,zp=(a,i,r)=>i.fetchOptimistic(a).catch(()=>{r.clearReset()});function Ob(a,i,r){const s=vb(),c=Eb(),f=Ht(),h=f.defaultQueryOptions(a);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h);const m=f.getQueryCache().get(h.queryHash);h._optimisticResults=s?"isRestoring":"optimistic",_b(h),Tb(h,c,m),wb(c);const g=!f.getQueryCache().get(h.queryHash),[p]=_.useState(()=>new i(f,h)),b=p.getOptimisticResult(h),y=!s&&a.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(w=>{const M=y?p.subscribe(xt.batchCalls(w)):Zt;return p.updateResult(),M},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),_.useEffect(()=>{p.setOptions(h)},[h,p]),Cb(h,b))throw zp(h,p,c);if(Rb({result:b,errorResetBoundary:c,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,b),h.experimental_prefetchInRender&&!Li&&Ab(b,s)&&(g?zp(h,p,c):m?.promise)?.catch(Zt).finally(()=>{p.updateResult()}),h.notifyOnChangeProps?b:p.trackResult(b)}function _l(a,i){return Ob(a,ub)}function gn(a,i){const r=Ht(),[s]=_.useState(()=>new mb(r,a));_.useEffect(()=>{s.setOptions(a)},[s,a]);const c=_.useSyncExternalStore(_.useCallback(h=>s.subscribe(xt.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=_.useCallback((h,m)=>{s.mutate(h,m).catch(Zt)},[s]);if(c.error&&cf(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var Dy=by();const xb=vy(Dy);function Mb(a){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",i.appendChild(r),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a))}const Db=a=>{switch(a){case"success":return Ub;case"info":return Bb;case"warning":return Lb;case"error":return kb;default:return null}},Nb=Array(12).fill(0),zb=({visible:a,className:i})=>I.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":a},I.createElement("div",{className:"sonner-spinner"},Nb.map((r,s)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Ub=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Lb=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Bb=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),kb=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),qb=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jb=()=>{const[a,i]=I.useState(document.hidden);return I.useEffect(()=>{const r=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),a};let Fc=1;class Hb{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;const{message:s,...c}=i,f=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:Fc++,h=this.toasts.find(g=>g.id===f),m=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),h?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:s}),{...g,...i,id:f,dismissible:m,title:s}):g):this.addToast({title:s,...c,dismissible:m,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:i,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=s!==void 0,h;const m=c.then(async p=>{if(h=["resolve",p],I.isValidElement(p))f=!1,this.create({id:s,type:"default",message:p});else if(Yb(p)&&!p.ok){f=!1;const y=typeof r.error=="function"?await r.error(`HTTP error! status: ${p.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${p.status}`):r.description,B=typeof y=="object"&&!I.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:w,...B})}else if(p instanceof Error){f=!1;const y=typeof r.error=="function"?await r.error(p):r.error,w=typeof r.description=="function"?await r.description(p):r.description,B=typeof y=="object"&&!I.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:w,...B})}else if(r.success!==void 0){f=!1;const y=typeof r.success=="function"?await r.success(p):r.success,w=typeof r.description=="function"?await r.description(p):r.description,B=typeof y=="object"&&!I.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:w,...B})}}).catch(async p=>{if(h=["reject",p],r.error!==void 0){f=!1;const b=typeof r.error=="function"?await r.error(p):r.error,y=typeof r.description=="function"?await r.description(p):r.description,M=typeof b=="object"&&!I.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...M})}}).finally(()=>{f&&(this.dismiss(s),s=void 0),r.finally==null||r.finally.call(r)}),g=()=>new Promise((p,b)=>m.then(()=>h[0]==="reject"?b(h[1]):p(h[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:g}:Object.assign(s,{unwrap:g})},this.custom=(i,r)=>{const s=r?.id||Fc++;return this.create({jsx:i(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ln=new Hb,Qb=(a,i)=>{const r=i?.id||Fc++;return ln.addToast({title:a,...i,id:r}),r},Yb=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",Kb=Qb,Vb=()=>ln.toasts,Gb=()=>ln.getActiveToasts(),Xb=Object.assign(Kb,{success:ln.success,info:ln.info,warning:ln.warning,error:ln.error,custom:ln.custom,message:ln.message,promise:ln.promise,dismiss:ln.dismiss,loading:ln.loading},{getHistory:Vb,getToasts:Gb});Mb("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Zs(a){return a.label!==void 0}const Zb=3,Fb="24px",Pb="16px",Up=4e3,Jb=356,$b=14,Ib=45,Wb=200;function ta(...a){return a.filter(Boolean).join(" ")}function eS(a){const[i,r]=a.split("-"),s=[];return i&&s.push(i),r&&s.push(r),s}const tS=a=>{var i,r,s,c,f,h,m,g,p;const{invert:b,toast:y,unstyled:w,interacting:M,setHeights:B,visibleToasts:j,heights:X,index:K,toasts:Z,expanded:$,removeToast:be,defaultRichColors:me,closeButton:ye,style:C,cancelButtonStyle:W,actionButtonStyle:ge,className:xe="",descriptionClassName:_e="",duration:we,position:Be,gap:Ke,expandByDefault:Te,classNames:x,icons:G,closeButtonAriaLabel:P="Close toast"}=a,[fe,he]=I.useState(null),[T,k]=I.useState(null),[H,F]=I.useState(!1),[ee,ue]=I.useState(!1),[Ae,Ee]=I.useState(!1),[Fe,bn]=I.useState(!1),[kn,et]=I.useState(!1),[qn,Ft]=I.useState(0),[ui,Pt]=I.useState(0),ra=I.useRef(y.duration||we||Up),ci=I.useRef(null),Qt=I.useRef(null),fi=K===0,di=K+1<=j,zt=y.type,Pn=y.dismissible!==!1,ut=y.className||"",sa=y.descriptionClassName||"",Jn=I.useMemo(()=>X.findIndex(Se=>Se.toastId===y.id)||0,[X,y.id]),Na=I.useMemo(()=>{var Se;return(Se=y.closeButton)!=null?Se:ye},[y.closeButton,ye]),Ut=I.useMemo(()=>y.duration||we||Up,[y.duration,we]),Gt=I.useRef(0),Sn=I.useRef(0),qi=I.useRef(0),En=I.useRef(null),[oa,it]=Be.split("-"),Jt=I.useMemo(()=>X.reduce((Se,nt,yt)=>yt>=Jn?Se:Se+nt.height,0),[X,Jn]),Ct=jb(),ji=y.invert||b,hi=zt==="loading";Sn.current=I.useMemo(()=>Jn*Ke+Jt,[Jn,Jt]),I.useEffect(()=>{ra.current=Ut},[Ut]),I.useEffect(()=>{F(!0)},[]),I.useEffect(()=>{const Se=Qt.current;if(Se){const nt=Se.getBoundingClientRect().height;return Pt(nt),B(yt=>[{toastId:y.id,height:nt,position:y.position},...yt]),()=>B(yt=>yt.filter(gt=>gt.toastId!==y.id))}},[B,y.id]),I.useLayoutEffect(()=>{if(!H)return;const Se=Qt.current,nt=Se.style.height;Se.style.height="auto";const yt=Se.getBoundingClientRect().height;Se.style.height=nt,Pt(yt),B(gt=>gt.find(at=>at.toastId===y.id)?gt.map(at=>at.toastId===y.id?{...at,height:yt}:at):[{toastId:y.id,height:yt,position:y.position},...gt])},[H,y.title,y.description,B,y.id,y.jsx,y.action,y.cancel]);const rn=I.useCallback(()=>{ue(!0),Ft(Sn.current),B(Se=>Se.filter(nt=>nt.toastId!==y.id)),setTimeout(()=>{be(y)},Wb)},[y,be,B,Sn]);I.useEffect(()=>{if(y.promise&&zt==="loading"||y.duration===1/0||y.type==="loading")return;let Se;return $||M||Ct?(()=>{if(qi.current<Gt.current){const gt=new Date().getTime()-Gt.current;ra.current=ra.current-gt}qi.current=new Date().getTime()})():ra.current!==1/0&&(Gt.current=new Date().getTime(),Se=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),rn()},ra.current)),()=>clearTimeout(Se)},[$,M,y,zt,Ct,rn]),I.useEffect(()=>{y.delete&&(rn(),y.onDismiss==null||y.onDismiss.call(y,y))},[rn,y.delete]);function jn(){var Se;if(G?.loading){var nt;return I.createElement("div",{className:ta(x?.loader,y==null||(nt=y.classNames)==null?void 0:nt.loader,"sonner-loader"),"data-visible":zt==="loading"},G.loading)}return I.createElement(zb,{className:ta(x?.loader,y==null||(Se=y.classNames)==null?void 0:Se.loader),visible:zt==="loading"})}const ua=y.icon||G?.[zt]||Db(zt);var Hn,Tn;return I.createElement("li",{tabIndex:0,ref:Qt,className:ta(xe,ut,x?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,x?.default,x?.[zt],y==null||(r=y.classNames)==null?void 0:r[zt]),"data-sonner-toast":"","data-rich-colors":(Hn=y.richColors)!=null?Hn:me,"data-styled":!(y.jsx||y.unstyled||w),"data-mounted":H,"data-promise":!!y.promise,"data-swiped":kn,"data-removed":ee,"data-visible":di,"data-y-position":oa,"data-x-position":it,"data-index":K,"data-front":fi,"data-swiping":Ae,"data-dismissible":Pn,"data-type":zt,"data-invert":ji,"data-swipe-out":Fe,"data-swipe-direction":T,"data-expanded":!!($||Te&&H),"data-testid":y.testId,style:{"--index":K,"--toasts-before":K,"--z-index":Z.length-K,"--offset":`${ee?qn:Sn.current}px`,"--initial-height":Te?"auto":`${ui}px`,...C,...y.style},onDragEnd:()=>{Ee(!1),he(null),En.current=null},onPointerDown:Se=>{Se.button!==2&&(hi||!Pn||(ci.current=new Date,Ft(Sn.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(Ee(!0),En.current={x:Se.clientX,y:Se.clientY})))},onPointerUp:()=>{var Se,nt,yt;if(Fe||!Pn)return;En.current=null;const gt=Number(((Se=Qt.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),sn=Number(((nt=Qt.current)==null?void 0:nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),at=new Date().getTime()-((yt=ci.current)==null?void 0:yt.getTime()),Yt=fe==="x"?gt:sn,ca=Math.abs(Yt)/at;if(Math.abs(Yt)>=Ib||ca>.11){Ft(Sn.current),y.onDismiss==null||y.onDismiss.call(y,y),k(fe==="x"?gt>0?"right":"left":sn>0?"down":"up"),rn(),bn(!0);return}else{var S,A;(S=Qt.current)==null||S.style.setProperty("--swipe-amount-x","0px"),(A=Qt.current)==null||A.style.setProperty("--swipe-amount-y","0px")}et(!1),Ee(!1),he(null)},onPointerMove:Se=>{var nt,yt,gt;if(!En.current||!Pn||((nt=window.getSelection())==null?void 0:nt.toString().length)>0)return;const at=Se.clientY-En.current.y,Yt=Se.clientX-En.current.x;var ca;const S=(ca=a.swipeDirections)!=null?ca:eS(Be);!fe&&(Math.abs(Yt)>1||Math.abs(at)>1)&&he(Math.abs(Yt)>Math.abs(at)?"x":"y");let A={x:0,y:0};const U=V=>1/(1.5+Math.abs(V)/20);if(fe==="y"){if(S.includes("top")||S.includes("bottom"))if(S.includes("top")&&at<0||S.includes("bottom")&&at>0)A.y=at;else{const V=at*U(at);A.y=Math.abs(V)<Math.abs(at)?V:at}}else if(fe==="x"&&(S.includes("left")||S.includes("right")))if(S.includes("left")&&Yt<0||S.includes("right")&&Yt>0)A.x=Yt;else{const V=Yt*U(Yt);A.x=Math.abs(V)<Math.abs(Yt)?V:Yt}(Math.abs(A.x)>0||Math.abs(A.y)>0)&&et(!0),(yt=Qt.current)==null||yt.style.setProperty("--swipe-amount-x",`${A.x}px`),(gt=Qt.current)==null||gt.style.setProperty("--swipe-amount-y",`${A.y}px`)}},Na&&!y.jsx&&zt!=="loading"?I.createElement("button",{"aria-label":P,"data-disabled":hi,"data-close-button":!0,onClick:hi||!Pn?()=>{}:()=>{rn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:ta(x?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Tn=G?.close)!=null?Tn:qb):null,(zt||y.icon||y.promise)&&y.icon!==null&&(G?.[zt]!==null||y.icon)?I.createElement("div",{"data-icon":"",className:ta(x?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||jn():null,y.type!=="loading"?ua:null):null,I.createElement("div",{"data-content":"",className:ta(x?.content,y==null||(f=y.classNames)==null?void 0:f.content)},I.createElement("div",{"data-title":"",className:ta(x?.title,y==null||(h=y.classNames)==null?void 0:h.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?I.createElement("div",{"data-description":"",className:ta(_e,sa,x?.description,y==null||(m=y.classNames)==null?void 0:m.description)},typeof y.description=="function"?y.description():y.description):null),I.isValidElement(y.cancel)?y.cancel:y.cancel&&Zs(y.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||W,onClick:Se=>{Zs(y.cancel)&&Pn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,Se),rn())},className:ta(x?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,I.isValidElement(y.action)?y.action:y.action&&Zs(y.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ge,onClick:Se=>{Zs(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,Se),!Se.defaultPrevented&&rn())},className:ta(x?.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function Lp(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function nS(a,i){const r={};return[a,i].forEach((s,c)=>{const f=c===1,h=f?"--mobile-offset":"--offset",m=f?Pb:Fb;function g(p){["top","right","bottom","left"].forEach(b=>{r[`${h}-${b}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?g(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?r[`${h}-${p}`]=m:r[`${h}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):g(m)}),r}const aS=I.forwardRef(function(i,r){const{id:s,invert:c,position:f="bottom-right",hotkey:h=["altKey","KeyT"],expand:m,closeButton:g,className:p,offset:b,mobileOffset:y,theme:w="light",richColors:M,duration:B,style:j,visibleToasts:X=Zb,toastOptions:K,dir:Z=Lp(),gap:$=$b,icons:be,containerAriaLabel:me="Notifications"}=i,[ye,C]=I.useState([]),W=I.useMemo(()=>s?ye.filter(H=>H.toasterId===s):ye.filter(H=>!H.toasterId),[ye,s]),ge=I.useMemo(()=>Array.from(new Set([f].concat(W.filter(H=>H.position).map(H=>H.position)))),[W,f]),[xe,_e]=I.useState([]),[we,Be]=I.useState(!1),[Ke,Te]=I.useState(!1),[x,G]=I.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=I.useRef(null),fe=h.join("+").replace(/Key/g,"").replace(/Digit/g,""),he=I.useRef(null),T=I.useRef(!1),k=I.useCallback(H=>{C(F=>{var ee;return(ee=F.find(ue=>ue.id===H.id))!=null&&ee.delete||ln.dismiss(H.id),F.filter(({id:ue})=>ue!==H.id)})},[]);return I.useEffect(()=>ln.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{C(F=>F.map(ee=>ee.id===H.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{xb.flushSync(()=>{C(F=>{const ee=F.findIndex(ue=>ue.id===H.id);return ee!==-1?[...F.slice(0,ee),{...F[ee],...H},...F.slice(ee+1)]:[H,...F]})})})}),[ye]),I.useEffect(()=>{if(w!=="system"){G(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:F})=>{G(F?"dark":"light")})}catch{H.addListener(({matches:ee})=>{try{G(ee?"dark":"light")}catch(ue){console.error(ue)}})}},[w]),I.useEffect(()=>{ye.length<=1&&Be(!1)},[ye]),I.useEffect(()=>{const H=F=>{var ee;if(h.every(Ee=>F[Ee]||F.code===Ee)){var Ae;Be(!0),(Ae=P.current)==null||Ae.focus()}F.code==="Escape"&&(document.activeElement===P.current||(ee=P.current)!=null&&ee.contains(document.activeElement))&&Be(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[h]),I.useEffect(()=>{if(P.current)return()=>{he.current&&(he.current.focus({preventScroll:!0}),he.current=null,T.current=!1)}},[P.current]),I.createElement("section",{ref:r,"aria-label":`${me} ${fe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ge.map((H,F)=>{var ee;const[ue,Ae]=H.split("-");return W.length?I.createElement("ol",{key:H,dir:Z==="auto"?Lp():Z,tabIndex:-1,ref:P,className:p,"data-sonner-toaster":!0,"data-sonner-theme":x,"data-y-position":ue,"data-x-position":Ae,style:{"--front-toast-height":`${((ee=xe[0])==null?void 0:ee.height)||0}px`,"--width":`${Jb}px`,"--gap":`${$}px`,...j,...nS(b,y)},onBlur:Ee=>{T.current&&!Ee.currentTarget.contains(Ee.relatedTarget)&&(T.current=!1,he.current&&(he.current.focus({preventScroll:!0}),he.current=null))},onFocus:Ee=>{Ee.target instanceof HTMLElement&&Ee.target.dataset.dismissible==="false"||T.current||(T.current=!0,he.current=Ee.relatedTarget)},onMouseEnter:()=>Be(!0),onMouseMove:()=>Be(!0),onMouseLeave:()=>{Ke||Be(!1)},onDragEnd:()=>Be(!1),onPointerDown:Ee=>{Ee.target instanceof HTMLElement&&Ee.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},W.filter(Ee=>!Ee.position&&F===0||Ee.position===H).map((Ee,Fe)=>{var bn,kn;return I.createElement(tS,{key:Ee.id,icons:be,index:Fe,toast:Ee,defaultRichColors:M,duration:(bn=K?.duration)!=null?bn:B,className:K?.className,descriptionClassName:K?.descriptionClassName,invert:c,visibleToasts:X,closeButton:(kn=K?.closeButton)!=null?kn:g,interacting:Ke,position:H,style:K?.style,unstyled:K?.unstyled,classNames:K?.classNames,cancelButtonStyle:K?.cancelButtonStyle,actionButtonStyle:K?.actionButtonStyle,closeButtonAriaLabel:K?.closeButtonAriaLabel,removeToast:k,toasts:W.filter(et=>et.position==Ee.position),heights:xe.filter(et=>et.position==Ee.position),setHeights:_e,expandByDefault:m,gap:$,expanded:we,swipeDirections:i.swipeDirections})})):null}))}),iS=new yb({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}}),lS="modulepreload",rS=function(a){return"/"+a},Bp={},Da=function(i,r,s){let c=Promise.resolve();if(r&&r.length>0){let g=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");c=g(r.map(p=>{if(p=rS(p),p in Bp)return;Bp[p]=!0;const b=p.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const w=document.createElement("link");if(w.rel=b?"stylesheet":lS,b||(w.as="script"),w.crossOrigin="",w.href=p,m&&w.setAttribute("nonce",m),document.head.appendChild(w),b)return new Promise((M,B)=>{w.addEventListener("load",M),w.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&f(m.reason);return i().catch(f)})};var Ny=a=>{throw TypeError(a)},sS=(a,i,r)=>i.has(a)||Ny("Cannot "+r),Nc=(a,i,r)=>(sS(a,i,"read from private field"),r?r.call(a):i.get(a)),oS=(a,i,r)=>i.has(a)?Ny("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,r),kp="popstate";function uS(a={}){function i(s,c){let{pathname:f,search:h,hash:m}=s.location;return Or("",{pathname:f,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){return typeof c=="string"?c:ia(c)}return fS(i,r,null,a)}function De(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Et(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function cS(){return Math.random().toString(36).substring(2,10)}function qp(a,i){return{usr:a.state,key:a.key,idx:i}}function Or(a,i,r=null,s){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?si(i):i,state:r,key:i&&i.key||s||cS()}}function ia({pathname:a="/",search:i="",hash:r=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function si(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let s=a.indexOf("?");s>=0&&(i.search=a.substring(s),a=a.substring(0,s)),a&&(i.pathname=a)}return i}function fS(a,i,r,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,h=c.history,m="POP",g=null,p=b();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function b(){return(h.state||{idx:null}).idx}function y(){m="POP";let X=b(),K=X==null?null:X-p;p=X,g&&g({action:m,location:j.location,delta:K})}function w(X,K){m="PUSH";let Z=Or(j.location,X,K);p=b()+1;let $=qp(Z,p),be=j.createHref(Z);try{h.pushState($,"",be)}catch(me){if(me instanceof DOMException&&me.name==="DataCloneError")throw me;c.location.assign(be)}f&&g&&g({action:m,location:j.location,delta:1})}function M(X,K){m="REPLACE";let Z=Or(j.location,X,K);p=b();let $=qp(Z,p),be=j.createHref(Z);h.replaceState($,"",be),f&&g&&g({action:m,location:j.location,delta:0})}function B(X){return zy(X)}let j={get action(){return m},get location(){return a(c,h)},listen(X){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(kp,y),g=X,()=>{c.removeEventListener(kp,y),g=null}},createHref(X){return i(c,X)},createURL:B,encodeLocation(X){let K=B(X);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:w,replace:M,go(X){return h.go(X)}};return j}function zy(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),De(r,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:ia(a);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=r+s),new URL(s,r)}var wr,jp=class{constructor(a){if(oS(this,wr,new Map),a)for(let[i,r]of a)this.set(i,r)}get(a){if(Nc(this,wr).has(a))return Nc(this,wr).get(a);if(a.defaultValue!==void 0)return a.defaultValue;throw new Error("No value found for context")}set(a,i){Nc(this,wr).set(a,i)}};wr=new WeakMap;var dS=new Set(["lazy","caseSensitive","path","id","index","children"]);function hS(a){return dS.has(a)}var mS=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function pS(a){return mS.has(a)}function yS(a){return a.index===!0}function xr(a,i,r=[],s={},c=!1){return a.map((f,h)=>{let m=[...r,String(h)],g=typeof f.id=="string"?f.id:m.join("-");if(De(f.index!==!0||!f.children,"Cannot specify children on an index route"),De(c||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),yS(f)){let p={...f,id:g};return s[g]=Hp(p,i(p)),p}else{let p={...f,id:g,children:void 0};return s[g]=Hp(p,i(p)),f.children&&(p.children=xr(f.children,i,m,s,c)),p}})}function Hp(a,i){return Object.assign(a,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...a.lazy,...i.lazy}}:{}})}function ni(a,i,r="/"){return Rr(a,i,r,!1)}function Rr(a,i,r,s){let c=typeof i=="string"?si(i):i,f=Bn(c.pathname||"/",r);if(f==null)return null;let h=Uy(a);vS(h);let m=null;for(let g=0;m==null&&g<h.length;++g){let p=xS(f);m=CS(h[g],p,s)}return m}function gS(a,i){let{route:r,pathname:s,params:c}=a;return{id:r.id,pathname:s,params:c,data:i[r.id],loaderData:i[r.id],handle:r.handle}}function Uy(a,i=[],r=[],s="",c=!1){let f=(h,m,g=c,p)=>{let b={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&g)return;De(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 y=aa([s,b.relativePath]),w=r.concat(b);h.children&&h.children.length>0&&(De(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Uy(h.children,i,w,y,g)),!(h.path==null&&!h.index)&&i.push({path:y,score:_S(y,h.index),routesMeta:w})};return a.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))f(h,m);else for(let g of Ly(h.path))f(h,m,!0,g)}),i}function Ly(a){let i=a.split("/");if(i.length===0)return[];let[r,...s]=i,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let h=Ly(s.join("/")),m=[];return m.push(...h.map(g=>g===""?f:[f,g].join("/"))),c&&m.push(...h),m.map(g=>a.startsWith("/")&&g===""?"/":g)}function vS(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:AS(i.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var bS=/^:[\w-]+$/,SS=3,ES=2,TS=1,wS=10,RS=-2,Qp=a=>a==="*";function _S(a,i){let r=a.split("/"),s=r.length;return r.some(Qp)&&(s+=RS),i&&(s+=ES),r.filter(c=>!Qp(c)).reduce((c,f)=>c+(bS.test(f)?SS:f===""?TS:wS),s)}function AS(a,i){return a.length===i.length&&a.slice(0,-1).every((s,c)=>s===i[c])?a[a.length-1]-i[i.length-1]:0}function CS(a,i,r=!1){let{routesMeta:s}=a,c={},f="/",h=[];for(let m=0;m<s.length;++m){let g=s[m],p=m===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",y=co({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},b),w=g.route;if(!y&&p&&r&&!s[s.length-1].route.index&&(y=co({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),h.push({params:c,pathname:aa([f,y.pathname]),pathnameBase:NS(aa([f,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(f=aa([f,y.pathnameBase]))}return h}function co(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,s]=OS(a.path,a.caseSensitive,a.end),c=i.match(r);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:y},w)=>{if(b==="*"){let B=m[w]||"";h=f.slice(0,f.length-B.length).replace(/(.)\/+$/,"$1")}const M=m[w];return y&&!M?p[b]=void 0:p[b]=(M||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:a}}function OS(a,i=!1,r=!0){Et(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let s=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,g)=>(s.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(s.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function xS(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Et(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Bn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,s=a.charAt(r);return s&&s!=="/"?null:a.slice(r)||"/"}function MS({basename:a,pathname:i}){return i==="/"?a:aa([a,i])}var By=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hf=a=>By.test(a);function DS(a,i="/"){let{pathname:r,search:s="",hash:c=""}=typeof a=="string"?si(a):a,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=Yp(r.substring(1),"/"):f=Yp(r,i)):f=i,{pathname:f,search:zS(s),hash:US(c)}}function Yp(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function zc(a,i,r,s){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ky(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function ho(a){let i=ky(a);return i.map((r,s)=>s===i.length-1?r.pathname:r.pathnameBase)}function mo(a,i,r,s=!1){let c;typeof a=="string"?c=si(a):(c={...a},De(!c.pathname||!c.pathname.includes("?"),zc("?","pathname","search",c)),De(!c.pathname||!c.pathname.includes("#"),zc("#","pathname","hash",c)),De(!c.search||!c.search.includes("#"),zc("#","search","hash",c)));let f=a===""||c.pathname==="",h=f?"/":c.pathname,m;if(h==null)m=r;else{let y=i.length-1;if(!s&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),y-=1;c.pathname=w.join("/")}m=y>=0?i[y]:"/"}let g=DS(c,m),p=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var aa=a=>a.join("/").replace(/\/\/+/g,"/"),NS=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),zS=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,US=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Dr=class{constructor(a,i,r,s=!1){this.status=a,this.statusText=i||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Mr(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Nr(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jy(a,i){let r=a;if(typeof r!="string"||!By.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,c=!1;if(qy)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=Bn(h.pathname,i);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:c=!0}catch{Et(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:r}}var ii=Symbol("Uninstrumented");function LS(a,i){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};a.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let h=Object.keys(r);for(let m of h)f[m]&&r[m].push(f[m])}}));let s={};if(typeof i.lazy=="function"&&r.lazy.length>0){let c=Sl(r.lazy,i.lazy,()=>{});c&&(s.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let h=c[f],m=r[`lazy.${f}`];if(typeof h=="function"&&m.length>0){let g=Sl(m,h,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&r[c].length>0){let h=f[ii]??f,m=Sl(r[c],h,(...g)=>Kp(g[0]));m&&(c==="loader"&&h.hydrate===!0&&(m.hydrate=!0),m[ii]=h,s[c]=m)}}),i.middleware&&i.middleware.length>0&&r.middleware.length>0&&(s.middleware=i.middleware.map(c=>{let f=c[ii]??c,h=Sl(r.middleware,f,(...m)=>Kp(m[0]));return h?(h[ii]=f,h):c})),s}function BS(a,i){let r={navigate:[],fetch:[]};if(i.forEach(s=>s({instrument(c){let f=Object.keys(c);for(let h of f)c[h]&&r[h].push(c[h])}})),r.navigate.length>0){let s=a.navigate[ii]??a.navigate,c=Sl(r.navigate,s,(...f)=>{let[h,m]=f;return{to:typeof h=="number"||typeof h=="string"?h:h?ia(h):".",...Vp(a,m??{})}});c&&(c[ii]=s,a.navigate=c)}if(r.fetch.length>0){let s=a.fetch[ii]??a.fetch,c=Sl(r.fetch,s,(...f)=>{let[h,,m,g]=f;return{href:m??".",fetcherKey:h,...Vp(a,g??{})}});c&&(c[ii]=s,a.fetch=c)}return a}function Sl(a,i,r){return a.length===0?null:async(...s)=>{let c=await Hy(a,r(...s),()=>i(...s),a.length-1);if(c.type==="error")throw c.value;return c.value}}async function Hy(a,i,r,s){let c=a[s],f;if(c){let h,m=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=Hy(a,i,r,s-1),f=await h,De(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(m,i)}catch(g){console.error("An instrumentation function threw an error:",g)}h||await m(),await h}else try{f={type:"success",value:await r()}}catch(h){f={type:"error",value:h}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Kp(a){let{request:i,context:r,params:s,unstable_pattern:c}=a;return{request:kS(i),params:{...s},unstable_pattern:c,context:qS(r)}}function Vp(a,i){return{currentUrl:ia(a.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function kS(a){return{method:a.method,url:a.url,headers:{get:(...i)=>a.headers.get(...i)}}}function qS(a){if(HS(a)){let i={...a};return Object.freeze(i),i}else return{get:i=>a.get(i)}}var jS=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function HS(a){if(a===null||typeof a!="object")return!1;const i=Object.getPrototypeOf(a);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===jS}var Qy=["POST","PUT","PATCH","DELETE"],QS=new Set(Qy),YS=["GET",...Qy],KS=new Set(YS),Yy=new Set([301,302,303,307,308]),VS=new Set([307,308]),Uc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},GS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},br={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},XS=a=>({hasErrorBoundary:!!a.hasErrorBoundary}),Ky="remix-router-transitions",Vy=Symbol("ResetLoaderData");function ZS(a){const i=a.window?a.window:typeof window<"u"?window:void 0,r=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";De(a.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=a.hydrationRouteProperties||[],c=a.mapRouteProperties||XS,f=c;if(a.unstable_instrumentations){let S=a.unstable_instrumentations;f=A=>({...c(A),...LS(S.map(U=>U.route).filter(Boolean),A)})}let h={},m=xr(a.routes,f,void 0,h),g,p=a.basename||"/";p.startsWith("/")||(p=`/${p}`);let b=a.dataStrategy||IS,y={...a.future},w=null,M=new Set,B=null,j=null,X=null,K=a.hydrationData!=null,Z=ni(m,a.history.location,p),$=!1,be=null,me;if(Z==null&&!a.patchRoutesOnNavigation){let S=zn(404,{pathname:a.history.location.pathname}),{matches:A,route:U}=Fs(m);me=!0,Z=A,be={[U.id]:S}}else if(Z&&!a.hydrationData&>(Z,m,a.history.location.pathname).active&&(Z=null),Z)if(Z.some(S=>S.route.lazy))me=!1;else if(!Z.some(S=>mf(S.route)))me=!0;else{let S=a.hydrationData?a.hydrationData.loaderData:null,A=a.hydrationData?a.hydrationData.errors:null;if(A){let U=Z.findIndex(V=>A[V.route.id]!==void 0);me=Z.slice(0,U+1).every(V=>!Jc(V.route,S,A))}else me=Z.every(U=>!Jc(U.route,S,A))}else{me=!1,Z=[];let S=gt(null,m,a.history.location.pathname);S.active&&S.matches&&($=!0,Z=S.matches)}let ye,C={historyAction:a.history.action,location:a.history.location,matches:Z,initialized:me,navigation:Uc,restoreScrollPosition:a.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:a.hydrationData&&a.hydrationData.loaderData||{},actionData:a.hydrationData&&a.hydrationData.actionData||null,errors:a.hydrationData&&a.hydrationData.errors||be,fetchers:new Map,blockers:new Map},W="POP",ge=null,xe=!1,_e,we=!1,Be=new Map,Ke=null,Te=!1,x=!1,G=new Set,P=new Map,fe=0,he=-1,T=new Map,k=new Set,H=new Map,F=new Map,ee=new Set,ue=new Map,Ae,Ee=null;function Fe(){if(w=a.history.listen(({action:S,location:A,delta:U})=>{if(Ae){Ae(),Ae=void 0;return}Et(ue.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=ua({currentLocation:C.location,nextLocation:A,historyAction:S});if(V&&U!=null){let J=new Promise(oe=>{Ae=oe});a.history.go(U*-1),jn(V,{state:"blocked",location:A,proceed(){jn(V,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),J.then(()=>a.history.go(U))},reset(){let oe=new Map(C.blockers);oe.set(V,br),et({blockers:oe})}}),ge?.resolve(),ge=null;return}return Pt(S,A)}),r){y1(i,Be);let S=()=>g1(i,Be);i.addEventListener("pagehide",S),Ke=()=>i.removeEventListener("pagehide",S)}return C.initialized||Pt("POP",C.location,{initialHydration:!0}),ye}function bn(){w&&w(),Ke&&Ke(),M.clear(),_e&&_e.abort(),C.fetchers.forEach((S,A)=>En(A)),C.blockers.forEach((S,A)=>rn(A))}function kn(S){return M.add(S),()=>M.delete(S)}function et(S,A={}){S.matches&&(S.matches=S.matches.map(J=>{let oe=h[J.route.id],ne=J.route;return ne.element!==oe.element||ne.errorElement!==oe.errorElement||ne.hydrateFallbackElement!==oe.hydrateFallbackElement?{...J,route:oe}:J})),C={...C,...S};let U=[],V=[];C.fetchers.forEach((J,oe)=>{J.state==="idle"&&(ee.has(oe)?U.push(oe):V.push(oe))}),ee.forEach(J=>{!C.fetchers.has(J)&&!P.has(J)&&U.push(J)}),[...M].forEach(J=>J(C,{deletedFetchers:U,newErrors:S.errors??null,viewTransitionOpts:A.viewTransitionOpts,flushSync:A.flushSync===!0})),U.forEach(J=>En(J)),V.forEach(J=>C.fetchers.delete(J))}function qn(S,A,{flushSync:U}={}){let V=C.actionData!=null&&C.navigation.formMethod!=null&&Vt(C.navigation.formMethod)&&C.navigation.state==="loading"&&S.state?._isRedirect!==!0,J;A.actionData?Object.keys(A.actionData).length>0?J=A.actionData:J=null:V?J=C.actionData:J=null;let oe=A.loaderData?ey(C.loaderData,A.loaderData,A.matches||[],A.errors):C.loaderData,ne=C.blockers;ne.size>0&&(ne=new Map(ne),ne.forEach((pe,ce)=>ne.set(ce,br)));let te=Te?!1:yt(S,A.matches||C.matches),ae=xe===!0||C.navigation.formMethod!=null&&Vt(C.navigation.formMethod)&&S.state?._isRedirect!==!0;g&&(m=g,g=void 0),Te||W==="POP"||(W==="PUSH"?a.history.push(S,S.state):W==="REPLACE"&&a.history.replace(S,S.state));let se;if(W==="POP"){let pe=Be.get(C.location.pathname);pe&&pe.has(S.pathname)?se={currentLocation:C.location,nextLocation:S}:Be.has(S.pathname)&&(se={currentLocation:S,nextLocation:C.location})}else if(we){let pe=Be.get(C.location.pathname);pe?pe.add(S.pathname):(pe=new Set([S.pathname]),Be.set(C.location.pathname,pe)),se={currentLocation:C.location,nextLocation:S}}et({...A,actionData:J,loaderData:oe,historyAction:W,location:S,initialized:!0,navigation:Uc,revalidation:"idle",restoreScrollPosition:te,preventScrollReset:ae,blockers:ne},{viewTransitionOpts:se,flushSync:U===!0}),W="POP",xe=!1,we=!1,Te=!1,x=!1,ge?.resolve(),ge=null,Ee?.resolve(),Ee=null}async function Ft(S,A){if(ge?.resolve(),ge=null,typeof S=="number"){ge||(ge=iy());let ke=ge.promise;return a.history.go(S),ke}let U=Pc(C.location,C.matches,p,S,A?.fromRouteId,A?.relative),{path:V,submission:J,error:oe}=Gp(!1,U,A),ne=C.location,te=Or(C.location,V,A&&A.state);te={...te,...a.history.encodeLocation(te)};let ae=A&&A.replace!=null?A.replace:void 0,se="PUSH";ae===!0?se="REPLACE":ae===!1||J!=null&&Vt(J.formMethod)&&J.formAction===C.location.pathname+C.location.search&&(se="REPLACE");let pe=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ce=(A&&A.flushSync)===!0,Ve=ua({currentLocation:ne,nextLocation:te,historyAction:se});if(Ve){jn(Ve,{state:"blocked",location:te,proceed(){jn(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:te}),Ft(S,A)},reset(){let ke=new Map(C.blockers);ke.set(Ve,br),et({blockers:ke})}});return}await Pt(se,te,{submission:J,pendingError:oe,preventScrollReset:pe,replace:A&&A.replace,enableViewTransition:A&&A.viewTransition,flushSync:ce,callSiteDefaultShouldRevalidate:A&&A.unstable_defaultShouldRevalidate})}function ui(){Ee||(Ee=iy()),Na(),et({revalidation:"loading"});let S=Ee.promise;return C.navigation.state==="submitting"?S:C.navigation.state==="idle"?(Pt(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),S):(Pt(W||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:we===!0}),S)}async function Pt(S,A,U){_e&&_e.abort(),_e=null,W=S,Te=(U&&U.startUninterruptedRevalidation)===!0,nt(C.location,C.matches),xe=(U&&U.preventScrollReset)===!0,we=(U&&U.enableViewTransition)===!0;let V=g||m,J=U&&U.overrideNavigation,oe=U?.initialHydration&&C.matches&&C.matches.length>0&&!$?C.matches:ni(V,A,p),ne=(U&&U.flushSync)===!0;if(oe&&C.initialized&&!x&&r1(C.location,A)&&!(U&&U.submission&&Vt(U.submission.formMethod))){qn(A,{matches:oe},{flushSync:ne});return}let te=gt(oe,V,A.pathname);if(te.active&&te.matches&&(oe=te.matches),!oe){let{error:ft,notFoundMatches:dt,route:qe}=Hn(A.pathname);qn(A,{matches:dt,loaderData:{},errors:{[qe.id]:ft}},{flushSync:ne});return}_e=new AbortController;let ae=bl(a.history,A,_e.signal,U&&U.submission),se=a.getContext?await a.getContext():new jp,pe;if(U&&U.pendingError)pe=[ai(oe).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&Vt(U.submission.formMethod)){let ft=await ra(ae,A,U.submission,oe,se,te.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:ne});if(ft.shortCircuited)return;if(ft.pendingActionResult){let[dt,qe]=ft.pendingActionResult;if(yn(qe)&&Mr(qe.error)&&qe.error.status===404){_e=null,qn(A,{matches:ft.matches,loaderData:{},errors:{[dt]:qe.error}});return}}oe=ft.matches||oe,pe=ft.pendingActionResult,J=Lc(A,U.submission),ne=!1,te.active=!1,ae=bl(a.history,ae.url,ae.signal)}let{shortCircuited:ce,matches:Ve,loaderData:ke,errors:ct}=await ci(ae,A,oe,se,te.active,J,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,ne,pe,U&&U.callSiteDefaultShouldRevalidate);ce||(_e=null,qn(A,{matches:Ve||oe,...ty(pe),loaderData:ke,errors:ct}))}async function ra(S,A,U,V,J,oe,ne,te={}){Na();let ae=m1(A,U);if(et({navigation:ae},{flushSync:te.flushSync===!0}),oe){let ce=await sn(V,A.pathname,S.signal);if(ce.type==="aborted")return{shortCircuited:!0};if(ce.type==="error"){if(ce.partialMatches.length===0){let{matches:ke,route:ct}=Fs(m);return{matches:ke,pendingActionResult:[ct.id,{type:"error",error:ce.error}]}}let Ve=ai(ce.partialMatches).route.id;return{matches:ce.partialMatches,pendingActionResult:[Ve,{type:"error",error:ce.error}]}}else if(ce.matches)V=ce.matches;else{let{notFoundMatches:Ve,error:ke,route:ct}=Hn(A.pathname);return{matches:Ve,pendingActionResult:[ct.id,{type:"error",error:ke}]}}}let se,pe=eo(V,A);if(!pe.route.action&&!pe.route.lazy)se={type:"error",error:zn(405,{method:S.method,pathname:A.pathname,routeId:pe.route.id})};else{let ce=Tl(f,h,S,V,pe,ne?[]:s,J),Ve=await sa(S,ce,J,null);if(se=Ve[pe.route.id],!se){for(let ke of V)if(Ve[ke.route.id]){se=Ve[ke.route.id];break}}if(S.signal.aborted)return{shortCircuited:!0}}if(Ui(se)){let ce;return te&&te.replace!=null?ce=te.replace:ce=$p(se.response.headers.get("Location"),new URL(S.url),p,a.history)===C.location.pathname+C.location.search,await ut(S,se,!0,{submission:U,replace:ce}),{shortCircuited:!0}}if(yn(se)){let ce=ai(V,pe.route.id);return(te&&te.replace)!==!0&&(W="PUSH"),{matches:V,pendingActionResult:[ce.route.id,se,pe.route.id]}}return{matches:V,pendingActionResult:[pe.route.id,se]}}async function ci(S,A,U,V,J,oe,ne,te,ae,se,pe,ce,Ve){let ke=oe||Lc(A,ne),ct=ne||te||ay(ke),ft=!Te&&!se;if(J){if(ft){let vt=Qt(ce);et({navigation:ke,...vt!==void 0?{actionData:vt}:{}},{flushSync:pe})}let je=await sn(U,A.pathname,S.signal);if(je.type==="aborted")return{shortCircuited:!0};if(je.type==="error"){if(je.partialMatches.length===0){let{matches:Kn,route:Lt}=Fs(m);return{matches:Kn,loaderData:{},errors:{[Lt.id]:je.error}}}let vt=ai(je.partialMatches).route.id;return{matches:je.partialMatches,loaderData:{},errors:{[vt]:je.error}}}else if(je.matches)U=je.matches;else{let{error:vt,notFoundMatches:Kn,route:Lt}=Hn(A.pathname);return{matches:Kn,loaderData:{},errors:{[Lt.id]:vt}}}}let dt=g||m,{dsMatches:qe,revalidatingFetchers:Dt}=Xp(S,V,f,h,a.history,C,U,ct,A,se?[]:s,se===!0,x,G,ee,H,k,dt,p,a.patchRoutesOnNavigation!=null,ce,Ve);if(he=++fe,!a.dataStrategy&&!qe.some(je=>je.shouldLoad)&&!qe.some(je=>je.route.middleware&&je.route.middleware.length>0)&&Dt.length===0){let je=Ct();return qn(A,{matches:U,loaderData:{},errors:ce&&yn(ce[1])?{[ce[0]]:ce[1].error}:null,...ty(ce),...je?{fetchers:new Map(C.fetchers)}:{}},{flushSync:pe}),{shortCircuited:!0}}if(ft){let je={};if(!J){je.navigation=ke;let vt=Qt(ce);vt!==void 0&&(je.actionData=vt)}Dt.length>0&&(je.fetchers=fi(Dt)),et(je,{flushSync:pe})}Dt.forEach(je=>{it(je.key),je.controller&&P.set(je.key,je.controller)});let $t=()=>Dt.forEach(je=>it(je.key));_e&&_e.signal.addEventListener("abort",$t);let{loaderResults:st,fetcherResults:Qn}=await Jn(qe,Dt,S,V);if(S.signal.aborted)return{shortCircuited:!0};_e&&_e.signal.removeEventListener("abort",$t),Dt.forEach(je=>P.delete(je.key));let on=Ps(st);if(on)return await ut(S,on.result,!0,{replace:ae}),{shortCircuited:!0};if(on=Ps(Qn),on)return k.add(on.key),await ut(S,on.result,!0,{replace:ae}),{shortCircuited:!0};let{loaderData:Yn,errors:wn}=Wp(C,U,st,ce,Dt,Qn);se&&C.errors&&(wn={...C.errors,...wn});let fa=Ct(),mi=ji(he),pi=fa||mi||Dt.length>0;return{matches:U,loaderData:Yn,errors:wn,...pi?{fetchers:new Map(C.fetchers)}:{}}}function Qt(S){if(S&&!yn(S[1]))return{[S[0]]:S[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function fi(S){return S.forEach(A=>{let U=C.fetchers.get(A.key),V=Sr(void 0,U?U.data:void 0);C.fetchers.set(A.key,V)}),new Map(C.fetchers)}async function di(S,A,U,V){it(S);let J=(V&&V.flushSync)===!0,oe=g||m,ne=Pc(C.location,C.matches,p,U,A,V?.relative),te=ni(oe,ne,p),ae=gt(te,oe,ne);if(ae.active&&ae.matches&&(te=ae.matches),!te){Gt(S,A,zn(404,{pathname:ne}),{flushSync:J});return}let{path:se,submission:pe,error:ce}=Gp(!0,ne,V);if(ce){Gt(S,A,ce,{flushSync:J});return}let Ve=a.getContext?await a.getContext():new jp,ke=(V&&V.preventScrollReset)===!0;if(pe&&Vt(pe.formMethod)){await zt(S,A,se,te,Ve,ae.active,J,ke,pe,V&&V.unstable_defaultShouldRevalidate);return}H.set(S,{routeId:A,path:se}),await Pn(S,A,se,te,Ve,ae.active,J,ke,pe)}async function zt(S,A,U,V,J,oe,ne,te,ae,se){Na(),H.delete(S);let pe=C.fetchers.get(S);Ut(S,p1(ae,pe),{flushSync:ne});let ce=new AbortController,Ve=bl(a.history,U,ce.signal,ae);if(oe){let He=await sn(V,new URL(Ve.url).pathname,Ve.signal,S);if(He.type==="aborted")return;if(He.type==="error"){Gt(S,A,He.error,{flushSync:ne});return}else if(He.matches)V=He.matches;else{Gt(S,A,zn(404,{pathname:U}),{flushSync:ne});return}}let ke=eo(V,U);if(!ke.route.action&&!ke.route.lazy){let He=zn(405,{method:ae.formMethod,pathname:U,routeId:A});Gt(S,A,He,{flushSync:ne});return}P.set(S,ce);let ct=fe,ft=Tl(f,h,Ve,V,ke,s,J),dt=await sa(Ve,ft,J,S),qe=dt[ke.route.id];if(!qe){for(let He of ft)if(dt[He.route.id]){qe=dt[He.route.id];break}}if(Ve.signal.aborted){P.get(S)===ce&&P.delete(S);return}if(ee.has(S)){if(Ui(qe)||yn(qe)){Ut(S,Ma(void 0));return}}else{if(Ui(qe))if(P.delete(S),he>ct){Ut(S,Ma(void 0));return}else return k.add(S),Ut(S,Sr(ae)),ut(Ve,qe,!1,{fetcherSubmission:ae,preventScrollReset:te});if(yn(qe)){Gt(S,A,qe.error);return}}let Dt=C.navigation.location||C.location,$t=bl(a.history,Dt,ce.signal),st=g||m,Qn=C.navigation.state!=="idle"?ni(st,C.navigation.location,p):C.matches;De(Qn,"Didn't find any matches after fetcher action");let on=++fe;T.set(S,on);let Yn=Sr(ae,qe.data);C.fetchers.set(S,Yn);let{dsMatches:wn,revalidatingFetchers:fa}=Xp($t,J,f,h,a.history,C,Qn,ae,Dt,s,!1,x,G,ee,H,k,st,p,a.patchRoutesOnNavigation!=null,[ke.route.id,qe],se);fa.filter(He=>He.key!==S).forEach(He=>{let yi=He.key,Lr=C.fetchers.get(yi),xl=Sr(void 0,Lr?Lr.data:void 0);C.fetchers.set(yi,xl),it(yi),He.controller&&P.set(yi,He.controller)}),et({fetchers:new Map(C.fetchers)});let mi=()=>fa.forEach(He=>it(He.key));ce.signal.addEventListener("abort",mi);let{loaderResults:pi,fetcherResults:je}=await Jn(wn,fa,$t,J);if(ce.signal.aborted)return;if(ce.signal.removeEventListener("abort",mi),T.delete(S),P.delete(S),fa.forEach(He=>P.delete(He.key)),C.fetchers.has(S)){let He=Ma(qe.data);C.fetchers.set(S,He)}let vt=Ps(pi);if(vt)return ut($t,vt.result,!1,{preventScrollReset:te});if(vt=Ps(je),vt)return k.add(vt.key),ut($t,vt.result,!1,{preventScrollReset:te});let{loaderData:Kn,errors:Lt}=Wp(C,Qn,pi,void 0,fa,je);ji(on),C.navigation.state==="loading"&&on>he?(De(W,"Expected pending action"),_e&&_e.abort(),qn(C.navigation.location,{matches:Qn,loaderData:Kn,errors:Lt,fetchers:new Map(C.fetchers)})):(et({errors:Lt,loaderData:ey(C.loaderData,Kn,Qn,Lt),fetchers:new Map(C.fetchers)}),x=!1)}async function Pn(S,A,U,V,J,oe,ne,te,ae){let se=C.fetchers.get(S);Ut(S,Sr(ae,se?se.data:void 0),{flushSync:ne});let pe=new AbortController,ce=bl(a.history,U,pe.signal);if(oe){let qe=await sn(V,new URL(ce.url).pathname,ce.signal,S);if(qe.type==="aborted")return;if(qe.type==="error"){Gt(S,A,qe.error,{flushSync:ne});return}else if(qe.matches)V=qe.matches;else{Gt(S,A,zn(404,{pathname:U}),{flushSync:ne});return}}let Ve=eo(V,U);P.set(S,pe);let ke=fe,ct=Tl(f,h,ce,V,Ve,s,J),dt=(await sa(ce,ct,J,S))[Ve.route.id];if(P.get(S)===pe&&P.delete(S),!ce.signal.aborted){if(ee.has(S)){Ut(S,Ma(void 0));return}if(Ui(dt))if(he>ke){Ut(S,Ma(void 0));return}else{k.add(S),await ut(ce,dt,!1,{preventScrollReset:te});return}if(yn(dt)){Gt(S,A,dt.error);return}Ut(S,Ma(dt.data))}}async function ut(S,A,U,{submission:V,fetcherSubmission:J,preventScrollReset:oe,replace:ne}={}){U||(ge?.resolve(),ge=null),A.response.headers.has("X-Remix-Revalidate")&&(x=!0);let te=A.response.headers.get("Location");De(te,"Expected a Location header on the redirect Response"),te=$p(te,new URL(S.url),p,a.history);let ae=Or(C.location,te,{_isRedirect:!0});if(r){let ct=!1;if(A.response.headers.has("X-Remix-Reload-Document"))ct=!0;else if(hf(te)){const ft=zy(te,!0);ct=ft.origin!==i.location.origin||Bn(ft.pathname,p)==null}if(ct){ne?i.location.replace(te):i.location.assign(te);return}}_e=null;let se=ne===!0||A.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:ce,formEncType:Ve}=C.navigation;!V&&!J&&pe&&ce&&Ve&&(V=ay(C.navigation));let ke=V||J;if(VS.has(A.response.status)&&ke&&Vt(ke.formMethod))await Pt(se,ae,{submission:{...ke,formAction:te},preventScrollReset:oe||xe,enableViewTransition:U?we:void 0});else{let ct=Lc(ae,V);await Pt(se,ae,{overrideNavigation:ct,fetcherSubmission:J,preventScrollReset:oe||xe,enableViewTransition:U?we:void 0})}}async function sa(S,A,U,V){let J,oe={};try{J=await e1(b,S,A,V,U,!1)}catch(ne){return A.filter(te=>te.shouldLoad).forEach(te=>{oe[te.route.id]={type:"error",error:ne}}),oe}if(S.signal.aborted)return oe;if(!Vt(S.method))for(let ne of A){if(J[ne.route.id]?.type==="error")break;!J.hasOwnProperty(ne.route.id)&&!C.loaderData.hasOwnProperty(ne.route.id)&&(!C.errors||!C.errors.hasOwnProperty(ne.route.id))&&ne.shouldCallHandler()&&(J[ne.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ne.route.id}`)})}for(let[ne,te]of Object.entries(J))if(c1(te)){let ae=te.result;oe[ne]={type:"redirect",response:i1(ae,S,ne,A,p)}}else oe[ne]=await a1(te);return oe}async function Jn(S,A,U,V){let J=sa(U,S,V,null),oe=Promise.all(A.map(async ae=>{if(ae.matches&&ae.match&&ae.request&&ae.controller){let pe=(await sa(ae.request,ae.matches,V,ae.key))[ae.match.route.id];return{[ae.key]:pe}}else return Promise.resolve({[ae.key]:{type:"error",error:zn(404,{pathname:ae.path})}})})),ne=await J,te=(await oe).reduce((ae,se)=>Object.assign(ae,se),{});return{loaderResults:ne,fetcherResults:te}}function Na(){x=!0,H.forEach((S,A)=>{P.has(A)&&G.add(A),it(A)})}function Ut(S,A,U={}){C.fetchers.set(S,A),et({fetchers:new Map(C.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Gt(S,A,U,V={}){let J=ai(C.matches,A);En(S),et({errors:{[J.route.id]:U},fetchers:new Map(C.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function Sn(S){return F.set(S,(F.get(S)||0)+1),ee.has(S)&&ee.delete(S),C.fetchers.get(S)||GS}function qi(S,A){it(S,A?.reason),Ut(S,Ma(null))}function En(S){let A=C.fetchers.get(S);P.has(S)&&!(A&&A.state==="loading"&&T.has(S))&&it(S),H.delete(S),T.delete(S),k.delete(S),ee.delete(S),G.delete(S),C.fetchers.delete(S)}function oa(S){let A=(F.get(S)||0)-1;A<=0?(F.delete(S),ee.add(S)):F.set(S,A),et({fetchers:new Map(C.fetchers)})}function it(S,A){let U=P.get(S);U&&(U.abort(A),P.delete(S))}function Jt(S){for(let A of S){let U=Sn(A),V=Ma(U.data);C.fetchers.set(A,V)}}function Ct(){let S=[],A=!1;for(let U of k){let V=C.fetchers.get(U);De(V,`Expected fetcher: ${U}`),V.state==="loading"&&(k.delete(U),S.push(U),A=!0)}return Jt(S),A}function ji(S){let A=[];for(let[U,V]of T)if(V<S){let J=C.fetchers.get(U);De(J,`Expected fetcher: ${U}`),J.state==="loading"&&(it(U),T.delete(U),A.push(U))}return Jt(A),A.length>0}function hi(S,A){let U=C.blockers.get(S)||br;return ue.get(S)!==A&&ue.set(S,A),U}function rn(S){C.blockers.delete(S),ue.delete(S)}function jn(S,A){let U=C.blockers.get(S)||br;De(U.state==="unblocked"&&A.state==="blocked"||U.state==="blocked"&&A.state==="blocked"||U.state==="blocked"&&A.state==="proceeding"||U.state==="blocked"&&A.state==="unblocked"||U.state==="proceeding"&&A.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${A.state}`);let V=new Map(C.blockers);V.set(S,A),et({blockers:V})}function ua({currentLocation:S,nextLocation:A,historyAction:U}){if(ue.size===0)return;ue.size>1&&Et(!1,"A router only supports one blocker at a time");let V=Array.from(ue.entries()),[J,oe]=V[V.length-1],ne=C.blockers.get(J);if(!(ne&&ne.state==="proceeding")&&oe({currentLocation:S,nextLocation:A,historyAction:U}))return J}function Hn(S){let A=zn(404,{pathname:S}),U=g||m,{matches:V,route:J}=Fs(U);return{notFoundMatches:V,route:J,error:A}}function Tn(S,A,U){if(B=S,X=A,j=U||null,!K&&C.navigation===Uc){K=!0;let V=yt(C.location,C.matches);V!=null&&et({restoreScrollPosition:V})}return()=>{B=null,X=null,j=null}}function Se(S,A){return j&&j(S,A.map(V=>gS(V,C.loaderData)))||S.key}function nt(S,A){if(B&&X){let U=Se(S,A);B[U]=X()}}function yt(S,A){if(B){let U=Se(S,A),V=B[U];if(typeof V=="number")return V}return null}function gt(S,A,U){if(a.patchRoutesOnNavigation)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:Rr(A,U,p,!0)}}else return{active:!0,matches:Rr(A,U,p,!0)||[]};return{active:!1,matches:null}}async function sn(S,A,U,V){if(!a.patchRoutesOnNavigation)return{type:"success",matches:S};let J=S;for(;;){let oe=g==null,ne=g||m,te=h;try{await a.patchRoutesOnNavigation({signal:U,path:A,matches:J,fetcherKey:V,patch:(pe,ce)=>{U.aborted||Zp(pe,ce,ne,te,f,!1)}})}catch(pe){return{type:"error",error:pe,partialMatches:J}}finally{oe&&!U.aborted&&(m=[...m])}if(U.aborted)return{type:"aborted"};let ae=ni(ne,A,p),se=null;if(ae){if(Object.keys(ae[0].params).length===0)return{type:"success",matches:ae};if(se=Rr(ne,A,p,!0),!(se&&J.length<se.length&&at(J,se.slice(0,J.length))))return{type:"success",matches:ae}}if(se||(se=Rr(ne,A,p,!0)),!se||at(J,se))return{type:"success",matches:null};J=se}}function at(S,A){return S.length===A.length&&S.every((U,V)=>U.route.id===A[V].route.id)}function Yt(S){h={},g=xr(S,f,void 0,h)}function ca(S,A,U=!1){let V=g==null;Zp(S,A,g||m,h,f,U),V&&(m=[...m],et({}))}return ye={get basename(){return p},get future(){return y},get state(){return C},get routes(){return m},get window(){return i},initialize:Fe,subscribe:kn,enableScrollRestoration:Tn,navigate:Ft,fetch:di,revalidate:ui,createHref:S=>a.history.createHref(S),encodeLocation:S=>a.history.encodeLocation(S),getFetcher:Sn,resetFetcher:qi,deleteFetcher:oa,dispose:bn,getBlocker:hi,deleteBlocker:rn,patchRoutes:ca,_internalFetchControllers:P,_internalSetRoutes:Yt,_internalSetStateDoNotUseOrYouWillBreakYourApp(S){et(S)}},a.unstable_instrumentations&&(ye=BS(ye,a.unstable_instrumentations.map(S=>S.router).filter(Boolean))),ye}function FS(a){return a!=null&&("formData"in a&&a.formData!=null||"body"in a&&a.body!==void 0)}function Pc(a,i,r,s,c,f){let h,m;if(c){h=[];for(let p of i)if(h.push(p),p.route.id===c){m=p;break}}else h=i,m=i[i.length-1];let g=mo(s||".",ho(h),Bn(a.pathname,r)||a.pathname,f==="path");if(s==null&&(g.search=a.search,g.hash=a.hash),(s==null||s===""||s===".")&&m){let p=yf(g.search);if(m.route.index&&!p)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&p){let b=new URLSearchParams(g.search),y=b.getAll("index");b.delete("index"),y.filter(M=>M).forEach(M=>b.append("index",M));let w=b.toString();g.search=w?`?${w}`:""}}return r!=="/"&&(g.pathname=MS({basename:r,pathname:g.pathname})),ia(g)}function Gp(a,i,r){if(!r||!FS(r))return{path:i};if(r.formMethod&&!h1(r.formMethod))return{path:i,error:zn(405,{method:r.formMethod})};let s=()=>({path:i,error:zn(400,{type:"invalid-body"})}),f=(r.formMethod||"get").toUpperCase(),h=Jy(i);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Vt(f))return s();let y=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,[M,B])=>`${w}${M}=${B}
|
|
11
|
+
`,""):String(r.body);return{path:i,submission:{formMethod:f,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:y}}}else if(r.formEncType==="application/json"){if(!Vt(f))return s();try{let y=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:i,submission:{formMethod:f,formAction:h,formEncType:r.formEncType,formData:void 0,json:y,text:void 0}}}catch{return s()}}}De(typeof FormData=="function","FormData is not available in this environment");let m,g;if(r.formData)m=Ic(r.formData),g=r.formData;else if(r.body instanceof FormData)m=Ic(r.body),g=r.body;else if(r.body instanceof URLSearchParams)m=r.body,g=Ip(m);else if(r.body==null)m=new URLSearchParams,g=new FormData;else try{m=new URLSearchParams(r.body),g=Ip(m)}catch{return s()}let p={formMethod:f,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Vt(p.formMethod))return{path:i,submission:p};let b=si(i);return a&&b.search&&yf(b.search)&&m.append("index",""),b.search=`?${m}`,{path:ia(b),submission:p}}function Xp(a,i,r,s,c,f,h,m,g,p,b,y,w,M,B,j,X,K,Z,$,be){let me=$?yn($[1])?$[1].error:$[1].data:void 0,ye=c.createURL(f.location),C=c.createURL(g),W;if(b&&f.errors){let Te=Object.keys(f.errors)[0];W=h.findIndex(x=>x.route.id===Te)}else if($&&yn($[1])){let Te=$[0];W=h.findIndex(x=>x.route.id===Te)-1}let ge=$?$[1].statusCode:void 0,xe=ge&&ge>=400,_e={currentUrl:ye,currentParams:f.matches[0]?.params||{},nextUrl:C,nextParams:h[0].params,...m,actionResult:me,actionStatus:ge},we=Nr(h),Be=h.map((Te,x)=>{let{route:G}=Te,P=null;if(W!=null&&x>W?P=!1:G.lazy?P=!0:mf(G)?b?P=Jc(G,f.loaderData,f.errors):PS(f.loaderData,f.matches[x],Te)&&(P=!0):P=!1,P!==null)return $c(r,s,a,we,Te,p,i,P);let fe=!1;typeof be=="boolean"?fe=be:xe?fe=!1:(y||ye.pathname+ye.search===C.pathname+C.search||ye.search!==C.search||JS(f.matches[x],Te))&&(fe=!0);let he={..._e,defaultShouldRevalidate:fe},T=Ar(Te,he);return $c(r,s,a,we,Te,p,i,T,he,be)}),Ke=[];return B.forEach((Te,x)=>{if(b||!h.some(F=>F.route.id===Te.routeId)||M.has(x))return;let G=f.fetchers.get(x),P=G&&G.state!=="idle"&&G.data===void 0,fe=ni(X,Te.path,K);if(!fe){if(Z&&P)return;Ke.push({key:x,routeId:Te.routeId,path:Te.path,matches:null,match:null,request:null,controller:null});return}if(j.has(x))return;let he=eo(fe,Te.path),T=new AbortController,k=bl(c,Te.path,T.signal),H=null;if(w.has(x))w.delete(x),H=Tl(r,s,k,fe,he,p,i);else if(P)y&&(H=Tl(r,s,k,fe,he,p,i));else{let F;typeof be=="boolean"?F=be:xe?F=!1:F=y;let ee={..._e,defaultShouldRevalidate:F};Ar(he,ee)&&(H=Tl(r,s,k,fe,he,p,i,ee))}H&&Ke.push({key:x,routeId:Te.routeId,path:Te.path,matches:H,match:he,request:k,controller:T})}),{dsMatches:Be,revalidatingFetchers:Ke}}function mf(a){return a.loader!=null||a.middleware!=null&&a.middleware.length>0}function Jc(a,i,r){if(a.lazy)return!0;if(!mf(a))return!1;let s=i!=null&&a.id in i,c=r!=null&&r[a.id]!==void 0;return!s&&c?!1:typeof a.loader=="function"&&a.loader.hydrate===!0?!0:!s&&!c}function PS(a,i,r){let s=!i||r.route.id!==i.route.id,c=!a.hasOwnProperty(r.route.id);return s||c}function JS(a,i){let r=a.route.path;return a.pathname!==i.pathname||r!=null&&r.endsWith("*")&&a.params["*"]!==i.params["*"]}function Ar(a,i){if(a.route.shouldRevalidate){let r=a.route.shouldRevalidate(i);if(typeof r=="boolean")return r}return i.defaultShouldRevalidate}function Zp(a,i,r,s,c,f){let h;if(a){let p=s[a];De(p,`No route found to patch children into: routeId = ${a}`),p.children||(p.children=[]),h=p.children}else h=r;let m=[],g=[];if(i.forEach(p=>{let b=h.find(y=>Gy(p,y));b?g.push({existingRoute:b,newRoute:p}):m.push(p)}),m.length>0){let p=xr(m,c,[a||"_","patch",String(h?.length||"0")],s);h.push(...p)}if(f&&g.length>0)for(let p=0;p<g.length;p++){let{existingRoute:b,newRoute:y}=g[p],w=b,[M]=xr([y],c,[],{},!0);Object.assign(w,{element:M.element?M.element:w.element,errorElement:M.errorElement?M.errorElement:w.errorElement,hydrateFallbackElement:M.hydrateFallbackElement?M.hydrateFallbackElement:w.hydrateFallbackElement})}}function Gy(a,i){return"id"in a&&"id"in i&&a.id===i.id?!0:a.index===i.index&&a.path===i.path&&a.caseSensitive===i.caseSensitive?(!a.children||a.children.length===0)&&(!i.children||i.children.length===0)?!0:a.children.every((r,s)=>i.children?.some(c=>Gy(r,c))):!1}var Fp=new WeakMap,Xy=({key:a,route:i,manifest:r,mapRouteProperties:s})=>{let c=r[i.id];if(De(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[a];if(!f)return;let h=Fp.get(c);h||(h={},Fp.set(c,h));let m=h[a];if(m)return m;let g=(async()=>{let p=hS(a),y=c[a]!==void 0&&a!=="hasErrorBoundary";if(p)Et(!p,"Route property "+a+" is not a supported lazy route property. This property will be ignored."),h[a]=Promise.resolve();else if(y)Et(!1,`Route "${c.id}" has a static property "${a}" defined. The lazy property will be ignored.`);else{let w=await f();w!=null&&(Object.assign(c,{[a]:w}),Object.assign(c,s(c)))}typeof c.lazy=="object"&&(c.lazy[a]=void 0,Object.values(c.lazy).every(w=>w===void 0)&&(c.lazy=void 0))})();return h[a]=g,g},Pp=new WeakMap;function $S(a,i,r,s,c){let f=r[a.id];if(De(f,"No route found in manifest"),!a.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof a.lazy=="function"){let b=Pp.get(f);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let y=(async()=>{De(typeof a.lazy=="function","No lazy route function found");let w=await a.lazy(),M={};for(let B in w){let j=w[B];if(j===void 0)continue;let X=pS(B),Z=f[B]!==void 0&&B!=="hasErrorBoundary";X?Et(!X,"Route property "+B+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?Et(!Z,`Route "${f.id}" has a static property "${B}" defined but its lazy function is also returning a value for this property. The lazy route property "${B}" will be ignored.`):M[B]=j}Object.assign(f,M),Object.assign(f,{...s(f),lazy:void 0})})();return Pp.set(f,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let h=Object.keys(a.lazy),m=[],g;for(let b of h){if(c&&c.includes(b))continue;let y=Xy({key:b,route:a,manifest:r,mapRouteProperties:s});y&&(m.push(y),b===i&&(g=y))}let p=m.length>0?Promise.all(m).then(()=>{}):void 0;return p?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:g}}async function Jp(a){let i=a.matches.filter(c=>c.shouldLoad),r={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{r[i[f].route.id]=c}),r}async function IS(a){return a.matches.some(i=>i.route.middleware)?Zy(a,()=>Jp(a)):Jp(a)}function Zy(a,i){return WS(a,i,s=>{if(d1(s))throw s;return s},o1,r);function r(s,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:s}}));{let{matches:h}=a,m=Math.min(Math.max(h.findIndex(p=>p.route.id===c),0),Math.max(h.findIndex(p=>p.shouldCallHandler()),0)),g=ai(h,h[m].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function WS(a,i,r,s,c){let{matches:f,request:h,params:m,context:g,unstable_pattern:p}=a,b=f.flatMap(w=>w.route.middleware?w.route.middleware.map(M=>[w.route.id,M]):[]);return await Fy({request:h,params:m,context:g,unstable_pattern:p},b,i,r,s,c)}async function Fy(a,i,r,s,c,f,h=0){let{request:m}=a;if(m.signal.aborted)throw m.signal.reason??new Error(`Request aborted: ${m.method} ${m.url}`);let g=i[h];if(!g)return await r();let[p,b]=g,y,w=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await Fy(a,i,r,s,c,f,h+1)},y.value}catch(M){return y={value:await f(M,p,y)},y.value}};try{let M=await b(a,w),B=M!=null?s(M):void 0;return c(B)?B:y?B??y.value:(y={value:await w()},y.value)}catch(M){return await f(M,p,y)}}function Py(a,i,r,s,c){let f=Xy({key:"middleware",route:s.route,manifest:i,mapRouteProperties:a}),h=$S(s.route,Vt(r.method)?"action":"loader",i,a,c);return{middleware:f,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function $c(a,i,r,s,c,f,h,m,g=null,p){let b=!1,y=Py(a,i,r,c,f);return{...c,_lazyPromises:y,shouldLoad:m,shouldRevalidateArgs:g,shouldCallHandler(w){return b=!0,g?typeof p=="boolean"?Ar(c,{...g,defaultShouldRevalidate:p}):typeof w=="boolean"?Ar(c,{...g,defaultShouldRevalidate:w}):Ar(c,g):m},resolve(w){let{lazy:M,loader:B,middleware:j}=c.route,X=b||m||w&&!Vt(r.method)&&(M||B),K=j&&j.length>0&&!B&&!M;return X&&(Vt(r.method)||!K)?t1({request:r,unstable_pattern:s,match:c,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:w,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function Tl(a,i,r,s,c,f,h,m=null){return s.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:Py(a,i,r,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:$c(a,i,r,Nr(s),g,f,h,!0,m))}async function e1(a,i,r,s,c,f){r.some(p=>p._lazyPromises?.middleware)&&await Promise.all(r.map(p=>p._lazyPromises?.middleware));let h={request:i,unstable_pattern:Nr(r),params:r[0].params,context:c,matches:r},g=await a({...h,fetcherKey:s,runClientMiddleware:p=>{let b=h;return Zy(b,()=>p({...b,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(p=>[p._lazyPromises?.handler,p._lazyPromises?.route]))}catch{}return g}async function t1({request:a,unstable_pattern:i,match:r,lazyHandlerPromise:s,lazyRoutePromise:c,handlerOverride:f,scopedContext:h}){let m,g,p=Vt(a.method),b=p?"action":"loader",y=w=>{let M,B=new Promise((K,Z)=>M=Z);g=()=>M(),a.signal.addEventListener("abort",g);let j=K=>typeof w!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${r.route.id}]`)):w({request:a,unstable_pattern:i,params:r.params,context:h},...K!==void 0?[K]:[]),X=(async()=>{try{return{type:"data",result:await(f?f(Z=>j(Z)):j())}}catch(K){return{type:"error",result:K}}})();return Promise.race([X,B])};try{let w=p?r.route.action:r.route.loader;if(s||c)if(w){let M,[B]=await Promise.all([y(w).catch(j=>{M=j}),s,c]);if(M!==void 0)throw M;m=B}else{await s;let M=p?r.route.action:r.route.loader;if(M)[m]=await Promise.all([y(M),c]);else if(b==="action"){let B=new URL(a.url),j=B.pathname+B.search;throw zn(405,{method:a.method,pathname:j,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(w)m=await y(w);else{let M=new URL(a.url),B=M.pathname+M.search;throw zn(404,{pathname:B})}}catch(w){return{type:"error",result:w}}finally{g&&a.signal.removeEventListener("abort",g)}return m}async function n1(a){let i=a.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?a.body==null?null:a.json():a.text()}async function a1(a){let{result:i,type:r}=a;if(pf(i)){let s;try{s=await n1(i)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new Dr(i.status,i.statusText,s),statusCode:i.status,headers:i.headers}:{type:"data",data:s,statusCode:i.status,headers:i.headers}}return r==="error"?ny(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:s1(i),statusCode:Mr(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:Mr(i)?i.status:void 0}:ny(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function i1(a,i,r,s,c){let f=a.headers.get("Location");if(De(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!hf(f)){let h=s.slice(0,s.findIndex(m=>m.route.id===r)+1);f=Pc(new URL(i.url),h,c,f),a.headers.set("Location",f)}return a}function $p(a,i,r,s){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(hf(a)){let f=a,h=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(h.protocol))throw new Error("Invalid redirect location");let m=Bn(h.pathname,r)!=null;if(h.origin===i.origin&&m)return h.pathname+h.search+h.hash}try{let f=s.createURL(a);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return a}function bl(a,i,r,s){let c=a.createURL(Jy(i)).toString(),f={signal:r};if(s&&Vt(s.formMethod)){let{formMethod:h,formEncType:m}=s;f.method=h.toUpperCase(),m==="application/json"?(f.headers=new Headers({"Content-Type":m}),f.body=JSON.stringify(s.json)):m==="text/plain"?f.body=s.text:m==="application/x-www-form-urlencoded"&&s.formData?f.body=Ic(s.formData):f.body=s.formData}return new Request(c,f)}function Ic(a){let i=new URLSearchParams;for(let[r,s]of a.entries())i.append(r,typeof s=="string"?s:s.name);return i}function Ip(a){let i=new FormData;for(let[r,s]of a.entries())i.append(r,s);return i}function l1(a,i,r,s=!1,c=!1){let f={},h=null,m,g=!1,p={},b=r&&yn(r[1])?r[1].error:void 0;return a.forEach(y=>{if(!(y.route.id in i))return;let w=y.route.id,M=i[w];if(De(!Ui(M),"Cannot handle redirect results in processLoaderData"),yn(M)){let B=M.error;if(b!==void 0&&(B=b,b=void 0),h=h||{},c)h[w]=B;else{let j=ai(a,w);h[j.route.id]==null&&(h[j.route.id]=B)}s||(f[w]=Vy),g||(g=!0,m=Mr(M.error)?M.error.status:500),M.headers&&(p[w]=M.headers)}else f[w]=M.data,M.statusCode&&M.statusCode!==200&&!g&&(m=M.statusCode),M.headers&&(p[w]=M.headers)}),b!==void 0&&r&&(h={[r[0]]:b},r[2]&&(f[r[2]]=void 0)),{loaderData:f,errors:h,statusCode:m||200,loaderHeaders:p}}function Wp(a,i,r,s,c,f){let{loaderData:h,errors:m}=l1(i,r,s);return c.filter(g=>!g.matches||g.matches.some(p=>p.shouldLoad)).forEach(g=>{let{key:p,match:b,controller:y}=g;if(y&&y.signal.aborted)return;let w=f[p];if(De(w,"Did not find corresponding fetcher result"),yn(w)){let M=ai(a.matches,b?.route.id);m&&m[M.route.id]||(m={...m,[M.route.id]:w.error}),a.fetchers.delete(p)}else if(Ui(w))De(!1,"Unhandled fetcher revalidation redirect");else{let M=Ma(w.data);a.fetchers.set(p,M)}}),{loaderData:h,errors:m}}function ey(a,i,r,s){let c=Object.entries(i).filter(([,f])=>f!==Vy).reduce((f,[h,m])=>(f[h]=m,f),{});for(let f of r){let h=f.route.id;if(!i.hasOwnProperty(h)&&a.hasOwnProperty(h)&&f.route.loader&&(c[h]=a[h]),s&&s.hasOwnProperty(h))break}return c}function ty(a){return a?yn(a[1])?{actionData:{}}:{actionData:{[a[0]]:a[1].data}}:{}}function ai(a,i){return(i?a.slice(0,a.findIndex(s=>s.route.id===i)+1):[...a]).reverse().find(s=>s.route.hasErrorBoundary===!0)||a[0]}function Fs(a){let i=a.length===1?a[0]:a.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function zn(a,{pathname:i,routeId:r,method:s,type:c,message:f}={}){let h="Unknown Server Error",m="Unknown @remix-run/router error";return a===400?(h="Bad Request",s&&i&&r?m=`You made a ${s} request to "${i}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:c==="invalid-body"&&(m="Unable to encode submission body")):a===403?(h="Forbidden",m=`Route "${r}" does not match URL "${i}"`):a===404?(h="Not Found",m=`No route matches URL "${i}"`):a===405&&(h="Method Not Allowed",s&&i&&r?m=`You made a ${s.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:s&&(m=`Invalid request method "${s.toUpperCase()}"`)),new Dr(a||500,h,new Error(m),!0)}function Ps(a){let i=Object.entries(a);for(let r=i.length-1;r>=0;r--){let[s,c]=i[r];if(Ui(c))return{key:s,result:c}}}function Jy(a){let i=typeof a=="string"?si(a):a;return ia({...i,hash:""})}function r1(a,i){return a.pathname!==i.pathname||a.search!==i.search?!1:a.hash===""?i.hash!=="":a.hash===i.hash?!0:i.hash!==""}function s1(a){return new Dr(a.init?.status??500,a.init?.statusText??"Internal Server Error",a.data)}function o1(a){return a!=null&&typeof a=="object"&&Object.entries(a).every(([i,r])=>typeof i=="string"&&u1(r))}function u1(a){return a!=null&&typeof a=="object"&&"type"in a&&"result"in a&&(a.type==="data"||a.type==="error")}function c1(a){return pf(a.result)&&Yy.has(a.result.status)}function yn(a){return a.type==="error"}function Ui(a){return(a&&a.type)==="redirect"}function ny(a){return typeof a=="object"&&a!=null&&"type"in a&&"data"in a&&"init"in a&&a.type==="DataWithResponseInit"}function pf(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.headers=="object"&&typeof a.body<"u"}function f1(a){return Yy.has(a)}function d1(a){return pf(a)&&f1(a.status)&&a.headers.has("Location")}function h1(a){return KS.has(a.toUpperCase())}function Vt(a){return QS.has(a.toUpperCase())}function yf(a){return new URLSearchParams(a).getAll("index").some(i=>i==="")}function eo(a,i){let r=typeof i=="string"?si(i).search:i.search;if(a[a.length-1].route.index&&yf(r||""))return a[a.length-1];let s=ky(a);return s[s.length-1]}function ay(a){let{formMethod:i,formAction:r,formEncType:s,text:c,formData:f,json:h}=a;if(!(!i||!r||!s)){if(c!=null)return{formMethod:i,formAction:r,formEncType:s,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:r,formEncType:s,formData:f,json:void 0,text:void 0};if(h!==void 0)return{formMethod:i,formAction:r,formEncType:s,formData:void 0,json:h,text:void 0}}}function Lc(a,i){return i?{state:"loading",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function m1(a,i){return{state:"submitting",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Sr(a,i){return a?{state:"loading",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function p1(a,i){return{state:"submitting",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i?i.data:void 0}}function Ma(a){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function y1(a,i){try{let r=a.sessionStorage.getItem(Ky);if(r){let s=JSON.parse(r);for(let[c,f]of Object.entries(s||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function g1(a,i){if(i.size>0){let r={};for(let[s,c]of i)r[s]=[...c];try{a.sessionStorage.setItem(Ky,JSON.stringify(r))}catch(s){Et(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function iy(){let a,i,r=new Promise((s,c)=>{a=async f=>{s(f);try{await r}catch{}},i=async f=>{c(f);try{await r}catch{}}});return{promise:r,resolve:a,reject:i}}var ki=_.createContext(null);ki.displayName="DataRouter";var zr=_.createContext(null);zr.displayName="DataRouterState";var $y=_.createContext(!1);function v1(){return _.useContext($y)}var gf=_.createContext({isTransitioning:!1});gf.displayName="ViewTransition";var Iy=_.createContext(new Map);Iy.displayName="Fetchers";var b1=_.createContext(null);b1.displayName="Await";var vn=_.createContext(null);vn.displayName="Navigation";var po=_.createContext(null);po.displayName="Location";var Fn=_.createContext({outlet:null,matches:[],isDataRoute:!1});Fn.displayName="Route";var vf=_.createContext(null);vf.displayName="RouteError";var Wy="REACT_ROUTER_ERROR",S1="REDIRECT",E1="ROUTE_ERROR_RESPONSE";function T1(a){if(a.startsWith(`${Wy}:${S1}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function w1(a){if(a.startsWith(`${Wy}:${E1}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Dr(i.status,i.statusText,i.data)}catch{}}function R1(a,{relative:i}={}){De(Al(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=_.useContext(vn),{hash:c,pathname:f,search:h}=Ur(a,{relative:i}),m=f;return r!=="/"&&(m=f==="/"?r:aa([r,f])),s.createHref({pathname:m,search:h,hash:c})}function Al(){return _.useContext(po)!=null}function oi(){return De(Al(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(po).location}var eg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tg(a){_.useContext(vn).static||_.useLayoutEffect(a)}function bf(){let{isDataRoute:a}=_.useContext(Fn);return a?j1():_1()}function _1(){De(Al(),"useNavigate() may be used only in the context of a <Router> component.");let a=_.useContext(ki),{basename:i,navigator:r}=_.useContext(vn),{matches:s}=_.useContext(Fn),{pathname:c}=oi(),f=JSON.stringify(ho(s)),h=_.useRef(!1);return tg(()=>{h.current=!0}),_.useCallback((g,p={})=>{if(Et(h.current,eg),!h.current)return;if(typeof g=="number"){r.go(g);return}let b=mo(g,JSON.parse(f),c,p.relative==="path");a==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:aa([i,b.pathname])),(p.replace?r.replace:r.push)(b,p.state,p)},[i,r,f,c,a])}var A1=_.createContext(null);function C1(a){let i=_.useContext(Fn).outlet;return _.useMemo(()=>i&&_.createElement(A1.Provider,{value:a},i),[i,a])}function Ur(a,{relative:i}={}){let{matches:r}=_.useContext(Fn),{pathname:s}=oi(),c=JSON.stringify(ho(r));return _.useMemo(()=>mo(a,JSON.parse(c),s,i==="path"),[a,c,s,i])}function O1(a,i,r,s,c){De(Al(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=_.useContext(vn),{matches:h}=_.useContext(Fn),m=h[h.length-1],g=m?m.params:{},p=m?m.pathname:"/",b=m?m.pathnameBase:"/",y=m&&m.route;{let Z=y&&y.path||"";ag(p,!y||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${Z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
12
|
+
|
|
13
|
+
Please change the parent <Route path="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let w=oi(),M;M=w;let B=M.pathname||"/",j=B;if(b!=="/"){let Z=b.replace(/^\//,"").split("/");j="/"+B.replace(/^\//,"").split("/").slice(Z.length).join("/")}let X=ni(a,{pathname:j});return Et(y||X!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Et(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),z1(X&&X.map(Z=>Object.assign({},Z,{params:Object.assign({},g,Z.params),pathname:aa([b,f.encodeLocation?f.encodeLocation(Z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?b:aa([b,f.encodeLocation?f.encodeLocation(Z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathnameBase])})),h,r,s,c)}function x1(){let a=q1(),i=Mr(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:f},"ErrorBoundary")," or"," ",_.createElement("code",{style:f},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},i),r?_.createElement("pre",{style:c},r):null,h)}var M1=_.createElement(x1,null),ng=class extends _.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=w1(a.digest);r&&(a=r)}let i=a!==void 0?_.createElement(Fn.Provider,{value:this.props.routeContext},_.createElement(vf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?_.createElement(D1,{error:a},i):i}};ng.contextType=$y;var Bc=new WeakMap;function D1({children:a,error:i}){let{basename:r}=_.useContext(vn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=T1(i.digest);if(s){let c=Bc.get(i);if(c)throw c;let f=jy(s.location,r);if(qy&&!Bc.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw Bc.set(i,h),h}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function N1({routeContext:a,match:i,children:r}){let s=_.useContext(ki);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),_.createElement(Fn.Provider,{value:a},r)}function z1(a,i=[],r=null,s=null,c=null){if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let f=a,h=r?.errors;if(h!=null){let b=f.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);De(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let m=!1,g=-1;if(r)for(let b=0;b<f.length;b++){let y=f[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=b),y.route.id){let{loaderData:w,errors:M}=r,B=y.route.loader&&!w.hasOwnProperty(y.route.id)&&(!M||M[y.route.id]===void 0);if(y.route.lazy||B){m=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let p=r&&s?(b,y)=>{s(b,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Nr(r.matches),errorInfo:y})}:void 0;return f.reduceRight((b,y,w)=>{let M,B=!1,j=null,X=null;r&&(M=h&&y.route.id?h[y.route.id]:void 0,j=y.route.errorElement||M1,m&&(g<0&&w===0?(ag("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,X=null):g===w&&(B=!0,X=y.route.hydrateFallbackElement||null)));let K=i.concat(f.slice(0,w+1)),Z=()=>{let $;return M?$=j:B?$=X:y.route.Component?$=_.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=b,_.createElement(N1,{match:y,routeContext:{outlet:b,matches:K,isDataRoute:r!=null},children:$})};return r&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?_.createElement(ng,{location:r.location,revalidation:r.revalidation,component:j,error:M,children:Z(),routeContext:{outlet:null,matches:K,isDataRoute:!0},onError:p}):Z()},null)}function Sf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U1(a){let i=_.useContext(ki);return De(i,Sf(a)),i}function L1(a){let i=_.useContext(zr);return De(i,Sf(a)),i}function B1(a){let i=_.useContext(Fn);return De(i,Sf(a)),i}function Ef(a){let i=B1(a),r=i.matches[i.matches.length-1];return De(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function k1(){return Ef("useRouteId")}function q1(){let a=_.useContext(vf),i=L1("useRouteError"),r=Ef("useRouteError");return a!==void 0?a:i.errors?.[r]}function j1(){let{router:a}=U1("useNavigate"),i=Ef("useNavigate"),r=_.useRef(!1);return tg(()=>{r.current=!0}),_.useCallback(async(c,f={})=>{Et(r.current,eg),r.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:i,...f}))},[a,i])}var ly={};function ag(a,i,r){!i&&!ly[a]&&(ly[a]=!0,Et(!1,r))}var ry={};function sy(a,i){!a&&!ry[i]&&(ry[i]=!0,console.warn(i))}var H1="useOptimistic",oy=Q0[H1],Q1=()=>{};function Y1(a){return oy?oy(a):[a,Q1]}function K1(a){let i={hasErrorBoundary:a.hasErrorBoundary||a.ErrorBoundary!=null||a.errorElement!=null};return a.Component&&(a.element&&Et(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:_.createElement(a.Component),Component:void 0})),a.HydrateFallback&&(a.hydrateFallbackElement&&Et(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:_.createElement(a.HydrateFallback),HydrateFallback:void 0})),a.ErrorBoundary&&(a.errorElement&&Et(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:_.createElement(a.ErrorBoundary),ErrorBoundary:void 0})),i}var V1=["HydrateFallback","hydrateFallbackElement"],G1=class{constructor(){this.status="pending",this.promise=new Promise((a,i)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",a(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",i(r))}})}};function X1({router:a,flushSync:i,onError:r,unstable_useTransitions:s}){s=v1()||s;let[f,h]=_.useState(a.state),[m,g]=Y1(f),[p,b]=_.useState(),[y,w]=_.useState({isTransitioning:!1}),[M,B]=_.useState(),[j,X]=_.useState(),[K,Z]=_.useState(),$=_.useRef(new Map),be=_.useCallback((W,{deletedFetchers:ge,newErrors:xe,flushSync:_e,viewTransitionOpts:we})=>{xe&&r&&Object.values(xe).forEach(Ke=>r(Ke,{location:W.location,params:W.matches[0]?.params??{},unstable_pattern:Nr(W.matches)})),W.fetchers.forEach((Ke,Te)=>{Ke.data!==void 0&&$.current.set(Te,Ke.data)}),ge.forEach(Ke=>$.current.delete(Ke)),sy(_e===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Be=a.window!=null&&a.window.document!=null&&typeof a.window.document.startViewTransition=="function";if(sy(we==null||Be,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!we||!Be){i&&_e?i(()=>h(W)):s===!1?h(W):_.startTransition(()=>{s===!0&&g(Ke=>uy(Ke,W)),h(W)});return}if(i&&_e){i(()=>{j&&(M?.resolve(),j.skipTransition()),w({isTransitioning:!0,flushSync:!0,currentLocation:we.currentLocation,nextLocation:we.nextLocation})});let Ke=a.window.document.startViewTransition(()=>{i(()=>h(W))});Ke.finished.finally(()=>{i(()=>{B(void 0),X(void 0),b(void 0),w({isTransitioning:!1})})}),i(()=>X(Ke));return}j?(M?.resolve(),j.skipTransition(),Z({state:W,currentLocation:we.currentLocation,nextLocation:we.nextLocation})):(b(W),w({isTransitioning:!0,flushSync:!1,currentLocation:we.currentLocation,nextLocation:we.nextLocation}))},[a.window,i,j,M,s,g,r]);_.useLayoutEffect(()=>a.subscribe(be),[a,be]),_.useEffect(()=>{y.isTransitioning&&!y.flushSync&&B(new G1)},[y]),_.useEffect(()=>{if(M&&p&&a.window){let W=p,ge=M.promise,xe=a.window.document.startViewTransition(async()=>{s===!1?h(W):_.startTransition(()=>{s===!0&&g(_e=>uy(_e,W)),h(W)}),await ge});xe.finished.finally(()=>{B(void 0),X(void 0),b(void 0),w({isTransitioning:!1})}),X(xe)}},[p,M,a.window,s,g]),_.useEffect(()=>{M&&p&&m.location.key===p.location.key&&M.resolve()},[M,j,m.location,p]),_.useEffect(()=>{!y.isTransitioning&&K&&(b(K.state),w({isTransitioning:!0,flushSync:!1,currentLocation:K.currentLocation,nextLocation:K.nextLocation}),Z(void 0))},[y.isTransitioning,K]);let me=_.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:W=>a.navigate(W),push:(W,ge,xe)=>a.navigate(W,{state:ge,preventScrollReset:xe?.preventScrollReset}),replace:(W,ge,xe)=>a.navigate(W,{replace:!0,state:ge,preventScrollReset:xe?.preventScrollReset})}),[a]),ye=a.basename||"/",C=_.useMemo(()=>({router:a,navigator:me,static:!1,basename:ye,onError:r}),[a,me,ye,r]);return _.createElement(_.Fragment,null,_.createElement(ki.Provider,{value:C},_.createElement(zr.Provider,{value:m},_.createElement(Iy.Provider,{value:$.current},_.createElement(gf.Provider,{value:y},_.createElement(J1,{basename:ye,location:m.location,navigationType:m.historyAction,navigator:me,unstable_useTransitions:s},_.createElement(Z1,{routes:a.routes,future:a.future,state:m,onError:r})))))),null)}function uy(a,i){return{...a,navigation:i.navigation.state!=="idle"?i.navigation:a.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:a.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:a.actionData,fetchers:i.fetchers}}var Z1=_.memo(F1);function F1({routes:a,future:i,state:r,onError:s}){return O1(a,void 0,r,s,i)}function P1({to:a,replace:i,state:r,relative:s}){De(Al(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=_.useContext(vn);Et(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=_.useContext(Fn),{pathname:h}=oi(),m=bf(),g=mo(a,ho(f),h,s==="path"),p=JSON.stringify(g);return _.useEffect(()=>{m(JSON.parse(p),{replace:i,state:r,relative:s})},[m,p,s,i,r]),null}function ig(a){return C1(a.context)}function J1({basename:a="/",children:i=null,location:r,navigationType:s="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){De(!Al(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),g=_.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[m,c,f,h]);typeof r=="string"&&(r=si(r));let{pathname:p="/",search:b="",hash:y="",state:w=null,key:M="default"}=r,B=_.useMemo(()=>{let j=Bn(p,m);return j==null?null:{location:{pathname:j,search:b,hash:y,state:w,key:M},navigationType:s}},[m,p,b,y,w,M,s]);return Et(B!=null,`<Router basename="${m}"> is not able to match the URL "${p}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:_.createElement(vn.Provider,{value:g},_.createElement(po.Provider,{children:i,value:B}))}var to="get",no="application/x-www-form-urlencoded";function yo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function $1(a){return yo(a)&&a.tagName.toLowerCase()==="button"}function I1(a){return yo(a)&&a.tagName.toLowerCase()==="form"}function W1(a){return yo(a)&&a.tagName.toLowerCase()==="input"}function eE(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function tE(a,i){return a.button===0&&(!i||i==="_self")&&!eE(a)}var Js=null;function nE(){if(Js===null)try{new FormData(document.createElement("form"),0),Js=!1}catch{Js=!0}return Js}var aE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kc(a){return a!=null&&!aE.has(a)?(Et(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${no}"`),null):a}function iE(a,i){let r,s,c,f,h;if(I1(a)){let m=a.getAttribute("action");s=m?Bn(m,i):null,r=a.getAttribute("method")||to,c=kc(a.getAttribute("enctype"))||no,f=new FormData(a)}else if($1(a)||W1(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=a.getAttribute("formaction")||m.getAttribute("action");if(s=g?Bn(g,i):null,r=a.getAttribute("formmethod")||m.getAttribute("method")||to,c=kc(a.getAttribute("formenctype"))||kc(m.getAttribute("enctype"))||no,f=new FormData(m,a),!nE()){let{name:p,type:b,value:y}=a;if(b==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,y)}}else{if(yo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=to,s=null,c=no,h=a}return f&&c==="text/plain"&&(h=f,f=void 0),{action:s,method:r.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tf(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function lE(a,i,r,s){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:i&&Bn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function rE(a,i){if(a.id in i)return i[a.id];try{let r=await import(a.module);return i[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sE(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function oE(a,i,r){let s=await Promise.all(a.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await rE(f,r);return h.links?h.links():[]}return[]}));return dE(s.flat(1).filter(sE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function cy(a,i,r,s,c,f){let h=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,m=(g,p)=>r[p].pathname!==g.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,p)=>h(g,p)||m(g,p)):f==="data"?i.filter((g,p)=>{let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(h(g,p)||m(g,p))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function uE(a,i,{includeHydrateFallback:r}={}){return cE(a.map(s=>{let c=i.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function cE(a){return[...new Set(a)]}function fE(a){let i={},r=Object.keys(a).sort();for(let s of r)i[s]=a[s];return i}function dE(a,i){let r=new Set;return new Set(i),a.reduce((s,c)=>{let f=JSON.stringify(fE(c));return r.has(f)||(r.add(f),s.push({key:f,link:c})),s},[])}function lg(){let a=_.useContext(ki);return Tf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function hE(){let a=_.useContext(zr);return Tf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var wf=_.createContext(void 0);wf.displayName="FrameworkContext";function rg(){let a=_.useContext(wf);return Tf(a,"You must render this element inside a <HydratedRouter> element"),a}function mE(a,i){let r=_.useContext(wf),[s,c]=_.useState(!1),[f,h]=_.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:b,onTouchStart:y}=i,w=_.useRef(null);_.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let j=K=>{K.forEach(Z=>{h(Z.isIntersecting)})},X=new IntersectionObserver(j,{threshold:.5});return w.current&&X.observe(w.current),()=>{X.disconnect()}}},[a]),_.useEffect(()=>{if(s){let j=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(j)}}},[s]);let M=()=>{c(!0)},B=()=>{c(!1),h(!1)};return r?a!=="intent"?[f,w,{}]:[f,w,{onFocus:Er(m,M),onBlur:Er(g,B),onMouseEnter:Er(p,M),onMouseLeave:Er(b,B),onTouchStart:Er(y,M)}]:[!1,w,{}]}function Er(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function pE({page:a,...i}){let{router:r}=lg(),s=_.useMemo(()=>ni(r.routes,a,r.basename),[r.routes,a,r.basename]);return s?_.createElement(gE,{page:a,matches:s,...i}):null}function yE(a){let{manifest:i,routeModules:r}=rg(),[s,c]=_.useState([]);return _.useEffect(()=>{let f=!1;return oE(a,i,r).then(h=>{f||c(h)}),()=>{f=!0}},[a,i,r]),s}function gE({page:a,matches:i,...r}){let s=oi(),{future:c,manifest:f,routeModules:h}=rg(),{basename:m}=lg(),{loaderData:g,matches:p}=hE(),b=_.useMemo(()=>cy(a,i,p,f,s,"data"),[a,i,p,f,s]),y=_.useMemo(()=>cy(a,i,p,f,s,"assets"),[a,i,p,f,s]),w=_.useMemo(()=>{if(a===s.pathname+s.search+s.hash)return[];let j=new Set,X=!1;if(i.forEach(Z=>{let $=f.routes[Z.route.id];!$||!$.hasLoader||(!b.some(be=>be.route.id===Z.route.id)&&Z.route.id in g&&h[Z.route.id]?.shouldRevalidate||$.hasClientLoader?X=!0:j.add(Z.route.id))}),j.size===0)return[];let K=lE(a,m,c.unstable_trailingSlashAwareDataRequests,"data");return X&&j.size>0&&K.searchParams.set("_routes",i.filter(Z=>j.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[K.pathname+K.search]},[m,c.unstable_trailingSlashAwareDataRequests,g,s,f,b,i,a,h]),M=_.useMemo(()=>uE(y,f),[y,f]),B=yE(y);return _.createElement(_.Fragment,null,w.map(j=>_.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),M.map(j=>_.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),B.map(({key:j,link:X})=>_.createElement("link",{key:j,nonce:r.nonce,...X,crossOrigin:X.crossOrigin??r.crossOrigin})))}function vE(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var bE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bE&&(window.__reactRouterVersion="7.13.0")}catch{}function SE(a,i){return ZS({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:uS({window:i?.window}),hydrationData:EE(),routes:a,mapRouteProperties:K1,hydrationRouteProperties:V1,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function EE(){let a=window?.__staticRouterHydrationData;return a&&a.errors&&(a={...a,errors:TE(a.errors)}),a}function TE(a){if(!a)return null;let i=Object.entries(a),r={};for(let[s,c]of i)if(c&&c.__type==="RouteErrorResponse")r[s]=new Dr(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let h=new f(c.message);h.stack="",r[s]=h}catch{}}if(r[s]==null){let f=new Error(c.message);f.stack="",r[s]=f}}else r[s]=c;return r}var sg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,og=_.forwardRef(function({onClick:i,discover:r="render",prefetch:s="none",relative:c,reloadDocument:f,replace:h,state:m,target:g,to:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:w,...M},B){let{basename:j,unstable_useTransitions:X}=_.useContext(vn),K=typeof p=="string"&&sg.test(p),Z=jy(p,j);p=Z.to;let $=R1(p,{relative:c}),[be,me,ye]=mE(s,M),C=_E(p,{replace:h,state:m,target:g,preventScrollReset:b,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:w,unstable_useTransitions:X});function W(xe){i&&i(xe),xe.defaultPrevented||C(xe)}let ge=_.createElement("a",{...M,...ye,href:Z.absoluteURL||$,onClick:Z.isExternal||f?i:W,ref:vE(B,me),target:g,"data-discover":!K&&r==="render"?"true":void 0});return be&&!K?_.createElement(_.Fragment,null,ge,_.createElement(pE,{page:$})):ge});og.displayName="Link";var ug=_.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:s="",end:c=!1,style:f,to:h,viewTransition:m,children:g,...p},b){let y=Ur(h,{relative:p.relative}),w=oi(),M=_.useContext(zr),{navigator:B,basename:j}=_.useContext(vn),X=M!=null&&ME(y)&&m===!0,K=B.encodeLocation?B.encodeLocation(y).pathname:y.pathname,Z=w.pathname,$=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(Z=Z.toLowerCase(),$=$?$.toLowerCase():null,K=K.toLowerCase()),$&&j&&($=Bn($,j)||$);const be=K!=="/"&&K.endsWith("/")?K.length-1:K.length;let me=Z===K||!c&&Z.startsWith(K)&&Z.charAt(be)==="/",ye=$!=null&&($===K||!c&&$.startsWith(K)&&$.charAt(K.length)==="/"),C={isActive:me,isPending:ye,isTransitioning:X},W=me?i:void 0,ge;typeof s=="function"?ge=s(C):ge=[s,me?"active":null,ye?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let xe=typeof f=="function"?f(C):f;return _.createElement(og,{...p,"aria-current":W,className:ge,ref:b,style:xe,to:h,viewTransition:m},typeof g=="function"?g(C):g)});ug.displayName="NavLink";var wE=_.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:s,replace:c,state:f,method:h=to,action:m,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:w,...M},B)=>{let{unstable_useTransitions:j}=_.useContext(vn),X=OE(),K=xE(m,{relative:p}),Z=h.toLowerCase()==="get"?"get":"post",$=typeof m=="string"&&sg.test(m),be=me=>{if(g&&g(me),me.defaultPrevented)return;me.preventDefault();let ye=me.nativeEvent.submitter,C=ye?.getAttribute("formmethod")||h,W=()=>X(ye||me.currentTarget,{fetcherKey:i,method:C,navigate:r,replace:c,state:f,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:w});j&&r!==!1?_.startTransition(()=>W()):W()};return _.createElement("form",{ref:B,method:Z,action:K,onSubmit:s?g:be,...M,"data-discover":!$&&a==="render"?"true":void 0})});wE.displayName="Form";function RE(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cg(a){let i=_.useContext(ki);return De(i,RE(a)),i}function _E(a,{target:i,replace:r,state:s,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let p=bf(),b=oi(),y=Ur(a,{relative:f});return _.useCallback(w=>{if(tE(w,i)){w.preventDefault();let M=r!==void 0?r:ia(b)===ia(y),B=()=>p(a,{replace:M,state:s,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m});g?_.startTransition(()=>B()):B()}},[b,p,y,r,s,i,a,c,f,h,m,g])}var AE=0,CE=()=>`__${String(++AE)}__`;function OE(){let{router:a}=cg("useSubmit"),{basename:i}=_.useContext(vn),r=k1(),s=a.fetch,c=a.navigate;return _.useCallback(async(f,h={})=>{let{action:m,method:g,encType:p,formData:b,body:y}=iE(f,i);if(h.navigate===!1){let w=h.fetcherKey||CE();await s(w,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:y,formMethod:h.method||g,formEncType:h.encType||p,flushSync:h.flushSync})}else await c(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:y,formMethod:h.method||g,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,c,i,r])}function xE(a,{relative:i}={}){let{basename:r}=_.useContext(vn),s=_.useContext(Fn);De(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Ur(a||".",{relative:i})},h=oi();if(a==null){f.search=h.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(b=>b==="")){m.delete("index"),g.filter(y=>y).forEach(y=>m.append("index",y));let b=m.toString();f.search=b?`?${b}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:aa([r,f.pathname])),ia(f)}function ME(a,{relative:i}={}){let r=_.useContext(gf);De(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=cg("useViewTransitionState"),c=Ur(a,{relative:i});if(!r.isTransitioning)return!1;let f=Bn(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=Bn(r.nextLocation.pathname,s)||r.nextLocation.pathname;return co(c.pathname,h)!=null||co(c.pathname,f)!=null}function DE(a){return _.createElement(X1,{flushSync:Dy.flushSync,...a})}function NE(){return re.jsx("div",{className:"min-h-screen bg-background text-foreground",children:re.jsx(ig,{})})}const fg=(...a)=>a.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();const zE=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const UE=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,s)=>s?s.toUpperCase():r.toLowerCase());const fy=a=>{const i=UE(a);return i.charAt(0).toUpperCase()+i.slice(1)};var LE={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"};const BE=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const kE=_.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:h,...m},g)=>_.createElement("svg",{ref:g,...LE,width:i,height:i,stroke:a,strokeWidth:s?Number(r)*24/Number(i):r,className:fg("lucide",c),...!f&&!BE(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,b])=>_.createElement(p,b)),...Array.isArray(f)?f:[f]]));const Cl=(a,i)=>{const r=_.forwardRef(({className:s,...c},f)=>_.createElement(kE,{ref:f,iconNode:i,className:fg(`lucide-${zE(fy(a))}`,`lucide-${a}`,s),...c}));return r.displayName=fy(a),r};const qE=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],jE=Cl("arrow-left",qE);const HE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],QE=Cl("bell",HE);const YE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],KE=Cl("cpu",YE);const VE=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],GE=Cl("folder-git-2",VE);const XE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],ZE=Cl("languages",XE);const FE=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],PE=Cl("users",FE),JE="/api";class $E{baseUrl;constructor(i){this.baseUrl=i}async request(i,r={}){const{params:s,...c}=r;let f=`${this.baseUrl}${i}`;if(s){const g=new URLSearchParams(s);f+=`?${g.toString()}`}const h={...c.headers};c.body!==void 0&&(h["Content-Type"]="application/json");const m=await fetch(f,{...c,headers:h});if(!m.ok){const g=await m.json().catch(()=>({}));throw new Rf(m.status,typeof g.message=="string"?g.message:typeof g.error=="string"?g.error:"Request failed",g)}if(m.status!==204)return m.json()}get(i,r){return this.request(i,{...r,method:"GET"})}post(i,r,s){return this.request(i,{...s,method:"POST",body:r?JSON.stringify(r):void 0})}put(i,r,s){return this.request(i,{...s,method:"PUT",body:r?JSON.stringify(r):void 0})}patch(i,r,s){return this.request(i,{...s,method:"PATCH",body:r?JSON.stringify(r):void 0})}delete(i,r){return this.request(i,{...r,method:"DELETE"})}}class Rf extends Error{status;details;constructor(i,r,s={}){super(r),this.name="ApiError",this.status=i,this.details=s}}const Mt=new $E(JE),pt={projects:{all:["projects"],list:a=>["projects","list",a],detail:a=>["projects","detail",a]},tasks:{all:["tasks"],list:(a,i)=>["tasks","list",a,i],detail:a=>["tasks","detail",a],stats:a=>["tasks","stats",a]},workspaces:{all:["workspaces"],list:a=>["workspaces","list",a],detail:a=>["workspaces","detail",a],diff:a=>["workspaces","diff",a],gitStatus:a=>["workspaces","gitStatus",a]},previews:{all:["previews"],status:a=>["previews","status",a]},sessions:{all:["sessions"],detail:a=>["sessions","detail",a]},files:{all:["files"],tree:(a,i)=>["files","tree",a,i],content:(a,i)=>["files","content",a,i]},git:{all:["git"],changes:a=>["git","changes",a],diff:(a,i,r)=>["git","diff",a,i,r],log:a=>["git","log",a],commitFiles:(a,i)=>["git","commitFiles",a,i],commitDiff:(a,i,r)=>["git","commitDiff",a,i,r]},profiles:{all:["profiles"],defaults:["profiles","defaults"],agent:a=>["profiles","agent",a],variant:(a,i)=>["profiles","variant",a,i]},providers:{all:["providers"],detail:a=>["providers","detail",a]},tunnel:{status:["tunnel","status"]},notifications:{settings:["notifications","settings"]},appSettings:{detail:["app-settings"]},system:{cursorAgentModels:["system","cursor-agent-models"],slashCommandCatalog:(a,i)=>["system","slash-command-catalog",a??null,i??null],skillCatalog:(a,i)=>["system","skill-catalog",a??null,i??null]}};function IE(){return _l({queryKey:pt.appSettings.detail,queryFn:()=>Mt.get("/app-settings")})}function WE(){const a=Ht();return gn({mutationFn:i=>Mt.put("/app-settings",i),onSuccess:()=>{a.invalidateQueries({queryKey:pt.appSettings.detail})}})}function Rw(){return _l({queryKey:[...pt.appSettings.detail,"commit-message-defaults"],queryFn:()=>Mt.get("/app-settings/commit-message-defaults")})}const eT={"zh-CN":{Settings:"设置",General:"通用",Back:"返回","Loading...":"加载中...","No options":"暂无选项","Processing...":"处理中...",Confirm:"确认",Cancel:"取消","General Settings":"通用设置","Display Language":"显示语言","Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.":"选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。",English:"English","Simplified Chinese":"简体中文","Language setting":"语言设置","Language setting could not be saved":"语言设置保存失败","Browse and select a Git repository, or type a path and press Enter":"浏览并选择一个 Git 仓库,或输入路径后按 Enter","Browse and select a directory, or type a path and press Enter":"浏览并选择一个目录,或输入路径后按 Enter","Select Current":"选择当前目录","Agent 配置":"Agent 配置",项目配置:"项目配置",通知:"通知",通用:"通用","AI Agent Task Management Dashboard":"AI Agent 任务管理面板","Project Management":"项目管理","Manage your AI agent projects":"管理你的 AI Agent 项目","View Projects":"查看项目","Task Board":"任务看板","Kanban-style task management":"Kanban 风格的任务管理","Open Board":"打开看板",Workspace:"工作区","Git worktree isolated environments":"Git Worktree 隔离环境","Manage Workspaces":"管理工作区","Move to":"移动到","Delete Task":"删除任务","Drop into {title}":"放入 {title}","Drop here":"拖到此处","No tasks":"暂无任务","All Projects":"所有项目","Select View":"选择视图","Create New Project...":"创建新项目...","New Task":"新建任务","{count} tasks":"{count} 个任务","Clear filter":"清除筛选",Review:"待审查",Running:"进行中",Pending:"待开始",Done:"已完成",Cancelled:"已取消",Changes:"变更",History:"历史",Editor:"编辑器",Terminal:"终端",Preview:"预览","Coming soon...":"即将推出...",Modified:"已修改",Added:"已新增",Deleted:"已删除",Renamed:"已重命名","Loading diff...":"正在加载差异...","Failed to load diff.":"加载差异失败。","No diff content available.":"没有可显示的差异内容。","No workspace selected.":"未选择工作区。","Loading changes...":"正在加载变更...","Failed to load changes.":"加载变更失败。","No pending changes":"暂无待处理变更",Uncommitted:"未提交",Committed:"已提交","Select a file to view diff":"选择一个文件以查看差异","{count}s ago":"{count} 秒前","{count}m ago":"{count} 分钟前","{count}h ago":"{count} 小时前","{count}d ago":"{count} 天前","Loading files...":"正在加载文件列表...","No files changed":"没有文件变更","Loading history...":"正在加载历史记录...","Failed to load history.":"加载历史记录失败。","No commit history":"暂无提交历史","Load more":"加载更多","Select a commit to view changes":"选择一个提交以查看变更","Zoom out":"缩小","Reset zoom":"重置缩放","Zoom in":"放大","Fit to view":"适应视图","Failed to load image.":"加载图片失败。","Close tab":"关闭标签页",Close:"关闭","Expand file tree":"展开文件树","No open files":"暂无打开文件",Saving:"保存中",Unsaved:"未保存","Select a file from the tree to open.":"从文件树中选择一个文件以打开。","Loading file...":"正在加载文件...","Failed to load file":"加载文件失败","Failed to load":"加载失败",Files:"文件","No working directory":"未选择工作目录","Refresh file tree":"刷新文件树","Collapse file tree":"收起文件树","Shell {count}":"终端 {count}","New Terminal":"新终端","No terminals open":"暂无打开终端",Disconnected:"未连接","Connecting...":"连接中...",Connected:"已连接","No active session":"暂无活动会话","Create a workspace and start a session to see terminal output.":"创建工作区并启动会话后即可查看终端输出。","Process exited with code {code}":"进程已退出,退出码 {code}","Error: {message}":"错误: {message}","Session: {id}":"会话: {id}","Tunnel active":"隧道已启用","Share via tunnel":"通过隧道分享","Tunnel Active":"隧道已启用","Tunnel healthy":"隧道健康","Tunnel needs attention":"隧道需要注意","Tunnel unavailable":"隧道不可用","Tunnel starting":"隧道启动中","Tunnel is off":"隧道未开启","Checking tunnel health":"正在检查隧道健康","Observing original link":"正在观察原链接","Local service unavailable":"本地服务不可用","Tunnel process exited":"隧道进程已退出","Tunnel error":"隧道错误","New link generated":"新链接已生成","Start a temporary Quick Tunnel when you need to share this Agent Tower session.":"需要分享当前 Agent Tower 会话时,可以启动一个临时 Quick Tunnel。","The local Agent Tower service and the current public URL are both reachable.":"本地 Agent Tower 服务和当前公网链接都可访问。","The tunnel URL exists. Agent Tower is checking whether the original public URL is reachable.":"隧道链接已生成,Agent Tower 正在检查原公网链接是否可访问。","The original public URL is currently unreachable. Agent Tower is watching for it to recover and will not generate a new link automatically.":"原公网链接当前不可访问。Agent Tower 正在观察它是否恢复,不会自动生成新链接。","The local Agent Tower target is not responding, so the tunnel cannot be considered healthy.":"本地 Agent Tower 目标没有响应,因此隧道不能视为健康。","The tunnel process has exited. The old Quick Tunnel link is unlikely to recover.":"隧道进程已退出,旧 Quick Tunnel 链接大概率无法恢复。","The tunnel reported an error. Check the diagnostics before generating a new link.":"隧道报告了错误。生成新链接前请先查看诊断信息。","A new Quick Tunnel link was generated. The old link and token are no longer valid.":"已生成新的 Quick Tunnel 链接。旧链接和 token 已失效。","Agent Tower is asking Cloudflare Quick Tunnel for a temporary public URL.":"Agent Tower 正在向 Cloudflare Quick Tunnel 申请临时公网链接。","Last checked":"上次检查","Last healthy":"上次健康",Never:"从未","Agent Tower is keeping the same URL and waiting for Cloudflare Quick Tunnel to recover.":"Agent Tower 会保留同一个 URL,并等待 Cloudflare Quick Tunnel 自行恢复。","The previous tunnel link and token are no longer valid.":"之前的隧道链接和 token 已不再有效。","Generating a new link will invalidate the current link. People using the old URL must receive the new one.":"生成新链接会使当前链接失效。正在使用旧 URL 的人需要收到新链接。","Regenerate link":"重新生成链接","Generating...":"生成中...","Token protected":"受 Token 保护","Copy shareable link":"复制分享链接","Hide token":"隐藏 Token","Show token":"显示 Token","Copy token":"复制 Token","Stopping...":"停止中...","Stop Tunnel":"停止隧道","Create & Start":"创建并启动","Create TeamRun":"创建 TeamRun","Creating TeamRun...":"正在创建 TeamRun...","Team Status":"团队状态","Team mode":"团队模式","Review reason":"审查原因",Members:"成员","No members":"暂无成员",Queue:"队列","No queued work requests":"暂无排队中的工作请求","Active invocations":"活动调用","No active invocations":"暂无活动调用","Recently completed":"最近完成","No completed invocations":"暂无已完成调用","New session per request":"每次新会话","Resume last session":"复用上次会话",Latest:"最新","Invocation history":"调用历史","No invocation history":"暂无调用历史",Invocation:"调用",Session:"会话","View log":"查看日志","View details":"查看详情","Team room":"团队房间","No room messages yet":"暂无房间消息",Messages:"消息","Work requests":"工作请求","Active work":"进行中的工作",Working:"正在工作","Queued...":"排队中...","Waiting reply...":"等待回复...",running:"进行中",queued:"排队",waiting:"等待",ended:"已结束",Elapsed:"耗时",Failed:"失败","Session ended":"会话已结束","Failed to send room message":"发送房间消息失败",selected:"已选择","Back to bottom":"回到底部","Expand full message":"展开全部","Collapse message":"收起","Invocation details":"调用详情","Back to room":"返回群聊","Pending approval":"待审批","No pending approvals":"暂无待审批项",Requester:"发起者",User:"用户",System:"系统","Waiting room reply":"等待房间回复",Queued:"排队中",Idle:"空闲","Queue if busy":"忙碌时排队","Cancel current if busy":"忙碌时取消当前并开始","Cancel queued":"取消排队",Approve:"批准",Approving:"批准中...",Reject:"拒绝",Rejecting:"拒绝中...",Cancelling:"取消中...","Failed to update work request":"更新工作请求失败","Failed to cancel work request":"取消工作请求失败",Stop:"停止","Stop running work?":"停止正在运行的工作?","Stop only":"仅停止","Stop + clear queue":"停止并清空队列",Stopping:"停止中...","Failed to stop member work":"停止成员工作失败",Yes:"是",No:"否","Creating Task...":"正在创建任务...","Creating Workspace...":"正在创建工作区...","Creating Session...":"正在创建会话...","Starting Agent...":"正在启动 Agent...","Create New Project":"创建新项目","Creating...":"创建中...","Checking...":"检查中...",Create:"创建","Create Project":"创建项目","Initialize Git repository?":"初始化 Git 仓库?","Initialize and Create":"初始化并创建","This directory is empty and does not have Git version control yet. Agent Tower can initialize Git and create the initial commit before creating the project.":"该目录为空且尚未启用 Git 版本管理。Agent Tower 可以先初始化 Git 并创建初始提交,然后再创建项目。","The selected directory is not a Git repository and is not empty. Initialize Git manually and make an initial commit, then create the project.":"所选目录不是 Git 仓库且不为空。请手动初始化 Git 并完成首次提交,然后再创建项目。","Selected path is not a valid directory":"所选路径不是有效目录","Could not check repository path":"无法检查仓库路径","Project Name":"项目名称","e.g., Agent Tower":"例如:Agent Tower","Repository Path":"仓库路径","Create New Task":"创建新任务",Execution:"执行方式","Solo Agent":"Solo Agent",Project:"项目",Provider:"Provider",Agent:"Agent","Select project...":"选择项目...","Select provider...":"选择 Provider...","Task Title":"任务标题","e.g., Implement login flow":"例如:实现登录流程",Description:"描述","Optional...":"可选...","Optional description...":"可选描述...","Drop files here":"将文件拖到这里","Attach files":"添加文件","or paste files":"或粘贴文件","or paste/drag files":"或粘贴/拖拽文件","Drag to resize":"拖动以调整大小","Failed to create task":"创建任务失败","Failed to create project":"创建项目失败","Select a task from the sidebar to view logs, monitor execution, or interact with an agent.":"从侧边栏选择一个任务,以查看日志、监控执行过程,或与 Agent 交互。","Open in IDE":"在 IDE 中打开","Toggle Workspace":"切换工作区面板","More actions":"更多操作","No description":"暂无描述","Setup ({current}/{total}): {command}":"Setup({current}/{total}):{command}","Loading logs...":"正在加载日志...","Waiting for agent output...":"等待 Agent 输出...","No logs recorded for this session.":"当前会话暂无日志记录。","Scroll to bottom":"滚动到底部","Drop files here...":"将文件拖到这里...","Continue conversation...":"继续对话...","Message Agent...":"给 Agent 发送消息...","Upload file":"上传文件","Uploading...":"上传中..."},en:{设置:"Settings",通用:"General",返回:"Back","加载中...":"Loading...",暂无选项:"No options","处理中...":"Processing...",确认:"Confirm",取消:"Cancel",通用设置:"General Settings",显示语言:"Display Language","选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。":"Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.",简体中文:"Simplified Chinese",语言设置:"Language setting",语言设置保存失败:"Language setting could not be saved","Agent 配置":"Agent Settings",项目配置:"Project Settings",通知:"Notifications","暂无项目,请先创建项目":"No projects yet. Create one first.",选择项目:"Select Project","选择项目...":"Select project...",自动复制文件:"Auto-copy Files","创建 worktree 时自动从主仓库复制的文件或目录。支持 glob 模式。":"Files or directories to copy from the main repository when creating a worktree. Glob patterns are supported.","适用于不在 git 管理中但启动必需的文件,如 .env、node_modules、数据库文件等":"Useful for required startup files that are not tracked by git, such as .env, node_modules, or database files.","Setup 脚本":"Setup Script","创建 worktree 后自动执行的命令,每行一条,按顺序执行。":"Commands to run automatically after creating the worktree, one per line in order.","命令在 worktree 目录下执行,单条命令超时 5 分钟,失败不会阻断后续命令":"Commands run inside the worktree directory. Each command times out after 5 minutes, and a failure does not block later commands.",常用命令:"Quick Commands","在终端中可快速执行的命令,不会自动运行。":"Commands that can be run quickly in the terminal. They are not executed automatically.","保存中...":"Saving...",保存:"Save",系统通知:"System Notifications",任务完成时弹出桌面通知:"Show a desktop notification when a task finishes.",第三方通知:"Third-party Notifications",选择一个第三方渠道接收通知:"Choose a third-party channel to receive notifications.",无:"None",飞书:"Feishu",测试发送:"Send Test",发送成功:"Sent successfully",发送失败:"Send failed","跳转地址(用于生成任务链接)":"Base URL (used to generate task links)",'通知卡片中的"查看任务"按钮将跳转到 {path}':'The "View Task" button in the notification card will open {path}',通知模板:"Notification Templates","支持变量: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}":"Supported variables: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}",标题模板:"Title Template",内容模板:"Body Template",'✅ "{taskTitle}" 已完成,等待审查':'✅ "{taskTitle}" is complete and ready for review',保存所有更改:"Save All Changes","启动失败: {message}":"Start failed: {message}",未知错误:"Unknown error",会话已停止:"Session stopped","Agent 交互演示":"Agent Interaction Demo","选择 Agent":"Select Agent","输入你的问题或任务...":"Enter your question or task...","启动中...":"Starting...",开始:"Start",对话:"Conversation",已连接:"Connected","连接中...":"Connecting...",未连接:"Disconnected",停止:"Stop","选择 Agent 并输入问题开始对话":"Select an agent and enter a prompt to start chatting.",你:"You","发送后续消息...":"Send a follow-up message...",发送:"Send",新会话:"New Session",未选择:"Not selected",连接:"Connection","Profiles 设置":"Profile Settings","配置变体 (Profile Variant)":"Profile Variant",输入任务:"Task Input","等待 Agent 响应...":"Waiting for agent output...","发送消息给 Agent...":"Send a message to the agent...","启动失败,请重试":"Failed to start. Please try again.",启动:"Start","创建工作空间...":"Creating workspace...","创建会话...":"Creating session...","启动 Agent...":"Starting agent...","启动 Agent":"Start Agent","选择 Provider":"Select Provider"," (不可用)":" (Unavailable)",任务描述:"Task Description","描述你想让 Agent 完成的任务...":"Describe the task you want the agent to complete...","输入文件路径...":"Enter a file path...",添加:"Add",添加此目录:"Add this directory",名称:"Name",命令:"Command",切换渠道:"Switch Provider","(默认)":"(Default)","留空为 auto;或直接输入模型 ID(与 cursor-agent --model 一致)":"Leave empty for auto, or enter a model ID directly (same as cursor-agent --model).","正在加载 cursor-agent 模型列表…":"Loading cursor-agent model list...",收起列表:"Collapse List","从本机 cursor-agent 选择({count} 个)":"Choose from local cursor-agent ({count})","筛选模型…":"Filter models...","默认 (auto)":"Default (auto)",无匹配项:"No matches",请求失败:"Request failed","无法从本机加载模型列表({error})。仍可手动输入;或在安装 cursor-agent 的机器上运行":"Could not load models from the local machine ({error}). You can still enter one manually, or run","查看 ID。":"to inspect available IDs.","JSON 格式错误":"Invalid JSON format","确定删除 {agentType} / {variant}?":"Delete {agentType} / {variant}?",新增:"New",内置:"Built-in","新增 Variant — {agentType}":"New Variant — {agentType}","编辑 {variant}":"Edit {variant}","Variant 名称":"Variant Name","例如: CUSTOM":"e.g. CUSTOM","配置 (JSON)":"Configuration (JSON)","状态变更失败,该操作不被允许":"Status change failed. This action is not allowed.","Git 操作":"Git Operations",删除任务:"Delete Task","Setup 完成":"Setup complete","Setup 失败: {error}":"Setup failed: {error}","尚未启动 Agent":"No agent started yet","选择一个 Agent 来执行此任务":"Choose an agent to execute this task.","选择一个 Agent 来执行此任务,Agent 将自动创建工作空间并开始工作。":"Choose an agent to execute this task. The agent will create a workspace automatically and start working.",回到底部:"Back to Bottom","代码已合并,以上为历史沟通记录":"The code has been merged. The conversation above is historical.","启动新 Agent":"Start New Agent","确认删除任务「{title}」?此操作不可撤销。":'Delete task "{title}"? This action cannot be undone.',删除:"Delete","正在运行的 Agent 将被停止":"The running agent will be stopped.",分支上未合并的变更将丢失:"Unmerged changes on the branch will be lost.","关联的工作目录(worktree)将被清理":"The associated worktree directory will be cleaned up.","{opLabel} 冲突 — {count} 个文件":"{opLabel} conflicts — {count} files",中止操作:"Abort Operation",解决冲突:"Resolve Conflicts","解决 {opLabel} 冲突":"Resolve {opLabel} Conflicts","在 IDE 中打开":"Open in IDE","发送中...":"Sending...","AI 辅助解决":"Resolve with AI","冲突文件({count})":"Conflicted Files ({count})","选择 Session(AI 辅助解决)":"Choose Session (Resolve with AI)","选择一个 Session...":"Select a session...","没有可用的 Session,请在 IDE 中手动解决冲突。":"No session is available. Please resolve the conflicts manually in your IDE.","TeamRun 模式下会把处理冲突请求发送到 Team Room,由团队调度处理。":"In TeamRun mode, the conflict request will be sent to Team Room for team scheduling.","已发送到 Team Room":"Sent to Team Room",快捷命令:"Quick Commands",待办:"Todos","上下文: {used} / {max} tokens":"Context: {used} / {max} tokens","已使用: {used} tokens":"Used: {used} tokens",可用:"Available",不可用:"Unavailable",该类型暂无运行配置:"No runtime configuration is available for this type.","追加 Prompt":"Append Prompt","追加到每次 prompt 末尾的文本":"Text appended to the end of every prompt.",跳过权限确认:"Skip Permission Confirmation",模型:"Model",强制执行:"Force Execution",跳过所有确认和沙盒:"Skip All Confirmations and Sandbox",Profile:"Profile","~/.codex/config.toml 中的 profile 名称":"Profile name in ~/.codex/config.toml",是:"Yes",否:"No",覆盖:"Overwrite",跳过:"Skip","JSON 语法错误":"Invalid JSON syntax","TOML 语法错误: {message}":"Invalid TOML syntax: {message}","编辑 Provider":"Edit Provider","新建 Provider":"New Provider","例如: Claude Code (官方)":"e.g. Claude Code (Official)","Agent 类型":"Agent Type","选择 Agent 类型":"Select Agent Type","设为该类型的默认 Provider":"Set as the default provider for this agent type",运行配置:"Runtime Configuration",环境变量:"Environment Variables","注入到 Agent 进程的环境变量。Codex 的":"Environment variables injected into the agent process. Codex","指定的是变量名,实际值需在此处设置。":"specifies the variable name in env_key, and the actual value must be set here.","变量名,如 AZURE_OPENAI_API_KEY":"Variable name, e.g. AZURE_OPENAI_API_KEY",值:"Value",添加变量:"Add Variable","CLI 原生配置 (config.toml)":"Native CLI Config (config.toml)","CLI 原生配置 (settings.json)":"Native CLI Config (settings.json)","直接填写 Codex":"Enter a Codex","格式的配置片段,通过":"configuration snippet directly and inject it via","参数注入。不会修改你的":". It will not modify your","文件。":"file.","对应 Claude Code 的":"This corresponds to Claude Code",通过:"and is injected through","参数注入。在":". Configure","中设置 ANTHROPIC_API_KEY、ANTHROPIC_BASE_URL 等。":"inside env, such as ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.","导出 Provider 备份":"Export Provider Backup","导出中...":"Exporting...",导出备份:"Export Backup","导出的备份文件将包含完整的 Provider 配置,包括环境变量、CLI settings 等敏感信息。任何拿到文件的人都可能直接使用这些 Provider。":"The exported backup file contains the full provider configuration, including sensitive information such as environment variables and CLI settings. Anyone with this file may be able to use those providers directly.","这个功能用于备份和迁移,不用于分享配置。":"This feature is for backup and migration, not for sharing configuration.","导出内容只包含用户层配置:自定义 Provider,以及对内置 Provider 的覆盖。":"The export only contains user-level configuration: custom providers and overrides of built-in providers.","我已知晓该备份文件包含敏感信息,只会保存在安全位置。":"I understand that this backup contains sensitive information and will only store it in a secure location.","导入 Provider 备份":"Import Provider Backup","导入中...":"Importing...","确认导入 {count} 项":"Import {count} item(s)","导出时间:{value}":"Exported at: {value}","模式:完整备份(含敏感信息)":"Mode: Full backup (contains sensitive data)","文件内 Provider 数量:{count}":"Providers in file: {count}","将覆盖当前已有的 Provider:{name}":"This will overwrite the existing provider: {name}","当前同 ID Provider 配置一致,本次不会重复写入。":"The provider with the same ID is already identical. It will not be written again.","当前不存在同 ID Provider,将直接新增。":"No provider with the same ID exists. It will be created directly.","系统内置 Provider 不可删除":"Built-in providers cannot be deleted.","已恢复默认 Provider 配置":"Default provider configuration restored.","Provider 已删除":"Provider deleted.","删除 Provider 失败":"Failed to delete provider.","Provider 备份已导出":"Provider backup exported.","导出 Provider 备份失败":"Failed to export provider backup.","备份文件不是有效的 JSON":"The backup file is not valid JSON.",导入预览失败:"Failed to preview import.","导入完成,当前配置无需变更":"Import complete. No changes were needed.","导入完成:新增 {create},覆盖 {overwrite},跳过 {skip}":"Import complete: created {create}, overwritten {overwrite}, skipped {skip}","导入 Provider 备份失败":"Failed to import provider backup.","Provider 配置":"Provider Configuration","管理 AI Agent 的连接配置和运行参数":"Manage AI agent connection settings and runtime parameters.",导入备份:"Import Backup","暂无 Provider 配置":"No providers configured yet.",默认:"Default","CLI 配置:":"CLI Config:",已配置:"Configured","环境变量:":"Environment Variables:",编辑:"Edit",删除自定义覆盖并恢复默认:"Delete custom override and restore default","恢复默认 Provider":"Restore Default Provider",'确定删除 "{name}" 的自定义覆盖,并恢复系统默认配置?':'Delete the custom override for "{name}" and restore the system default configuration?','确定删除 "{name}"?此操作不可撤销。':'Delete "{name}"? This action cannot be undone.',恢复默认:"Restore Default","{count} 个未提交变更":"{count} uncommitted changes","{count} 个冲突文件":"{count} conflicted files",变基进行中:"Rebase in progress",合并进行中:"Merge in progress","领先 {count} 个提交":"{count} commits ahead","落后 {count} 个提交":"{count} commits behind",已是最新:"Up to date","工作区有未提交的变更,请先让 Agent 提交或手动处理后再执行 Rebase / Merge 操作。":"The workspace has uncommitted changes. Ask the agent to commit them or handle them manually before running Rebase / Merge.",变基失败:"Rebase failed",合并失败:"Merge failed",确认合并:"Confirm Merge","加载分支状态...":"Loading branch status...","变基中...":"Rebasing...","变基 (Rebase)":"Rebase","将当前分支变基到最新的 {targetBranch}":"Rebase the current branch onto the latest {targetBranch}","合并 (Merge)":"Merge","合并中...":"Merging...","Squash merge 到 {targetBranch}":"Squash merge into {targetBranch}",提交消息:"Commit Message","输入提交消息...":"Enter commit message...",留空将使用默认消息:"Leave blank to use the default message.","Git Commit Message":"Git Commit Message","配置自动生成 commit message 时使用的 Agent 渠道和提示词。":"Configure the agent provider and prompt used for auto-generating commit messages.","Agent 渠道":"Agent Provider",跟随任务:"Follow Task",'"跟随任务"表示使用当前任务所用的 Agent 渠道。选择具体渠道可使用更经济的模型。':'"Follow Task" uses the same provider as the current task. Select a specific provider to use a more cost-effective model.',提示词模板:"Prompt Template","自定义生成 commit message 的提示词。留空则使用内置默认模板。":"Custom prompt for generating commit messages. Leave empty to use the built-in default template.",保存失败:"Save failed",已保存:"Saved",已创建:"Created",创建:"Create",团队协作:"Team Collaboration",团队协作设置:"Team Collaboration Settings","管理成员预设与团队模板。":"Manage member presets and team templates.",成员预设:"Member Presets",团队模板:"Team Templates","点击列表项可编辑。":"Click an item to edit it.",当前没有成员预设:"No member presets yet.",当前没有团队模板:"No team templates yet.",创建新成员预设:"Create a new member preset",编辑成员预设:"Edit member preset",创建新团队模板:"Create a new team template",编辑团队模板:"Edit team template",成员预设名称:"Member preset name",成员预设别名:"Member preset aliases",成员预设头像:"Member preset avatar",成员预设角色提示词:"Member preset role prompt",团队模板名称:"Team template name",别名:"Aliases",头像:"Avatar",角色提示词:"Role Prompt",可用能力:"Capabilities",工作区策略:"Workspace Policy",触发策略:"Trigger Policy",共享:"Shared",独占:"Dedicated",仅提及:"Mention only",所有用户消息:"All user messages",读房间:"Read room",发房间消息:"Post room message",提及成员:"Mention members",停止成员工作:"Stop member work",标记可审查:"Mark ready for review",读文件:"Read files",写文件:"Write files",运行命令:"Run commands","读 diff":"Read diff",合并工作区:"Merge workspace","{count} 个成员":"{count} member(s)","Provider 列表加载失败":"Failed to load providers","Provider 列表加载失败,无法创建或修改成员预设。":"Failed to load providers. Member presets cannot be created or updated.",成员预设加载失败:"Failed to load member presets",团队模板加载失败:"Failed to load team templates","请稍后重试。":"Please try again later.",重试:"Retry","暂无可用 Provider,请先在 Agent 配置中创建。":"No available provider. Create one in Agent Settings first.","alice, a, reviewer":"alice, a, reviewer","选择顺序即保存顺序。":"Selection order is the saved order.",已选成员:"Selected Members","上移下移后即为保存顺序。":"Use up/down to change the saved order.",尚未选择成员预设:"No member presets selected yet.","先创建成员预设,再配置团队模板。":"Create member presets first, then configure a team template.",删除失败:"Delete failed",上移:"Move up",下移:"Move down","创建 TeamRun":"Create TeamRun",TeamRun:"TeamRun",模式:"Mode",执行模式:"Execution mode","TeamRun 模式":"TeamRun mode",确认模式:"Confirm mode",自动模式:"Auto mode","默认使用自动模式,团队消息会直接排队执行。":"Auto mode is the default. Team messages are queued for execution directly.","模板成员会先加入,随后按顺序追加所选成员。":"Template members are added first, then the selected members are appended in order.","请选择至少一个团队模板或成员预设。":"Select at least one team template or member preset.","该任务已经存在 TeamRun。请刷新后再试。":"This task already has a TeamRun. Refresh and try again.","创建 TeamRun 失败":"Failed to create TeamRun","前往 /settings/team 创建":"Go to /settings/team to create one"}},dg=_.createContext(null);function tT(a){return a?a==="en"?"en":a==="zh-CN"?"zh-CN":null:null}function nT(){return typeof navigator>"u"||navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en"}function aT(a,i){if(!i)return a;let r=a;for(const[s,c]of Object.entries(i))r=r.replaceAll(`{${s}}`,String(c??""));return r}let Wc="zh-CN";function hg(a,i,r){const s=eT[a][i]??i;return aT(s,r)}function iT(a,i){return hg(Wc,a,i)}function lT({children:a}){const i=_.useRef(nT()),[r,s]=_.useState(i.current),{data:c}=IE(),f=WE(),h=_.useRef(!1),m=_.useCallback(b=>{Wc=b,s(b),document.documentElement.lang=b},[]);_.useEffect(()=>{const b=tT(c?.locale)??i.current;m(b),c&&c.locale===null&&!h.current&&(h.current=!0,f.mutate({locale:b}))},[c,m,f]);const g=_.useCallback(b=>{const y=Wc;m(b),f.mutate({locale:b},{onError:()=>{m(y),Xb.error(iT("语言设置保存失败"))}})},[m,f]),p=_.useMemo(()=>({locale:r,setLocale:g,t:(b,y)=>hg(r,b,y)}),[r,g]);return re.jsx(dg.Provider,{value:p,children:a})}function mg(){const a=_.useContext(dg);if(!a)throw new Error("useI18n must be used within I18nProvider");return a}const rT="/assets/agent-tower-logo-COx9gy77.png";function sT({className:a="h-7 w-7"}){return re.jsx("img",{src:rT,alt:"Agent Tower",className:`block shrink-0 object-contain ${a}`})}const oT=[{to:"/settings/general",label:"通用",icon:ZE},{to:"/settings/agents",label:"Agent 配置",icon:KE},{to:"/settings/team",label:"团队协作",icon:PE},{to:"/settings/projects",label:"项目配置",icon:GE},{to:"/settings/notifications",label:"通知",icon:QE}];function uT(){const a=bf(),{t:i}=mg();return re.jsxs("div",{className:"h-screen flex flex-col bg-white",children:[re.jsxs("header",{className:"h-12 flex items-center justify-between px-4 border-b border-neutral-100 bg-white shrink-0 z-30",children:[re.jsxs("div",{className:"flex items-center gap-2.5",children:[re.jsx(sT,{}),re.jsx("span",{className:"text-sm font-bold tracking-tight text-neutral-900",children:"Agent Tower"}),re.jsx("span",{className:"text-neutral-200 text-sm",children:"/"}),re.jsx("span",{className:"text-sm text-neutral-500",children:i("设置")})]}),re.jsxs("button",{onClick:()=>a("/"),className:"flex items-center gap-1.5 text-xs text-neutral-400 hover:text-neutral-900 transition-colors",children:[re.jsx(jE,{size:14}),re.jsx("span",{children:i("返回")})]})]}),re.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[re.jsx("nav",{className:"w-48 border-r border-neutral-100 pt-3 px-2 shrink-0",children:oT.map(r=>re.jsxs(ug,{to:r.to,className:({isActive:s})=>`flex items-center gap-2 px-3 py-1.5 rounded-md text-[13px] transition-colors ${s?"bg-neutral-100 text-neutral-900 font-medium":"text-neutral-500 hover:text-neutral-900 hover:bg-neutral-50"}`,children:[re.jsx(r.icon,{size:14}),re.jsx("span",{children:i(r.label)})]},r.to))}),re.jsx("div",{className:"flex-1 overflow-y-auto",children:re.jsx(ig,{})})]})]})}const cT=_.lazy(()=>Da(()=>import("./ProjectKanbanPage-B1Ckl1uY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])).then(a=>({default:a.ProjectKanbanPage}))),fT=_.lazy(()=>Da(()=>import("./DemoPage-DlfG47rV.js"),__vite__mapDeps([17,8,5])).then(a=>({default:a.DemoPage}))),dT=_.lazy(()=>Da(()=>import("./AgentDemoPage-Bf6labVB.js"),__vite__mapDeps([18,1,2,3,4,5,6,8,19,11])).then(a=>({default:a.AgentDemoPage}))),hT=_.lazy(()=>Da(()=>import("./GeneralSettingsPage-DefqwzVn.js"),__vite__mapDeps([20,15,5,4,13])).then(a=>({default:a.GeneralSettingsPage}))),mT=_.lazy(()=>Da(()=>import("./ProfileSettingsPage-BkZE2yVP.js"),__vite__mapDeps([21,19,8,5,7,22])).then(a=>({default:a.ProfileSettingsPage}))),pT=_.lazy(()=>Da(()=>import("./ProviderSettingsPage-DSQYe8B6.js"),__vite__mapDeps([23,13,8,5,14,7,15,4,2,24,22,25])).then(a=>({default:a.ProviderSettingsPage}))),yT=_.lazy(()=>Da(()=>import("./TeamSettingsPage-DUukJ_Ih.js"),__vite__mapDeps([26,8,5,14,7,15,4,10,13,24,11])).then(a=>({default:a.TeamSettingsPage}))),gT=_.lazy(()=>Da(()=>import("./NotificationSettingsPage-C9h1U1Za.js"),__vite__mapDeps([27,8,5,15,4,9,25])).then(a=>({default:a.NotificationSettingsPage}))),vT=_.lazy(()=>Da(()=>import("./ProjectSettingsPage-ByZ13awb.js"),__vite__mapDeps([28,12,5,3,9,4,8,15,7])).then(a=>({default:a.ProjectSettingsPage})));function xa(){const{t:a}=mg();return re.jsx("div",{className:"p-8",children:a("Loading...")})}const bT=SE([{path:"/",element:re.jsx(NE,{}),children:[{index:!0,element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(cT,{})})},{path:"demo",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(fT,{})})},{path:"agent-demo",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(dT,{})})},{path:"settings",element:re.jsx(uT,{}),children:[{index:!0,element:re.jsx(P1,{to:"general",replace:!0})},{path:"general",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(hT,{})})},{path:"agents",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(pT,{})})},{path:"team",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(yT,{})})},{path:"agents-legacy",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(mT,{})})},{path:"notifications",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(gT,{})})},{path:"projects",element:re.jsx(_.Suspense,{fallback:re.jsx(xa,{}),children:re.jsx(vT,{})})}]}]}]);function ST(){return re.jsx(DE,{router:bT})}const la=Object.create(null);la.open="0";la.close="1";la.ping="2";la.pong="3";la.message="4";la.upgrade="5";la.noop="6";const ao=Object.create(null);Object.keys(la).forEach(a=>{ao[la[a]]=a});const ef={type:"error",data:"parser error"},pg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",yg=typeof ArrayBuffer=="function",gg=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,_f=({type:a,data:i},r,s)=>pg&&i instanceof Blob?r?s(i):dy(i,s):yg&&(i instanceof ArrayBuffer||gg(i))?r?s(i):dy(new Blob([i]),s):s(la[a]+(i||"")),dy=(a,i)=>{const r=new FileReader;return r.onload=function(){const s=r.result.split(",")[1];i("b"+(s||""))},r.readAsDataURL(a)};function hy(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let qc;function ET(a,i){if(pg&&a.data instanceof Blob)return a.data.arrayBuffer().then(hy).then(i);if(yg&&(a.data instanceof ArrayBuffer||gg(a.data)))return i(hy(a.data));_f(a,!1,r=>{qc||(qc=new TextEncoder),i(qc.encode(r))})}const my="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<my.length;a++)_r[my.charCodeAt(a)]=a;const TT=a=>{let i=a.length*.75,r=a.length,s,c=0,f,h,m,g;a[a.length-1]==="="&&(i--,a[a.length-2]==="="&&i--);const p=new ArrayBuffer(i),b=new Uint8Array(p);for(s=0;s<r;s+=4)f=_r[a.charCodeAt(s)],h=_r[a.charCodeAt(s+1)],m=_r[a.charCodeAt(s+2)],g=_r[a.charCodeAt(s+3)],b[c++]=f<<2|h>>4,b[c++]=(h&15)<<4|m>>2,b[c++]=(m&3)<<6|g&63;return p},wT=typeof ArrayBuffer=="function",Af=(a,i)=>{if(typeof a!="string")return{type:"message",data:vg(a,i)};const r=a.charAt(0);return r==="b"?{type:"message",data:RT(a.substring(1),i)}:ao[r]?a.length>1?{type:ao[r],data:a.substring(1)}:{type:ao[r]}:ef},RT=(a,i)=>{if(wT){const r=TT(a);return vg(r,i)}else return{base64:!0,data:a}},vg=(a,i)=>i==="blob"?a instanceof Blob?a:new Blob([a]):a instanceof ArrayBuffer?a:a.buffer,bg="",_T=(a,i)=>{const r=a.length,s=new Array(r);let c=0;a.forEach((f,h)=>{_f(f,!1,m=>{s[h]=m,++c===r&&i(s.join(bg))})})},AT=(a,i)=>{const r=a.split(bg),s=[];for(let c=0;c<r.length;c++){const f=Af(r[c],i);if(s.push(f),f.type==="error")break}return s};function CT(){return new TransformStream({transform(a,i){ET(a,r=>{const s=r.length;let c;if(s<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,s);else if(s<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}a.data&&typeof a.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(r)})}})}let jc;function $s(a){return a.reduce((i,r)=>i+r.length,0)}function Is(a,i){if(a[0].length===i)return a.shift();const r=new Uint8Array(i);let s=0;for(let c=0;c<i;c++)r[c]=a[0][s++],s===a[0].length&&(a.shift(),s=0);return a.length&&s<a[0].length&&(a[0]=a[0].slice(s)),r}function OT(a,i){jc||(jc=new TextDecoder);const r=[];let s=0,c=-1,f=!1;return new TransformStream({transform(h,m){for(r.push(h);;){if(s===0){if($s(r)<1)break;const g=Is(r,1);f=(g[0]&128)===128,c=g[0]&127,c<126?s=3:c===126?s=1:s=2}else if(s===1){if($s(r)<2)break;const g=Is(r,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),s=3}else if(s===2){if($s(r)<8)break;const g=Is(r,8),p=new DataView(g.buffer,g.byteOffset,g.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){m.enqueue(ef);break}c=b*Math.pow(2,32)+p.getUint32(4),s=3}else{if($s(r)<c)break;const g=Is(r,c);m.enqueue(Af(f?g:jc.decode(g),i)),s=0}if(c===0||c>a){m.enqueue(ef);break}}}})}const Sg=4;function At(a){if(a)return xT(a)}function xT(a){for(var i in At.prototype)a[i]=At.prototype[i];return a}At.prototype.on=At.prototype.addEventListener=function(a,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(i),this};At.prototype.once=function(a,i){function r(){this.off(a,r),i.apply(this,arguments)}return r.fn=i,this.on(a,r),this};At.prototype.off=At.prototype.removeListener=At.prototype.removeAllListeners=At.prototype.removeEventListener=function(a,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+a];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var s,c=0;c<r.length;c++)if(s=r[c],s===i||s.fn===i){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+a],this};At.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+a],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(r){r=r.slice(0);for(var s=0,c=r.length;s<c;++s)r[s].apply(this,i)}return this};At.prototype.emitReserved=At.prototype.emit;At.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]};At.prototype.hasListeners=function(a){return!!this.listeners(a).length};const go=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),Ln=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),MT="arraybuffer";function Eg(a,...i){return i.reduce((r,s)=>(a.hasOwnProperty(s)&&(r[s]=a[s]),r),{})}const DT=Ln.setTimeout,NT=Ln.clearTimeout;function vo(a,i){i.useNativeTimers?(a.setTimeoutFn=DT.bind(Ln),a.clearTimeoutFn=NT.bind(Ln)):(a.setTimeoutFn=Ln.setTimeout.bind(Ln),a.clearTimeoutFn=Ln.clearTimeout.bind(Ln))}const zT=1.33;function UT(a){return typeof a=="string"?LT(a):Math.ceil((a.byteLength||a.size)*zT)}function LT(a){let i=0,r=0;for(let s=0,c=a.length;s<c;s++)i=a.charCodeAt(s),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(s++,r+=4);return r}function Tg(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function BT(a){let i="";for(let r in a)a.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(a[r]));return i}function kT(a){let i={},r=a.split("&");for(let s=0,c=r.length;s<c;s++){let f=r[s].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class qT extends Error{constructor(i,r,s){super(i),this.description=r,this.context=s,this.type="TransportError"}}class Cf extends At{constructor(i){super(),this.writable=!1,vo(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,s){return super.emitReserved("error",new qT(i,r,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const r=Af(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const r=BT(i);return r.length?"?"+r:""}}class jT extends Cf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||r()})),this.writable||(s++,this.once("drain",function(){--s||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};AT(i,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,_T(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Tg()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let wg=!1;try{wg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const HT=wg;function QT(){}class YT extends jT{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let s=location.port;s||(s=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,r){const s=this.request({method:"POST",data:i});s.on("success",r),s.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(r,s)=>{this.onError("xhr poll error",r,s)}),this.pollXhr=i}}let wl=class io extends At{constructor(i,r,s){super(),this.createRequest=i,vo(this,s),this._opts=s,this._method=s.method||"GET",this._uri=r,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const r=Eg(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(r);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&s.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var c;s.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=io.requestsCount++,io.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=QT,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete io.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};wl.requestsCount=0;wl.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",py);else if(typeof addEventListener=="function"){const a="onpagehide"in Ln?"pagehide":"unload";addEventListener(a,py,!1)}}function py(){for(let a in wl.requests)wl.requests.hasOwnProperty(a)&&wl.requests[a].abort()}const KT=(function(){const a=Rg({xdomain:!1});return a&&a.responseType!==null})();class VT extends YT{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=KT&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new wl(Rg,this.uri(),i)}}function Rg(a){const i=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||HT))return new XMLHttpRequest}catch{}if(!i)try{return new Ln[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _g=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class GT extends Cf{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,s=_g?{}:Eg(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,s)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const s=i[r],c=r===i.length-1;_f(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}c&&go(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Tg()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const Hc=Ln.WebSocket||Ln.MozWebSocket;class XT extends GT{createSocket(i,r,s){return _g?new Hc(i,r,s):r?new Hc(i,r):new Hc(i)}doWrite(i,r){this.ws.send(r)}}class ZT extends Cf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const r=OT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(r).getReader(),c=CT();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{s.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const s=i[r],c=r===i.length-1;this._writer.write(s).then(()=>{c&&go(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const FT={websocket:XT,webtransport:ZT,polling:VT},PT=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,JT=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tf(a){if(a.length>8e3)throw"URI too long";const i=a,r=a.indexOf("["),s=a.indexOf("]");r!=-1&&s!=-1&&(a=a.substring(0,r)+a.substring(r,s).replace(/:/g,";")+a.substring(s,a.length));let c=PT.exec(a||""),f={},h=14;for(;h--;)f[JT[h]]=c[h]||"";return r!=-1&&s!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=$T(f,f.path),f.queryKey=IT(f,f.query),f}function $T(a,i){const r=/\/{2,9}/g,s=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function IT(a,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,f){c&&(r[c]=f)}),r}const nf=typeof addEventListener=="function"&&typeof removeEventListener=="function",lo=[];nf&&addEventListener("offline",()=>{lo.forEach(a=>a())},!1);class ri extends At{constructor(i,r){if(super(),this.binaryType=MT,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const s=tf(i);r.hostname=s.host,r.secure=s.protocol==="https"||s.protocol==="wss",r.port=s.port,s.query&&(r.query=s.query)}else r.host&&(r.hostname=tf(r.host).host);vo(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(s=>{const c=s.prototype.name;this.transports.push(c),this._transportsByName[c]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=kT(this.opts.query)),nf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},lo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=Sg,r.transport=i,this.id&&(r.sid=this.id);const s=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&ri.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",ri.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=i.data,this._onError(r);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let s=0;s<this.writeBuffer.length;s++){const c=this.writeBuffer[s].data;if(c&&(r+=UT(c)),s>0&&r>this._maxPayload)return this.writeBuffer.slice(0,s);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,go(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,s){return this._sendPacket("message",i,r,s),this}send(i,r,s){return this._sendPacket("message",i,r,s),this}_sendPacket(i,r,s,c){if(typeof r=="function"&&(c=r,r=void 0),typeof s=="function"&&(c=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:i,data:r,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},s=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(ri.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),nf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=lo.indexOf(this._offlineEventListener);s!==-1&&lo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}ri.protocol=Sg;class WT extends ri{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let r=this.createTransport(i),s=!1;ri.priorWebsocketSuccess=!1;const c=()=>{s||(r.send([{type:"ping",data:"probe"}]),r.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;ri.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=r.name,this.emitReserved("upgradeError",w)}}))};function f(){s||(s=!0,b(),r.close(),r=null)}const h=y=>{const w=new Error("probe error: "+y);w.transport=r.name,f(),this.emitReserved("upgradeError",w)};function m(){h("transport closed")}function g(){h("socket closed")}function p(y){r&&y.name!==r.name&&f()}const b=()=>{r.removeListener("open",c),r.removeListener("error",h),r.removeListener("close",m),this.off("close",g),this.off("upgrading",p)};r.once("open",c),r.once("error",h),r.once("close",m),this.once("close",g),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&r.push(i[s]);return r}}let ew=class extends WT{constructor(i,r={}){const s=typeof i=="object"?i:r;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(c=>FT[c]).filter(c=>!!c)),super(i,s)}};function tw(a,i="",r){let s=a;r=r||typeof location<"u"&&location,a==null&&(a=r.protocol+"//"+r.host),typeof a=="string"&&(a.charAt(0)==="/"&&(a.charAt(1)==="/"?a=r.protocol+a:a=r.host+a),/^(https?|wss?):\/\//.test(a)||(typeof r<"u"?a=r.protocol+"//"+a:a="https://"+a),s=tf(a)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+i,s.href=s.protocol+"://"+f+(r&&r.port===s.port?"":":"+s.port),s}const nw=typeof ArrayBuffer=="function",aw=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,Ag=Object.prototype.toString,iw=typeof Blob=="function"||typeof Blob<"u"&&Ag.call(Blob)==="[object BlobConstructor]",lw=typeof File=="function"||typeof File<"u"&&Ag.call(File)==="[object FileConstructor]";function Of(a){return nw&&(a instanceof ArrayBuffer||aw(a))||iw&&a instanceof Blob||lw&&a instanceof File}function ro(a,i){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let r=0,s=a.length;r<s;r++)if(ro(a[r]))return!0;return!1}if(Of(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return ro(a.toJSON(),!0);for(const r in a)if(Object.prototype.hasOwnProperty.call(a,r)&&ro(a[r]))return!0;return!1}function rw(a){const i=[],r=a.data,s=a;return s.data=af(r,i),s.attachments=i.length,{packet:s,buffers:i}}function af(a,i){if(!a)return a;if(Of(a)){const r={_placeholder:!0,num:i.length};return i.push(a),r}else if(Array.isArray(a)){const r=new Array(a.length);for(let s=0;s<a.length;s++)r[s]=af(a[s],i);return r}else if(typeof a=="object"&&!(a instanceof Date)){const r={};for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=af(a[s],i));return r}return a}function sw(a,i){return a.data=lf(a.data,i),delete a.attachments,a}function lf(a,i){if(!a)return a;if(a&&a._placeholder===!0){if(typeof a.num=="number"&&a.num>=0&&a.num<i.length)return i[a.num];throw new Error("illegal attachments")}else if(Array.isArray(a))for(let r=0;r<a.length;r++)a[r]=lf(a[r],i);else if(typeof a=="object")for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(a[r]=lf(a[r],i));return a}const ow=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ye;(function(a){a[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK"})(Ye||(Ye={}));class uw{constructor(i){this.replacer=i}encode(i){return(i.type===Ye.EVENT||i.type===Ye.ACK)&&ro(i)?this.encodeAsBinary({type:i.type===Ye.EVENT?Ye.BINARY_EVENT:Ye.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===Ye.BINARY_EVENT||i.type===Ye.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=rw(i),s=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(s),c}}class xf extends At{constructor(i){super(),this.reviver=i}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const s=r.type===Ye.BINARY_EVENT;s||r.type===Ye.BINARY_ACK?(r.type=s?Ye.EVENT:Ye.ACK,this.reconstructor=new cw(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Of(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const s={type:Number(i.charAt(0))};if(Ye[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ye.BINARY_EVENT||s.type===Ye.BINARY_ACK){const f=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const h=i.substring(f,r);if(h!=Number(h)||i.charAt(r)!=="-")throw new Error("Illegal attachments");s.attachments=Number(h)}if(i.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););s.nsp=i.substring(f,r)}else s.nsp="/";const c=i.charAt(r+1);if(c!==""&&Number(c)==c){const f=r+1;for(;++r;){const h=i.charAt(r);if(h==null||Number(h)!=h){--r;break}if(r===i.length)break}s.id=Number(i.substring(f,r+1))}if(i.charAt(++r)){const f=this.tryParse(i.substr(r));if(xf.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case Ye.CONNECT:return yy(r);case Ye.DISCONNECT:return r===void 0;case Ye.CONNECT_ERROR:return typeof r=="string"||yy(r);case Ye.EVENT:case Ye.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&ow.indexOf(r[0])===-1);case Ye.ACK:case Ye.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class cw{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=sw(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function yy(a){return Object.prototype.toString.call(a)==="[object Object]"}const fw=Object.freeze(Object.defineProperty({__proto__:null,Decoder:xf,Encoder:uw,get PacketType(){return Ye}},Symbol.toStringTag,{value:"Module"}));function Zn(a,i,r){return a.on(i,r),function(){a.off(i,r)}}const dw=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Cg extends At{constructor(i,r,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=r,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Zn(i,"open",this.onopen.bind(this)),Zn(i,"packet",this.onpacket.bind(this)),Zn(i,"error",this.onerror.bind(this)),Zn(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...r){var s,c,f;if(dw.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const h={type:Ye.EVENT,data:r};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const b=this.ids++,y=r.pop();this._registerAckCallback(b,y),h.id=b}const m=(c=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!m||(g?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(i,r){var s;const c=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(c===void 0){this.acks[i]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===i&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},c),h=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};h.withError=!0,this.acks[i]=h}emitWithAck(i,...r){return new Promise((s,c)=>{const f=(h,m)=>h?c(h):s(m);f.withError=!0,r.push(f),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Ye.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Ye.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ye.EVENT:case Ye.BINARY_EVENT:this.onevent(i);break;case Ye.ACK:case Ye.BINARY_ACK:this.onack(i);break;case Ye.DISCONNECT:this.ondisconnect();break;case Ye.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const s of r)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const r=this;let s=!1;return function(...c){s||(s=!0,r.packet({type:Ye.ACK,id:i,data:c}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ye.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const r=this._anyListeners;for(let s=0;s<r.length;s++)if(i===r[s])return r.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const r=this._anyOutgoingListeners;for(let s=0;s<r.length;s++)if(i===r[s])return r.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const s of r)s.apply(this,i.data)}}}function Ol(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}Ol.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*a);a=(Math.floor(i*10)&1)==0?a-r:a+r}return Math.min(a,this.max)|0};Ol.prototype.reset=function(){this.attempts=0};Ol.prototype.setMin=function(a){this.ms=a};Ol.prototype.setMax=function(a){this.max=a};Ol.prototype.setJitter=function(a){this.jitter=a};class rf extends At{constructor(i,r){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,vo(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((s=r.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Ol({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const c=r.parser||fw;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new ew(this.uri,this.opts);const r=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const c=Zn(r,"open",function(){s.onopen(),i&&i()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),i?i(m):this.maybeReconnectOnOpen()},h=Zn(r,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(h),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Zn(i,"ping",this.onping.bind(this)),Zn(i,"data",this.ondata.bind(this)),Zn(i,"error",this.onerror.bind(this)),Zn(i,"close",this.onclose.bind(this)),Zn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){go(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new Cg(this,i,r),this.nsps[i]=s),s}_destroy(i){const r=Object.keys(this.nsps);for(const s of r)if(this.nsps[s].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let s=0;s<r.length;s++)this.engine.write(r[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,r){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},r);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Tr={};function so(a,i){typeof a=="object"&&(i=a,a=void 0),i=i||{};const r=tw(a,i.path||"/socket.io"),s=r.source,c=r.id,f=r.path,h=Tr[c]&&f in Tr[c].nsps,m=i.forceNew||i["force new connection"]||i.multiplex===!1||h;let g;return m?g=new rf(s,i):(Tr[c]||(Tr[c]=new rf(s,i)),g=Tr[c]),r.query&&!i.query&&(i.query=r.queryKey),g.socket(r.path,i)}Object.assign(so,{Manager:rf,Socket:Cg,io:so,connect:so});const Ws="/events",Aw={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},El={SESSION_STDOUT:"session:stdout",SESSION_PATCH:"session:patch",SESSION_EXIT:"session:exit",SESSION_COMPLETED:"session:completed",SESSION_ID:"session:sessionId",SESSION_ERROR:"session:error",TASK_UPDATED:"task:updated",TASK_DELETED:"task:deleted",TERMINAL_STDOUT:"terminal:stdout",TERMINAL_EXIT:"terminal:exit",TERMINAL_SUBSCRIBED:"terminal:subscribed",TERMINAL_UNSUBSCRIBED:"terminal:unsubscribed",WORKSPACE_SETUP_PROGRESS:"workspace:setup_progress",WORKSPACE_COMMIT_MESSAGE_UPDATED:"workspace:commit_message_updated",WORKSPACE_HIBERNATED:"workspace:hibernated",TEAM_RUN_INVALIDATED:"team-run:invalidated"};class hw{socket=null;baseUrl;visibilityHandler=null;constructor(){this.baseUrl=""}getSocket(){return this.socket||(this.socket=so(`${this.baseUrl}${Ws}`,{autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${Ws} t=${Date.now()}`)}),this.socket.on("disconnect",i=>{console.log(`[Socket] Disconnected from ${Ws}: t=${Date.now()}`,i)}),this.socket.on("connect_error",i=>{console.error(`[Socket] Connection error on ${Ws}: t=${Date.now()}`,i.message)})),this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.socket&&!this.socket.connected&&(console.log("[Socket] Page became visible, socket disconnected — reconnecting"),this.socket.connect())},document.addEventListener("visibilitychange",this.visibilityHandler)),i}disconnect(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const fo=new hw;function mw(){const a=Ht();_.useEffect(()=>{const i=fo.connect(),r=()=>{a.invalidateQueries({queryKey:pt.tasks.all})},s=async f=>{await a.cancelQueries({queryKey:pt.tasks.list(f.projectId)}),a.invalidateQueries({queryKey:pt.tasks.list(f.projectId)}),a.invalidateQueries({queryKey:pt.tasks.detail(f.taskId)})},c=f=>{a.invalidateQueries({queryKey:pt.tasks.list(f.projectId)}),a.removeQueries({queryKey:pt.tasks.detail(f.taskId)})};return i.on("connect",r),i.on(El.TASK_UPDATED,s),i.on(El.TASK_DELETED,c),()=>{i.off("connect",r),i.off(El.TASK_UPDATED,s),i.off(El.TASK_DELETED,c)}},[a])}const Oe={all:["team-runs"],memberPresets:["member-presets"],memberPresetDetail:a=>["member-presets","detail",a],teamTemplates:["team-templates"],teamTemplateDetail:a=>["team-templates","detail",a],task:a=>["team-runs","task",a],detail:a=>["team-runs","detail",a],messages:a=>["team-runs","messages",a],workRequests:a=>["team-runs","work-requests",a],invocations:a=>["team-runs","invocations",a]},Og=5e3;function xg(a,i){const r=a??[],s=r.findIndex(c=>c.id===i.id);return s>=0?r.map((c,f)=>f===s?i:c):[...r,i]}function gy(a,i){return!a||a.id!==i.teamRunId?a:{...a,messages:xg(a.messages,i)}}function Mg(a,i){const r=a.getQueryData(Oe.detail(i));if(r?.taskId)return r.taskId;const s=a.getQueriesData({queryKey:Oe.all});for(const[,c]of s)if(c?.id===i&&c.taskId)return c.taskId}function bo(a,i){const r=Mg(a,i);a.invalidateQueries({queryKey:Oe.all}),a.invalidateQueries({queryKey:Oe.detail(i)}),a.invalidateQueries({queryKey:Oe.workRequests(i)}),a.invalidateQueries({queryKey:Oe.invocations(i)}),a.invalidateQueries({queryKey:pt.tasks.all}),a.invalidateQueries({queryKey:pt.workspaces.all}),r&&(a.invalidateQueries({queryKey:pt.tasks.detail(r)}),a.invalidateQueries({queryKey:Oe.task(r)}),a.invalidateQueries({queryKey:pt.workspaces.list(r)}))}function Cw(){return _l({queryKey:Oe.memberPresets,queryFn:()=>Mt.get("/member-presets")})}function Ow(){const a=Ht();return gn({mutationFn:i=>Mt.post("/member-presets",i),onSuccess:()=>{a.invalidateQueries({queryKey:Oe.memberPresets}),a.invalidateQueries({queryKey:Oe.teamTemplates})}})}function xw(){const a=Ht();return gn({mutationFn:({id:i,data:r})=>Mt.patch(`/member-presets/${i}`,r),onSuccess:(i,r)=>{a.invalidateQueries({queryKey:Oe.memberPresets}),a.invalidateQueries({queryKey:Oe.memberPresetDetail(r.id)}),a.invalidateQueries({queryKey:Oe.teamTemplates})}})}function Mw(){const a=Ht();return gn({mutationFn:i=>Mt.delete(`/member-presets/${i}`),onSuccess:()=>{a.invalidateQueries({queryKey:Oe.memberPresets}),a.invalidateQueries({queryKey:Oe.teamTemplates})}})}function Dw(){return _l({queryKey:Oe.teamTemplates,queryFn:()=>Mt.get("/team-templates")})}function Nw(){const a=Ht();return gn({mutationFn:i=>Mt.post("/team-templates",i),onSuccess:()=>{a.invalidateQueries({queryKey:Oe.teamTemplates})}})}function zw(){const a=Ht();return gn({mutationFn:({id:i,data:r})=>Mt.patch(`/team-templates/${i}`,r),onSuccess:(i,r)=>{a.invalidateQueries({queryKey:Oe.teamTemplates}),a.invalidateQueries({queryKey:Oe.teamTemplateDetail(r.id)})}})}function Uw(){const a=Ht();return gn({mutationFn:i=>Mt.delete(`/team-templates/${i}`),onSuccess:()=>{a.invalidateQueries({queryKey:Oe.teamTemplates})}})}function Lw(){const a=Ht();return gn({mutationFn:({taskId:i,...r})=>Mt.post(`/tasks/${i}/team-runs`,r),onSuccess:(i,r)=>{a.setQueryData(Oe.task(r.taskId),i),a.setQueryData(Oe.detail(i.id),i),a.setQueryData(Oe.messages(i.id),i.messages??[]),a.setQueryData(Oe.workRequests(i.id),i.workRequests??[]),a.setQueryData(Oe.invocations(i.id),i.invocations??[]),a.invalidateQueries({queryKey:Oe.task(r.taskId)}),a.invalidateQueries({queryKey:Oe.all}),a.invalidateQueries({queryKey:pt.tasks.all}),a.invalidateQueries({queryKey:pt.tasks.detail(r.taskId)}),a.invalidateQueries({queryKey:pt.workspaces.all}),a.invalidateQueries({queryKey:pt.workspaces.list(r.taskId)})},onError:(i,r)=>{a.invalidateQueries({queryKey:Oe.task(r.taskId)}),a.invalidateQueries({queryKey:Oe.all})}})}function Bw(a){return _l({queryKey:Oe.task(a),queryFn:async()=>{try{return await Mt.get(`/tasks/${a}/team-run`)}catch(i){if(i instanceof Rf&&i.status===404)return null;throw i}},enabled:!!a,retry:!1,refetchInterval:i=>i.state.data?Og:!1})}function kw(a){return _l({queryKey:Oe.messages(a),queryFn:async()=>{try{return await Mt.get(`/team-runs/${a}/messages`)}catch(i){if(i instanceof Rf&&i.status===404)return[];throw i}},enabled:!!a,retry:!1,refetchInterval:Og})}function qw(a){const i=Ht();return gn({mutationFn:r=>Mt.post(`/team-runs/${a}/messages`,r),onSuccess:r=>{i.setQueryData(Oe.messages(a),c=>xg(c,r)),i.setQueryData(Oe.detail(a),c=>gy(c,r));const s=Mg(i,a);s&&i.setQueryData(Oe.task(s),c=>gy(c,r)),i.invalidateQueries({queryKey:Oe.all}),i.invalidateQueries({queryKey:["tasks"]}),i.invalidateQueries({queryKey:pt.workspaces.all})}})}function jw(a){const i=Ht();return gn({mutationFn:r=>Mt.post(`/team-runs/work-requests/${r}/approve`),onSuccess:()=>{bo(i,a)}})}function Hw(a){const i=Ht();return gn({mutationFn:r=>Mt.post(`/team-runs/work-requests/${r}/reject`),onSuccess:()=>{bo(i,a)}})}function Qw(a){const i=Ht();return gn({mutationFn:r=>Mt.post(`/team-runs/work-requests/${r}/cancel`),onSuccess:()=>{bo(i,a)}})}function Yw(a){const i=Ht();return gn({mutationFn:({memberId:r,cancelQueued:s})=>Mt.post(`/team-runs/${a}/members/${r}/stop`,{cancelQueued:s}),onSuccess:()=>{bo(i,a)}})}function na(a,i){return a.scopes.includes(i)}function pw(){const a=Ht();_.useEffect(()=>{const i=fo.connect(),r=f=>{if(!f){a.invalidateQueries({queryKey:Oe.all});return}a.invalidateQueries({queryKey:Oe.detail(f.teamRunId)}),(na(f,"team-run")||na(f,"team-members"))&&a.invalidateQueries({queryKey:Oe.all}),na(f,"room-messages")&&a.invalidateQueries({queryKey:Oe.messages(f.teamRunId)}),na(f,"work-requests")&&a.invalidateQueries({queryKey:Oe.workRequests(f.teamRunId)}),na(f,"agent-invocations")&&a.invalidateQueries({queryKey:Oe.invocations(f.teamRunId)}),f.taskId&&a.invalidateQueries({queryKey:Oe.task(f.taskId)}),f.taskId&&(na(f,"task")||na(f,"team-run"))&&a.invalidateQueries({queryKey:pt.tasks.detail(f.taskId)}),f.projectId&&(na(f,"task")||na(f,"team-run"))&&a.invalidateQueries({queryKey:pt.tasks.list(f.projectId)}),na(f,"workspaces")&&(a.invalidateQueries({queryKey:pt.workspaces.all}),f.taskId&&a.invalidateQueries({queryKey:pt.workspaces.list(f.taskId)}))},s=()=>r(),c=f=>r(f);return i.on("connect",s),i.on(El.TEAM_RUN_INVALIDATED,c),()=>{i.off("connect",s),i.off(El.TEAM_RUN_INVALIDATED,c)}},[a])}function yw(){return mw(),pw(),null}function gw(){return _.useEffect(()=>(fo.connect(),()=>fo.disconnect()),[]),re.jsx(gb,{client:iS,children:re.jsxs(lT,{children:[re.jsx(yw,{}),re.jsx(ST,{}),re.jsx(aS,{position:"top-center",toastOptions:{className:"text-sm",style:{fontFamily:"inherit"},classNames:{error:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",success:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",default:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg"}}})]})})}const vw="/api/tunnel/bootstrap";async function bw(){const a=new URL(window.location.href),i=a.searchParams.get("token");if(!i)return;const r=await fetch(`${vw}?token=${encodeURIComponent(i)}`,{method:"POST",credentials:"same-origin"});if(!r.ok)throw new Error(`Tunnel bootstrap failed (${r.status})`);a.searchParams.delete("token"),window.history.replaceState({},"",a.toString())}async function Sw(){try{await bw()}catch(a){console.error("[Tunnel] Failed to bootstrap tunnel session",a)}Z0.createRoot(document.getElementById("root")).render(re.jsx(_.StrictMode,{children:re.jsx(gw,{})}))}Sw();export{Lw as $,Rl as A,xt as B,Aw as C,oo as D,Ey as E,GE as F,vb as G,Eb as H,_b as I,Tb as J,wb as K,og as L,Zt as M,Cb as N,zp as O,Ab as P,ub as Q,Rb as R,El as S,Ob as T,I as U,Dy as V,jw as W,Hw as X,Qw as Y,Yw as Z,PE as _,IE as a,Rf as a0,KE as a1,qw as a2,Bw as a3,kw as a4,Oe as a5,jE as a6,sT as a7,Da as a8,vy as a9,Rw as b,WE as c,_l as d,Ht as e,gn as f,Mt as g,Cl as h,Cw as i,re as j,Dw as k,Ow as l,xw as m,Mw as n,Nw as o,zw as p,pt as q,_ as r,Uw as s,Xb as t,mg as u,fo as v,iT as w,Np as x,Tw as y,Ew as z};
|