@lovelybunch/api 1.0.75-alpha.8 → 1.0.75
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/lib/jobs/job-runner.js +10 -2
- package/dist/lib/jobs/job-scheduler.js +21 -0
- package/dist/lib/mail/mail-runner.d.ts +51 -0
- package/dist/lib/mail/mail-runner.js +342 -0
- package/dist/lib/slack/slack-service.d.ts +2 -0
- package/dist/lib/slack/slack-service.js +3 -0
- package/dist/lib/storage/file-storage.d.ts +16 -16
- package/dist/lib/storage/file-storage.js +59 -64
- package/dist/lib/terminal/terminal-manager.d.ts +3 -5
- package/dist/lib/terminal/terminal-manager.js +10 -61
- package/dist/routes/api/v1/ai/route.js +361 -20
- package/dist/routes/api/v1/chats/[id]/index.js +2 -1
- package/dist/routes/api/v1/chats/[id]/route.d.ts +7 -0
- package/dist/routes/api/v1/chats/[id]/route.js +30 -1
- package/dist/routes/api/v1/context/index.js +0 -2
- package/dist/routes/api/v1/git/index.js +23 -0
- package/dist/routes/api/v1/knowledge/[filename]/index.d.ts +1 -0
- package/dist/routes/api/v1/knowledge/[filename]/index.js +1 -0
- package/dist/routes/api/v1/knowledge/[filename]/route.d.ts +3 -0
- package/dist/routes/api/v1/knowledge/[filename]/route.js +254 -0
- package/dist/routes/api/v1/knowledge/index.d.ts +1 -0
- package/dist/routes/api/v1/knowledge/index.js +1 -0
- package/dist/routes/api/v1/knowledge/route.d.ts +3 -0
- package/dist/routes/api/v1/knowledge/route.js +176 -0
- package/dist/routes/api/v1/mail/index.d.ts +3 -0
- package/dist/routes/api/v1/mail/index.js +23 -0
- package/dist/routes/api/v1/mail/route.d.ts +294 -0
- package/dist/routes/api/v1/mail/route.js +344 -0
- package/dist/routes/api/v1/mcp/index.js +109 -34
- package/dist/routes/api/v1/slack/index.d.ts +3 -0
- package/dist/routes/api/v1/slack/index.js +15 -0
- package/dist/routes/api/v1/slack/route.d.ts +124 -0
- package/dist/routes/api/v1/slack/route.js +192 -0
- package/dist/routes/api/v1/tasks/[id]/route.d.ts +117 -0
- package/dist/routes/api/v1/tasks/[id]/route.js +166 -0
- package/dist/routes/api/v1/tasks/index.d.ts +3 -0
- package/dist/routes/api/v1/tasks/index.js +10 -0
- package/dist/routes/api/v1/tasks/route.d.ts +96 -0
- package/dist/routes/api/v1/tasks/route.js +136 -0
- package/dist/routes/api/v1/terminal/[proposalId]/create/route.js +2 -2
- package/dist/routes/api/v1/terminal/[taskId]/create/index.d.ts +3 -0
- package/dist/routes/api/v1/terminal/[taskId]/create/index.js +5 -0
- package/dist/routes/api/v1/terminal/[taskId]/create/route.d.ts +10 -0
- package/dist/routes/api/v1/terminal/[taskId]/create/route.js +27 -0
- package/dist/routes/api/v1/terminal/[taskId]/destroy/index.d.ts +3 -0
- package/dist/routes/api/v1/terminal/[taskId]/destroy/index.js +5 -0
- package/dist/routes/api/v1/terminal/[taskId]/destroy/route.d.ts +10 -0
- package/dist/routes/api/v1/terminal/[taskId]/destroy/route.js +21 -0
- package/dist/routes/api/v1/terminal/[taskId]/resize/index.d.ts +3 -0
- package/dist/routes/api/v1/terminal/[taskId]/resize/index.js +5 -0
- package/dist/routes/api/v1/terminal/[taskId]/resize/route.d.ts +10 -0
- package/dist/routes/api/v1/terminal/[taskId]/resize/route.js +21 -0
- package/dist/routes/api/v1/terminal/sessions/route.js +4 -4
- package/dist/server-with-static.js +14 -8
- package/dist/server.js +14 -8
- package/package.json +4 -4
- package/static/assets/{ActivityPage-DSSML9J-.js → ActivityPage-k4I7Q53O.js} +1 -1
- package/static/assets/ApiKeysSettingsPage-B1YvVdmg.js +2 -0
- package/static/assets/{ArchitectureEditPage-CIjqkpMz.js → ArchitectureEditPage-CpowsIx2.js} +1 -1
- package/static/assets/{ArchitecturePage-Db__w054.js → ArchitecturePage-DYxC_aMR.js} +1 -1
- package/static/assets/{AuthSettingsPage-Bpooi8Z0.js → AuthSettingsPage-DtSo78Y_.js} +2 -2
- package/static/assets/{CallbackPage-BGLKeyjv.js → CallbackPage-bROCGapx.js} +1 -1
- package/static/assets/CodePage-CPCj64rX.js +2 -0
- package/static/assets/{CollapsibleSection-B6RO5o5R.js → CollapsibleSection-M5cXbl92.js} +1 -1
- package/static/assets/DashboardPage-B9BZZfw6.js +51 -0
- package/static/assets/{GitPage-DxjLaRWe.js → GitPage-BiDtdSK1.js} +2 -2
- package/static/assets/GitSettingsPage-THm6wDjs.js +6 -0
- package/static/assets/IdentityPage-BC16skg6.js +6 -0
- package/static/assets/{ImplementationStepsEditor-DWjDyZzP.js → ImplementationStepsEditor-HliLQav5.js} +2 -2
- package/static/assets/IntegrationsSettingsPage-CC_VKIQa.js +1 -0
- package/static/assets/JobDetailPage-z1QQYvmU.js +1 -0
- package/static/assets/KnowledgeDetailPage-DzHXBS7Q.js +1 -0
- package/static/assets/KnowledgeEditPage-BwGnUH_m.js +1 -0
- package/static/assets/KnowledgePage-CGIVMS02.js +3 -0
- package/static/assets/{LoginPage-DptfKsWo.js → LoginPage-VQ3lcfLV.js} +1 -1
- package/static/assets/MailInboxPage-DiZKqwdU.js +1 -0
- package/static/assets/MailProcessingModal-DIeSQBoR.js +6 -0
- package/static/assets/MailReadPage-C8AACmZQ.js +1 -0
- package/static/assets/MailSentPage-C_5yFly_.js +1 -0
- package/static/assets/McpSettingsPage-i9YHcu1s.js +1 -0
- package/static/assets/NewKnowledgePage-BnVY7WUD.js +9 -0
- package/static/assets/{NewSkillPage-Cwy2MSr9.js → NewSkillPage-DwniHD6D.js} +1 -1
- package/static/assets/NewTaskPage-F5UX2WMc.js +90 -0
- package/static/assets/NotFoundPage-BbSZX_4L.js +6 -0
- package/static/assets/NotificationsSettingsPage-C8kjcift.js +1 -0
- package/static/assets/ProjectEditPage-DUUlIEqI.js +11 -0
- package/static/assets/{ProjectPage-DgUr4bVU.js → ProjectPage-Unz9PQpA.js} +1 -1
- package/static/assets/PromptsSettingsPage-DVpIuRKI.js +1 -0
- package/static/assets/ResourceDetailPage-DqHZ2KYD.js +1 -0
- package/static/assets/ResourcesPage-BP5tuAi-.js +41 -0
- package/static/assets/RoleEditPage-BgKu8S0-.js +13 -0
- package/static/assets/{RolePage-Sc-GFiL2.js → RolePage-Fed52Ov5.js} +1 -1
- package/static/assets/{RulesSettingsPage-DdMCzh9j.js → RulesSettingsPage-BQ2O0u66.js} +2 -2
- package/static/assets/SchedulePage-jkxjuzBx.js +4 -0
- package/static/assets/SkillDetailPage-k3Q2-NFd.js +1 -0
- package/static/assets/{SkillEditPage-BDd2CtAS.js → SkillEditPage-urF4snjo.js} +1 -1
- package/static/assets/SkillsPage-DlWDhEjR.js +8 -0
- package/static/assets/{SkillsSettingsPage-1N0JQOYc.js → SkillsSettingsPage-BViFgckG.js} +1 -1
- package/static/assets/SourceInput-CAFKTHw-.js +1 -0
- package/static/assets/{TagInput-D_SdcypZ.js → TagInput-C6lI-ePr.js} +1 -1
- package/static/assets/TaskDetailPage-DpbRHnW_.js +16 -0
- package/static/assets/TaskEditPage-DssRbW0h.js +1 -0
- package/static/assets/TasksPage-CD_eo0Bj.js +17 -0
- package/static/assets/TerminalPage-BG_wlccr.js +1 -0
- package/static/assets/TerminalSessionPage-CsK-LznK.js +8 -0
- package/static/assets/UserPreferencesPage-CWUq3efu.js +1 -0
- package/static/assets/UserSettingsPage-CduI_MGS.js +1 -0
- package/static/assets/UtilitiesPage-BAxokhLh.js +1 -0
- package/static/assets/{alert-BD5jo3SI.js → alert-BXsc6_qu.js} +1 -1
- package/static/assets/{arrow-down-BxcoVp6S.js → arrow-down-DmW_3gE8.js} +1 -1
- package/static/assets/{arrow-left-CdM_IPng.js → arrow-left-1S-835kP.js} +1 -1
- package/static/assets/{arrow-up-BOJ6ob9X.js → arrow-up-BYism_o1.js} +1 -1
- package/static/assets/arrow-up-down-Dw3J0a4i.js +6 -0
- package/static/assets/{badge-DEiQk9C9.js → badge-BUEY53dV.js} +1 -1
- package/static/assets/{browser-modal-Dp1eMxt6.js → browser-modal-DCNdI4NT.js} +2 -2
- package/static/assets/{card-BCFxXzRk.js → card-BcPlIAH5.js} +1 -1
- package/static/assets/{chevron-left-C25izNzZ.js → chevron-left-FMmNe7yP.js} +1 -1
- package/static/assets/{plus-iamYJu5V.js → chevron-up-CqM3won3.js} +2 -2
- package/static/assets/{chevrons-up-DqbWMOjv.js → chevrons-up-DTvCkIHc.js} +1 -1
- package/static/assets/{circle-alert-CMRMPnbY.js → circle-alert-dseM-Ib7.js} +1 -1
- package/static/assets/{circle-check-big-NI18oHuP.js → circle-check-big-jKg34xC-.js} +1 -1
- package/static/assets/{circle-check-D5wZZPvj.js → circle-check-eyo6pBP1.js} +1 -1
- package/static/assets/{circle-play-BhVU869u.js → circle-play-BrY_lNiH.js} +1 -1
- package/static/assets/{circle-x-BXDB-G_q.js → circle-x-uqmzEce1.js} +1 -1
- package/static/assets/{clipboard-DC2xmNVx.js → clipboard-tzPFoieb.js} +1 -1
- package/static/assets/{clock-CeCp7Pz1.js → clock-Bjc06QBM.js} +1 -1
- package/static/assets/code-DrYqPukx.js +6 -0
- package/static/assets/{download-ZF_XbTIA.js → download-Bg__QCLT.js} +1 -1
- package/static/assets/{external-link-CYBz87-P.js → external-link-CNDy2UUo.js} +1 -1
- package/static/assets/{eye-BT8MAvKY.js → eye-DLFBnC8t.js} +1 -1
- package/static/assets/{folder-git-2-BE9AIPnj.js → folder-git-2-DUqd0WRi.js} +1 -1
- package/static/assets/index-CHdBxVyk.css +2 -0
- package/static/assets/index-DFcWlnzl.js +487 -0
- package/static/assets/{info-DunFSp-x.js → info-D6jxZC5X.js} +1 -1
- package/static/assets/kiro-CX1mOsRO.js +17 -0
- package/static/assets/{label-vYhfrPMD.js → label-DBuh-ke5.js} +1 -1
- package/static/assets/{markdown-editor-BzZ8tCto.js → markdown-editor-B4YNQFT2.js} +1 -1
- package/static/assets/message-square-B5RWz_ff.js +6 -0
- package/static/assets/paperclip-4A_3MaPx.js +6 -0
- package/static/assets/{pause-BHonpdnw.js → pause-BzhKXHtR.js} +1 -1
- package/static/assets/{play-CCo7tau2.js → play-CHIf-Rcz.js} +1 -1
- package/static/assets/{radio-group-Db-pBuyW.js → radio-group-C1ct-VsJ.js} +1 -1
- package/static/assets/{refresh-cw-Bg7vQzOw.js → refresh-cw-B3OwrDUf.js} +1 -1
- package/static/assets/{search-CH2zaibZ.js → search-Cq1ksEdp.js} +1 -1
- package/static/assets/select-44mcS2_G.js +1 -0
- package/static/assets/{status-utils-BDOyevaX.js → status-utils-CDkPeVfP.js} +1 -1
- package/static/assets/{switch-CH-VOgPo.js → switch-CIwjYvCt.js} +1 -1
- package/static/assets/{tabs-XeRAjZYR.js → tabs-DTV6Su-h.js} +1 -1
- package/static/assets/{tag-CRP5nL5-.js → tag-p6yeowCW.js} +1 -1
- package/static/assets/{terminal-preview-DMJMuORo.js → terminal-preview-DN38x9Jm.js} +1 -1
- package/static/assets/use-terminal-BXJqOeJe.js +1 -0
- package/static/assets/video-BH5ChaoS.js +36 -0
- package/static/index.html +2 -2
- package/static/assets/ApiKeysSettingsPage-Chw9PNL5.js +0 -2
- package/static/assets/CodePage-CrokcH-S.js +0 -2
- package/static/assets/DashboardPage-BaSQQ8Nv.js +0 -41
- package/static/assets/GitSettingsPage-tKBXYAFm.js +0 -6
- package/static/assets/IdentityPage-D2yBjeYn.js +0 -11
- package/static/assets/IntegrationsSettingsPage-Bx8-0Ig4.js +0 -1
- package/static/assets/JobDetailPage-BQmTHled.js +0 -1
- package/static/assets/KnowledgeDetailPage-QMU2bC3L.js +0 -1
- package/static/assets/KnowledgeEditPage-DbMJVcLc.js +0 -1
- package/static/assets/KnowledgePage-aU1GxZSZ.js +0 -8
- package/static/assets/McpSettingsPage-C3WxFwRB.js +0 -1
- package/static/assets/NewKnowledgePage-Cbiswrw_.js +0 -9
- package/static/assets/NewProposalPage-B_sDMBTK.js +0 -90
- package/static/assets/ProjectEditPage-BznWiBBc.js +0 -11
- package/static/assets/PromptsSettingsPage-CY0-870a.js +0 -1
- package/static/assets/ProposalDetailPage-K4iMXHEg.js +0 -1
- package/static/assets/ProposalEditPage-jZOtCMqP.js +0 -1
- package/static/assets/ProposalsPage-C7n4-G05.js +0 -17
- package/static/assets/ResourcesPage-vB5-XkUv.js +0 -71
- package/static/assets/RoleEditPage-Cu7ZB3yj.js +0 -13
- package/static/assets/SchedulePage-Bkkf2wA0.js +0 -4
- package/static/assets/SkillDetailPage-5sDxf3Of.js +0 -1
- package/static/assets/SkillsPage-D2G7EfK8.js +0 -8
- package/static/assets/SourceInput-DlC0zwva.js +0 -1
- package/static/assets/TerminalPage--KZ7azvP.js +0 -1
- package/static/assets/TerminalSessionPage-ClvxK9ia.js +0 -13
- package/static/assets/UserPreferencesPage-CheOH7jZ.js +0 -1
- package/static/assets/UserSettingsPage-C8STDvfQ.js +0 -1
- package/static/assets/UtilitiesPage-9rTxR2md.js +0 -1
- package/static/assets/calendar-Cx5r9R7A.js +0 -6
- package/static/assets/droid-DqWsM2dp.js +0 -17
- package/static/assets/index-DVTgTsDa.css +0 -2
- package/static/assets/index-hqVgTgRB.js +0 -462
- package/static/assets/use-terminal-DuGZuvd2.js +0 -1
- package/static/assets/zap-BlzMp7dY.js +0 -6
|
@@ -1,462 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BaSQQ8Nv.js","assets/card-BCFxXzRk.js","assets/badge-DEiQk9C9.js","assets/status-utils-BDOyevaX.js","assets/label-vYhfrPMD.js","assets/use-terminal-DuGZuvd2.js","assets/terminal-preview-DMJMuORo.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/circle-check-D5wZZPvj.js","assets/chevron-left-C25izNzZ.js","assets/search-CH2zaibZ.js","assets/zap-BlzMp7dY.js","assets/calendar-Cx5r9R7A.js","assets/folder-git-2-BE9AIPnj.js","assets/external-link-CYBz87-P.js","assets/play-CCo7tau2.js","assets/clock-CeCp7Pz1.js","assets/circle-check-big-NI18oHuP.js","assets/plus-iamYJu5V.js","assets/LoginPage-DptfKsWo.js","assets/tabs-XeRAjZYR.js","assets/CallbackPage-BGLKeyjv.js","assets/circle-x-BXDB-G_q.js","assets/ProposalsPage-C7n4-G05.js","assets/ProposalDetailPage-K4iMXHEg.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-CdM_IPng.js","assets/clipboard-DC2xmNVx.js","assets/info-DunFSp-x.js","assets/download-ZF_XbTIA.js","assets/ProposalEditPage-jZOtCMqP.js","assets/markdown-editor-BzZ8tCto.js","assets/markdown-editor-DUEthZ0y.css","assets/CollapsibleSection-B6RO5o5R.js","assets/ImplementationStepsEditor-DWjDyZzP.js","assets/TagInput-D_SdcypZ.js","assets/NewProposalPage-B_sDMBTK.js","assets/TerminalPage--KZ7azvP.js","assets/refresh-cw-Bg7vQzOw.js","assets/chevrons-up-DqbWMOjv.js","assets/circle-play-BhVU869u.js","assets/terminal-xj47PT8r.css","assets/TerminalSessionPage-ClvxK9ia.js","assets/radio-group-Db-pBuyW.js","assets/arrow-down-BxcoVp6S.js","assets/droid-DqWsM2dp.js","assets/eye-BT8MAvKY.js","assets/UtilitiesPage-9rTxR2md.js","assets/CodePage-CrokcH-S.js","assets/SkillsPage-D2G7EfK8.js","assets/browser-modal-Dp1eMxt6.js","assets/registry-ANRa5WBi.js","assets/tag-CRP5nL5-.js","assets/SkillDetailPage-5sDxf3Of.js","assets/NewSkillPage-Cwy2MSr9.js","assets/SkillEditPage-BDd2CtAS.js","assets/ResourcesPage-vB5-XkUv.js","assets/KnowledgePage-aU1GxZSZ.js","assets/arrow-up-BOJ6ob9X.js","assets/KnowledgeDetailPage-QMU2bC3L.js","assets/KnowledgeEditPage-DbMJVcLc.js","assets/SourceInput-DlC0zwva.js","assets/NewKnowledgePage-Cbiswrw_.js","assets/ProjectPage-DgUr4bVU.js","assets/ProjectEditPage-BznWiBBc.js","assets/ArchitecturePage-Db__w054.js","assets/ArchitectureEditPage-CIjqkpMz.js","assets/RolePage-Sc-GFiL2.js","assets/RoleEditPage-Cu7ZB3yj.js","assets/IdentityPage-D2yBjeYn.js","assets/alert-BD5jo3SI.js","assets/UserSettingsPage-C8STDvfQ.js","assets/AuthSettingsPage-Bpooi8Z0.js","assets/switch-CH-VOgPo.js","assets/circle-alert-CMRMPnbY.js","assets/ApiKeysSettingsPage-Chw9PNL5.js","assets/SkillsSettingsPage-1N0JQOYc.js","assets/IntegrationsSettingsPage-Bx8-0Ig4.js","assets/GitSettingsPage-tKBXYAFm.js","assets/McpSettingsPage-C3WxFwRB.js","assets/PromptsSettingsPage-CY0-870a.js","assets/RulesSettingsPage-DdMCzh9j.js","assets/GitPage-DxjLaRWe.js","assets/SchedulePage-Bkkf2wA0.js","assets/pause-BHonpdnw.js","assets/JobDetailPage-BQmTHled.js","assets/UserPreferencesPage-CheOH7jZ.js","assets/ActivityPage-DSSML9J-.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function RT(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oh={exports:{}},yl={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Bx;function NT(){if(Bx)return yl;Bx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return yl.Fragment=n,yl.jsx=r,yl.jsxs=r,yl}var Ux;function _T(){return Ux||(Ux=1,oh.exports=NT()),oh.exports}var g=_T(),lh={exports:{}},ze={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Hx;function MT(){if(Hx)return ze;Hx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=y&&k[y]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function A(k,Z,se){this.props=k,this.context=Z,this.refs=S,this.updater=se||w}A.prototype.isReactComponent={},A.prototype.setState=function(k,Z){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,Z,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=A.prototype;function R(k,Z,se){this.props=k,this.context=Z,this.refs=S,this.updater=se||w}var N=R.prototype=new T;N.constructor=R,E(N,A.prototype),N.isPureReactComponent=!0;var D=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function F(k,Z,se,M,ce,ye){return se=ye.ref,{$$typeof:e,type:k,key:Z,ref:se!==void 0?se:null,props:ye}}function q(k,Z){return F(k.type,Z,void 0,void 0,void 0,k.props)}function J(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function z(k){var Z={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(se){return Z[se]})}var ee=/\/+/g;function ae(k,Z){return typeof k=="object"&&k!==null&&k.key!=null?z(""+k.key):Z.toString(36)}function W(){}function U(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(W,W):(k.status="pending",k.then(function(Z){k.status==="pending"&&(k.status="fulfilled",k.value=Z)},function(Z){k.status==="pending"&&(k.status="rejected",k.reason=Z)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function Q(k,Z,se,M,ce){var ye=typeof k;(ye==="undefined"||ye==="boolean")&&(k=null);var pe=!1;if(k===null)pe=!0;else switch(ye){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(k.$$typeof){case e:case n:pe=!0;break;case m:return pe=k._init,Q(pe(k._payload),Z,se,M,ce)}}if(pe)return ce=ce(k),pe=M===""?"."+ae(k,0):M,D(ce)?(se="",pe!=null&&(se=pe.replace(ee,"$&/")+"/"),Q(ce,Z,se,"",function(ke){return ke})):ce!=null&&(J(ce)&&(ce=q(ce,se+(ce.key==null||k&&k.key===ce.key?"":(""+ce.key).replace(ee,"$&/")+"/")+pe)),Z.push(ce)),1;pe=0;var le=M===""?".":M+":";if(D(k))for(var ge=0;ge<k.length;ge++)M=k[ge],ye=le+ae(M,ge),pe+=Q(M,Z,se,ye,ce);else if(ge=b(k),typeof ge=="function")for(k=ge.call(k),ge=0;!(M=k.next()).done;)M=M.value,ye=le+ae(M,ge++),pe+=Q(M,Z,se,ye,ce);else if(ye==="object"){if(typeof k.then=="function")return Q(U(k),Z,se,M,ce);throw Z=String(k),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return pe}function P(k,Z,se){if(k==null)return k;var M=[],ce=0;return Q(k,M,"","",function(ye){return Z.call(se,ye,ce++)}),M}function K(k){if(k._status===-1){var Z=k._result;Z=Z(),Z.then(function(se){(k._status===0||k._status===-1)&&(k._status=1,k._result=se)},function(se){(k._status===0||k._status===-1)&&(k._status=2,k._result=se)}),k._status===-1&&(k._status=0,k._result=Z)}if(k._status===1)return k._result.default;throw k._result}var B=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function ne(){}return ze.Children={map:P,forEach:function(k,Z,se){P(k,function(){Z.apply(this,arguments)},se)},count:function(k){var Z=0;return P(k,function(){Z++}),Z},toArray:function(k){return P(k,function(Z){return Z})||[]},only:function(k){if(!J(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},ze.Component=A,ze.Fragment=r,ze.Profiler=l,ze.PureComponent=R,ze.StrictMode=i,ze.Suspense=d,ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,ze.__COMPILER_RUNTIME={__proto__:null,c:function(k){return L.H.useMemoCache(k)}},ze.cache=function(k){return function(){return k.apply(null,arguments)}},ze.cloneElement=function(k,Z,se){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var M=E({},k.props),ce=k.key,ye=void 0;if(Z!=null)for(pe in Z.ref!==void 0&&(ye=void 0),Z.key!==void 0&&(ce=""+Z.key),Z)!j.call(Z,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Z.ref===void 0||(M[pe]=Z[pe]);var pe=arguments.length-2;if(pe===1)M.children=se;else if(1<pe){for(var le=Array(pe),ge=0;ge<pe;ge++)le[ge]=arguments[ge+2];M.children=le}return F(k.type,ce,void 0,void 0,ye,M)},ze.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},ze.createElement=function(k,Z,se){var M,ce={},ye=null;if(Z!=null)for(M in Z.key!==void 0&&(ye=""+Z.key),Z)j.call(Z,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(ce[M]=Z[M]);var pe=arguments.length-2;if(pe===1)ce.children=se;else if(1<pe){for(var le=Array(pe),ge=0;ge<pe;ge++)le[ge]=arguments[ge+2];ce.children=le}if(k&&k.defaultProps)for(M in pe=k.defaultProps,pe)ce[M]===void 0&&(ce[M]=pe[M]);return F(k,ye,void 0,void 0,null,ce)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(k){return{$$typeof:f,render:k}},ze.isValidElement=J,ze.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:K}},ze.memo=function(k,Z){return{$$typeof:h,type:k,compare:Z===void 0?null:Z}},ze.startTransition=function(k){var Z=L.T,se={};L.T=se;try{var M=k(),ce=L.S;ce!==null&&ce(se,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(ne,B)}catch(ye){B(ye)}finally{L.T=Z}},ze.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},ze.use=function(k){return L.H.use(k)},ze.useActionState=function(k,Z,se){return L.H.useActionState(k,Z,se)},ze.useCallback=function(k,Z){return L.H.useCallback(k,Z)},ze.useContext=function(k){return L.H.useContext(k)},ze.useDebugValue=function(){},ze.useDeferredValue=function(k,Z){return L.H.useDeferredValue(k,Z)},ze.useEffect=function(k,Z,se){var M=L.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(k,Z)},ze.useId=function(){return L.H.useId()},ze.useImperativeHandle=function(k,Z,se){return L.H.useImperativeHandle(k,Z,se)},ze.useInsertionEffect=function(k,Z){return L.H.useInsertionEffect(k,Z)},ze.useLayoutEffect=function(k,Z){return L.H.useLayoutEffect(k,Z)},ze.useMemo=function(k,Z){return L.H.useMemo(k,Z)},ze.useOptimistic=function(k,Z){return L.H.useOptimistic(k,Z)},ze.useReducer=function(k,Z,se){return L.H.useReducer(k,Z,se)},ze.useRef=function(k){return L.H.useRef(k)},ze.useState=function(k){return L.H.useState(k)},ze.useSyncExternalStore=function(k,Z,se){return L.H.useSyncExternalStore(k,Z,se)},ze.useTransition=function(){return L.H.useTransition()},ze.version="19.1.1",ze}var Fx;function zp(){return Fx||(Fx=1,lh.exports=MT()),lh.exports}var v=zp();const pa=hc(v),B0=RT({__proto__:null,default:pa},[v]);var sh={exports:{}},vl={},uh={exports:{}},ch={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Vx;function jT(){return Vx||(Vx=1,(function(e){function n(P,K){var B=P.length;P.push(K);e:for(;0<B;){var ne=B-1>>>1,k=P[ne];if(0<l(k,K))P[ne]=K,P[B]=k,B=ne;else break e}}function r(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var K=P[0],B=P.pop();if(B!==K){P[0]=B;e:for(var ne=0,k=P.length,Z=k>>>1;ne<Z;){var se=2*(ne+1)-1,M=P[se],ce=se+1,ye=P[ce];if(0>l(M,B))ce<k&&0>l(ye,M)?(P[ne]=ye,P[ce]=B,ne=ce):(P[ne]=M,P[se]=B,ne=se);else if(ce<k&&0>l(ye,B))P[ne]=ye,P[ce]=B,ne=ce;else break e}}return K}function l(P,K){var B=P.sortIndex-K.sortIndex;return B!==0?B:P.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],m=1,y=null,b=3,w=!1,E=!1,S=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function D(P){for(var K=r(h);K!==null;){if(K.callback===null)i(h);else if(K.startTime<=P)i(h),K.sortIndex=K.expirationTime,n(d,K);else break;K=r(h)}}function L(P){if(S=!1,D(P),!E)if(r(d)!==null)E=!0,j||(j=!0,ae());else{var K=r(h);K!==null&&Q(L,K.startTime-P)}}var j=!1,F=-1,q=5,J=-1;function z(){return A?!0:!(e.unstable_now()-J<q)}function ee(){if(A=!1,j){var P=e.unstable_now();J=P;var K=!0;try{e:{E=!1,S&&(S=!1,R(F),F=-1),w=!0;var B=b;try{t:{for(D(P),y=r(d);y!==null&&!(y.expirationTime>P&&z());){var ne=y.callback;if(typeof ne=="function"){y.callback=null,b=y.priorityLevel;var k=ne(y.expirationTime<=P);if(P=e.unstable_now(),typeof k=="function"){y.callback=k,D(P),K=!0;break t}y===r(d)&&i(d),D(P)}else i(d);y=r(d)}if(y!==null)K=!0;else{var Z=r(h);Z!==null&&Q(L,Z.startTime-P),K=!1}}break e}finally{y=null,b=B,w=!1}K=void 0}}finally{K?ae():j=!1}}}var ae;if(typeof N=="function")ae=function(){N(ee)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,U=W.port2;W.port1.onmessage=ee,ae=function(){U.postMessage(null)}}else ae=function(){T(ee,0)};function Q(P,K){F=T(function(){P(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(P){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var B=b;b=K;try{return P()}finally{b=B}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(P,K){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=b;b=P;try{return K()}finally{b=B}},e.unstable_scheduleCallback=function(P,K,B){var ne=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?ne+B:ne):B=ne,P){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=B+k,P={id:m++,callback:K,priorityLevel:P,startTime:B,expirationTime:k,sortIndex:-1},B>ne?(P.sortIndex=B,n(h,P),r(d)===null&&P===r(h)&&(S?(R(F),F=-1):S=!0,Q(L,B-ne))):(P.sortIndex=k,n(d,P),E||w||(E=!0,j||(j=!0,ae()))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var K=b;return function(){var B=b;b=K;try{return P.apply(this,arguments)}finally{b=B}}}})(ch)),ch}var qx;function DT(){return qx||(qx=1,uh.exports=jT()),uh.exports}var fh={exports:{}},Gt={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var $x;function OT(){if($x)return Gt;$x=1;var e=zp();function n(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(d,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:d,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Gt.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return s(d,h,null,m)},Gt.flushSync=function(d){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,d)return d()}finally{c.T=h,i.p=m,i.d.f()}},Gt.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},Gt.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},Gt.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):m==="script"&&i.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Gt.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},Gt.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Gt.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},Gt.requestFormReset=function(d){i.d.r(d)},Gt.unstable_batchedUpdates=function(d,h){return d(h)},Gt.useFormState=function(d,h,m){return c.H.useFormState(d,h,m)},Gt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Gt.version="19.1.1",Gt}var Gx;function U0(){if(Gx)return fh.exports;Gx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),fh.exports=OT(),fh.exports}/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react-dom-client.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Yx;function PT(){if(Yx)return vl;Yx=1;var e=DT(),n=zp(),r=U0();function i(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var a=t,o=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(o=a.return),t=a.return;while(t)}return a.tag===3?o:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(s(t)!==t)throw Error(i(188))}function d(t){var a=t.alternate;if(!a){if(a=s(t),a===null)throw Error(i(188));return a!==t?null:t}for(var o=t,u=a;;){var p=o.return;if(p===null)break;var x=p.alternate;if(x===null){if(u=p.return,u!==null){o=u;continue}break}if(p.child===x.child){for(x=p.child;x;){if(x===o)return f(p),t;if(x===u)return f(p),a;x=x.sibling}throw Error(i(188))}if(o.return!==u.return)o=p,u=x;else{for(var C=!1,_=p.child;_;){if(_===o){C=!0,o=p,u=x;break}if(_===u){C=!0,u=p,o=x;break}_=_.sibling}if(!C){for(_=x.child;_;){if(_===o){C=!0,o=x,u=p;break}if(_===u){C=!0,u=x,o=p;break}_=_.sibling}if(!C)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:a}function h(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=h(t),a!==null)return a;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),N=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ae(t){return t===null||typeof t!="object"?null:(t=ee&&t[ee]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function U(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case L:return"Suspense";case j:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case N:return(t.displayName||"Context")+".Provider";case R:return(t._context.displayName||"Context")+".Consumer";case D:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return a=t.displayName||null,a!==null?a:U(t.type)||"Memo";case q:a=t._payload,t=t._init;try{return U(t(a))}catch{}}return null}var Q=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},ne=[],k=-1;function Z(t){return{current:t}}function se(t){0>k||(t.current=ne[k],ne[k]=null,k--)}function M(t,a){k++,ne[k]=t.current,t.current=a}var ce=Z(null),ye=Z(null),pe=Z(null),le=Z(null);function ge(t,a){switch(M(pe,a),M(ye,t),M(ce,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?hx(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=hx(a),t=px(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}se(ce),M(ce,t)}function ke(){se(ce),se(ye),se(pe)}function Ne(t){t.memoizedState!==null&&M(le,t);var a=ce.current,o=px(a,t.type);a!==o&&(M(ye,t),M(ce,o))}function Le(t){ye.current===t&&(se(ce),se(ye)),le.current===t&&(se(le),dl._currentValue=B)}var Ye=Object.prototype.hasOwnProperty,bt=e.unstable_scheduleCallback,Ft=e.unstable_cancelCallback,Cn=e.unstable_shouldYield,fn=e.unstable_requestPaint,lt=e.unstable_now,Ur=e.unstable_getCurrentPriorityLevel,Hr=e.unstable_ImmediatePriority,Fr=e.unstable_UserBlockingPriority,pr=e.unstable_NormalPriority,ni=e.unstable_LowPriority,mr=e.unstable_IdlePriority,wo=e.log,ri=e.unstable_setDisableYieldValue,te=null,fe=null;function Ce(t){if(typeof wo=="function"&&ri(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(te,t)}catch{}}var Te=Math.clz32?Math.clz32:Hn,We=Math.log,Xt=Math.LN2;function Hn(t){return t>>>=0,t===0?32:31-(We(t)/Xt|0)|0}var It=256,tn=4194304;function Vt(t){var a=t&42;if(a!==0)return a;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ft(t,a,o){var u=t.pendingLanes;if(u===0)return 0;var p=0,x=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var _=u&134217727;return _!==0?(u=_&~x,u!==0?p=Vt(u):(C&=_,C!==0?p=Vt(C):o||(o=_&~t,o!==0&&(p=Vt(o))))):(_=u&~x,_!==0?p=Vt(_):C!==0?p=Vt(C):o||(o=u&~t,o!==0&&(p=Vt(o)))),p===0?0:a!==0&&a!==p&&(a&x)===0&&(x=p&-p,o=a&-a,x>=o||x===32&&(o&4194048)!==0)?a:p}function qt(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function G(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 he(){var t=It;return It<<=1,(It&4194048)===0&&(It=256),t}function ve(){var t=tn;return tn<<=1,(tn&62914560)===0&&(tn=4194304),t}function Se(t){for(var a=[],o=0;31>o;o++)a.push(t);return a}function je(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function st(t,a,o,u,p,x){var C=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var _=t.entanglements,O=t.expirationTimes,$=t.hiddenUpdates;for(o=C&~o;0<o;){var re=31-Te(o),oe=1<<re;_[re]=0,O[re]=-1;var Y=$[re];if(Y!==null)for($[re]=null,re=0;re<Y.length;re++){var X=Y[re];X!==null&&(X.lane&=-536870913)}o&=~oe}u!==0&&dn(t,u,0),x!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=x&~(C&~a))}function dn(t,a,o){t.pendingLanes|=a,t.suspendedLanes&=~a;var u=31-Te(a);t.entangledLanes|=a,t.entanglements[u]=t.entanglements[u]|1073741824|o&4194090}function Vr(t,a){var o=t.entangledLanes|=a;for(t=t.entanglements;o;){var u=31-Te(o),p=1<<u;p&a|t[u]&a&&(t[u]|=a),o&=~p}}function Qe(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function nn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Fn(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:Dx(t.type))}function Vn(t,a){var o=K.p;try{return K.p=t,a()}finally{K.p=o}}var dt=Math.random().toString(36).slice(2),ht="__reactFiber$"+dt,Ct="__reactProps$"+dt,jt="__reactContainer$"+dt,rn="__reactEvents$"+dt,gr="__reactListeners$"+dt,So="__reactHandles$"+dt,tg="__reactResources$"+dt,Eo="__reactMarker$"+dt;function Wc(t){delete t[ht],delete t[Ct],delete t[rn],delete t[gr],delete t[So]}function ai(t){var a=t[ht];if(a)return a;for(var o=t.parentNode;o;){if(a=o[jt]||o[ht]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(t=vx(t);t!==null;){if(o=t[ht])return o;t=vx(t)}return a}t=o,o=t.parentNode}return null}function ii(t){if(t=t[ht]||t[jt]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function Co(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function oi(t){var a=t[tg];return a||(a=t[tg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Dt(t){t[Eo]=!0}var ng=new Set,rg={};function Ca(t,a){li(t,a),li(t+"Capture",a)}function li(t,a){for(rg[t]=a,t=0;t<a.length;t++)ng.add(a[t])}var b2=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]*$"),ag={},ig={};function w2(t){return Ye.call(ig,t)?!0:Ye.call(ag,t)?!1:b2.test(t)?ig[t]=!0:(ag[t]=!0,!1)}function ps(t,a,o){if(w2(a))if(o===null)t.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+o)}}function ms(t,a,o){if(o===null)t.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+o)}}function yr(t,a,o,u){if(u===null)t.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(a,o,""+u)}}var Jc,og;function si(t){if(Jc===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Jc=a&&a[1]||"",og=-1<o.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+Jc+t+og}var ef=!1;function tf(t,a){if(!t||ef)return"";ef=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(X){var Y=X}Reflect.construct(t,[],oe)}else{try{oe.call()}catch(X){Y=X}t.call(oe.prototype)}}else{try{throw Error()}catch(X){Y=X}(oe=t())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(X){if(X&&Y&&typeof X.stack=="string")return[X.stack,Y.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=u.DetermineComponentFrameRoot(),C=x[0],_=x[1];if(C&&_){var O=C.split(`
|
|
45
|
-
`),$=_.split(`
|
|
46
|
-
`);for(p=u=0;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;for(;p<$.length&&!$[p].includes("DetermineComponentFrameRoot");)p++;if(u===O.length||p===$.length)for(u=O.length-1,p=$.length-1;1<=u&&0<=p&&O[u]!==$[p];)p--;for(;1<=u&&0<=p;u--,p--)if(O[u]!==$[p]){if(u!==1||p!==1)do if(u--,p--,0>p||O[u]!==$[p]){var re=`
|
|
47
|
-
`+O[u].replace(" at new "," at ");return t.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",t.displayName)),re}while(1<=u&&0<=p);break}}}finally{ef=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?si(o):""}function S2(t){switch(t.tag){case 26:case 27:case 5:return si(t.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 15:return tf(t.type,!1);case 11:return tf(t.type.render,!1);case 1:return tf(t.type,!0);case 31:return si("Activity");default:return""}}function lg(t){try{var a="";do a+=S2(t),t=t.return;while(t);return a}catch(o){return`
|
|
48
|
-
Error generating stack: `+o.message+`
|
|
49
|
-
`+o.stack}}function kn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function sg(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function E2(t){var a=sg(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),u=""+t[a];if(!t.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var p=o.get,x=o.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return p.call(this)},set:function(C){u=""+C,x.call(this,C)}}),Object.defineProperty(t,a,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function gs(t){t._valueTracker||(t._valueTracker=E2(t))}function ug(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return t&&(u=sg(t)?t.checked?"true":"false":t.value),t=u,t!==o?(a.setValue(t),!0):!1}function ys(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var C2=/[\n"\\]/g;function An(t){return t.replace(C2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function nf(t,a,o,u,p,x,C,_){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),a!=null?C==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+kn(a)):t.value!==""+kn(a)&&(t.value=""+kn(a)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),a!=null?rf(t,C,kn(a)):o!=null?rf(t,C,kn(o)):u!=null&&t.removeAttribute("value"),p==null&&x!=null&&(t.defaultChecked=!!x),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+kn(_):t.removeAttribute("name")}function cg(t,a,o,u,p,x,C,_){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.type=x),a!=null||o!=null){if(!(x!=="submit"&&x!=="reset"||a!=null))return;o=o!=null?""+kn(o):"",a=a!=null?""+kn(a):o,_||a===t.value||(t.value=a),t.defaultValue=a}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=_?t.checked:!!u,t.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C)}function rf(t,a,o){a==="number"&&ys(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function ui(t,a,o,u){if(t=t.options,a){a={};for(var p=0;p<o.length;p++)a["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=a.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&u&&(t[o].defaultSelected=!0)}else{for(o=""+kn(o),a=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}a!==null||t[p].disabled||(a=t[p])}a!==null&&(a.selected=!0)}}function fg(t,a,o){if(a!=null&&(a=""+kn(a),a!==t.value&&(t.value=a),o==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=o!=null?""+kn(o):""}function dg(t,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(i(92));if(Q(u)){if(1<u.length)throw Error(i(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=kn(a),t.defaultValue=o,u=t.textContent,u===o&&u!==""&&u!==null&&(t.value=u)}function ci(t,a){if(a){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=a;return}}t.textContent=a}var k2=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 hg(t,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":u?t.setProperty(a,o):typeof o!="number"||o===0||k2.has(a)?a==="float"?t.cssFloat=o:t[a]=(""+o).trim():t[a]=o+"px"}function pg(t,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in a)u=a[p],a.hasOwnProperty(p)&&o[p]!==u&&hg(t,p,u)}else for(var x in a)a.hasOwnProperty(x)&&hg(t,x,a[x])}function af(t){if(t.indexOf("-")===-1)return!1;switch(t){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 A2=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"]]),T2=/^[\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 vs(t){return T2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var of=null;function lf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fi=null,di=null;function mg(t){var a=ii(t);if(a&&(t=a.stateNode)){var o=t[Ct]||null;e:switch(t=a.stateNode,a.type){case"input":if(nf(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+An(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==t&&u.form===t.form){var p=u[Ct]||null;if(!p)throw Error(i(90));nf(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===t.form&&ug(u)}break e;case"textarea":fg(t,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&ui(t,!!o.multiple,a,!1)}}}var sf=!1;function gg(t,a,o){if(sf)return t(a,o);sf=!0;try{var u=t(a);return u}finally{if(sf=!1,(fi!==null||di!==null)&&(ru(),fi&&(a=fi,t=di,di=fi=null,mg(a),t)))for(a=0;a<t.length;a++)mg(t[a])}}function ko(t,a){var o=t.stateNode;if(o===null)return null;var u=o[Ct]||null;if(u===null)return null;o=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uf=!1;if(vr)try{var Ao={};Object.defineProperty(Ao,"passive",{get:function(){uf=!0}}),window.addEventListener("test",Ao,Ao),window.removeEventListener("test",Ao,Ao)}catch{uf=!1}var qr=null,cf=null,xs=null;function yg(){if(xs)return xs;var t,a=cf,o=a.length,u,p="value"in qr?qr.value:qr.textContent,x=p.length;for(t=0;t<o&&a[t]===p[t];t++);var C=o-t;for(u=1;u<=C&&a[o-u]===p[x-u];u++);return xs=p.slice(t,1<u?1-u:void 0)}function bs(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function ws(){return!0}function vg(){return!1}function an(t){function a(o,u,p,x,C){this._reactName=o,this._targetInst=p,this.type=u,this.nativeEvent=x,this.target=C,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(o=t[_],this[_]=o?o(x):x[_]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?ws:vg,this.isPropagationStopped=vg,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ws)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ws)},persist:function(){},isPersistent:ws}),a}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ss=an(ka),To=m({},ka,{view:0,detail:0}),R2=an(To),ff,df,Ro,Es=m({},To,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ro&&(Ro&&t.type==="mousemove"?(ff=t.screenX-Ro.screenX,df=t.screenY-Ro.screenY):df=ff=0,Ro=t),ff)},movementY:function(t){return"movementY"in t?t.movementY:df}}),xg=an(Es),N2=m({},Es,{dataTransfer:0}),_2=an(N2),M2=m({},To,{relatedTarget:0}),hf=an(M2),j2=m({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),D2=an(j2),O2=m({},ka,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),P2=an(O2),L2=m({},ka,{data:0}),bg=an(L2),z2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I2={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"},B2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=B2[t])?!!a[t]:!1}function pf(){return U2}var H2=m({},To,{key:function(t){if(t.key){var a=z2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=bs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?I2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pf,charCode:function(t){return t.type==="keypress"?bs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),F2=an(H2),V2=m({},Es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wg=an(V2),q2=m({},To,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pf}),$2=an(q2),G2=m({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y2=an(G2),K2=m({},Es,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),X2=an(K2),Q2=m({},ka,{newState:0,oldState:0}),Z2=an(Q2),W2=[9,13,27,32],mf=vr&&"CompositionEvent"in window,No=null;vr&&"documentMode"in document&&(No=document.documentMode);var J2=vr&&"TextEvent"in window&&!No,Sg=vr&&(!mf||No&&8<No&&11>=No),Eg=" ",Cg=!1;function kg(t,a){switch(t){case"keyup":return W2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ag(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hi=!1;function eA(t,a){switch(t){case"compositionend":return Ag(a);case"keypress":return a.which!==32?null:(Cg=!0,Eg);case"textInput":return t=a.data,t===Eg&&Cg?null:t;default:return null}}function tA(t,a){if(hi)return t==="compositionend"||!mf&&kg(t,a)?(t=yg(),xs=cf=qr=null,hi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Sg&&a.locale!=="ko"?null:a.data;default:return null}}var nA={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 Tg(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!nA[t.type]:a==="textarea"}function Rg(t,a,o,u){fi?di?di.push(u):di=[u]:fi=u,a=uu(a,"onChange"),0<a.length&&(o=new Ss("onChange","change",null,o,u),t.push({event:o,listeners:a}))}var _o=null,Mo=null;function rA(t){sx(t,0)}function Cs(t){var a=Co(t);if(ug(a))return t}function Ng(t,a){if(t==="change")return a}var _g=!1;if(vr){var gf;if(vr){var yf="oninput"in document;if(!yf){var Mg=document.createElement("div");Mg.setAttribute("oninput","return;"),yf=typeof Mg.oninput=="function"}gf=yf}else gf=!1;_g=gf&&(!document.documentMode||9<document.documentMode)}function jg(){_o&&(_o.detachEvent("onpropertychange",Dg),Mo=_o=null)}function Dg(t){if(t.propertyName==="value"&&Cs(Mo)){var a=[];Rg(a,Mo,t,lf(t)),gg(rA,a)}}function aA(t,a,o){t==="focusin"?(jg(),_o=a,Mo=o,_o.attachEvent("onpropertychange",Dg)):t==="focusout"&&jg()}function iA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cs(Mo)}function oA(t,a){if(t==="click")return Cs(a)}function lA(t,a){if(t==="input"||t==="change")return Cs(a)}function sA(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var hn=typeof Object.is=="function"?Object.is:sA;function jo(t,a){if(hn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var o=Object.keys(t),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var p=o[u];if(!Ye.call(a,p)||!hn(t[p],a[p]))return!1}return!0}function Og(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pg(t,a){var o=Og(t);t=0;for(var u;o;){if(o.nodeType===3){if(u=t+o.textContent.length,t<=a&&u>=a)return{node:o,offset:a-t};t=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Og(o)}}function Lg(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Lg(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function zg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=ys(t.document);a instanceof t.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)t=a.contentWindow;else break;a=ys(t.document)}return a}function vf(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var uA=vr&&"documentMode"in document&&11>=document.documentMode,pi=null,xf=null,Do=null,bf=!1;function Ig(t,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;bf||pi==null||pi!==ys(u)||(u=pi,"selectionStart"in u&&vf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Do&&jo(Do,u)||(Do=u,u=uu(xf,"onSelect"),0<u.length&&(a=new Ss("onSelect","select",null,a,o),t.push({event:a,listeners:u}),a.target=pi)))}function Aa(t,a){var o={};return o[t.toLowerCase()]=a.toLowerCase(),o["Webkit"+t]="webkit"+a,o["Moz"+t]="moz"+a,o}var mi={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionrun:Aa("Transition","TransitionRun"),transitionstart:Aa("Transition","TransitionStart"),transitioncancel:Aa("Transition","TransitionCancel"),transitionend:Aa("Transition","TransitionEnd")},wf={},Bg={};vr&&(Bg=document.createElement("div").style,"AnimationEvent"in window||(delete mi.animationend.animation,delete mi.animationiteration.animation,delete mi.animationstart.animation),"TransitionEvent"in window||delete mi.transitionend.transition);function Ta(t){if(wf[t])return wf[t];if(!mi[t])return t;var a=mi[t],o;for(o in a)if(a.hasOwnProperty(o)&&o in Bg)return wf[t]=a[o];return t}var Ug=Ta("animationend"),Hg=Ta("animationiteration"),Fg=Ta("animationstart"),cA=Ta("transitionrun"),fA=Ta("transitionstart"),dA=Ta("transitioncancel"),Vg=Ta("transitionend"),qg=new Map,Sf="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(" ");Sf.push("scrollEnd");function qn(t,a){qg.set(t,a),Ca(a,[t])}var $g=new WeakMap;function Tn(t,a){if(typeof t=="object"&&t!==null){var o=$g.get(t);return o!==void 0?o:(a={value:t,source:a,stack:lg(a)},$g.set(t,a),a)}return{value:t,source:a,stack:lg(a)}}var Rn=[],gi=0,Ef=0;function ks(){for(var t=gi,a=Ef=gi=0;a<t;){var o=Rn[a];Rn[a++]=null;var u=Rn[a];Rn[a++]=null;var p=Rn[a];Rn[a++]=null;var x=Rn[a];if(Rn[a++]=null,u!==null&&p!==null){var C=u.pending;C===null?p.next=p:(p.next=C.next,C.next=p),u.pending=p}x!==0&&Gg(o,p,x)}}function As(t,a,o,u){Rn[gi++]=t,Rn[gi++]=a,Rn[gi++]=o,Rn[gi++]=u,Ef|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Cf(t,a,o,u){return As(t,a,o,u),Ts(t)}function yi(t,a){return As(t,null,null,a),Ts(t)}function Gg(t,a,o){t.lanes|=o;var u=t.alternate;u!==null&&(u.lanes|=o);for(var p=!1,x=t.return;x!==null;)x.childLanes|=o,u=x.alternate,u!==null&&(u.childLanes|=o),x.tag===22&&(t=x.stateNode,t===null||t._visibility&1||(p=!0)),t=x,x=x.return;return t.tag===3?(x=t.stateNode,p&&a!==null&&(p=31-Te(o),t=x.hiddenUpdates,u=t[p],u===null?t[p]=[a]:u.push(a),a.lane=o|536870912),x):null}function Ts(t){if(50<al)throw al=0,_d=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var vi={};function hA(t,a,o,u){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(t,a,o,u){return new hA(t,a,o,u)}function kf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xr(t,a){var o=t.alternate;return o===null?(o=pn(t.tag,a,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=a,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,a=t.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function Yg(t,a){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,a=o.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Rs(t,a,o,u,p,x){var C=0;if(u=t,typeof t=="function")kf(t)&&(C=1);else if(typeof t=="string")C=mT(t,o,ce.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case J:return t=pn(31,o,a,p),t.elementType=J,t.lanes=x,t;case E:return Ra(o.children,p,x,a);case S:C=8,p|=24;break;case A:return t=pn(12,o,a,p|2),t.elementType=A,t.lanes=x,t;case L:return t=pn(13,o,a,p),t.elementType=L,t.lanes=x,t;case j:return t=pn(19,o,a,p),t.elementType=j,t.lanes=x,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case N:C=10;break e;case R:C=9;break e;case D:C=11;break e;case F:C=14;break e;case q:C=16,u=null;break e}C=29,o=Error(i(130,t===null?"null":typeof t,"")),u=null}return a=pn(C,o,a,p),a.elementType=t,a.type=u,a.lanes=x,a}function Ra(t,a,o,u){return t=pn(7,t,u,a),t.lanes=o,t}function Af(t,a,o){return t=pn(6,t,null,a),t.lanes=o,t}function Tf(t,a,o){return a=pn(4,t.children!==null?t.children:[],t.key,a),a.lanes=o,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var xi=[],bi=0,Ns=null,_s=0,Nn=[],_n=0,Na=null,br=1,wr="";function _a(t,a){xi[bi++]=_s,xi[bi++]=Ns,Ns=t,_s=a}function Kg(t,a,o){Nn[_n++]=br,Nn[_n++]=wr,Nn[_n++]=Na,Na=t;var u=br;t=wr;var p=32-Te(u)-1;u&=~(1<<p),o+=1;var x=32-Te(a)+p;if(30<x){var C=p-p%5;x=(u&(1<<C)-1).toString(32),u>>=C,p-=C,br=1<<32-Te(a)+p|o<<p|u,wr=x+t}else br=1<<x|o<<p|u,wr=t}function Rf(t){t.return!==null&&(_a(t,1),Kg(t,1,0))}function Nf(t){for(;t===Ns;)Ns=xi[--bi],xi[bi]=null,_s=xi[--bi],xi[bi]=null;for(;t===Na;)Na=Nn[--_n],Nn[_n]=null,wr=Nn[--_n],Nn[_n]=null,br=Nn[--_n],Nn[_n]=null}var Qt=null,vt=null,Je=!1,Ma=null,er=!1,_f=Error(i(519));function ja(t){var a=Error(i(418,""));throw Lo(Tn(a,t)),_f}function Xg(t){var a=t.stateNode,o=t.type,u=t.memoizedProps;switch(a[ht]=t,a[Ct]=u,o){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(o=0;o<ol.length;o++)$e(ol[o],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":$e("invalid",a),cg(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),gs(a);break;case"select":$e("invalid",a);break;case"textarea":$e("invalid",a),dg(a,u.value,u.defaultValue,u.children),gs(a)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||dx(a.textContent,o)?(u.popover!=null&&($e("beforetoggle",a),$e("toggle",a)),u.onScroll!=null&&$e("scroll",a),u.onScrollEnd!=null&&$e("scrollend",a),u.onClick!=null&&(a.onclick=cu),a=!0):a=!1,a||ja(t)}function Qg(t){for(Qt=t.return;Qt;)switch(Qt.tag){case 5:case 13:er=!1;return;case 27:case 3:er=!0;return;default:Qt=Qt.return}}function Oo(t){if(t!==Qt)return!1;if(!Je)return Qg(t),Je=!0,!1;var a=t.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Gd(t.type,t.memoizedProps)),o=!o),o&&vt&&ja(t),Qg(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(o=t.data,o==="/$"){if(a===0){vt=Gn(t.nextSibling);break e}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;t=t.nextSibling}vt=null}}else a===27?(a=vt,oa(t.type)?(t=Qd,Qd=null,vt=t):vt=a):vt=Qt?Gn(t.stateNode.nextSibling):null;return!0}function Po(){vt=Qt=null,Je=!1}function Zg(){var t=Ma;return t!==null&&(sn===null?sn=t:sn.push.apply(sn,t),Ma=null),t}function Lo(t){Ma===null?Ma=[t]:Ma.push(t)}var Mf=Z(null),Da=null,Sr=null;function $r(t,a,o){M(Mf,a._currentValue),a._currentValue=o}function Er(t){t._currentValue=Mf.current,se(Mf)}function jf(t,a,o){for(;t!==null;){var u=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),t===o)break;t=t.return}}function Df(t,a,o,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var x=p.dependencies;if(x!==null){var C=p.child;x=x.firstContext;e:for(;x!==null;){var _=x;x=p;for(var O=0;O<a.length;O++)if(_.context===a[O]){x.lanes|=o,_=x.alternate,_!==null&&(_.lanes|=o),jf(x.return,o,t),u||(C=null);break e}x=_.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(i(341));C.lanes|=o,x=C.alternate,x!==null&&(x.lanes|=o),jf(C,o,t),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===t){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function zo(t,a,o,u){t=null;for(var p=a,x=!1;p!==null;){if(!x){if((p.flags&524288)!==0)x=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var _=p.type;hn(p.pendingProps.value,C.value)||(t!==null?t.push(_):t=[_])}}else if(p===le.current){if(C=p.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(dl):t=[dl])}p=p.return}t!==null&&Df(a,t,o,u),a.flags|=262144}function Ms(t){for(t=t.firstContext;t!==null;){if(!hn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Oa(t){Da=t,Sr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return Wg(Da,t)}function js(t,a){return Da===null&&Oa(t),Wg(t,a)}function Wg(t,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Sr===null){if(t===null)throw Error(i(308));Sr=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Sr=Sr.next=a;return o}var pA=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(o,u){t.push(u)}};this.abort=function(){a.aborted=!0,t.forEach(function(o){return o()})}},mA=e.unstable_scheduleCallback,gA=e.unstable_NormalPriority,Rt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Of(){return{controller:new pA,data:new Map,refCount:0}}function Io(t){t.refCount--,t.refCount===0&&mA(gA,function(){t.controller.abort()})}var Bo=null,Pf=0,wi=0,Si=null;function yA(t,a){if(Bo===null){var o=Bo=[];Pf=0,wi=zd(),Si={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Pf++,a.then(Jg,Jg),a}function Jg(){if(--Pf===0&&Bo!==null){Si!==null&&(Si.status="fulfilled");var t=Bo;Bo=null,wi=0,Si=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function vA(t,a){var o=[],u={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){u.status="fulfilled",u.value=a;for(var p=0;p<o.length;p++)(0,o[p])(a)},function(p){for(u.status="rejected",u.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),u}var ey=P.S;P.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&yA(t,a),ey!==null&&ey(t,a)};var Pa=Z(null);function Lf(){var t=Pa.current;return t!==null?t:ut.pooledCache}function Ds(t,a){a===null?M(Pa,Pa.current):M(Pa,a.pool)}function ty(){var t=Lf();return t===null?null:{parent:Rt._currentValue,pool:t}}var Uo=Error(i(460)),ny=Error(i(474)),Os=Error(i(542)),zf={then:function(){}};function ry(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ps(){}function ay(t,a,o){switch(o=t[o],o===void 0?t.push(a):o!==a&&(a.then(Ps,Ps),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,oy(t),t;default:if(typeof a.status=="string")a.then(Ps,Ps);else{if(t=ut,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=a,t.status="pending",t.then(function(u){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=u}},function(u){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,oy(t),t}throw Ho=a,Uo}}var Ho=null;function iy(){if(Ho===null)throw Error(i(459));var t=Ho;return Ho=null,t}function oy(t){if(t===Uo||t===Os)throw Error(i(483))}var Gr=!1;function If(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bf(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Yr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Kr(t,a,o){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(et&2)!==0){var p=u.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a,a=Ts(t),Gg(t,null,o),a}return As(t,u,a,o),Ts(t)}function Fo(t,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=t.pendingLanes,o|=u,a.lanes=o,Vr(t,o)}}function Uf(t,a){var o=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var p=null,x=null;if(o=o.firstBaseUpdate,o!==null){do{var C={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};x===null?p=x=C:x=x.next=C,o=o.next}while(o!==null);x===null?p=x=a:x=x.next=a}else p=x=a;o={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:x,shared:u.shared,callbacks:u.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=a:t.next=a,o.lastBaseUpdate=a}var Hf=!1;function Vo(){if(Hf){var t=Si;if(t!==null)throw t}}function qo(t,a,o,u){Hf=!1;var p=t.updateQueue;Gr=!1;var x=p.firstBaseUpdate,C=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var O=_,$=O.next;O.next=null,C===null?x=$:C.next=$,C=O;var re=t.alternate;re!==null&&(re=re.updateQueue,_=re.lastBaseUpdate,_!==C&&(_===null?re.firstBaseUpdate=$:_.next=$,re.lastBaseUpdate=O))}if(x!==null){var oe=p.baseState;C=0,re=$=O=null,_=x;do{var Y=_.lane&-536870913,X=Y!==_.lane;if(X?(Ke&Y)===Y:(u&Y)===Y){Y!==0&&Y===wi&&(Hf=!0),re!==null&&(re=re.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var De=t,Re=_;Y=a;var at=o;switch(Re.tag){case 1:if(De=Re.payload,typeof De=="function"){oe=De.call(at,oe,Y);break e}oe=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Re.payload,Y=typeof De=="function"?De.call(at,oe,Y):De,Y==null)break e;oe=m({},oe,Y);break e;case 2:Gr=!0}}Y=_.callback,Y!==null&&(t.flags|=64,X&&(t.flags|=8192),X=p.callbacks,X===null?p.callbacks=[Y]:X.push(Y))}else X={lane:Y,tag:_.tag,payload:_.payload,callback:_.callback,next:null},re===null?($=re=X,O=oe):re=re.next=X,C|=Y;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;X=_,_=X.next,X.next=null,p.lastBaseUpdate=X,p.shared.pending=null}}while(!0);re===null&&(O=oe),p.baseState=O,p.firstBaseUpdate=$,p.lastBaseUpdate=re,x===null&&(p.shared.lanes=0),na|=C,t.lanes=C,t.memoizedState=oe}}function ly(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function sy(t,a){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)ly(o[t],a)}var Ei=Z(null),Ls=Z(0);function uy(t,a){t=_r,M(Ls,t),M(Ei,a),_r=t|a.baseLanes}function Ff(){M(Ls,_r),M(Ei,Ei.current)}function Vf(){_r=Ls.current,se(Ei),se(Ls)}var Xr=0,He=null,nt=null,kt=null,zs=!1,Ci=!1,La=!1,Is=0,$o=0,ki=null,xA=0;function wt(){throw Error(i(321))}function qf(t,a){if(a===null)return!1;for(var o=0;o<a.length&&o<t.length;o++)if(!hn(t[o],a[o]))return!1;return!0}function $f(t,a,o,u,p,x){return Xr=x,He=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=t===null||t.memoizedState===null?Gy:Yy,La=!1,x=o(u,p),La=!1,Ci&&(x=fy(a,o,u,p)),cy(t),x}function cy(t){P.H=qs;var a=nt!==null&&nt.next!==null;if(Xr=0,kt=nt=He=null,zs=!1,$o=0,ki=null,a)throw Error(i(300));t===null||Ot||(t=t.dependencies,t!==null&&Ms(t)&&(Ot=!0))}function fy(t,a,o,u){He=t;var p=0;do{if(Ci&&(ki=null),$o=0,Ci=!1,25<=p)throw Error(i(301));if(p+=1,kt=nt=null,t.updateQueue!=null){var x=t.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}P.H=AA,x=a(o,u)}while(Ci);return x}function bA(){var t=P.H,a=t.useState()[0];return a=typeof a.then=="function"?Go(a):a,t=t.useState()[0],(nt!==null?nt.memoizedState:null)!==t&&(He.flags|=1024),a}function Gf(){var t=Is!==0;return Is=0,t}function Yf(t,a,o){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~o}function Kf(t){if(zs){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}zs=!1}Xr=0,kt=nt=He=null,Ci=!1,$o=Is=0,ki=null}function on(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?He.memoizedState=kt=t:kt=kt.next=t,kt}function At(){if(nt===null){var t=He.alternate;t=t!==null?t.memoizedState:null}else t=nt.next;var a=kt===null?He.memoizedState:kt.next;if(a!==null)kt=a,nt=t;else{if(t===null)throw He.alternate===null?Error(i(467)):Error(i(310));nt=t,t={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},kt===null?He.memoizedState=kt=t:kt=kt.next=t}return kt}function Xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Go(t){var a=$o;return $o+=1,ki===null&&(ki=[]),t=ay(ki,t,a),a=He,(kt===null?a.memoizedState:kt.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?Gy:Yy),t}function Bs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Go(t);if(t.$$typeof===N)return $t(t)}throw Error(i(438,String(t)))}function Qf(t){var a=null,o=He.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=He.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Xf(),He.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(t),u=0;u<t;u++)o[u]=z;return a.index++,o}function Cr(t,a){return typeof a=="function"?a(t):a}function Us(t){var a=At();return Zf(a,nt,t)}function Zf(t,a,o){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=o;var p=t.baseQueue,x=u.pending;if(x!==null){if(p!==null){var C=p.next;p.next=x.next,x.next=C}a.baseQueue=p=x,u.pending=null}if(x=t.baseState,p===null)t.memoizedState=x;else{a=p.next;var _=C=null,O=null,$=a,re=!1;do{var oe=$.lane&-536870913;if(oe!==$.lane?(Ke&oe)===oe:(Xr&oe)===oe){var Y=$.revertLane;if(Y===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),oe===wi&&(re=!0);else if((Xr&Y)===Y){$=$.next,Y===wi&&(re=!0);continue}else oe={lane:0,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},O===null?(_=O=oe,C=x):O=O.next=oe,He.lanes|=Y,na|=Y;oe=$.action,La&&o(x,oe),x=$.hasEagerState?$.eagerState:o(x,oe)}else Y={lane:oe,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},O===null?(_=O=Y,C=x):O=O.next=Y,He.lanes|=oe,na|=oe;$=$.next}while($!==null&&$!==a);if(O===null?C=x:O.next=_,!hn(x,t.memoizedState)&&(Ot=!0,re&&(o=Si,o!==null)))throw o;t.memoizedState=x,t.baseState=C,t.baseQueue=O,u.lastRenderedState=x}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Wf(t){var a=At(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var u=o.dispatch,p=o.pending,x=a.memoizedState;if(p!==null){o.pending=null;var C=p=p.next;do x=t(x,C.action),C=C.next;while(C!==p);hn(x,a.memoizedState)||(Ot=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),o.lastRenderedState=x}return[x,u]}function dy(t,a,o){var u=He,p=At(),x=Je;if(x){if(o===void 0)throw Error(i(407));o=o()}else o=a();var C=!hn((nt||p).memoizedState,o);C&&(p.memoizedState=o,Ot=!0),p=p.queue;var _=my.bind(null,u,p,t);if(Yo(2048,8,_,[t]),p.getSnapshot!==a||C||kt!==null&&kt.memoizedState.tag&1){if(u.flags|=2048,Ai(9,Hs(),py.bind(null,u,p,o,a),null),ut===null)throw Error(i(349));x||(Xr&124)!==0||hy(u,a,o)}return o}function hy(t,a,o){t.flags|=16384,t={getSnapshot:a,value:o},a=He.updateQueue,a===null?(a=Xf(),He.updateQueue=a,a.stores=[t]):(o=a.stores,o===null?a.stores=[t]:o.push(t))}function py(t,a,o,u){a.value=o,a.getSnapshot=u,gy(a)&&yy(t)}function my(t,a,o){return o(function(){gy(a)&&yy(t)})}function gy(t){var a=t.getSnapshot;t=t.value;try{var o=a();return!hn(t,o)}catch{return!0}}function yy(t){var a=yi(t,2);a!==null&&xn(a,t,2)}function Jf(t){var a=on();if(typeof t=="function"){var o=t;if(t=o(),La){Ce(!0);try{o()}finally{Ce(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:t},a}function vy(t,a,o,u){return t.baseState=o,Zf(t,nt,typeof u=="function"?u:Cr)}function wA(t,a,o,u,p){if(Vs(t))throw Error(i(485));if(t=a.action,t!==null){var x={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){x.listeners.push(C)}};P.T!==null?o(!0):x.isTransition=!1,u(x),o=a.pending,o===null?(x.next=a.pending=x,xy(a,x)):(x.next=o.next,a.pending=o.next=x)}}function xy(t,a){var o=a.action,u=a.payload,p=t.state;if(a.isTransition){var x=P.T,C={};P.T=C;try{var _=o(p,u),O=P.S;O!==null&&O(C,_),by(t,a,_)}catch($){ed(t,a,$)}finally{P.T=x}}else try{x=o(p,u),by(t,a,x)}catch($){ed(t,a,$)}}function by(t,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){wy(t,a,u)},function(u){return ed(t,a,u)}):wy(t,a,o)}function wy(t,a,o){a.status="fulfilled",a.value=o,Sy(a),t.state=o,a=t.pending,a!==null&&(o=a.next,o===a?t.pending=null:(o=o.next,a.next=o,xy(t,o)))}function ed(t,a,o){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,Sy(a),a=a.next;while(a!==u)}t.action=null}function Sy(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Ey(t,a){return a}function Cy(t,a){if(Je){var o=ut.formState;if(o!==null){e:{var u=He;if(Je){if(vt){t:{for(var p=vt,x=er;p.nodeType!==8;){if(!x){p=null;break t}if(p=Gn(p.nextSibling),p===null){p=null;break t}}x=p.data,p=x==="F!"||x==="F"?p:null}if(p){vt=Gn(p.nextSibling),u=p.data==="F!";break e}}ja(u)}u=!1}u&&(a=o[0])}}return o=on(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ey,lastRenderedState:a},o.queue=u,o=Vy.bind(null,He,u),u.dispatch=o,u=Jf(!1),x=id.bind(null,He,!1,u.queue),u=on(),p={state:a,dispatch:null,action:t,pending:null},u.queue=p,o=wA.bind(null,He,p,x,o),p.dispatch=o,u.memoizedState=t,[a,o,!1]}function ky(t){var a=At();return Ay(a,nt,t)}function Ay(t,a,o){if(a=Zf(t,a,Ey)[0],t=Us(Cr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Go(a)}catch(C){throw C===Uo?Os:C}else u=a;a=At();var p=a.queue,x=p.dispatch;return o!==a.memoizedState&&(He.flags|=2048,Ai(9,Hs(),SA.bind(null,p,o),null)),[u,x,t]}function SA(t,a){t.action=a}function Ty(t){var a=At(),o=nt;if(o!==null)return Ay(a,o,t);At(),a=a.memoizedState,o=At();var u=o.queue.dispatch;return o.memoizedState=t,[a,u,!1]}function Ai(t,a,o,u){return t={tag:t,create:o,deps:u,inst:a,next:null},a=He.updateQueue,a===null&&(a=Xf(),He.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=t.next=t:(u=o.next,o.next=t,t.next=u,a.lastEffect=t),t}function Hs(){return{destroy:void 0,resource:void 0}}function Ry(){return At().memoizedState}function Fs(t,a,o,u){var p=on();u=u===void 0?null:u,He.flags|=t,p.memoizedState=Ai(1|a,Hs(),o,u)}function Yo(t,a,o,u){var p=At();u=u===void 0?null:u;var x=p.memoizedState.inst;nt!==null&&u!==null&&qf(u,nt.memoizedState.deps)?p.memoizedState=Ai(a,x,o,u):(He.flags|=t,p.memoizedState=Ai(1|a,x,o,u))}function Ny(t,a){Fs(8390656,8,t,a)}function _y(t,a){Yo(2048,8,t,a)}function My(t,a){return Yo(4,2,t,a)}function jy(t,a){return Yo(4,4,t,a)}function Dy(t,a){if(typeof a=="function"){t=t();var o=a(t);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Oy(t,a,o){o=o!=null?o.concat([t]):null,Yo(4,4,Dy.bind(null,a,t),o)}function td(){}function Py(t,a){var o=At();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&qf(a,u[1])?u[0]:(o.memoizedState=[t,a],t)}function Ly(t,a){var o=At();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&qf(a,u[1]))return u[0];if(u=t(),La){Ce(!0);try{t()}finally{Ce(!1)}}return o.memoizedState=[u,a],u}function nd(t,a,o){return o===void 0||(Xr&1073741824)!==0?t.memoizedState=a:(t.memoizedState=o,t=Bv(),He.lanes|=t,na|=t,o)}function zy(t,a,o,u){return hn(o,a)?o:Ei.current!==null?(t=nd(t,o,u),hn(t,a)||(Ot=!0),t):(Xr&42)===0?(Ot=!0,t.memoizedState=o):(t=Bv(),He.lanes|=t,na|=t,a)}function Iy(t,a,o,u,p){var x=K.p;K.p=x!==0&&8>x?x:8;var C=P.T,_={};P.T=_,id(t,!1,a,o);try{var O=p(),$=P.S;if($!==null&&$(_,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var re=vA(O,u);Ko(t,a,re,vn(t))}else Ko(t,a,u,vn(t))}catch(oe){Ko(t,a,{then:function(){},status:"rejected",reason:oe},vn())}finally{K.p=x,P.T=C}}function EA(){}function rd(t,a,o,u){if(t.tag!==5)throw Error(i(476));var p=By(t).queue;Iy(t,p,a,B,o===null?EA:function(){return Uy(t),o(u)})}function By(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:B},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:o},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Uy(t){var a=By(t).next.queue;Ko(t,a,{},vn())}function ad(){return $t(dl)}function Hy(){return At().memoizedState}function Fy(){return At().memoizedState}function CA(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var o=vn();t=Yr(o);var u=Kr(a,t,o);u!==null&&(xn(u,a,o),Fo(u,a,o)),a={cache:Of()},t.payload=a;return}a=a.return}}function kA(t,a,o){var u=vn();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Vs(t)?qy(a,o):(o=Cf(t,a,o,u),o!==null&&(xn(o,t,u),$y(o,a,u)))}function Vy(t,a,o){var u=vn();Ko(t,a,o,u)}function Ko(t,a,o,u){var p={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Vs(t))qy(a,p);else{var x=t.alternate;if(t.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var C=a.lastRenderedState,_=x(C,o);if(p.hasEagerState=!0,p.eagerState=_,hn(_,C))return As(t,a,p,0),ut===null&&ks(),!1}catch{}finally{}if(o=Cf(t,a,p,u),o!==null)return xn(o,t,u),$y(o,a,u),!0}return!1}function id(t,a,o,u){if(u={lane:2,revertLane:zd(),action:u,hasEagerState:!1,eagerState:null,next:null},Vs(t)){if(a)throw Error(i(479))}else a=Cf(t,o,u,2),a!==null&&xn(a,t,2)}function Vs(t){var a=t.alternate;return t===He||a!==null&&a===He}function qy(t,a){Ci=zs=!0;var o=t.pending;o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a}function $y(t,a,o){if((o&4194048)!==0){var u=a.lanes;u&=t.pendingLanes,o|=u,a.lanes=o,Vr(t,o)}}var qs={readContext:$t,use:Bs,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt},Gy={readContext:$t,use:Bs,useCallback:function(t,a){return on().memoizedState=[t,a===void 0?null:a],t},useContext:$t,useEffect:Ny,useImperativeHandle:function(t,a,o){o=o!=null?o.concat([t]):null,Fs(4194308,4,Dy.bind(null,a,t),o)},useLayoutEffect:function(t,a){return Fs(4194308,4,t,a)},useInsertionEffect:function(t,a){Fs(4,2,t,a)},useMemo:function(t,a){var o=on();a=a===void 0?null:a;var u=t();if(La){Ce(!0);try{t()}finally{Ce(!1)}}return o.memoizedState=[u,a],u},useReducer:function(t,a,o){var u=on();if(o!==void 0){var p=o(a);if(La){Ce(!0);try{o(a)}finally{Ce(!1)}}}else p=a;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=kA.bind(null,He,t),[u.memoizedState,t]},useRef:function(t){var a=on();return t={current:t},a.memoizedState=t},useState:function(t){t=Jf(t);var a=t.queue,o=Vy.bind(null,He,a);return a.dispatch=o,[t.memoizedState,o]},useDebugValue:td,useDeferredValue:function(t,a){var o=on();return nd(o,t,a)},useTransition:function(){var t=Jf(!1);return t=Iy.bind(null,He,t.queue,!0,!1),on().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,o){var u=He,p=on();if(Je){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),ut===null)throw Error(i(349));(Ke&124)!==0||hy(u,a,o)}p.memoizedState=o;var x={value:o,getSnapshot:a};return p.queue=x,Ny(my.bind(null,u,x,t),[t]),u.flags|=2048,Ai(9,Hs(),py.bind(null,u,x,o,a),null),o},useId:function(){var t=on(),a=ut.identifierPrefix;if(Je){var o=wr,u=br;o=(u&~(1<<32-Te(u)-1)).toString(32)+o,a="«"+a+"R"+o,o=Is++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=xA++,a="«"+a+"r"+o.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:ad,useFormState:Cy,useActionState:Cy,useOptimistic:function(t){var a=on();a.memoizedState=a.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=id.bind(null,He,!0,o),o.dispatch=a,[t,a]},useMemoCache:Qf,useCacheRefresh:function(){return on().memoizedState=CA.bind(null,He)}},Yy={readContext:$t,use:Bs,useCallback:Py,useContext:$t,useEffect:_y,useImperativeHandle:Oy,useInsertionEffect:My,useLayoutEffect:jy,useMemo:Ly,useReducer:Us,useRef:Ry,useState:function(){return Us(Cr)},useDebugValue:td,useDeferredValue:function(t,a){var o=At();return zy(o,nt.memoizedState,t,a)},useTransition:function(){var t=Us(Cr)[0],a=At().memoizedState;return[typeof t=="boolean"?t:Go(t),a]},useSyncExternalStore:dy,useId:Hy,useHostTransitionStatus:ad,useFormState:ky,useActionState:ky,useOptimistic:function(t,a){var o=At();return vy(o,nt,t,a)},useMemoCache:Qf,useCacheRefresh:Fy},AA={readContext:$t,use:Bs,useCallback:Py,useContext:$t,useEffect:_y,useImperativeHandle:Oy,useInsertionEffect:My,useLayoutEffect:jy,useMemo:Ly,useReducer:Wf,useRef:Ry,useState:function(){return Wf(Cr)},useDebugValue:td,useDeferredValue:function(t,a){var o=At();return nt===null?nd(o,t,a):zy(o,nt.memoizedState,t,a)},useTransition:function(){var t=Wf(Cr)[0],a=At().memoizedState;return[typeof t=="boolean"?t:Go(t),a]},useSyncExternalStore:dy,useId:Hy,useHostTransitionStatus:ad,useFormState:Ty,useActionState:Ty,useOptimistic:function(t,a){var o=At();return nt!==null?vy(o,nt,t,a):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:Qf,useCacheRefresh:Fy},Ti=null,Xo=0;function $s(t){var a=Xo;return Xo+=1,Ti===null&&(Ti=[]),ay(Ti,t,a)}function Qo(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Gs(t,a){throw a.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(a),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Ky(t){var a=t._init;return a(t._payload)}function Xy(t){function a(H,I){if(t){var V=H.deletions;V===null?(H.deletions=[I],H.flags|=16):V.push(I)}}function o(H,I){if(!t)return null;for(;I!==null;)a(H,I),I=I.sibling;return null}function u(H){for(var I=new Map;H!==null;)H.key!==null?I.set(H.key,H):I.set(H.index,H),H=H.sibling;return I}function p(H,I){return H=xr(H,I),H.index=0,H.sibling=null,H}function x(H,I,V){return H.index=V,t?(V=H.alternate,V!==null?(V=V.index,V<I?(H.flags|=67108866,I):V):(H.flags|=67108866,I)):(H.flags|=1048576,I)}function C(H){return t&&H.alternate===null&&(H.flags|=67108866),H}function _(H,I,V,ie){return I===null||I.tag!==6?(I=Af(V,H.mode,ie),I.return=H,I):(I=p(I,V),I.return=H,I)}function O(H,I,V,ie){var xe=V.type;return xe===E?re(H,I,V.props.children,ie,V.key):I!==null&&(I.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Ky(xe)===I.type)?(I=p(I,V.props),Qo(I,V),I.return=H,I):(I=Rs(V.type,V.key,V.props,null,H.mode,ie),Qo(I,V),I.return=H,I)}function $(H,I,V,ie){return I===null||I.tag!==4||I.stateNode.containerInfo!==V.containerInfo||I.stateNode.implementation!==V.implementation?(I=Tf(V,H.mode,ie),I.return=H,I):(I=p(I,V.children||[]),I.return=H,I)}function re(H,I,V,ie,xe){return I===null||I.tag!==7?(I=Ra(V,H.mode,ie,xe),I.return=H,I):(I=p(I,V),I.return=H,I)}function oe(H,I,V){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Af(""+I,H.mode,V),I.return=H,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return V=Rs(I.type,I.key,I.props,null,H.mode,V),Qo(V,I),V.return=H,V;case w:return I=Tf(I,H.mode,V),I.return=H,I;case q:var ie=I._init;return I=ie(I._payload),oe(H,I,V)}if(Q(I)||ae(I))return I=Ra(I,H.mode,V,null),I.return=H,I;if(typeof I.then=="function")return oe(H,$s(I),V);if(I.$$typeof===N)return oe(H,js(H,I),V);Gs(H,I)}return null}function Y(H,I,V,ie){var xe=I!==null?I.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return xe!==null?null:_(H,I,""+V,ie);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case b:return V.key===xe?O(H,I,V,ie):null;case w:return V.key===xe?$(H,I,V,ie):null;case q:return xe=V._init,V=xe(V._payload),Y(H,I,V,ie)}if(Q(V)||ae(V))return xe!==null?null:re(H,I,V,ie,null);if(typeof V.then=="function")return Y(H,I,$s(V),ie);if(V.$$typeof===N)return Y(H,I,js(H,V),ie);Gs(H,V)}return null}function X(H,I,V,ie,xe){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return H=H.get(V)||null,_(I,H,""+ie,xe);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:return H=H.get(ie.key===null?V:ie.key)||null,O(I,H,ie,xe);case w:return H=H.get(ie.key===null?V:ie.key)||null,$(I,H,ie,xe);case q:var Ve=ie._init;return ie=Ve(ie._payload),X(H,I,V,ie,xe)}if(Q(ie)||ae(ie))return H=H.get(V)||null,re(I,H,ie,xe,null);if(typeof ie.then=="function")return X(H,I,V,$s(ie),xe);if(ie.$$typeof===N)return X(H,I,V,js(I,ie),xe);Gs(I,ie)}return null}function De(H,I,V,ie){for(var xe=null,Ve=null,Ee=I,_e=I=0,Lt=null;Ee!==null&&_e<V.length;_e++){Ee.index>_e?(Lt=Ee,Ee=null):Lt=Ee.sibling;var Ze=Y(H,Ee,V[_e],ie);if(Ze===null){Ee===null&&(Ee=Lt);break}t&&Ee&&Ze.alternate===null&&a(H,Ee),I=x(Ze,I,_e),Ve===null?xe=Ze:Ve.sibling=Ze,Ve=Ze,Ee=Lt}if(_e===V.length)return o(H,Ee),Je&&_a(H,_e),xe;if(Ee===null){for(;_e<V.length;_e++)Ee=oe(H,V[_e],ie),Ee!==null&&(I=x(Ee,I,_e),Ve===null?xe=Ee:Ve.sibling=Ee,Ve=Ee);return Je&&_a(H,_e),xe}for(Ee=u(Ee);_e<V.length;_e++)Lt=X(Ee,H,_e,V[_e],ie),Lt!==null&&(t&&Lt.alternate!==null&&Ee.delete(Lt.key===null?_e:Lt.key),I=x(Lt,I,_e),Ve===null?xe=Lt:Ve.sibling=Lt,Ve=Lt);return t&&Ee.forEach(function(fa){return a(H,fa)}),Je&&_a(H,_e),xe}function Re(H,I,V,ie){if(V==null)throw Error(i(151));for(var xe=null,Ve=null,Ee=I,_e=I=0,Lt=null,Ze=V.next();Ee!==null&&!Ze.done;_e++,Ze=V.next()){Ee.index>_e?(Lt=Ee,Ee=null):Lt=Ee.sibling;var fa=Y(H,Ee,Ze.value,ie);if(fa===null){Ee===null&&(Ee=Lt);break}t&&Ee&&fa.alternate===null&&a(H,Ee),I=x(fa,I,_e),Ve===null?xe=fa:Ve.sibling=fa,Ve=fa,Ee=Lt}if(Ze.done)return o(H,Ee),Je&&_a(H,_e),xe;if(Ee===null){for(;!Ze.done;_e++,Ze=V.next())Ze=oe(H,Ze.value,ie),Ze!==null&&(I=x(Ze,I,_e),Ve===null?xe=Ze:Ve.sibling=Ze,Ve=Ze);return Je&&_a(H,_e),xe}for(Ee=u(Ee);!Ze.done;_e++,Ze=V.next())Ze=X(Ee,H,_e,Ze.value,ie),Ze!==null&&(t&&Ze.alternate!==null&&Ee.delete(Ze.key===null?_e:Ze.key),I=x(Ze,I,_e),Ve===null?xe=Ze:Ve.sibling=Ze,Ve=Ze);return t&&Ee.forEach(function(TT){return a(H,TT)}),Je&&_a(H,_e),xe}function at(H,I,V,ie){if(typeof V=="object"&&V!==null&&V.type===E&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case b:e:{for(var xe=V.key;I!==null;){if(I.key===xe){if(xe=V.type,xe===E){if(I.tag===7){o(H,I.sibling),ie=p(I,V.props.children),ie.return=H,H=ie;break e}}else if(I.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Ky(xe)===I.type){o(H,I.sibling),ie=p(I,V.props),Qo(ie,V),ie.return=H,H=ie;break e}o(H,I);break}else a(H,I);I=I.sibling}V.type===E?(ie=Ra(V.props.children,H.mode,ie,V.key),ie.return=H,H=ie):(ie=Rs(V.type,V.key,V.props,null,H.mode,ie),Qo(ie,V),ie.return=H,H=ie)}return C(H);case w:e:{for(xe=V.key;I!==null;){if(I.key===xe)if(I.tag===4&&I.stateNode.containerInfo===V.containerInfo&&I.stateNode.implementation===V.implementation){o(H,I.sibling),ie=p(I,V.children||[]),ie.return=H,H=ie;break e}else{o(H,I);break}else a(H,I);I=I.sibling}ie=Tf(V,H.mode,ie),ie.return=H,H=ie}return C(H);case q:return xe=V._init,V=xe(V._payload),at(H,I,V,ie)}if(Q(V))return De(H,I,V,ie);if(ae(V)){if(xe=ae(V),typeof xe!="function")throw Error(i(150));return V=xe.call(V),Re(H,I,V,ie)}if(typeof V.then=="function")return at(H,I,$s(V),ie);if(V.$$typeof===N)return at(H,I,js(H,V),ie);Gs(H,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,I!==null&&I.tag===6?(o(H,I.sibling),ie=p(I,V),ie.return=H,H=ie):(o(H,I),ie=Af(V,H.mode,ie),ie.return=H,H=ie),C(H)):o(H,I)}return function(H,I,V,ie){try{Xo=0;var xe=at(H,I,V,ie);return Ti=null,xe}catch(Ee){if(Ee===Uo||Ee===Os)throw Ee;var Ve=pn(29,Ee,null,H.mode);return Ve.lanes=ie,Ve.return=H,Ve}finally{}}}var Ri=Xy(!0),Qy=Xy(!1),Mn=Z(null),tr=null;function Qr(t){var a=t.alternate;M(Nt,Nt.current&1),M(Mn,t),tr===null&&(a===null||Ei.current!==null||a.memoizedState!==null)&&(tr=t)}function Zy(t){if(t.tag===22){if(M(Nt,Nt.current),M(Mn,t),tr===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(tr=t)}}else Zr()}function Zr(){M(Nt,Nt.current),M(Mn,Mn.current)}function kr(t){se(Mn),tr===t&&(tr=null),se(Nt)}var Nt=Z(0);function Ys(t){for(var a=t;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||Xd(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function od(t,a,o,u){a=t.memoizedState,o=o(u,a),o=o==null?a:m({},a,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var ld={enqueueSetState:function(t,a,o){t=t._reactInternals;var u=vn(),p=Yr(u);p.payload=a,o!=null&&(p.callback=o),a=Kr(t,p,u),a!==null&&(xn(a,t,u),Fo(a,t,u))},enqueueReplaceState:function(t,a,o){t=t._reactInternals;var u=vn(),p=Yr(u);p.tag=1,p.payload=a,o!=null&&(p.callback=o),a=Kr(t,p,u),a!==null&&(xn(a,t,u),Fo(a,t,u))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var o=vn(),u=Yr(o);u.tag=2,a!=null&&(u.callback=a),a=Kr(t,u,o),a!==null&&(xn(a,t,o),Fo(a,t,o))}};function Wy(t,a,o,u,p,x,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,x,C):a.prototype&&a.prototype.isPureReactComponent?!jo(o,u)||!jo(p,x):!0}function Jy(t,a,o,u){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==t&&ld.enqueueReplaceState(a,a.state,null)}function za(t,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(t=t.defaultProps){o===a&&(o=m({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}var Ks=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ev(t){Ks(t)}function tv(t){console.error(t)}function nv(t){Ks(t)}function Xs(t,a){try{var o=t.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function rv(t,a,o){try{var u=t.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function sd(t,a,o){return o=Yr(o),o.tag=3,o.payload={element:null},o.callback=function(){Xs(t,a)},o}function av(t){return t=Yr(t),t.tag=3,t}function iv(t,a,o,u){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var x=u.value;t.payload=function(){return p(x)},t.callback=function(){rv(a,o,u)}}var C=o.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){rv(a,o,u),typeof p!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var _=u.stack;this.componentDidCatch(u.value,{componentStack:_!==null?_:""})})}function TA(t,a,o,u,p){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&zo(a,o,p,!0),o=Mn.current,o!==null){switch(o.tag){case 13:return tr===null?jd():o.alternate===null&&xt===0&&(xt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,u===zf?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),Od(t,u,p)),!1;case 22:return o.flags|=65536,u===zf?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),Od(t,u,p)),!1}throw Error(i(435,o.tag))}return Od(t,u,p),jd(),!1}if(Je)return a=Mn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,u!==_f&&(t=Error(i(422),{cause:u}),Lo(Tn(t,o)))):(u!==_f&&(a=Error(i(423),{cause:u}),Lo(Tn(a,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=Tn(u,o),p=sd(t.stateNode,u,p),Uf(t,p),xt!==4&&(xt=2)),!1;var x=Error(i(520),{cause:u});if(x=Tn(x,o),rl===null?rl=[x]:rl.push(x),xt!==4&&(xt=2),a===null)return!0;u=Tn(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=sd(o.stateNode,u,t),Uf(o,t),!1;case 1:if(a=o.type,x=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(ra===null||!ra.has(x))))return o.flags|=65536,p&=-p,o.lanes|=p,p=av(p),iv(p,t,o,u),Uf(o,p),!1}o=o.return}while(o!==null);return!1}var ov=Error(i(461)),Ot=!1;function Bt(t,a,o,u){a.child=t===null?Qy(a,null,o,u):Ri(a,t.child,o,u)}function lv(t,a,o,u,p){o=o.render;var x=a.ref;if("ref"in u){var C={};for(var _ in u)_!=="ref"&&(C[_]=u[_])}else C=u;return Oa(a),u=$f(t,a,o,C,x,p),_=Gf(),t!==null&&!Ot?(Yf(t,a,p),Ar(t,a,p)):(Je&&_&&Rf(a),a.flags|=1,Bt(t,a,u,p),a.child)}function sv(t,a,o,u,p){if(t===null){var x=o.type;return typeof x=="function"&&!kf(x)&&x.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=x,uv(t,a,x,u,p)):(t=Rs(o.type,null,u,a,a.mode,p),t.ref=a.ref,t.return=a,a.child=t)}if(x=t.child,!gd(t,p)){var C=x.memoizedProps;if(o=o.compare,o=o!==null?o:jo,o(C,u)&&t.ref===a.ref)return Ar(t,a,p)}return a.flags|=1,t=xr(x,u),t.ref=a.ref,t.return=a,a.child=t}function uv(t,a,o,u,p){if(t!==null){var x=t.memoizedProps;if(jo(x,u)&&t.ref===a.ref)if(Ot=!1,a.pendingProps=u=x,gd(t,p))(t.flags&131072)!==0&&(Ot=!0);else return a.lanes=t.lanes,Ar(t,a,p)}return ud(t,a,o,u,p)}function cv(t,a,o){var u=a.pendingProps,p=u.children,x=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((a.flags&128)!==0){if(u=x!==null?x.baseLanes|o:o,t!==null){for(p=a.child=t.child,x=0;p!==null;)x=x|p.lanes|p.childLanes,p=p.sibling;a.childLanes=x&~u}else a.childLanes=0,a.child=null;return fv(t,a,u,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ds(a,x!==null?x.cachePool:null),x!==null?uy(a,x):Ff(),Zy(a);else return a.lanes=a.childLanes=536870912,fv(t,a,x!==null?x.baseLanes|o:o,o)}else x!==null?(Ds(a,x.cachePool),uy(a,x),Zr(),a.memoizedState=null):(t!==null&&Ds(a,null),Ff(),Zr());return Bt(t,a,p,o),a.child}function fv(t,a,o,u){var p=Lf();return p=p===null?null:{parent:Rt._currentValue,pool:p},a.memoizedState={baseLanes:o,cachePool:p},t!==null&&Ds(a,null),Ff(),Zy(a),t!==null&&zo(t,a,u,!0),null}function Qs(t,a){var o=a.ref;if(o===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(a.flags|=4194816)}}function ud(t,a,o,u,p){return Oa(a),o=$f(t,a,o,u,void 0,p),u=Gf(),t!==null&&!Ot?(Yf(t,a,p),Ar(t,a,p)):(Je&&u&&Rf(a),a.flags|=1,Bt(t,a,o,p),a.child)}function dv(t,a,o,u,p,x){return Oa(a),a.updateQueue=null,o=fy(a,u,o,p),cy(t),u=Gf(),t!==null&&!Ot?(Yf(t,a,x),Ar(t,a,x)):(Je&&u&&Rf(a),a.flags|=1,Bt(t,a,o,x),a.child)}function hv(t,a,o,u,p){if(Oa(a),a.stateNode===null){var x=vi,C=o.contextType;typeof C=="object"&&C!==null&&(x=$t(C)),x=new o(u,x),a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=ld,a.stateNode=x,x._reactInternals=a,x=a.stateNode,x.props=u,x.state=a.memoizedState,x.refs={},If(a),C=o.contextType,x.context=typeof C=="object"&&C!==null?$t(C):vi,x.state=a.memoizedState,C=o.getDerivedStateFromProps,typeof C=="function"&&(od(a,o,C,u),x.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(C=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),C!==x.state&&ld.enqueueReplaceState(x,x.state,null),qo(a,u,x,p),Vo(),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(t===null){x=a.stateNode;var _=a.memoizedProps,O=za(o,_);x.props=O;var $=x.context,re=o.contextType;C=vi,typeof re=="object"&&re!==null&&(C=$t(re));var oe=o.getDerivedStateFromProps;re=typeof oe=="function"||typeof x.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,re||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_||$!==C)&&Jy(a,x,u,C),Gr=!1;var Y=a.memoizedState;x.state=Y,qo(a,u,x,p),Vo(),$=a.memoizedState,_||Y!==$||Gr?(typeof oe=="function"&&(od(a,o,oe,u),$=a.memoizedState),(O=Gr||Wy(a,o,O,u,Y,$,C))?(re||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(a.flags|=4194308)):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=$),x.props=u,x.state=$,x.context=C,u=O):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{x=a.stateNode,Bf(t,a),C=a.memoizedProps,re=za(o,C),x.props=re,oe=a.pendingProps,Y=x.context,$=o.contextType,O=vi,typeof $=="object"&&$!==null&&(O=$t($)),_=o.getDerivedStateFromProps,($=typeof _=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==oe||Y!==O)&&Jy(a,x,u,O),Gr=!1,Y=a.memoizedState,x.state=Y,qo(a,u,x,p),Vo();var X=a.memoizedState;C!==oe||Y!==X||Gr||t!==null&&t.dependencies!==null&&Ms(t.dependencies)?(typeof _=="function"&&(od(a,o,_,u),X=a.memoizedState),(re=Gr||Wy(a,o,re,u,Y,X,O)||t!==null&&t.dependencies!==null&&Ms(t.dependencies))?($||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(u,X,O),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(u,X,O)),typeof x.componentDidUpdate=="function"&&(a.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===t.memoizedProps&&Y===t.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&Y===t.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=X),x.props=u,x.state=X,x.context=O,u=re):(typeof x.componentDidUpdate!="function"||C===t.memoizedProps&&Y===t.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&Y===t.memoizedState||(a.flags|=1024),u=!1)}return x=u,Qs(t,a),u=(a.flags&128)!==0,x||u?(x=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:x.render(),a.flags|=1,t!==null&&u?(a.child=Ri(a,t.child,null,p),a.child=Ri(a,null,o,p)):Bt(t,a,o,p),a.memoizedState=x.state,t=a.child):t=Ar(t,a,p),t}function pv(t,a,o,u){return Po(),a.flags|=256,Bt(t,a,o,u),a.child}var cd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fd(t){return{baseLanes:t,cachePool:ty()}}function dd(t,a,o){return t=t!==null?t.childLanes&~o:0,a&&(t|=jn),t}function mv(t,a,o){var u=a.pendingProps,p=!1,x=(a.flags&128)!==0,C;if((C=x)||(C=t!==null&&t.memoizedState===null?!1:(Nt.current&2)!==0),C&&(p=!0,a.flags&=-129),C=(a.flags&32)!==0,a.flags&=-33,t===null){if(Je){if(p?Qr(a):Zr(),Je){var _=vt,O;if(O=_){e:{for(O=_,_=er;O.nodeType!==8;){if(!_){_=null;break e}if(O=Gn(O.nextSibling),O===null){_=null;break e}}_=O}_!==null?(a.memoizedState={dehydrated:_,treeContext:Na!==null?{id:br,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},O=pn(18,null,null,0),O.stateNode=_,O.return=a,a.child=O,Qt=a,vt=null,O=!0):O=!1}O||ja(a)}if(_=a.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Xd(_)?a.lanes=32:a.lanes=536870912,null;kr(a)}return _=u.children,u=u.fallback,p?(Zr(),p=a.mode,_=Zs({mode:"hidden",children:_},p),u=Ra(u,p,o,null),_.return=a,u.return=a,_.sibling=u,a.child=_,p=a.child,p.memoizedState=fd(o),p.childLanes=dd(t,C,o),a.memoizedState=cd,u):(Qr(a),hd(a,_))}if(O=t.memoizedState,O!==null&&(_=O.dehydrated,_!==null)){if(x)a.flags&256?(Qr(a),a.flags&=-257,a=pd(t,a,o)):a.memoizedState!==null?(Zr(),a.child=t.child,a.flags|=128,a=null):(Zr(),p=u.fallback,_=a.mode,u=Zs({mode:"visible",children:u.children},_),p=Ra(p,_,o,null),p.flags|=2,u.return=a,p.return=a,u.sibling=p,a.child=u,Ri(a,t.child,null,o),u=a.child,u.memoizedState=fd(o),u.childLanes=dd(t,C,o),a.memoizedState=cd,a=p);else if(Qr(a),Xd(_)){if(C=_.nextSibling&&_.nextSibling.dataset,C)var $=C.dgst;C=$,u=Error(i(419)),u.stack="",u.digest=C,Lo({value:u,source:null,stack:null}),a=pd(t,a,o)}else if(Ot||zo(t,a,o,!1),C=(o&t.childLanes)!==0,Ot||C){if(C=ut,C!==null&&(u=o&-o,u=(u&42)!==0?1:Qe(u),u=(u&(C.suspendedLanes|o))!==0?0:u,u!==0&&u!==O.retryLane))throw O.retryLane=u,yi(t,u),xn(C,t,u),ov;_.data==="$?"||jd(),a=pd(t,a,o)}else _.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=O.treeContext,vt=Gn(_.nextSibling),Qt=a,Je=!0,Ma=null,er=!1,t!==null&&(Nn[_n++]=br,Nn[_n++]=wr,Nn[_n++]=Na,br=t.id,wr=t.overflow,Na=a),a=hd(a,u.children),a.flags|=4096);return a}return p?(Zr(),p=u.fallback,_=a.mode,O=t.child,$=O.sibling,u=xr(O,{mode:"hidden",children:u.children}),u.subtreeFlags=O.subtreeFlags&65011712,$!==null?p=xr($,p):(p=Ra(p,_,o,null),p.flags|=2),p.return=a,u.return=a,u.sibling=p,a.child=u,u=p,p=a.child,_=t.child.memoizedState,_===null?_=fd(o):(O=_.cachePool,O!==null?($=Rt._currentValue,O=O.parent!==$?{parent:$,pool:$}:O):O=ty(),_={baseLanes:_.baseLanes|o,cachePool:O}),p.memoizedState=_,p.childLanes=dd(t,C,o),a.memoizedState=cd,u):(Qr(a),o=t.child,t=o.sibling,o=xr(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,t!==null&&(C=a.deletions,C===null?(a.deletions=[t],a.flags|=16):C.push(t)),a.child=o,a.memoizedState=null,o)}function hd(t,a){return a=Zs({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Zs(t,a){return t=pn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function pd(t,a,o){return Ri(a,t.child,null,o),t=hd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function gv(t,a,o){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a),jf(t.return,a,o)}function md(t,a,o,u,p){var x=t.memoizedState;x===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:p}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=o,x.tailMode=p)}function yv(t,a,o){var u=a.pendingProps,p=u.revealOrder,x=u.tail;if(Bt(t,a,u.children,o),u=Nt.current,(u&2)!==0)u=u&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&gv(t,o,a);else if(t.tag===19)gv(t,o,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch(M(Nt,u),p){case"forwards":for(o=a.child,p=null;o!==null;)t=o.alternate,t!==null&&Ys(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=a.child,a.child=null):(p=o.sibling,o.sibling=null),md(a,!1,p,o,x);break;case"backwards":for(o=null,p=a.child,a.child=null;p!==null;){if(t=p.alternate,t!==null&&Ys(t)===null){a.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}md(a,!0,o,null,x);break;case"together":md(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ar(t,a,o){if(t!==null&&(a.dependencies=t.dependencies),na|=a.lanes,(o&a.childLanes)===0)if(t!==null){if(zo(t,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(i(153));if(a.child!==null){for(t=a.child,o=xr(t,t.pendingProps),a.child=o,o.return=a;t.sibling!==null;)t=t.sibling,o=o.sibling=xr(t,t.pendingProps),o.return=a;o.sibling=null}return a.child}function gd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Ms(t)))}function RA(t,a,o){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),$r(a,Rt,t.memoizedState.cache),Po();break;case 27:case 5:Ne(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:$r(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(Qr(a),a.flags|=128,null):(o&a.child.childLanes)!==0?mv(t,a,o):(Qr(a),t=Ar(t,a,o),t!==null?t.sibling:null);Qr(a);break;case 19:var p=(t.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||(zo(t,a,o,!1),u=(o&a.childLanes)!==0),p){if(u)return yv(t,a,o);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),M(Nt,Nt.current),u)break;return null;case 22:case 23:return a.lanes=0,cv(t,a,o);case 24:$r(a,Rt,t.memoizedState.cache)}return Ar(t,a,o)}function vv(t,a,o){if(t!==null)if(t.memoizedProps!==a.pendingProps)Ot=!0;else{if(!gd(t,o)&&(a.flags&128)===0)return Ot=!1,RA(t,a,o);Ot=(t.flags&131072)!==0}else Ot=!1,Je&&(a.flags&1048576)!==0&&Kg(a,_s,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var u=a.elementType,p=u._init;if(u=p(u._payload),a.type=u,typeof u=="function")kf(u)?(t=za(u,t),a.tag=1,a=hv(null,a,u,t,o)):(a.tag=0,a=ud(null,a,u,t,o));else{if(u!=null){if(p=u.$$typeof,p===D){a.tag=11,a=lv(null,a,u,t,o);break e}else if(p===F){a.tag=14,a=sv(null,a,u,t,o);break e}}throw a=U(u)||u,Error(i(306,a,""))}}return a;case 0:return ud(t,a,a.type,a.pendingProps,o);case 1:return u=a.type,p=za(u,a.pendingProps),hv(t,a,u,p,o);case 3:e:{if(ge(a,a.stateNode.containerInfo),t===null)throw Error(i(387));u=a.pendingProps;var x=a.memoizedState;p=x.element,Bf(t,a),qo(a,u,null,o);var C=a.memoizedState;if(u=C.cache,$r(a,Rt,u),u!==x.cache&&Df(a,[Rt],o,!0),Vo(),u=C.element,x.isDehydrated)if(x={element:u,isDehydrated:!1,cache:C.cache},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){a=pv(t,a,u,o);break e}else if(u!==p){p=Tn(Error(i(424)),a),Lo(p),a=pv(t,a,u,o);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(vt=Gn(t.firstChild),Qt=a,Je=!0,Ma=null,er=!0,o=Qy(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Po(),u===p){a=Ar(t,a,o);break e}Bt(t,a,u,o)}a=a.child}return a;case 26:return Qs(t,a),t===null?(o=Sx(a.type,null,a.pendingProps,null))?a.memoizedState=o:Je||(o=a.type,t=a.pendingProps,u=fu(pe.current).createElement(o),u[ht]=a,u[Ct]=t,Ht(u,o,t),Dt(u),a.stateNode=u):a.memoizedState=Sx(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ne(a),t===null&&Je&&(u=a.stateNode=xx(a.type,a.pendingProps,pe.current),Qt=a,er=!0,p=vt,oa(a.type)?(Qd=p,vt=Gn(u.firstChild)):vt=p),Bt(t,a,a.pendingProps.children,o),Qs(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Je&&((p=u=vt)&&(u=nT(u,a.type,a.pendingProps,er),u!==null?(a.stateNode=u,Qt=a,vt=Gn(u.firstChild),er=!1,p=!0):p=!1),p||ja(a)),Ne(a),p=a.type,x=a.pendingProps,C=t!==null?t.memoizedProps:null,u=x.children,Gd(p,x)?u=null:C!==null&&Gd(p,C)&&(a.flags|=32),a.memoizedState!==null&&(p=$f(t,a,bA,null,null,o),dl._currentValue=p),Qs(t,a),Bt(t,a,u,o),a.child;case 6:return t===null&&Je&&((t=o=vt)&&(o=rT(o,a.pendingProps,er),o!==null?(a.stateNode=o,Qt=a,vt=null,t=!0):t=!1),t||ja(a)),null;case 13:return mv(t,a,o);case 4:return ge(a,a.stateNode.containerInfo),u=a.pendingProps,t===null?a.child=Ri(a,null,u,o):Bt(t,a,u,o),a.child;case 11:return lv(t,a,a.type,a.pendingProps,o);case 7:return Bt(t,a,a.pendingProps,o),a.child;case 8:return Bt(t,a,a.pendingProps.children,o),a.child;case 12:return Bt(t,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,$r(a,a.type,u.value),Bt(t,a,u.children,o),a.child;case 9:return p=a.type._context,u=a.pendingProps.children,Oa(a),p=$t(p),u=u(p),a.flags|=1,Bt(t,a,u,o),a.child;case 14:return sv(t,a,a.type,a.pendingProps,o);case 15:return uv(t,a,a.type,a.pendingProps,o);case 19:return yv(t,a,o);case 31:return u=a.pendingProps,o=a.mode,u={mode:u.mode,children:u.children},t===null?(o=Zs(u,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=xr(t.child,u),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return cv(t,a,o);case 24:return Oa(a),u=$t(Rt),t===null?(p=Lf(),p===null&&(p=ut,x=Of(),p.pooledCache=x,x.refCount++,x!==null&&(p.pooledCacheLanes|=o),p=x),a.memoizedState={parent:u,cache:p},If(a),$r(a,Rt,p)):((t.lanes&o)!==0&&(Bf(t,a),qo(a,null,null,o),Vo()),p=t.memoizedState,x=a.memoizedState,p.parent!==u?(p={parent:u,cache:u},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),$r(a,Rt,u)):(u=x.cache,$r(a,Rt,u),u!==p.cache&&Df(a,[Rt],o,!0))),Bt(t,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Tr(t){t.flags|=4}function xv(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Tx(a)){if(a=Mn.current,a!==null&&((Ke&4194048)===Ke?tr!==null:(Ke&62914560)!==Ke&&(Ke&536870912)===0||a!==tr))throw Ho=zf,ny;t.flags|=8192}}function Ws(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?ve():536870912,t.lanes|=a,ji|=a)}function Zo(t,a){if(!Je)switch(t.tailMode){case"hidden":a=t.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function gt(t){var a=t.alternate!==null&&t.alternate.child===t.child,o=0,u=0;if(a)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=o,a}function NA(t,a,o){var u=a.pendingProps;switch(Nf(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(a),null;case 1:return gt(a),null;case 3:return o=a.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Er(Rt),ke(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Oo(a)?Tr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Zg())),gt(a),null;case 26:return o=a.memoizedState,t===null?(Tr(a),o!==null?(gt(a),xv(a,o)):(gt(a),a.flags&=-16777217)):o?o!==t.memoizedState?(Tr(a),gt(a),xv(a,o)):(gt(a),a.flags&=-16777217):(t.memoizedProps!==u&&Tr(a),gt(a),a.flags&=-16777217),null;case 27:Le(a),o=pe.current;var p=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Tr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return gt(a),null}t=ce.current,Oo(a)?Xg(a):(t=xx(p,u,o),a.stateNode=t,Tr(a))}return gt(a),null;case 5:if(Le(a),o=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Tr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return gt(a),null}if(t=ce.current,Oo(a))Xg(a);else{switch(p=fu(pe.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?p.createElement(o,{is:u.is}):p.createElement(o)}}t[ht]=a,t[Ct]=u;e:for(p=a.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===a)break e;for(;p.sibling===null;){if(p.return===null||p.return===a)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a.stateNode=t;e:switch(Ht(t,o,u),o){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Tr(a)}}return gt(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==u&&Tr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(t=pe.current,Oo(a)){if(t=a.stateNode,o=a.memoizedProps,u=null,p=Qt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[ht]=a,t=!!(t.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||dx(t.nodeValue,o)),t||ja(a)}else t=fu(t).createTextNode(u),t[ht]=a,a.stateNode=t}return gt(a),null;case 13:if(u=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Oo(a),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[ht]=a}else Po(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;gt(a),p=!1}else p=Zg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(kr(a),a):(kr(a),null)}if(kr(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=u!==null,t=t!==null&&t.memoizedState!==null,o){u=a.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var x=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(x=u.memoizedState.cachePool.pool),x!==p&&(u.flags|=2048)}return o!==t&&o&&(a.child.flags|=8192),Ws(a,a.updateQueue),gt(a),null;case 4:return ke(),t===null&&Hd(a.stateNode.containerInfo),gt(a),null;case 10:return Er(a.type),gt(a),null;case 19:if(se(Nt),p=a.memoizedState,p===null)return gt(a),null;if(u=(a.flags&128)!==0,x=p.rendering,x===null)if(u)Zo(p,!1);else{if(xt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(x=Ys(t),x!==null){for(a.flags|=128,Zo(p,!1),t=x.updateQueue,a.updateQueue=t,Ws(a,t),a.subtreeFlags=0,t=o,o=a.child;o!==null;)Yg(o,t),o=o.sibling;return M(Nt,Nt.current&1|2),a.child}t=t.sibling}p.tail!==null&<()>tu&&(a.flags|=128,u=!0,Zo(p,!1),a.lanes=4194304)}else{if(!u)if(t=Ys(x),t!==null){if(a.flags|=128,u=!0,t=t.updateQueue,a.updateQueue=t,Ws(a,t),Zo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Je)return gt(a),null}else 2*lt()-p.renderingStartTime>tu&&o!==536870912&&(a.flags|=128,u=!0,Zo(p,!1),a.lanes=4194304);p.isBackwards?(x.sibling=a.child,a.child=x):(t=p.last,t!==null?t.sibling=x:a.child=x,p.last=x)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=lt(),a.sibling=null,t=Nt.current,M(Nt,u?t&1|2:t&1),a):(gt(a),null);case 22:case 23:return kr(a),Vf(),u=a.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(gt(a),a.subtreeFlags&6&&(a.flags|=8192)):gt(a),o=a.updateQueue,o!==null&&Ws(a,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),t!==null&&se(Pa),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Er(Rt),gt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function _A(t,a){switch(Nf(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Er(Rt),ke(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Le(a),null;case 13:if(kr(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Po()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return se(Nt),null;case 4:return ke(),null;case 10:return Er(a.type),null;case 22:case 23:return kr(a),Vf(),t!==null&&se(Pa),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Er(Rt),null;case 25:return null;default:return null}}function bv(t,a){switch(Nf(a),a.tag){case 3:Er(Rt),ke();break;case 26:case 27:case 5:Le(a);break;case 4:ke();break;case 13:kr(a);break;case 19:se(Nt);break;case 10:Er(a.type);break;case 22:case 23:kr(a),Vf(),t!==null&&se(Pa);break;case 24:Er(Rt)}}function Wo(t,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var p=u.next;o=p;do{if((o.tag&t)===t){u=void 0;var x=o.create,C=o.inst;u=x(),C.destroy=u}o=o.next}while(o!==p)}}catch(_){it(a,a.return,_)}}function Wr(t,a,o){try{var u=a.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var x=p.next;u=x;do{if((u.tag&t)===t){var C=u.inst,_=C.destroy;if(_!==void 0){C.destroy=void 0,p=a;var O=o,$=_;try{$()}catch(re){it(p,O,re)}}}u=u.next}while(u!==x)}}catch(re){it(a,a.return,re)}}function wv(t){var a=t.updateQueue;if(a!==null){var o=t.stateNode;try{sy(a,o)}catch(u){it(t,t.return,u)}}}function Sv(t,a,o){o.props=za(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(u){it(t,a,u)}}function Jo(t,a){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof o=="function"?t.refCleanup=o(u):o.current=u}}catch(p){it(t,a,p)}}function nr(t,a){var o=t.ref,u=t.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(p){it(t,a,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){it(t,a,p)}else o.current=null}function Ev(t){var a=t.type,o=t.memoizedProps,u=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(p){it(t,t.return,p)}}function yd(t,a,o){try{var u=t.stateNode;ZA(u,t.type,o,a),u[Ct]=a}catch(p){it(t,t.return,p)}}function Cv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oa(t.type)||t.tag===4}function vd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Cv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function xd(t,a,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(t),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=cu));else if(u!==4&&(u===27&&oa(t.type)&&(o=t.stateNode,a=null),t=t.child,t!==null))for(xd(t,a,o),t=t.sibling;t!==null;)xd(t,a,o),t=t.sibling}function Js(t,a,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?o.insertBefore(t,a):o.appendChild(t);else if(u!==4&&(u===27&&oa(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(Js(t,a,o),t=t.sibling;t!==null;)Js(t,a,o),t=t.sibling}function kv(t){var a=t.stateNode,o=t.memoizedProps;try{for(var u=t.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Ht(a,u,o),a[ht]=t,a[Ct]=o}catch(x){it(t,t.return,x)}}var Rr=!1,St=!1,bd=!1,Av=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function MA(t,a){if(t=t.containerInfo,qd=yu,t=zg(t),vf(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var p=u.anchorOffset,x=u.focusNode;u=u.focusOffset;try{o.nodeType,x.nodeType}catch{o=null;break e}var C=0,_=-1,O=-1,$=0,re=0,oe=t,Y=null;t:for(;;){for(var X;oe!==o||p!==0&&oe.nodeType!==3||(_=C+p),oe!==x||u!==0&&oe.nodeType!==3||(O=C+u),oe.nodeType===3&&(C+=oe.nodeValue.length),(X=oe.firstChild)!==null;)Y=oe,oe=X;for(;;){if(oe===t)break t;if(Y===o&&++$===p&&(_=C),Y===x&&++re===u&&(O=C),(X=oe.nextSibling)!==null)break;oe=Y,Y=oe.parentNode}oe=X}o=_===-1||O===-1?null:{start:_,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for($d={focusedElem:t,selectionRange:o},yu=!1,Pt=a;Pt!==null;)if(a=Pt,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Pt=t;else for(;Pt!==null;){switch(a=Pt,x=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&x!==null){t=void 0,o=a,p=x.memoizedProps,x=x.memoizedState,u=o.stateNode;try{var De=za(o.type,p,o.elementType===o.type);t=u.getSnapshotBeforeUpdate(De,x),u.__reactInternalSnapshotBeforeUpdate=t}catch(Re){it(o,o.return,Re)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,o=t.nodeType,o===9)Kd(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Kd(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=a.sibling,t!==null){t.return=a.return,Pt=t;break}Pt=a.return}}function Tv(t,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:Jr(t,o),u&4&&Wo(5,o);break;case 1:if(Jr(t,o),u&4)if(t=o.stateNode,a===null)try{t.componentDidMount()}catch(C){it(o,o.return,C)}else{var p=za(o.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(p,a,t.__reactInternalSnapshotBeforeUpdate)}catch(C){it(o,o.return,C)}}u&64&&wv(o),u&512&&Jo(o,o.return);break;case 3:if(Jr(t,o),u&64&&(t=o.updateQueue,t!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{sy(t,a)}catch(C){it(o,o.return,C)}}break;case 27:a===null&&u&4&&kv(o);case 26:case 5:Jr(t,o),a===null&&u&4&&Ev(o),u&512&&Jo(o,o.return);break;case 12:Jr(t,o);break;case 13:Jr(t,o),u&4&&_v(t,o),u&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=UA.bind(null,o),aT(t,o))));break;case 22:if(u=o.memoizedState!==null||Rr,!u){a=a!==null&&a.memoizedState!==null||St,p=Rr;var x=St;Rr=u,(St=a)&&!x?ea(t,o,(o.subtreeFlags&8772)!==0):Jr(t,o),Rr=p,St=x}break;case 30:break;default:Jr(t,o)}}function Rv(t){var a=t.alternate;a!==null&&(t.alternate=null,Rv(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Wc(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var pt=null,ln=!1;function Nr(t,a,o){for(o=o.child;o!==null;)Nv(t,a,o),o=o.sibling}function Nv(t,a,o){if(fe&&typeof fe.onCommitFiberUnmount=="function")try{fe.onCommitFiberUnmount(te,o)}catch{}switch(o.tag){case 26:St||nr(o,a),Nr(t,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:St||nr(o,a);var u=pt,p=ln;oa(o.type)&&(pt=o.stateNode,ln=!1),Nr(t,a,o),sl(o.stateNode),pt=u,ln=p;break;case 5:St||nr(o,a);case 6:if(u=pt,p=ln,pt=null,Nr(t,a,o),pt=u,ln=p,pt!==null)if(ln)try{(pt.nodeType===9?pt.body:pt.nodeName==="HTML"?pt.ownerDocument.body:pt).removeChild(o.stateNode)}catch(x){it(o,a,x)}else try{pt.removeChild(o.stateNode)}catch(x){it(o,a,x)}break;case 18:pt!==null&&(ln?(t=pt,yx(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),gl(t)):yx(pt,o.stateNode));break;case 4:u=pt,p=ln,pt=o.stateNode.containerInfo,ln=!0,Nr(t,a,o),pt=u,ln=p;break;case 0:case 11:case 14:case 15:St||Wr(2,o,a),St||Wr(4,o,a),Nr(t,a,o);break;case 1:St||(nr(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Sv(o,a,u)),Nr(t,a,o);break;case 21:Nr(t,a,o);break;case 22:St=(u=St)||o.memoizedState!==null,Nr(t,a,o),St=u;break;default:Nr(t,a,o)}}function _v(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{gl(t)}catch(o){it(a,a.return,o)}}function jA(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new Av),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new Av),a;default:throw Error(i(435,t.tag))}}function wd(t,a){var o=jA(t);a.forEach(function(u){var p=HA.bind(null,t,u);o.has(u)||(o.add(u),u.then(p,p))})}function mn(t,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u],x=t,C=a,_=C;e:for(;_!==null;){switch(_.tag){case 27:if(oa(_.type)){pt=_.stateNode,ln=!1;break e}break;case 5:pt=_.stateNode,ln=!1;break e;case 3:case 4:pt=_.stateNode.containerInfo,ln=!0;break e}_=_.return}if(pt===null)throw Error(i(160));Nv(x,C,p),pt=null,ln=!1,x=p.alternate,x!==null&&(x.return=null),p.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Mv(a,t),a=a.sibling}var $n=null;function Mv(t,a){var o=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:mn(a,t),gn(t),u&4&&(Wr(3,t,t.return),Wo(3,t),Wr(5,t,t.return));break;case 1:mn(a,t),gn(t),u&512&&(St||o===null||nr(o,o.return)),u&64&&Rr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var p=$n;if(mn(a,t),gn(t),u&512&&(St||o===null||nr(o,o.return)),u&4){var x=o!==null?o.memoizedState:null;if(u=t.memoizedState,o===null)if(u===null)if(t.stateNode===null){e:{u=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":x=p.getElementsByTagName("title")[0],(!x||x[Eo]||x[ht]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=p.createElement(u),p.head.insertBefore(x,p.querySelector("head > title"))),Ht(x,u,o),x[ht]=t,Dt(x),u=x;break e;case"link":var C=kx("link","href",p).get(u+(o.href||""));if(C){for(var _=0;_<C.length;_++)if(x=C[_],x.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&x.getAttribute("rel")===(o.rel==null?null:o.rel)&&x.getAttribute("title")===(o.title==null?null:o.title)&&x.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){C.splice(_,1);break t}}x=p.createElement(u),Ht(x,u,o),p.head.appendChild(x);break;case"meta":if(C=kx("meta","content",p).get(u+(o.content||""))){for(_=0;_<C.length;_++)if(x=C[_],x.getAttribute("content")===(o.content==null?null:""+o.content)&&x.getAttribute("name")===(o.name==null?null:o.name)&&x.getAttribute("property")===(o.property==null?null:o.property)&&x.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&x.getAttribute("charset")===(o.charSet==null?null:o.charSet)){C.splice(_,1);break t}}x=p.createElement(u),Ht(x,u,o),p.head.appendChild(x);break;default:throw Error(i(468,u))}x[ht]=t,Dt(x),u=x}t.stateNode=u}else Ax(p,t.type,t.stateNode);else t.stateNode=Cx(p,u,t.memoizedProps);else x!==u?(x===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):x.count--,u===null?Ax(p,t.type,t.stateNode):Cx(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&yd(t,t.memoizedProps,o.memoizedProps)}break;case 27:mn(a,t),gn(t),u&512&&(St||o===null||nr(o,o.return)),o!==null&&u&4&&yd(t,t.memoizedProps,o.memoizedProps);break;case 5:if(mn(a,t),gn(t),u&512&&(St||o===null||nr(o,o.return)),t.flags&32){p=t.stateNode;try{ci(p,"")}catch(X){it(t,t.return,X)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,yd(t,p,o!==null?o.memoizedProps:p)),u&1024&&(bd=!0);break;case 6:if(mn(a,t),gn(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,o=t.stateNode;try{o.nodeValue=u}catch(X){it(t,t.return,X)}}break;case 3:if(pu=null,p=$n,$n=du(a.containerInfo),mn(a,t),$n=p,gn(t),u&4&&o!==null&&o.memoizedState.isDehydrated)try{gl(a.containerInfo)}catch(X){it(t,t.return,X)}bd&&(bd=!1,jv(t));break;case 4:u=$n,$n=du(t.stateNode.containerInfo),mn(a,t),gn(t),$n=u;break;case 12:mn(a,t),gn(t);break;case 13:mn(a,t),gn(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Td=lt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,wd(t,u)));break;case 22:p=t.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,$=Rr,re=St;if(Rr=$||p,St=re||O,mn(a,t),St=re,Rr=$,gn(t),u&8192)e:for(a=t.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(o===null||O||Rr||St||Ia(t)),o=null,a=t;;){if(a.tag===5||a.tag===26){if(o===null){O=o=a;try{if(x=O.stateNode,p)C=x.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{_=O.stateNode;var oe=O.memoizedProps.style,Y=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;_.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(X){it(O,O.return,X)}}}else if(a.tag===6){if(o===null){O=a;try{O.stateNode.nodeValue=p?"":O.memoizedProps}catch(X){it(O,O.return,X)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=t.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,wd(t,o))));break;case 19:mn(a,t),gn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,wd(t,u)));break;case 30:break;case 21:break;default:mn(a,t),gn(t)}}function gn(t){var a=t.flags;if(a&2){try{for(var o,u=t.return;u!==null;){if(Cv(u)){o=u;break}u=u.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,x=vd(t);Js(t,x,p);break;case 5:var C=o.stateNode;o.flags&32&&(ci(C,""),o.flags&=-33);var _=vd(t);Js(t,_,C);break;case 3:case 4:var O=o.stateNode.containerInfo,$=vd(t);xd(t,$,O);break;default:throw Error(i(161))}}catch(re){it(t,t.return,re)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function jv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;jv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function Jr(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Tv(t,a.alternate,a),a=a.sibling}function Ia(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Wr(4,a,a.return),Ia(a);break;case 1:nr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Sv(a,a.return,o),Ia(a);break;case 27:sl(a.stateNode);case 26:case 5:nr(a,a.return),Ia(a);break;case 22:a.memoizedState===null&&Ia(a);break;case 30:Ia(a);break;default:Ia(a)}t=t.sibling}}function ea(t,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,p=t,x=a,C=x.flags;switch(x.tag){case 0:case 11:case 15:ea(p,x,o),Wo(4,x);break;case 1:if(ea(p,x,o),u=x,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch($){it(u,u.return,$)}if(u=x,p=u.updateQueue,p!==null){var _=u.stateNode;try{var O=p.shared.hiddenCallbacks;if(O!==null)for(p.shared.hiddenCallbacks=null,p=0;p<O.length;p++)ly(O[p],_)}catch($){it(u,u.return,$)}}o&&C&64&&wv(x),Jo(x,x.return);break;case 27:kv(x);case 26:case 5:ea(p,x,o),o&&u===null&&C&4&&Ev(x),Jo(x,x.return);break;case 12:ea(p,x,o);break;case 13:ea(p,x,o),o&&C&4&&_v(p,x);break;case 22:x.memoizedState===null&&ea(p,x,o),Jo(x,x.return);break;case 30:break;default:ea(p,x,o)}a=a.sibling}}function Sd(t,a){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&Io(o))}function Ed(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Io(t))}function rr(t,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Dv(t,a,o,u),a=a.sibling}function Dv(t,a,o,u){var p=a.flags;switch(a.tag){case 0:case 11:case 15:rr(t,a,o,u),p&2048&&Wo(9,a);break;case 1:rr(t,a,o,u);break;case 3:rr(t,a,o,u),p&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Io(t)));break;case 12:if(p&2048){rr(t,a,o,u),t=a.stateNode;try{var x=a.memoizedProps,C=x.id,_=x.onPostCommit;typeof _=="function"&&_(C,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){it(a,a.return,O)}}else rr(t,a,o,u);break;case 13:rr(t,a,o,u);break;case 23:break;case 22:x=a.stateNode,C=a.alternate,a.memoizedState!==null?x._visibility&2?rr(t,a,o,u):el(t,a):x._visibility&2?rr(t,a,o,u):(x._visibility|=2,Ni(t,a,o,u,(a.subtreeFlags&10256)!==0)),p&2048&&Sd(C,a);break;case 24:rr(t,a,o,u),p&2048&&Ed(a.alternate,a);break;default:rr(t,a,o,u)}}function Ni(t,a,o,u,p){for(p=p&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var x=t,C=a,_=o,O=u,$=C.flags;switch(C.tag){case 0:case 11:case 15:Ni(x,C,_,O,p),Wo(8,C);break;case 23:break;case 22:var re=C.stateNode;C.memoizedState!==null?re._visibility&2?Ni(x,C,_,O,p):el(x,C):(re._visibility|=2,Ni(x,C,_,O,p)),p&&$&2048&&Sd(C.alternate,C);break;case 24:Ni(x,C,_,O,p),p&&$&2048&&Ed(C.alternate,C);break;default:Ni(x,C,_,O,p)}a=a.sibling}}function el(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=t,u=a,p=u.flags;switch(u.tag){case 22:el(o,u),p&2048&&Sd(u.alternate,u);break;case 24:el(o,u),p&2048&&Ed(u.alternate,u);break;default:el(o,u)}a=a.sibling}}var tl=8192;function _i(t){if(t.subtreeFlags&tl)for(t=t.child;t!==null;)Ov(t),t=t.sibling}function Ov(t){switch(t.tag){case 26:_i(t),t.flags&tl&&t.memoizedState!==null&&yT($n,t.memoizedState,t.memoizedProps);break;case 5:_i(t);break;case 3:case 4:var a=$n;$n=du(t.stateNode.containerInfo),_i(t),$n=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=tl,tl=16777216,_i(t),tl=a):_i(t));break;default:_i(t)}}function Pv(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function nl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];Pt=u,zv(u,t)}Pv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Lv(t),t=t.sibling}function Lv(t){switch(t.tag){case 0:case 11:case 15:nl(t),t.flags&2048&&Wr(9,t,t.return);break;case 3:nl(t);break;case 12:nl(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,eu(t)):nl(t);break;default:nl(t)}}function eu(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];Pt=u,zv(u,t)}Pv(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Wr(8,a,a.return),eu(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,eu(a));break;default:eu(a)}t=t.sibling}}function zv(t,a){for(;Pt!==null;){var o=Pt;switch(o.tag){case 0:case 11:case 15:Wr(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Io(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,Pt=u;else e:for(o=t;Pt!==null;){u=Pt;var p=u.sibling,x=u.return;if(Rv(u),u===o){Pt=null;break e}if(p!==null){p.return=x,Pt=p;break e}Pt=x}}}var DA={getCacheForType:function(t){var a=$t(Rt),o=a.data.get(t);return o===void 0&&(o=t(),a.data.set(t,o)),o}},OA=typeof WeakMap=="function"?WeakMap:Map,et=0,ut=null,qe=null,Ke=0,tt=0,yn=null,ta=!1,Mi=!1,Cd=!1,_r=0,xt=0,na=0,Ba=0,kd=0,jn=0,ji=0,rl=null,sn=null,Ad=!1,Td=0,tu=1/0,nu=null,ra=null,Ut=0,aa=null,Di=null,Oi=0,Rd=0,Nd=null,Iv=null,al=0,_d=null;function vn(){if((et&2)!==0&&Ke!==0)return Ke&-Ke;if(P.T!==null){var t=wi;return t!==0?t:zd()}return Fn()}function Bv(){jn===0&&(jn=(Ke&536870912)===0||Je?he():536870912);var t=Mn.current;return t!==null&&(t.flags|=32),jn}function xn(t,a,o){(t===ut&&(tt===2||tt===9)||t.cancelPendingCommit!==null)&&(Pi(t,0),ia(t,Ke,jn,!1)),je(t,o),((et&2)===0||t!==ut)&&(t===ut&&((et&2)===0&&(Ba|=o),xt===4&&ia(t,Ke,jn,!1)),ar(t))}function Uv(t,a,o){if((et&6)!==0)throw Error(i(327));var u=!o&&(a&124)===0&&(a&t.expiredLanes)===0||qt(t,a),p=u?zA(t,a):Dd(t,a,!0),x=u;do{if(p===0){Mi&&!u&&ia(t,a,0,!1);break}else{if(o=t.current.alternate,x&&!PA(o)){p=Dd(t,a,!1),x=!1;continue}if(p===2){if(x=a,t.errorRecoveryDisabledLanes&x)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){a=C;e:{var _=t;p=rl;var O=_.current.memoizedState.isDehydrated;if(O&&(Pi(_,C).flags|=256),C=Dd(_,C,!1),C!==2){if(Cd&&!O){_.errorRecoveryDisabledLanes|=x,Ba|=x,p=4;break e}x=sn,sn=p,x!==null&&(sn===null?sn=x:sn.push.apply(sn,x))}p=C}if(x=!1,p!==2)continue}}if(p===1){Pi(t,0),ia(t,a,0,!0);break}e:{switch(u=t,x=p,x){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:ia(u,a,jn,!ta);break e;case 2:sn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=Td+300-lt(),10<p)){if(ia(u,a,jn,!ta),ft(u,0,!0)!==0)break e;u.timeoutHandle=mx(Hv.bind(null,u,o,sn,nu,Ad,a,jn,Ba,ji,ta,x,2,-0,0),p);break e}Hv(u,o,sn,nu,Ad,a,jn,Ba,ji,ta,x,0,-0,0)}}break}while(!0);ar(t)}function Hv(t,a,o,u,p,x,C,_,O,$,re,oe,Y,X){if(t.timeoutHandle=-1,oe=a.subtreeFlags,(oe&8192||(oe&16785408)===16785408)&&(fl={stylesheets:null,count:0,unsuspend:gT},Ov(a),oe=vT(),oe!==null)){t.cancelPendingCommit=oe(Kv.bind(null,t,a,x,o,u,p,C,_,O,re,1,Y,X)),ia(t,x,C,!$);return}Kv(t,a,x,o,u,p,C,_,O)}function PA(t){for(var a=t;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var p=o[u],x=p.getSnapshot;p=p.value;try{if(!hn(x(),p))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ia(t,a,o,u){a&=~kd,a&=~Ba,t.suspendedLanes|=a,t.pingedLanes&=~a,u&&(t.warmLanes|=a),u=t.expirationTimes;for(var p=a;0<p;){var x=31-Te(p),C=1<<x;u[x]=-1,p&=~C}o!==0&&dn(t,o,a)}function ru(){return(et&6)===0?(il(0),!1):!0}function Md(){if(qe!==null){if(tt===0)var t=qe.return;else t=qe,Sr=Da=null,Kf(t),Ti=null,Xo=0,t=qe;for(;t!==null;)bv(t.alternate,t),t=t.return;qe=null}}function Pi(t,a){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,JA(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Md(),ut=t,qe=o=xr(t.current,null),Ke=a,tt=0,yn=null,ta=!1,Mi=qt(t,a),Cd=!1,ji=jn=kd=Ba=na=xt=0,sn=rl=null,Ad=!1,(a&8)!==0&&(a|=a&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=a;0<u;){var p=31-Te(u),x=1<<p;a|=t[p],u&=~x}return _r=a,ks(),o}function Fv(t,a){He=null,P.H=qs,a===Uo||a===Os?(a=iy(),tt=3):a===ny?(a=iy(),tt=4):tt=a===ov?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,yn=a,qe===null&&(xt=1,Xs(t,Tn(a,t.current)))}function Vv(){var t=P.H;return P.H=qs,t===null?qs:t}function qv(){var t=P.A;return P.A=DA,t}function jd(){xt=4,ta||(Ke&4194048)!==Ke&&Mn.current!==null||(Mi=!0),(na&134217727)===0&&(Ba&134217727)===0||ut===null||ia(ut,Ke,jn,!1)}function Dd(t,a,o){var u=et;et|=2;var p=Vv(),x=qv();(ut!==t||Ke!==a)&&(nu=null,Pi(t,a)),a=!1;var C=xt;e:do try{if(tt!==0&&qe!==null){var _=qe,O=yn;switch(tt){case 8:Md(),C=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(a=!0);var $=tt;if(tt=0,yn=null,Li(t,_,O,$),o&&Mi){C=0;break e}break;default:$=tt,tt=0,yn=null,Li(t,_,O,$)}}LA(),C=xt;break}catch(re){Fv(t,re)}while(!0);return a&&t.shellSuspendCounter++,Sr=Da=null,et=u,P.H=p,P.A=x,qe===null&&(ut=null,Ke=0,ks()),C}function LA(){for(;qe!==null;)$v(qe)}function zA(t,a){var o=et;et|=2;var u=Vv(),p=qv();ut!==t||Ke!==a?(nu=null,tu=lt()+500,Pi(t,a)):Mi=qt(t,a);e:do try{if(tt!==0&&qe!==null){a=qe;var x=yn;t:switch(tt){case 1:tt=0,yn=null,Li(t,a,x,1);break;case 2:case 9:if(ry(x)){tt=0,yn=null,Gv(a);break}a=function(){tt!==2&&tt!==9||ut!==t||(tt=7),ar(t)},x.then(a,a);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:ry(x)?(tt=0,yn=null,Gv(a)):(tt=0,yn=null,Li(t,a,x,7));break;case 5:var C=null;switch(qe.tag){case 26:C=qe.memoizedState;case 5:case 27:var _=qe;if(!C||Tx(C)){tt=0,yn=null;var O=_.sibling;if(O!==null)qe=O;else{var $=_.return;$!==null?(qe=$,au($)):qe=null}break t}}tt=0,yn=null,Li(t,a,x,5);break;case 6:tt=0,yn=null,Li(t,a,x,6);break;case 8:Md(),xt=6;break e;default:throw Error(i(462))}}IA();break}catch(re){Fv(t,re)}while(!0);return Sr=Da=null,P.H=u,P.A=p,et=o,qe!==null?0:(ut=null,Ke=0,ks(),xt)}function IA(){for(;qe!==null&&!Cn();)$v(qe)}function $v(t){var a=vv(t.alternate,t,_r);t.memoizedProps=t.pendingProps,a===null?au(t):qe=a}function Gv(t){var a=t,o=a.alternate;switch(a.tag){case 15:case 0:a=dv(o,a,a.pendingProps,a.type,void 0,Ke);break;case 11:a=dv(o,a,a.pendingProps,a.type.render,a.ref,Ke);break;case 5:Kf(a);default:bv(o,a),a=qe=Yg(a,_r),a=vv(o,a,_r)}t.memoizedProps=t.pendingProps,a===null?au(t):qe=a}function Li(t,a,o,u){Sr=Da=null,Kf(a),Ti=null,Xo=0;var p=a.return;try{if(TA(t,p,a,o,Ke)){xt=1,Xs(t,Tn(o,t.current)),qe=null;return}}catch(x){if(p!==null)throw qe=p,x;xt=1,Xs(t,Tn(o,t.current)),qe=null;return}a.flags&32768?(Je||u===1?t=!0:Mi||(Ke&536870912)!==0?t=!1:(ta=t=!0,(u===2||u===9||u===3||u===6)&&(u=Mn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Yv(a,t)):au(a)}function au(t){var a=t;do{if((a.flags&32768)!==0){Yv(a,ta);return}t=a.return;var o=NA(a.alternate,a,_r);if(o!==null){qe=o;return}if(a=a.sibling,a!==null){qe=a;return}qe=a=t}while(a!==null);xt===0&&(xt=5)}function Yv(t,a){do{var o=_A(t.alternate,t);if(o!==null){o.flags&=32767,qe=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(t=t.sibling,t!==null)){qe=t;return}qe=t=o}while(t!==null);xt=6,qe=null}function Kv(t,a,o,u,p,x,C,_,O){t.cancelPendingCommit=null;do iu();while(Ut!==0);if((et&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(x=a.lanes|a.childLanes,x|=Ef,st(t,o,x,C,_,O),t===ut&&(qe=ut=null,Ke=0),Di=a,aa=t,Oi=o,Rd=x,Nd=p,Iv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,FA(pr,function(){return Jv(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=P.T,P.T=null,p=K.p,K.p=2,C=et,et|=4;try{MA(t,a,o)}finally{et=C,K.p=p,P.T=u}}Ut=1,Xv(),Qv(),Zv()}}function Xv(){if(Ut===1){Ut=0;var t=aa,a=Di,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=P.T,P.T=null;var u=K.p;K.p=2;var p=et;et|=4;try{Mv(a,t);var x=$d,C=zg(t.containerInfo),_=x.focusedElem,O=x.selectionRange;if(C!==_&&_&&_.ownerDocument&&Lg(_.ownerDocument.documentElement,_)){if(O!==null&&vf(_)){var $=O.start,re=O.end;if(re===void 0&&(re=$),"selectionStart"in _)_.selectionStart=$,_.selectionEnd=Math.min(re,_.value.length);else{var oe=_.ownerDocument||document,Y=oe&&oe.defaultView||window;if(Y.getSelection){var X=Y.getSelection(),De=_.textContent.length,Re=Math.min(O.start,De),at=O.end===void 0?Re:Math.min(O.end,De);!X.extend&&Re>at&&(C=at,at=Re,Re=C);var H=Pg(_,Re),I=Pg(_,at);if(H&&I&&(X.rangeCount!==1||X.anchorNode!==H.node||X.anchorOffset!==H.offset||X.focusNode!==I.node||X.focusOffset!==I.offset)){var V=oe.createRange();V.setStart(H.node,H.offset),X.removeAllRanges(),Re>at?(X.addRange(V),X.extend(I.node,I.offset)):(V.setEnd(I.node,I.offset),X.addRange(V))}}}}for(oe=[],X=_;X=X.parentNode;)X.nodeType===1&&oe.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<oe.length;_++){var ie=oe[_];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}yu=!!qd,$d=qd=null}finally{et=p,K.p=u,P.T=o}}t.current=a,Ut=2}}function Qv(){if(Ut===2){Ut=0;var t=aa,a=Di,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=P.T,P.T=null;var u=K.p;K.p=2;var p=et;et|=4;try{Tv(t,a.alternate,a)}finally{et=p,K.p=u,P.T=o}}Ut=3}}function Zv(){if(Ut===4||Ut===3){Ut=0,fn();var t=aa,a=Di,o=Oi,u=Iv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ut=5:(Ut=0,Di=aa=null,Wv(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(ra=null),nn(o),a=a.stateNode,fe&&typeof fe.onCommitFiberRoot=="function")try{fe.onCommitFiberRoot(te,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=P.T,p=K.p,K.p=2,P.T=null;try{for(var x=t.onRecoverableError,C=0;C<u.length;C++){var _=u[C];x(_.value,{componentStack:_.stack})}}finally{P.T=a,K.p=p}}(Oi&3)!==0&&iu(),ar(t),p=t.pendingLanes,(o&4194090)!==0&&(p&42)!==0?t===_d?al++:(al=0,_d=t):al=0,il(0)}}function Wv(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Io(a)))}function iu(t){return Xv(),Qv(),Zv(),Jv()}function Jv(){if(Ut!==5)return!1;var t=aa,a=Rd;Rd=0;var o=nn(Oi),u=P.T,p=K.p;try{K.p=32>o?32:o,P.T=null,o=Nd,Nd=null;var x=aa,C=Oi;if(Ut=0,Di=aa=null,Oi=0,(et&6)!==0)throw Error(i(331));var _=et;if(et|=4,Lv(x.current),Dv(x,x.current,C,o),et=_,il(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(te,x)}catch{}return!0}finally{K.p=p,P.T=u,Wv(t,a)}}function ex(t,a,o){a=Tn(o,a),a=sd(t.stateNode,a,2),t=Kr(t,a,2),t!==null&&(je(t,2),ar(t))}function it(t,a,o){if(t.tag===3)ex(t,t,o);else for(;a!==null;){if(a.tag===3){ex(a,t,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ra===null||!ra.has(u))){t=Tn(o,t),o=av(2),u=Kr(a,o,2),u!==null&&(iv(o,u,a,t),je(u,2),ar(u));break}}a=a.return}}function Od(t,a,o){var u=t.pingCache;if(u===null){u=t.pingCache=new OA;var p=new Set;u.set(a,p)}else p=u.get(a),p===void 0&&(p=new Set,u.set(a,p));p.has(o)||(Cd=!0,p.add(o),t=BA.bind(null,t,a,o),a.then(t,t))}function BA(t,a,o){var u=t.pingCache;u!==null&&u.delete(a),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,ut===t&&(Ke&o)===o&&(xt===4||xt===3&&(Ke&62914560)===Ke&&300>lt()-Td?(et&2)===0&&Pi(t,0):kd|=o,ji===Ke&&(ji=0)),ar(t)}function tx(t,a){a===0&&(a=ve()),t=yi(t,a),t!==null&&(je(t,a),ar(t))}function UA(t){var a=t.memoizedState,o=0;a!==null&&(o=a.retryLane),tx(t,o)}function HA(t,a){var o=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),tx(t,o)}function FA(t,a){return bt(t,a)}var ou=null,zi=null,Pd=!1,lu=!1,Ld=!1,Ua=0;function ar(t){t!==zi&&t.next===null&&(zi===null?ou=zi=t:zi=zi.next=t),lu=!0,Pd||(Pd=!0,qA())}function il(t,a){if(!Ld&&lu){Ld=!0;do for(var o=!1,u=ou;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var x=0;else{var C=u.suspendedLanes,_=u.pingedLanes;x=(1<<31-Te(42|t)+1)-1,x&=p&~(C&~_),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(o=!0,ix(u,x))}else x=Ke,x=ft(u,u===ut?x:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(x&3)===0||qt(u,x)||(o=!0,ix(u,x));u=u.next}while(o);Ld=!1}}function VA(){nx()}function nx(){lu=Pd=!1;var t=0;Ua!==0&&(WA()&&(t=Ua),Ua=0);for(var a=lt(),o=null,u=ou;u!==null;){var p=u.next,x=rx(u,a);x===0?(u.next=null,o===null?ou=p:o.next=p,p===null&&(zi=o)):(o=u,(t!==0||(x&3)!==0)&&(lu=!0)),u=p}il(t)}function rx(t,a){for(var o=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,x=t.pendingLanes&-62914561;0<x;){var C=31-Te(x),_=1<<C,O=p[C];O===-1?((_&o)===0||(_&u)!==0)&&(p[C]=G(_,a)):O<=a&&(t.expiredLanes|=_),x&=~_}if(a=ut,o=Ke,o=ft(t,t===a?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,o===0||t===a&&(tt===2||tt===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&Ft(u),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||qt(t,o)){if(a=o&-o,a===t.callbackPriority)return a;switch(u!==null&&Ft(u),nn(o)){case 2:case 8:o=Fr;break;case 32:o=pr;break;case 268435456:o=mr;break;default:o=pr}return u=ax.bind(null,t),o=bt(o,u),t.callbackPriority=a,t.callbackNode=o,a}return u!==null&&u!==null&&Ft(u),t.callbackPriority=2,t.callbackNode=null,2}function ax(t,a){if(Ut!==0&&Ut!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(iu()&&t.callbackNode!==o)return null;var u=Ke;return u=ft(t,t===ut?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Uv(t,u,a),rx(t,lt()),t.callbackNode!=null&&t.callbackNode===o?ax.bind(null,t):null)}function ix(t,a){if(iu())return null;Uv(t,a,!0)}function qA(){eT(function(){(et&6)!==0?bt(Hr,VA):nx()})}function zd(){return Ua===0&&(Ua=he()),Ua}function ox(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vs(""+t)}function lx(t,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,t.id&&o.setAttribute("form",t.id),a.parentNode.insertBefore(o,a),t=new FormData(t),o.parentNode.removeChild(o),t}function $A(t,a,o,u,p){if(a==="submit"&&o&&o.stateNode===p){var x=ox((p[Ct]||null).action),C=u.submitter;C&&(a=(a=C[Ct]||null)?ox(a.formAction):C.getAttribute("formAction"),a!==null&&(x=a,C=null));var _=new Ss("action","action",null,u,p);t.push({event:_,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ua!==0){var O=C?lx(p,C):new FormData(p);rd(o,{pending:!0,data:O,method:p.method,action:x},null,O)}}else typeof x=="function"&&(_.preventDefault(),O=C?lx(p,C):new FormData(p),rd(o,{pending:!0,data:O,method:p.method,action:x},x,O))},currentTarget:p}]})}}for(var Id=0;Id<Sf.length;Id++){var Bd=Sf[Id],GA=Bd.toLowerCase(),YA=Bd[0].toUpperCase()+Bd.slice(1);qn(GA,"on"+YA)}qn(Ug,"onAnimationEnd"),qn(Hg,"onAnimationIteration"),qn(Fg,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(cA,"onTransitionRun"),qn(fA,"onTransitionStart"),qn(dA,"onTransitionCancel"),qn(Vg,"onTransitionEnd"),li("onMouseEnter",["mouseout","mouseover"]),li("onMouseLeave",["mouseout","mouseover"]),li("onPointerEnter",["pointerout","pointerover"]),li("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ol="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(" "),KA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ol));function sx(t,a){a=(a&4)!==0;for(var o=0;o<t.length;o++){var u=t[o],p=u.event;u=u.listeners;e:{var x=void 0;if(a)for(var C=u.length-1;0<=C;C--){var _=u[C],O=_.instance,$=_.currentTarget;if(_=_.listener,O!==x&&p.isPropagationStopped())break e;x=_,p.currentTarget=$;try{x(p)}catch(re){Ks(re)}p.currentTarget=null,x=O}else for(C=0;C<u.length;C++){if(_=u[C],O=_.instance,$=_.currentTarget,_=_.listener,O!==x&&p.isPropagationStopped())break e;x=_,p.currentTarget=$;try{x(p)}catch(re){Ks(re)}p.currentTarget=null,x=O}}}}function $e(t,a){var o=a[rn];o===void 0&&(o=a[rn]=new Set);var u=t+"__bubble";o.has(u)||(ux(a,t,2,!1),o.add(u))}function Ud(t,a,o){var u=0;a&&(u|=4),ux(o,t,u,a)}var su="_reactListening"+Math.random().toString(36).slice(2);function Hd(t){if(!t[su]){t[su]=!0,ng.forEach(function(o){o!=="selectionchange"&&(KA.has(o)||Ud(o,!1,t),Ud(o,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[su]||(a[su]=!0,Ud("selectionchange",!1,a))}}function ux(t,a,o,u){switch(Dx(a)){case 2:var p=wT;break;case 8:p=ST;break;default:p=th}o=p.bind(null,a,o,t),p=void 0,!uf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(a,o,{capture:!0,passive:p}):t.addEventListener(a,o,!0):p!==void 0?t.addEventListener(a,o,{passive:p}):t.addEventListener(a,o,!1)}function Fd(t,a,o,u,p){var x=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var _=u.stateNode.containerInfo;if(_===p)break;if(C===4)for(C=u.return;C!==null;){var O=C.tag;if((O===3||O===4)&&C.stateNode.containerInfo===p)return;C=C.return}for(;_!==null;){if(C=ai(_),C===null)return;if(O=C.tag,O===5||O===6||O===26||O===27){u=x=C;continue e}_=_.parentNode}}u=u.return}gg(function(){var $=x,re=lf(o),oe=[];e:{var Y=qg.get(t);if(Y!==void 0){var X=Ss,De=t;switch(t){case"keypress":if(bs(o)===0)break e;case"keydown":case"keyup":X=F2;break;case"focusin":De="focus",X=hf;break;case"focusout":De="blur",X=hf;break;case"beforeblur":case"afterblur":X=hf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=xg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=_2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=$2;break;case Ug:case Hg:case Fg:X=D2;break;case Vg:X=Y2;break;case"scroll":case"scrollend":X=R2;break;case"wheel":X=X2;break;case"copy":case"cut":case"paste":X=P2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=wg;break;case"toggle":case"beforetoggle":X=Z2}var Re=(a&4)!==0,at=!Re&&(t==="scroll"||t==="scrollend"),H=Re?Y!==null?Y+"Capture":null:Y;Re=[];for(var I=$,V;I!==null;){var ie=I;if(V=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||V===null||H===null||(ie=ko(I,H),ie!=null&&Re.push(ll(I,ie,V))),at)break;I=I.return}0<Re.length&&(Y=new X(Y,De,null,o,re),oe.push({event:Y,listeners:Re}))}}if((a&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",Y&&o!==of&&(De=o.relatedTarget||o.fromElement)&&(ai(De)||De[jt]))break e;if((X||Y)&&(Y=re.window===re?re:(Y=re.ownerDocument)?Y.defaultView||Y.parentWindow:window,X?(De=o.relatedTarget||o.toElement,X=$,De=De?ai(De):null,De!==null&&(at=s(De),Re=De.tag,De!==at||Re!==5&&Re!==27&&Re!==6)&&(De=null)):(X=null,De=$),X!==De)){if(Re=xg,ie="onMouseLeave",H="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Re=wg,ie="onPointerLeave",H="onPointerEnter",I="pointer"),at=X==null?Y:Co(X),V=De==null?Y:Co(De),Y=new Re(ie,I+"leave",X,o,re),Y.target=at,Y.relatedTarget=V,ie=null,ai(re)===$&&(Re=new Re(H,I+"enter",De,o,re),Re.target=V,Re.relatedTarget=at,ie=Re),at=ie,X&&De)t:{for(Re=X,H=De,I=0,V=Re;V;V=Ii(V))I++;for(V=0,ie=H;ie;ie=Ii(ie))V++;for(;0<I-V;)Re=Ii(Re),I--;for(;0<V-I;)H=Ii(H),V--;for(;I--;){if(Re===H||H!==null&&Re===H.alternate)break t;Re=Ii(Re),H=Ii(H)}Re=null}else Re=null;X!==null&&cx(oe,Y,X,Re,!1),De!==null&&at!==null&&cx(oe,at,De,Re,!0)}}e:{if(Y=$?Co($):window,X=Y.nodeName&&Y.nodeName.toLowerCase(),X==="select"||X==="input"&&Y.type==="file")var xe=Ng;else if(Tg(Y))if(_g)xe=lA;else{xe=iA;var Ve=aA}else X=Y.nodeName,!X||X.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?$&&af($.elementType)&&(xe=Ng):xe=oA;if(xe&&(xe=xe(t,$))){Rg(oe,xe,o,re);break e}Ve&&Ve(t,Y,$),t==="focusout"&&$&&Y.type==="number"&&$.memoizedProps.value!=null&&rf(Y,"number",Y.value)}switch(Ve=$?Co($):window,t){case"focusin":(Tg(Ve)||Ve.contentEditable==="true")&&(pi=Ve,xf=$,Do=null);break;case"focusout":Do=xf=pi=null;break;case"mousedown":bf=!0;break;case"contextmenu":case"mouseup":case"dragend":bf=!1,Ig(oe,o,re);break;case"selectionchange":if(uA)break;case"keydown":case"keyup":Ig(oe,o,re)}var Ee;if(mf)e:{switch(t){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else hi?kg(t,o)&&(_e="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(_e="onCompositionStart");_e&&(Sg&&o.locale!=="ko"&&(hi||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&hi&&(Ee=yg()):(qr=re,cf="value"in qr?qr.value:qr.textContent,hi=!0)),Ve=uu($,_e),0<Ve.length&&(_e=new bg(_e,t,null,o,re),oe.push({event:_e,listeners:Ve}),Ee?_e.data=Ee:(Ee=Ag(o),Ee!==null&&(_e.data=Ee)))),(Ee=J2?eA(t,o):tA(t,o))&&(_e=uu($,"onBeforeInput"),0<_e.length&&(Ve=new bg("onBeforeInput","beforeinput",null,o,re),oe.push({event:Ve,listeners:_e}),Ve.data=Ee)),$A(oe,t,$,o,re)}sx(oe,a)})}function ll(t,a,o){return{instance:t,listener:a,currentTarget:o}}function uu(t,a){for(var o=a+"Capture",u=[];t!==null;){var p=t,x=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||x===null||(p=ko(t,o),p!=null&&u.unshift(ll(t,p,x)),p=ko(t,a),p!=null&&u.push(ll(t,p,x))),t.tag===3)return u;t=t.return}return[]}function Ii(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cx(t,a,o,u,p){for(var x=a._reactName,C=[];o!==null&&o!==u;){var _=o,O=_.alternate,$=_.stateNode;if(_=_.tag,O!==null&&O===u)break;_!==5&&_!==26&&_!==27||$===null||(O=$,p?($=ko(o,x),$!=null&&C.unshift(ll(o,$,O))):p||($=ko(o,x),$!=null&&C.push(ll(o,$,O)))),o=o.return}C.length!==0&&t.push({event:a,listeners:C})}var XA=/\r\n?/g,QA=/\u0000|\uFFFD/g;function fx(t){return(typeof t=="string"?t:""+t).replace(XA,`
|
|
50
|
-
`).replace(QA,"")}function dx(t,a){return a=fx(a),fx(t)===a}function cu(){}function rt(t,a,o,u,p,x){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||ci(t,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&ci(t,""+u);break;case"className":ms(t,"class",u);break;case"tabIndex":ms(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ms(t,o,u);break;case"style":pg(t,u,x);break;case"data":if(a!=="object"){ms(t,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){t.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=vs(""+u),t.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(o,"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 x=="function"&&(o==="formAction"?(a!=="input"&&rt(t,a,"name",p.name,p,null),rt(t,a,"formEncType",p.formEncType,p,null),rt(t,a,"formMethod",p.formMethod,p,null),rt(t,a,"formTarget",p.formTarget,p,null)):(rt(t,a,"encType",p.encType,p,null),rt(t,a,"method",p.method,p,null),rt(t,a,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=vs(""+u),t.setAttribute(o,u);break;case"onClick":u!=null&&(t.onclick=cu);break;case"onScroll":u!=null&&$e("scroll",t);break;case"onScrollEnd":u!=null&&$e("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}o=vs(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""+u):t.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":u===!0?t.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,u):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(o,u):t.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(o):t.setAttribute(o,u);break;case"popover":$e("beforetoggle",t),$e("toggle",t),ps(t,"popover",u);break;case"xlinkActuate":yr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":yr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":yr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":yr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":yr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":yr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":yr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":yr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":yr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":ps(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=A2.get(o)||o,ps(t,o,u))}}function Vd(t,a,o,u,p,x){switch(o){case"style":pg(t,u,x);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof u=="string"?ci(t,u):(typeof u=="number"||typeof u=="bigint")&&ci(t,""+u);break;case"onScroll":u!=null&&$e("scroll",t);break;case"onScrollEnd":u!=null&&$e("scrollend",t);break;case"onClick":u!=null&&(t.onclick=cu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rg.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),a=o.slice(2,p?o.length-7:void 0),x=t[Ct]||null,x=x!=null?x[o]:null,typeof x=="function"&&t.removeEventListener(a,x,p),typeof u=="function")){typeof x!="function"&&x!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(a,u,p);break e}o in t?t[o]=u:u===!0?t.setAttribute(o,""):ps(t,o,u)}}}function Ht(t,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",t),$e("load",t);var u=!1,p=!1,x;for(x in o)if(o.hasOwnProperty(x)){var C=o[x];if(C!=null)switch(x){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(t,a,x,C,o,null)}}p&&rt(t,a,"srcSet",o.srcSet,o,null),u&&rt(t,a,"src",o.src,o,null);return;case"input":$e("invalid",t);var _=x=C=p=null,O=null,$=null;for(u in o)if(o.hasOwnProperty(u)){var re=o[u];if(re!=null)switch(u){case"name":p=re;break;case"type":C=re;break;case"checked":O=re;break;case"defaultChecked":$=re;break;case"value":x=re;break;case"defaultValue":_=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:rt(t,a,u,re,o,null)}}cg(t,x,_,O,$,C,p,!1),gs(t);return;case"select":$e("invalid",t),u=C=x=null;for(p in o)if(o.hasOwnProperty(p)&&(_=o[p],_!=null))switch(p){case"value":x=_;break;case"defaultValue":C=_;break;case"multiple":u=_;default:rt(t,a,p,_,o,null)}a=x,o=C,t.multiple=!!u,a!=null?ui(t,!!u,a,!1):o!=null&&ui(t,!!u,o,!0);return;case"textarea":$e("invalid",t),x=p=u=null;for(C in o)if(o.hasOwnProperty(C)&&(_=o[C],_!=null))switch(C){case"value":u=_;break;case"defaultValue":p=_;break;case"children":x=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:rt(t,a,C,_,o,null)}dg(t,u,p,x),gs(t);return;case"option":for(O in o)if(o.hasOwnProperty(O)&&(u=o[O],u!=null))switch(O){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:rt(t,a,O,u,o,null)}return;case"dialog":$e("beforetoggle",t),$e("toggle",t),$e("cancel",t),$e("close",t);break;case"iframe":case"object":$e("load",t);break;case"video":case"audio":for(u=0;u<ol.length;u++)$e(ol[u],t);break;case"image":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"embed":case"source":case"link":$e("error",t),$e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in o)if(o.hasOwnProperty($)&&(u=o[$],u!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(t,a,$,u,o,null)}return;default:if(af(a)){for(re in o)o.hasOwnProperty(re)&&(u=o[re],u!==void 0&&Vd(t,a,re,u,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(u=o[_],u!=null&&rt(t,a,_,u,o,null))}function ZA(t,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,x=null,C=null,_=null,O=null,$=null,re=null;for(X in o){var oe=o[X];if(o.hasOwnProperty(X)&&oe!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":O=oe;default:u.hasOwnProperty(X)||rt(t,a,X,null,u,oe)}}for(var Y in u){var X=u[Y];if(oe=o[Y],u.hasOwnProperty(Y)&&(X!=null||oe!=null))switch(Y){case"type":x=X;break;case"name":p=X;break;case"checked":$=X;break;case"defaultChecked":re=X;break;case"value":C=X;break;case"defaultValue":_=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,a));break;default:X!==oe&&rt(t,a,Y,X,u,oe)}}nf(t,C,_,O,$,re,x,p);return;case"select":X=C=_=Y=null;for(x in o)if(O=o[x],o.hasOwnProperty(x)&&O!=null)switch(x){case"value":break;case"multiple":X=O;default:u.hasOwnProperty(x)||rt(t,a,x,null,u,O)}for(p in u)if(x=u[p],O=o[p],u.hasOwnProperty(p)&&(x!=null||O!=null))switch(p){case"value":Y=x;break;case"defaultValue":_=x;break;case"multiple":C=x;default:x!==O&&rt(t,a,p,x,u,O)}a=_,o=C,u=X,Y!=null?ui(t,!!o,Y,!1):!!u!=!!o&&(a!=null?ui(t,!!o,a,!0):ui(t,!!o,o?[]:"",!1));return;case"textarea":X=Y=null;for(_ in o)if(p=o[_],o.hasOwnProperty(_)&&p!=null&&!u.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:rt(t,a,_,null,u,p)}for(C in u)if(p=u[C],x=o[C],u.hasOwnProperty(C)&&(p!=null||x!=null))switch(C){case"value":Y=p;break;case"defaultValue":X=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==x&&rt(t,a,C,p,u,x)}fg(t,Y,X);return;case"option":for(var De in o)if(Y=o[De],o.hasOwnProperty(De)&&Y!=null&&!u.hasOwnProperty(De))switch(De){case"selected":t.selected=!1;break;default:rt(t,a,De,null,u,Y)}for(O in u)if(Y=u[O],X=o[O],u.hasOwnProperty(O)&&Y!==X&&(Y!=null||X!=null))switch(O){case"selected":t.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:rt(t,a,O,Y,u,X)}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 Re in o)Y=o[Re],o.hasOwnProperty(Re)&&Y!=null&&!u.hasOwnProperty(Re)&&rt(t,a,Re,null,u,Y);for($ in u)if(Y=u[$],X=o[$],u.hasOwnProperty($)&&Y!==X&&(Y!=null||X!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:rt(t,a,$,Y,u,X)}return;default:if(af(a)){for(var at in o)Y=o[at],o.hasOwnProperty(at)&&Y!==void 0&&!u.hasOwnProperty(at)&&Vd(t,a,at,void 0,u,Y);for(re in u)Y=u[re],X=o[re],!u.hasOwnProperty(re)||Y===X||Y===void 0&&X===void 0||Vd(t,a,re,Y,u,X);return}}for(var H in o)Y=o[H],o.hasOwnProperty(H)&&Y!=null&&!u.hasOwnProperty(H)&&rt(t,a,H,null,u,Y);for(oe in u)Y=u[oe],X=o[oe],!u.hasOwnProperty(oe)||Y===X||Y==null&&X==null||rt(t,a,oe,Y,u,X)}var qd=null,$d=null;function fu(t){return t.nodeType===9?t:t.ownerDocument}function hx(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function px(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Gd(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Yd=null;function WA(){var t=window.event;return t&&t.type==="popstate"?t===Yd?!1:(Yd=t,!0):(Yd=null,!1)}var mx=typeof setTimeout=="function"?setTimeout:void 0,JA=typeof clearTimeout=="function"?clearTimeout:void 0,gx=typeof Promise=="function"?Promise:void 0,eT=typeof queueMicrotask=="function"?queueMicrotask:typeof gx<"u"?function(t){return gx.resolve(null).then(t).catch(tT)}:mx;function tT(t){setTimeout(function(){throw t})}function oa(t){return t==="head"}function yx(t,a){var o=a,u=0,p=0;do{var x=o.nextSibling;if(t.removeChild(o),x&&x.nodeType===8)if(o=x.data,o==="/$"){if(0<u&&8>u){o=u;var C=t.ownerDocument;if(o&1&&sl(C.documentElement),o&2&&sl(C.body),o&4)for(o=C.head,sl(o),C=o.firstChild;C;){var _=C.nextSibling,O=C.nodeName;C[Eo]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&C.rel.toLowerCase()==="stylesheet"||o.removeChild(C),C=_}}if(p===0){t.removeChild(x),gl(a);return}p--}else o==="$"||o==="$?"||o==="$!"?p++:u=o.charCodeAt(0)-48;else u=0;o=x}while(o);gl(a)}function Kd(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Kd(o),Wc(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function nT(t,a,o,u){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Eo])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(x=t.getAttribute("rel"),x==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(x!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(x=t.getAttribute("src"),(x!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&x&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var x=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===x)return t}else return t;if(t=Gn(t.nextSibling),t===null)break}return null}function rT(t,a,o){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=Gn(t.nextSibling),t===null))return null;return t}function Xd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function aT(t,a){var o=t.ownerDocument;if(t.data!=="$?"||o.readyState==="complete")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Gn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var Qd=null;function vx(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return t;a--}else o==="/$"&&a++}t=t.previousSibling}return null}function xx(t,a,o){switch(a=fu(o),t){case"html":if(t=a.documentElement,!t)throw Error(i(452));return t;case"head":if(t=a.head,!t)throw Error(i(453));return t;case"body":if(t=a.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function sl(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Wc(t)}var Dn=new Map,bx=new Set;function du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mr=K.d;K.d={f:iT,r:oT,D:lT,C:sT,L:uT,m:cT,X:dT,S:fT,M:hT};function iT(){var t=Mr.f(),a=ru();return t||a}function oT(t){var a=ii(t);a!==null&&a.tag===5&&a.type==="form"?Uy(a):Mr.r(t)}var Bi=typeof document>"u"?null:document;function wx(t,a,o){var u=Bi;if(u&&typeof a=="string"&&a){var p=An(a);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),bx.has(p)||(bx.add(p),t={rel:t,crossOrigin:o,href:a},u.querySelector(p)===null&&(a=u.createElement("link"),Ht(a,"link",t),Dt(a),u.head.appendChild(a)))}}function lT(t){Mr.D(t),wx("dns-prefetch",t,null)}function sT(t,a){Mr.C(t,a),wx("preconnect",t,a)}function uT(t,a,o){Mr.L(t,a,o);var u=Bi;if(u&&t&&a){var p='link[rel="preload"][as="'+An(a)+'"]';a==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+An(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+An(o.imageSizes)+'"]')):p+='[href="'+An(t)+'"]';var x=p;switch(a){case"style":x=Ui(t);break;case"script":x=Hi(t)}Dn.has(x)||(t=m({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:t,as:a},o),Dn.set(x,t),u.querySelector(p)!==null||a==="style"&&u.querySelector(ul(x))||a==="script"&&u.querySelector(cl(x))||(a=u.createElement("link"),Ht(a,"link",t),Dt(a),u.head.appendChild(a)))}}function cT(t,a){Mr.m(t,a);var o=Bi;if(o&&t){var u=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+An(u)+'"][href="'+An(t)+'"]',x=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Hi(t)}if(!Dn.has(x)&&(t=m({rel:"modulepreload",href:t},a),Dn.set(x,t),o.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(cl(x)))return}u=o.createElement("link"),Ht(u,"link",t),Dt(u),o.head.appendChild(u)}}}function fT(t,a,o){Mr.S(t,a,o);var u=Bi;if(u&&t){var p=oi(u).hoistableStyles,x=Ui(t);a=a||"default";var C=p.get(x);if(!C){var _={loading:0,preload:null};if(C=u.querySelector(ul(x)))_.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":a},o),(o=Dn.get(x))&&Zd(t,o);var O=C=u.createElement("link");Dt(O),Ht(O,"link",t),O._p=new Promise(function($,re){O.onload=$,O.onerror=re}),O.addEventListener("load",function(){_.loading|=1}),O.addEventListener("error",function(){_.loading|=2}),_.loading|=4,hu(C,a,u)}C={type:"stylesheet",instance:C,count:1,state:_},p.set(x,C)}}}function dT(t,a){Mr.X(t,a);var o=Bi;if(o&&t){var u=oi(o).hoistableScripts,p=Hi(t),x=u.get(p);x||(x=o.querySelector(cl(p)),x||(t=m({src:t,async:!0},a),(a=Dn.get(p))&&Wd(t,a),x=o.createElement("script"),Dt(x),Ht(x,"link",t),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},u.set(p,x))}}function hT(t,a){Mr.M(t,a);var o=Bi;if(o&&t){var u=oi(o).hoistableScripts,p=Hi(t),x=u.get(p);x||(x=o.querySelector(cl(p)),x||(t=m({src:t,async:!0,type:"module"},a),(a=Dn.get(p))&&Wd(t,a),x=o.createElement("script"),Dt(x),Ht(x,"link",t),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},u.set(p,x))}}function Sx(t,a,o,u){var p=(p=pe.current)?du(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Ui(o.href),o=oi(p).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Ui(o.href);var x=oi(p).hoistableStyles,C=x.get(t);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(t,C),(x=p.querySelector(ul(t)))&&!x._p&&(C.instance=x,C.state.loading=5),Dn.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Dn.set(t,o),x||pT(p,t,o,C.state))),a&&u===null)throw Error(i(528,""));return C}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Hi(o),o=oi(p).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Ui(t){return'href="'+An(t)+'"'}function ul(t){return'link[rel="stylesheet"]['+t+"]"}function Ex(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function pT(t,a,o,u){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=t.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Ht(a,"link",o),Dt(a),t.head.appendChild(a))}function Hi(t){return'[src="'+An(t)+'"]'}function cl(t){return"script[async]"+t}function Cx(t,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=t.querySelector('style[data-href~="'+An(o.href)+'"]');if(u)return a.instance=u,Dt(u),u;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Dt(u),Ht(u,"style",p),hu(u,o.precedence,t),a.instance=u;case"stylesheet":p=Ui(o.href);var x=t.querySelector(ul(p));if(x)return a.state.loading|=4,a.instance=x,Dt(x),x;u=Ex(o),(p=Dn.get(p))&&Zd(u,p),x=(t.ownerDocument||t).createElement("link"),Dt(x);var C=x;return C._p=new Promise(function(_,O){C.onload=_,C.onerror=O}),Ht(x,"link",u),a.state.loading|=4,hu(x,o.precedence,t),a.instance=x;case"script":return x=Hi(o.src),(p=t.querySelector(cl(x)))?(a.instance=p,Dt(p),p):(u=o,(p=Dn.get(x))&&(u=m({},o),Wd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),Dt(p),Ht(p,"link",u),t.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,hu(u,o.precedence,t));return a.instance}function hu(t,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,x=p,C=0;C<u.length;C++){var _=u[C];if(_.dataset.precedence===a)x=_;else if(x!==p)break}x?x.parentNode.insertBefore(t,x.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(t,a.firstChild))}function Zd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Wd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var pu=null;function kx(t,a,o){if(pu===null){var u=new Map,p=pu=new Map;p.set(o,u)}else p=pu,u=p.get(o),u||(u=new Map,p.set(o,u));if(u.has(t))return u;for(u.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var x=o[p];if(!(x[Eo]||x[ht]||t==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var C=x.getAttribute(a)||"";C=t+C;var _=u.get(C);_?_.push(x):u.set(C,[x])}}return u}function Ax(t,a,o){t=t.ownerDocument||t,t.head.insertBefore(o,a==="title"?t.querySelector("head > title"):null)}function mT(t,a,o){if(o===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Tx(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var fl=null;function gT(){}function yT(t,a,o){if(fl===null)throw Error(i(475));var u=fl;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=Ui(o.href),x=t.querySelector(ul(p));if(x){t=x._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=mu.bind(u),t.then(u,u)),a.state.loading|=4,a.instance=x,Dt(x);return}x=t.ownerDocument||t,o=Ex(o),(p=Dn.get(p))&&Zd(o,p),x=x.createElement("link"),Dt(x);var C=x;C._p=new Promise(function(_,O){C.onload=_,C.onerror=O}),Ht(x,"link",o),a.instance=x}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(u.count++,a=mu.bind(u),t.addEventListener("load",a),t.addEventListener("error",a))}}function vT(){if(fl===null)throw Error(i(475));var t=fl;return t.stylesheets&&t.count===0&&Jd(t,t.stylesheets),0<t.count?function(a){var o=setTimeout(function(){if(t.stylesheets&&Jd(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(o)}}:null}function mu(){if(this.count--,this.count===0){if(this.stylesheets)Jd(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var gu=null;function Jd(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,gu=new Map,a.forEach(xT,t),gu=null,mu.call(t))}function xT(t,a){if(!(a.state.loading&4)){var o=gu.get(t);if(o)var u=o.get(null);else{o=new Map,gu.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<p.length;x++){var C=p[x];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(o.set(C.dataset.precedence,C),u=C)}u&&o.set(null,u)}p=a.instance,C=p.getAttribute("data-precedence"),x=o.get(C)||u,x===u&&o.set(null,p),o.set(C,p),this.count++,u=mu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),x?x.parentNode.insertBefore(p,x.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),a.state.loading|=4}}var dl={$$typeof:N,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function bT(t,a,o,u,p,x,C,_){this.tag=1,this.containerInfo=t,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=Se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Se(0),this.hiddenUpdates=Se(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=x,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Rx(t,a,o,u,p,x,C,_,O,$,re,oe){return t=new bT(t,a,o,C,_,O,$,oe),a=1,x===!0&&(a|=24),x=pn(3,null,null,a),t.current=x,x.stateNode=t,a=Of(),a.refCount++,t.pooledCache=a,a.refCount++,x.memoizedState={element:u,isDehydrated:o,cache:a},If(x),t}function Nx(t){return t?(t=vi,t):vi}function _x(t,a,o,u,p,x){p=Nx(p),u.context===null?u.context=p:u.pendingContext=p,u=Yr(a),u.payload={element:o},x=x===void 0?null:x,x!==null&&(u.callback=x),o=Kr(t,u,a),o!==null&&(xn(o,t,a),Fo(o,t,a))}function Mx(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<a?o:a}}function eh(t,a){Mx(t,a),(t=t.alternate)&&Mx(t,a)}function jx(t){if(t.tag===13){var a=yi(t,67108864);a!==null&&xn(a,t,67108864),eh(t,67108864)}}var yu=!0;function wT(t,a,o,u){var p=P.T;P.T=null;var x=K.p;try{K.p=2,th(t,a,o,u)}finally{K.p=x,P.T=p}}function ST(t,a,o,u){var p=P.T;P.T=null;var x=K.p;try{K.p=8,th(t,a,o,u)}finally{K.p=x,P.T=p}}function th(t,a,o,u){if(yu){var p=nh(u);if(p===null)Fd(t,a,u,vu,o),Ox(t,u);else if(CT(p,t,a,o,u))u.stopPropagation();else if(Ox(t,u),a&4&&-1<ET.indexOf(t)){for(;p!==null;){var x=ii(p);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var C=Vt(x.pendingLanes);if(C!==0){var _=x;for(_.pendingLanes|=2,_.entangledLanes|=2;C;){var O=1<<31-Te(C);_.entanglements[1]|=O,C&=~O}ar(x),(et&6)===0&&(tu=lt()+500,il(0))}}break;case 13:_=yi(x,2),_!==null&&xn(_,x,2),ru(),eh(x,2)}if(x=nh(u),x===null&&Fd(t,a,u,vu,o),x===p)break;p=x}p!==null&&u.stopPropagation()}else Fd(t,a,u,null,o)}}function nh(t){return t=lf(t),rh(t)}var vu=null;function rh(t){if(vu=null,t=ai(t),t!==null){var a=s(t);if(a===null)t=null;else{var o=a.tag;if(o===13){if(t=c(a),t!==null)return t;t=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return vu=t,null}function Dx(t){switch(t){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(Ur()){case Hr:return 2;case Fr:return 8;case pr:case ni:return 32;case mr:return 268435456;default:return 32}default:return 32}}var ah=!1,la=null,sa=null,ua=null,hl=new Map,pl=new Map,ca=[],ET="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 Ox(t,a){switch(t){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":hl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":pl.delete(a.pointerId)}}function ml(t,a,o,u,p,x){return t===null||t.nativeEvent!==x?(t={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:x,targetContainers:[p]},a!==null&&(a=ii(a),a!==null&&jx(a)),t):(t.eventSystemFlags|=u,a=t.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),t)}function CT(t,a,o,u,p){switch(a){case"focusin":return la=ml(la,t,a,o,u,p),!0;case"dragenter":return sa=ml(sa,t,a,o,u,p),!0;case"mouseover":return ua=ml(ua,t,a,o,u,p),!0;case"pointerover":var x=p.pointerId;return hl.set(x,ml(hl.get(x)||null,t,a,o,u,p)),!0;case"gotpointercapture":return x=p.pointerId,pl.set(x,ml(pl.get(x)||null,t,a,o,u,p)),!0}return!1}function Px(t){var a=ai(t.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){t.blockedOn=a,Vn(t.priority,function(){if(o.tag===13){var u=vn();u=Qe(u);var p=yi(o,u);p!==null&&xn(p,o,u),eh(o,u)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var o=nh(t.nativeEvent);if(o===null){o=t.nativeEvent;var u=new o.constructor(o.type,o);of=u,o.target.dispatchEvent(u),of=null}else return a=ii(o),a!==null&&jx(a),t.blockedOn=o,!1;a.shift()}return!0}function Lx(t,a,o){xu(t)&&o.delete(a)}function kT(){ah=!1,la!==null&&xu(la)&&(la=null),sa!==null&&xu(sa)&&(sa=null),ua!==null&&xu(ua)&&(ua=null),hl.forEach(Lx),pl.forEach(Lx)}function bu(t,a){t.blockedOn===a&&(t.blockedOn=null,ah||(ah=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kT)))}var wu=null;function zx(t){wu!==t&&(wu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){wu===t&&(wu=null);for(var a=0;a<t.length;a+=3){var o=t[a],u=t[a+1],p=t[a+2];if(typeof u!="function"){if(rh(u||o)===null)continue;break}var x=ii(o);x!==null&&(t.splice(a,3),a-=3,rd(x,{pending:!0,data:p,method:o.method,action:u},u,p))}}))}function gl(t){function a(O){return bu(O,t)}la!==null&&bu(la,t),sa!==null&&bu(sa,t),ua!==null&&bu(ua,t),hl.forEach(a),pl.forEach(a);for(var o=0;o<ca.length;o++){var u=ca[o];u.blockedOn===t&&(u.blockedOn=null)}for(;0<ca.length&&(o=ca[0],o.blockedOn===null);)Px(o),o.blockedOn===null&&ca.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var p=o[u],x=o[u+1],C=p[Ct]||null;if(typeof x=="function")C||zx(o);else if(C){var _=null;if(x&&x.hasAttribute("formAction")){if(p=x,C=x[Ct]||null)_=C.formAction;else if(rh(p)!==null)continue}else _=C.action;typeof _=="function"?o[u+1]=_:(o.splice(u,3),u-=3),zx(o)}}}function ih(t){this._internalRoot=t}Su.prototype.render=ih.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,u=vn();_x(o,u,t,a,null,null)},Su.prototype.unmount=ih.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;_x(t.current,2,null,t,null,null),ru(),a[jt]=null}};function Su(t){this._internalRoot=t}Su.prototype.unstable_scheduleHydration=function(t){if(t){var a=Fn();t={blockedOn:null,target:t,priority:a};for(var o=0;o<ca.length&&a!==0&&a<ca[o].priority;o++);ca.splice(o,0,t),o===0&&Px(t)}};var Ix=n.version;if(Ix!=="19.1.1")throw Error(i(527,Ix,"19.1.1"));K.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=d(a),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var AT={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{te=Eu.inject(AT),fe=Eu}catch{}}return vl.createRoot=function(t,a){if(!l(t))throw Error(i(299));var o=!1,u="",p=ev,x=tv,C=nv,_=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(_=a.unstable_transitionCallbacks)),a=Rx(t,1,!1,null,null,o,u,p,x,C,_,null),t[jt]=a.current,Hd(t),new ih(a)},vl.hydrateRoot=function(t,a,o){if(!l(t))throw Error(i(299));var u=!1,p="",x=ev,C=tv,_=nv,O=null,$=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(x=o.onUncaughtError),o.onCaughtError!==void 0&&(C=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(O=o.unstable_transitionCallbacks),o.formState!==void 0&&($=o.formState)),a=Rx(t,1,!0,a,o??null,u,p,x,C,_,O,$),a.context=Nx(null),o=a.current,u=vn(),u=Qe(u),p=Yr(u),p.callback=null,Kr(o,p,u),o=u,a.current.lanes=o,je(a,o),ar(a),t[jt]=a.current,Hd(t),new Su(a)},vl.version="19.1.1",vl}var Kx;function LT(){if(Kx)return sh.exports;Kx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),sh.exports=PT(),sh.exports}var zT=LT();const IT="modulepreload",BT=function(e){return"/"+e},Xx={},Ue=function(n,r,i){let l=Promise.resolve();if(r&&r.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");l=d(r.map(h=>{if(h=BT(h),h in Xx)return;Xx[h]=!0;const m=h.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":IT,m||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),m)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return l.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return n().catch(s)})};/**
|
|
51
|
-
* react-router v7.8.2
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Remix Software Inc.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
-
*
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/var Qx="popstate";function UT(e={}){function n(i,l){let{pathname:s,search:c,hash:f}=i.location;return Kh("",{pathname:s,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(i,l){return typeof l=="string"?l:Pl(l)}return FT(n,r,null,e)}function mt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Ln(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function HT(){return Math.random().toString(36).substring(2,10)}function Zx(e,n){return{usr:e.state,key:e.key,idx:n}}function Kh(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?oo(n):n,state:r,key:n&&n.key||i||HT()}}function Pl({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function oo(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function FT(e,n,r,i={}){let{window:l=document.defaultView,v5Compat:s=!1}=i,c=l.history,f="POP",d=null,h=m();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let A=m(),T=A==null?null:A-h;h=A,d&&d({action:f,location:S.location,delta:T})}function b(A,T){f="PUSH";let R=Kh(S.location,A,T);h=m()+1;let N=Zx(R,h),D=S.createHref(R);try{c.pushState(N,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(D)}s&&d&&d({action:f,location:S.location,delta:1})}function w(A,T){f="REPLACE";let R=Kh(S.location,A,T);h=m();let N=Zx(R,h),D=S.createHref(R);c.replaceState(N,"",D),s&&d&&d({action:f,location:S.location,delta:0})}function E(A){return VT(A)}let S={get action(){return f},get location(){return e(l,c)},listen(A){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(Qx,y),d=A,()=>{l.removeEventListener(Qx,y),d=null}},createHref(A){return n(l,A)},createURL:E,encodeLocation(A){let T=E(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:w,go(A){return c.go(A)}};return S}function VT(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),mt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Pl(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function H0(e,n,r="/"){return qT(e,n,r,!1)}function qT(e,n,r,i){let l=typeof n=="string"?oo(n):n,s=Pr(l.pathname||"/",r);if(s==null)return null;let c=F0(e);$T(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=nR(s);f=eR(c[d],h,i)}return f}function F0(e,n=[],r=[],i="",l=!1){let s=(c,f,d=l,h)=>{let m={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&d)return;mt(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let y=Or([i,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(mt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),F0(c.children,n,b,y,d)),!(c.path==null&&!c.index)&&n.push({path:y,score:WT(y,c.index),routesMeta:b})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let d of V0(c.path))s(c,f,!0,d)}),n}function V0(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,l=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return l?[s,""]:[s];let c=V0(i.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),l&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function $T(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:JT(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var GT=/^:[\w-]+$/,YT=3,KT=2,XT=1,QT=10,ZT=-2,Wx=e=>e==="*";function WT(e,n){let r=e.split("/"),i=r.length;return r.some(Wx)&&(i+=ZT),n&&(i+=KT),r.filter(l=>!Wx(l)).reduce((l,s)=>l+(GT.test(s)?YT:s===""?XT:QT),i)}function JT(e,n){return e.length===n.length&&e.slice(0,-1).every((i,l)=>i===n[l])?e[e.length-1]-n[n.length-1]:0}function eR(e,n,r=!1){let{routesMeta:i}=e,l={},s="/",c=[];for(let f=0;f<i.length;++f){let d=i[f],h=f===i.length-1,m=s==="/"?n:n.slice(s.length)||"/",y=Qu({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),b=d.route;if(!y&&h&&r&&!i[i.length-1].route.index&&(y=Qu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),c.push({params:l,pathname:Or([s,y.pathname]),pathnameBase:oR(Or([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=Or([s,y.pathnameBase]))}return c}function Qu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=tR(e.path,e.caseSensitive,e.end),l=n.match(r);if(!l)return null;let s=l[0],c=s.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:i.reduce((h,{paramName:m,isOptional:y},b)=>{if(m==="*"){let E=f[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const w=f[b];return y&&!w?h[m]=void 0:h[m]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function tR(e,n=!1,r=!0){Ln(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(i.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),i]}function nR(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ln(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Pr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function rR(e,n="/"){let{pathname:r,search:i="",hash:l=""}=typeof e=="string"?oo(e):e;return{pathname:r?r.startsWith("/")?r:aR(r,n):n,search:lR(i),hash:sR(l)}}function aR(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function dh(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. 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 iR(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Ip(e){let n=iR(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function Bp(e,n,r,i=!1){let l;typeof e=="string"?l=oo(e):(l={...e},mt(!l.pathname||!l.pathname.includes("?"),dh("?","pathname","search",l)),mt(!l.pathname||!l.pathname.includes("#"),dh("#","pathname","hash",l)),mt(!l.search||!l.search.includes("#"),dh("#","search","hash",l)));let s=e===""||l.pathname==="",c=s?"/":l.pathname,f;if(c==null)f=r;else{let y=n.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}f=y>=0?n[y]:"/"}let d=rR(l,f),h=c&&c!=="/"&&c.endsWith("/"),m=(s||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var Or=e=>e.join("/").replace(/\/\/+/g,"/"),oR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function uR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var q0=["POST","PUT","PATCH","DELETE"];new Set(q0);var cR=["GET",...q0];new Set(cR);var lo=v.createContext(null);lo.displayName="DataRouter";var pc=v.createContext(null);pc.displayName="DataRouterState";v.createContext(!1);var $0=v.createContext({isTransitioning:!1});$0.displayName="ViewTransition";var fR=v.createContext(new Map);fR.displayName="Fetchers";var dR=v.createContext(null);dR.displayName="Await";var Wn=v.createContext(null);Wn.displayName="Navigation";var Yl=v.createContext(null);Yl.displayName="Location";var zn=v.createContext({outlet:null,matches:[],isDataRoute:!1});zn.displayName="Route";var Up=v.createContext(null);Up.displayName="RouteError";function hR(e,{relative:n}={}){mt(so(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(Wn),{hash:l,pathname:s,search:c}=Xl(e,{relative:n}),f=s;return r!=="/"&&(f=s==="/"?r:Or([r,s])),i.createHref({pathname:f,search:c,hash:l})}function so(){return v.useContext(Yl)!=null}function In(){return mt(so(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Yl).location}var G0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Y0(e){v.useContext(Wn).static||v.useLayoutEffect(e)}function Kl(){let{isDataRoute:e}=v.useContext(zn);return e?RR():pR()}function pR(){mt(so(),"useNavigate() may be used only in the context of a <Router> component.");let e=v.useContext(lo),{basename:n,navigator:r}=v.useContext(Wn),{matches:i}=v.useContext(zn),{pathname:l}=In(),s=JSON.stringify(Ip(i)),c=v.useRef(!1);return Y0(()=>{c.current=!0}),v.useCallback((d,h={})=>{if(Ln(c.current,G0),!c.current)return;if(typeof d=="number"){r.go(d);return}let m=Bp(d,JSON.parse(s),l,h.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Or([n,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[n,r,s,l,e])}var mR=v.createContext(null);function gR(e){let n=v.useContext(zn).outlet;return n&&v.createElement(mR.Provider,{value:e},n)}function HU(){let{matches:e}=v.useContext(zn),n=e[e.length-1];return n?n.params:{}}function Xl(e,{relative:n}={}){let{matches:r}=v.useContext(zn),{pathname:i}=In(),l=JSON.stringify(Ip(r));return v.useMemo(()=>Bp(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function yR(e,n){return K0(e,n)}function K0(e,n,r,i,l){mt(so(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Wn),{matches:c}=v.useContext(zn),f=c[c.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let R=y&&y.path||"";X0(h,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) 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.
|
|
60
|
-
|
|
61
|
-
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=In(),w;if(n){let R=typeof n=="string"?oo(n):n;mt(m==="/"||R.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=b;let E=w.pathname||"/",S=E;if(m!=="/"){let R=m.replace(/^\//,"").split("/");S="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let A=H0(e,{pathname:S});Ln(y||A!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Ln(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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.`);let T=SR(A&&A.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Or([m,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:Or([m,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,r,i,l);return n&&T?v.createElement(Yl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},T):T}function vR(){let e=TR(),n=uR(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:s},"ErrorBoundary")," or"," ",v.createElement("code",{style:s},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),r?v.createElement("pre",{style:l},r):null,c)}var xR=v.createElement(vR,null),bR=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.unstable_onError?this.props.unstable_onError(e,n):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?v.createElement(zn.Provider,{value:this.props.routeContext},v.createElement(Up.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function wR({routeContext:e,match:n,children:r}){let i=v.useContext(lo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(zn.Provider,{value:e},r)}function SR(e,n=[],r=null,i=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r?.errors;if(c!=null){let h=s.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);mt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,d=-1;if(r)for(let h=0;h<s.length;h++){let m=s[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=h),m.route.id){let{loaderData:y,errors:b}=r,w=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,m,y)=>{let b,w=!1,E=null,S=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,E=m.route.errorElement||xR,f&&(d<0&&y===0?(X0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):d===y&&(w=!0,S=m.route.hydrateFallbackElement||null)));let A=n.concat(s.slice(0,y+1)),T=()=>{let R;return b?R=E:w?R=S:m.route.Component?R=v.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=h,v.createElement(wR,{match:m,routeContext:{outlet:h,matches:A,isDataRoute:r!=null},children:R})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?v.createElement(bR,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0},unstable_onError:i}):T()},null)}function Hp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ER(e){let n=v.useContext(lo);return mt(n,Hp(e)),n}function CR(e){let n=v.useContext(pc);return mt(n,Hp(e)),n}function kR(e){let n=v.useContext(zn);return mt(n,Hp(e)),n}function Fp(e){let n=kR(e),r=n.matches[n.matches.length-1];return mt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function AR(){return Fp("useRouteId")}function TR(){let e=v.useContext(Up),n=CR("useRouteError"),r=Fp("useRouteError");return e!==void 0?e:n.errors?.[r]}function RR(){let{router:e}=ER("useNavigate"),n=Fp("useNavigate"),r=v.useRef(!1);return Y0(()=>{r.current=!0}),v.useCallback(async(l,s={})=>{Ln(r.current,G0),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:n,...s}))},[e,n])}var Jx={};function X0(e,n,r){!n&&!Jx[e]&&(Jx[e]=!0,Ln(!1,r))}v.memo(NR);function NR({routes:e,future:n,state:r,unstable_onError:i}){return K0(e,void 0,r,i,n)}function _R({to:e,replace:n,state:r,relative:i}){mt(so(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=v.useContext(Wn);Ln(!l,"<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:s}=v.useContext(zn),{pathname:c}=In(),f=Kl(),d=Bp(e,Ip(s),c,i==="path"),h=JSON.stringify(d);return v.useEffect(()=>{f(JSON.parse(h),{replace:n,state:r,relative:i})},[f,h,i,n,r]),null}function Q0(e){return gR(e.context)}function Pe(e){mt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function MR({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:l,static:s=!1}){mt(!so(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=v.useMemo(()=>({basename:c,navigator:l,static:s,future:{}}),[c,l,s]);typeof r=="string"&&(r=oo(r));let{pathname:d="/",search:h="",hash:m="",state:y=null,key:b="default"}=r,w=v.useMemo(()=>{let E=Pr(d,c);return E==null?null:{location:{pathname:E,search:h,hash:m,state:y,key:b},navigationType:i}},[c,d,h,m,y,b,i]);return Ln(w!=null,`<Router basename="${c}"> is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:v.createElement(Wn.Provider,{value:f},v.createElement(Yl.Provider,{children:n,value:w}))}function jR({children:e,location:n}){return yR(Xh(e),n)}function Xh(e,n=[]){let r=[];return v.Children.forEach(e,(i,l)=>{if(!v.isValidElement(i))return;let s=[...n,l];if(i.type===v.Fragment){r.push.apply(r,Xh(i.props.children,s));return}mt(i.type===Pe,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),mt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Xh(i.props.children,s)),r.push(c)}),r}var Bu="get",Uu="application/x-www-form-urlencoded";function mc(e){return e!=null&&typeof e.tagName=="string"}function DR(e){return mc(e)&&e.tagName.toLowerCase()==="button"}function OR(e){return mc(e)&&e.tagName.toLowerCase()==="form"}function PR(e){return mc(e)&&e.tagName.toLowerCase()==="input"}function LR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zR(e,n){return e.button===0&&(!n||n==="_self")&&!LR(e)}function Qh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(l=>[r,l]):[[r,i]])},[]))}function IR(e,n){let r=Qh(e);return n&&n.forEach((i,l)=>{r.has(l)||n.getAll(l).forEach(s=>{r.append(l,s)})}),r}var Cu=null;function BR(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var UR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hh(e){return e!=null&&!UR.has(e)?(Ln(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Uu}"`),null):e}function HR(e,n){let r,i,l,s,c;if(OR(e)){let f=e.getAttribute("action");i=f?Pr(f,n):null,r=e.getAttribute("method")||Bu,l=hh(e.getAttribute("enctype"))||Uu,s=new FormData(e)}else if(DR(e)||PR(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?Pr(d,n):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Bu,l=hh(e.getAttribute("formenctype"))||hh(f.getAttribute("enctype"))||Uu,s=new FormData(f,e),!BR()){let{name:h,type:m,value:y}=e;if(m==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,y)}}else{if(mc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Bu,i=null,l=Uu,c=e}return s&&l==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:l,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function FR(e,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:n&&Pr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function VR(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function qR(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function $R(e,n,r){let i=await Promise.all(e.map(async l=>{let s=n.routes[l.route.id];if(s){let c=await VR(s,r);return c.links?c.links():[]}return[]}));return XR(i.flat(1).filter(qR).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function eb(e,n,r,i,l,s){let c=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>r[h].pathname!==d.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==d.params["*"];return s==="assets"?n.filter((d,h)=>c(d,h)||f(d,h)):s==="data"?n.filter((d,h)=>{let m=i.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function GR(e,n,{includeHydrateFallback:r}={}){return YR(e.map(i=>{let l=n.routes[i.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function YR(e){return[...new Set(e)]}function KR(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function XR(e,n){let r=new Set;return new Set(n),e.reduce((i,l)=>{let s=JSON.stringify(KR(l));return r.has(s)||(r.add(s),i.push({key:s,link:l})),i},[])}function Z0(){let e=v.useContext(lo);return Vp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function QR(){let e=v.useContext(pc);return Vp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var qp=v.createContext(void 0);qp.displayName="FrameworkContext";function W0(){let e=v.useContext(qp);return Vp(e,"You must render this element inside a <HydratedRouter> element"),e}function ZR(e,n){let r=v.useContext(qp),[i,l]=v.useState(!1),[s,c]=v.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:y}=n,b=v.useRef(null);v.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=T=>{T.forEach(R=>{c(R.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[i]);let w=()=>{l(!0)},E=()=>{l(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:xl(f,w),onBlur:xl(d,E),onMouseEnter:xl(h,w),onMouseLeave:xl(m,E),onTouchStart:xl(y,w)}]:[!1,b,{}]}function xl(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function WR({page:e,...n}){let{router:r}=Z0(),i=v.useMemo(()=>H0(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?v.createElement(eN,{page:e,matches:i,...n}):null}function JR(e){let{manifest:n,routeModules:r}=W0(),[i,l]=v.useState([]);return v.useEffect(()=>{let s=!1;return $R(e,n,r).then(c=>{s||l(c)}),()=>{s=!0}},[e,n,r]),i}function eN({page:e,matches:n,...r}){let i=In(),{manifest:l,routeModules:s}=W0(),{basename:c}=Z0(),{loaderData:f,matches:d}=QR(),h=v.useMemo(()=>eb(e,n,d,l,i,"data"),[e,n,d,l,i]),m=v.useMemo(()=>eb(e,n,d,l,i,"assets"),[e,n,d,l,i]),y=v.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(n.forEach(T=>{let R=l.routes[T.route.id];!R||!R.hasLoader||(!h.some(N=>N.route.id===T.route.id)&&T.route.id in f&&s[T.route.id]?.shouldRevalidate||R.hasClientLoader?S=!0:E.add(T.route.id))}),E.size===0)return[];let A=FR(e,c,"data");return S&&E.size>0&&A.searchParams.set("_routes",n.filter(T=>E.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[c,f,i,l,h,n,e,s]),b=v.useMemo(()=>GR(m,l),[m,l]),w=JR(m);return v.createElement(v.Fragment,null,y.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),w.map(({key:E,link:S})=>v.createElement("link",{key:E,nonce:r.nonce,...S})))}function tN(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var J0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{J0&&(window.__reactRouterVersion="7.8.2")}catch{}function nN({basename:e,children:n,window:r}){let i=v.useRef();i.current==null&&(i.current=UT({window:r,v5Compat:!0}));let l=i.current,[s,c]=v.useState({action:l.action,location:l.location}),f=v.useCallback(d=>{v.startTransition(()=>c(d))},[c]);return v.useLayoutEffect(()=>l.listen(f),[l,f]),v.createElement(MR,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:l})}var ew=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dr=v.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:l,reloadDocument:s,replace:c,state:f,target:d,to:h,preventScrollReset:m,viewTransition:y,...b},w){let{basename:E}=v.useContext(Wn),S=typeof h=="string"&&ew.test(h),A,T=!1;if(typeof h=="string"&&S&&(A=h,J0))try{let J=new URL(window.location.href),z=h.startsWith("//")?new URL(J.protocol+h):new URL(h),ee=Pr(z.pathname,E);z.origin===J.origin&&ee!=null?h=ee+z.search+z.hash:T=!0}catch{Ln(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=hR(h,{relative:l}),[N,D,L]=ZR(i,b),j=oN(h,{replace:c,state:f,target:d,preventScrollReset:m,relative:l,viewTransition:y});function F(J){n&&n(J),J.defaultPrevented||j(J)}let q=v.createElement("a",{...b,...L,href:A||R,onClick:T||s?n:F,ref:tN(w,D),target:d,"data-discover":!S&&r==="render"?"true":void 0});return N&&!S?v.createElement(v.Fragment,null,q,v.createElement(WR,{page:R})):q});Dr.displayName="Link";var rN=v.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:l=!1,style:s,to:c,viewTransition:f,children:d,...h},m){let y=Xl(c,{relative:h.relative}),b=In(),w=v.useContext(pc),{navigator:E,basename:S}=v.useContext(Wn),A=w!=null&&fN(y)&&f===!0,T=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,R=b.pathname,N=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(R=R.toLowerCase(),N=N?N.toLowerCase():null,T=T.toLowerCase()),N&&S&&(N=Pr(N,S)||N);const D=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let L=R===T||!l&&R.startsWith(T)&&R.charAt(D)==="/",j=N!=null&&(N===T||!l&&N.startsWith(T)&&N.charAt(T.length)==="/"),F={isActive:L,isPending:j,isTransitioning:A},q=L?n:void 0,J;typeof i=="function"?J=i(F):J=[i,L?"active":null,j?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let z=typeof s=="function"?s(F):s;return v.createElement(Dr,{...h,"aria-current":q,className:J,ref:m,style:z,to:c,viewTransition:f},typeof d=="function"?d(F):d)});rN.displayName="NavLink";var aN=v.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:l,state:s,method:c=Bu,action:f,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:y,...b},w)=>{let E=uN(),S=cN(f,{relative:h}),A=c.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&ew.test(f),R=N=>{if(d&&d(N),N.defaultPrevented)return;N.preventDefault();let D=N.nativeEvent.submitter,L=D?.getAttribute("formmethod")||c;E(D||N.currentTarget,{fetcherKey:n,method:L,navigate:r,replace:l,state:s,relative:h,preventScrollReset:m,viewTransition:y})};return v.createElement("form",{ref:w,method:A,action:S,onSubmit:i?d:R,...b,"data-discover":!T&&e==="render"?"true":void 0})});aN.displayName="Form";function iN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tw(e){let n=v.useContext(lo);return mt(n,iN(e)),n}function oN(e,{target:n,replace:r,state:i,preventScrollReset:l,relative:s,viewTransition:c}={}){let f=Kl(),d=In(),h=Xl(e,{relative:s});return v.useCallback(m=>{if(zR(m,n)){m.preventDefault();let y=r!==void 0?r:Pl(d)===Pl(h);f(e,{replace:y,state:i,preventScrollReset:l,relative:s,viewTransition:c})}},[d,f,h,r,i,n,e,l,s,c])}function FU(e){Ln(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=v.useRef(Qh(e)),r=v.useRef(!1),i=In(),l=v.useMemo(()=>IR(i.search,r.current?null:n.current),[i.search]),s=Kl(),c=v.useCallback((f,d)=>{const h=Qh(typeof f=="function"?f(new URLSearchParams(l)):f);r.current=!0,s("?"+h,d)},[s,l]);return[l,c]}var lN=0,sN=()=>`__${String(++lN)}__`;function uN(){let{router:e}=tw("useSubmit"),{basename:n}=v.useContext(Wn),r=AR();return v.useCallback(async(i,l={})=>{let{action:s,method:c,encType:f,formData:d,body:h}=HR(i,n);if(l.navigate===!1){let m=l.fetcherKey||sN();await e.fetch(m,r,l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,n,r])}function cN(e,{relative:n}={}){let{basename:r}=v.useContext(Wn),i=v.useContext(zn);mt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),s={...Xl(e||".",{relative:n})},c=In();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Or([r,s.pathname])),Pl(s)}function fN(e,{relative:n}={}){let r=v.useContext($0);mt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=tw("useViewTransitionState"),l=Xl(e,{relative:n});if(!r.isTransitioning)return!1;let s=Pr(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=Pr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Qu(l.pathname,c)!=null||Qu(l.pathname,s)!=null}var uo=U0();const dN=hc(uo);var gc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yc=typeof window>"u"||"Deno"in globalThis;function Kn(){}function hN(e,n){return typeof e=="function"?e(n):e}function pN(e){return typeof e=="number"&&e>=0&&e!==1/0}function mN(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Zh(e,n){return typeof e=="function"?e(n):e}function gN(e,n){return typeof e=="function"?e(n):e}function tb(e,n){const{type:r="all",exact:i,fetchStatus:l,predicate:s,queryKey:c,stale:f}=e;if(c){if(i){if(n.queryHash!==$p(c,n.options))return!1}else if(!zl(n.queryKey,c))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||l&&l!==n.state.fetchStatus||s&&!s(n))}function nb(e,n){const{exact:r,status:i,predicate:l,mutationKey:s}=e;if(s){if(!n.options.mutationKey)return!1;if(r){if(Ll(n.options.mutationKey)!==Ll(s))return!1}else if(!zl(n.options.mutationKey,s))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function $p(e,n){return(n?.queryKeyHashFn||Ll)(e)}function Ll(e){return JSON.stringify(e,(n,r)=>Wh(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function zl(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>zl(e[r],n[r])):!1}function nw(e,n){if(e===n)return e;const r=rb(e)&&rb(n);if(r||Wh(e)&&Wh(n)){const i=r?e:Object.keys(e),l=i.length,s=r?n:Object.keys(n),c=s.length,f=r?[]:{},d=new Set(i);let h=0;for(let m=0;m<c;m++){const y=r?m:s[m];(!r&&d.has(y)||r)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,h++):(f[y]=nw(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&h++)}return l===c&&h===l?e:f}return n}function rb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wh(e){if(!ab(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!ab(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ab(e){return Object.prototype.toString.call(e)==="[object Object]"}function yN(e){return new Promise(n=>{setTimeout(n,e)})}function vN(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?nw(e,n):n}function xN(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function bN(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Gp=Symbol();function rw(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Gp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var wN=class extends gc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!yc&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},aw=new wN,SN=class extends gc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!yc&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},Zu=new SN;function EN(){let e,n;const r=new Promise((l,s)=>{e=l,n=s});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),n(l)},r}function CN(e){return Math.min(1e3*2**e,3e4)}function iw(e){return(e??"online")==="online"?Zu.isOnline():!0}var ow=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function lw(e){let n=!1,r=0,i;const l=EN(),s=()=>l.status!=="pending",c=S=>{s()||(b(new ow(S)),e.abort?.())},f=()=>{n=!0},d=()=>{n=!1},h=()=>aw.isFocused()&&(e.networkMode==="always"||Zu.isOnline())&&e.canRun(),m=()=>iw(e.networkMode)&&e.canRun(),y=S=>{s()||(i?.(),l.resolve(S))},b=S=>{s()||(i?.(),l.reject(S))},w=()=>new Promise(S=>{i=A=>{(s()||h())&&S(A)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),E=()=>{if(s())return;let S;const A=r===0?e.initialPromise:void 0;try{S=A??e.fn()}catch(T){S=Promise.reject(T)}Promise.resolve(S).then(y).catch(T=>{if(s())return;const R=e.retry??(yc?0:3),N=e.retryDelay??CN,D=typeof N=="function"?N(r,T):N,L=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,T);if(n||!L){b(T);return}r++,e.onFail?.(r,T),yN(D).then(()=>h()?void 0:w()).then(()=>{n?b(T):E()})})};return{promise:l,status:()=>l.status,cancel:c,continue:()=>(i?.(),l),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?E():w().then(E),l)}}var kN=e=>setTimeout(e,0);function AN(){let e=[],n=0,r=f=>{f()},i=f=>{f()},l=kN;const s=f=>{n?e.push(f):l(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&l(()=>{i(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;n++;try{d=f()}finally{n--,n||c()}return d},batchCalls:f=>(...d)=>{s(()=>{f(...d)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{l=f}}}var Zt=AN(),sw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pN(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(yc?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},TN=class extends sw{#e;#t;#n;#a;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=NN(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=vN(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(Kn).catch(Kn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>gN(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Zh(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!mN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},l=()=>{const f=rw(this.options,n),h=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(m),m})();return this.#l=!1,this.options.persister?this.options.persister(f,h,this):f(h)},c=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(f),f})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=lw({initialPromise:n?.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onFail:(f,d)=>{this.#i({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof ow){if(f.silent)return this.#r.promise;if(f.revert){if(this.setState({...this.#t,fetchStatus:"idle"}),this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#i(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...RN(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function RN(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iw(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function NN(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var _N=class extends gc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const i=n.queryKey,l=n.queryHash??$p(i,n);let s=this.get(l);return s||(s=new TN({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Zt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>tb(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>tb(e,r)):n}notify(e){Zt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},MN=class extends sw{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||jN(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#a({type:"continue"})};this.#n=lw({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,s)=>{this.#a({type:"failed",failureCount:l,error:s})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#n.canStart();try{if(r)n();else{this.#a({type:"pending",variables:e,isPaused:i}),await this.#t.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#a({type:"pending",context:s,variables:e,isPaused:i})}const l=await this.#n.start();return await this.#t.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#t.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#a({type:"success",data:l}),l}catch(l){try{throw await this.#t.config.onError?.(l,e,this.state.context,this),await this.options.onError?.(l,e,this.state.context),await this.#t.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,e,this.state.context),l}finally{this.#a({type:"error",error:l})}}finally{this.#t.runNext(this)}}#a(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Zt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function jN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DN=class extends gc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const i=new MN({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#e.add(e);const n=ku(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=ku(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=ku(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=ku(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>nb(n,r))}findAll(e={}){return this.getAll().filter(n=>nb(e,n))}notify(e){Zt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Zt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Kn))))}};function ku(e){return e.options.scope?.id}function ib(e){return{onFetch:(n,r)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,s=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let m=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(n.signal.aborted?m=!0:n.signal.addEventListener("abort",()=>{m=!0}),n.signal)})},b=rw(n.options,n.fetchOptions),w=async(E,S,A)=>{if(m)return Promise.reject();if(S==null&&E.pages.length)return Promise.resolve(E);const R=(()=>{const j={client:n.client,queryKey:n.queryKey,pageParam:S,direction:A?"backward":"forward",meta:n.options.meta};return y(j),j})(),N=await b(R),{maxPages:D}=n.options,L=A?bN:xN;return{pages:L(E.pages,N,D),pageParams:L(E.pageParams,S,D)}};if(l&&s.length){const E=l==="backward",S=E?ON:ob,A={pages:s,pageParams:c},T=S(i,A);f=await w(A,T,E)}else{const E=e??s.length;do{const S=d===0?c[0]??i.initialPageParam:ob(i,f);if(d>0&&S==null)break;f=await w(f,S),d++}while(d<E)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=h}}}function ob(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function ON(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var PN=class{#e;#t;#n;#a;#r;#o;#l;#i;constructor(e={}){this.#e=e.queryCache||new _N,this.#t=e.mutationCache||new DN,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=aw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Zu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Zh(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,c=hN(n,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return Zt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Zt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Zt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=Zt.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(Kn).catch(Kn)}invalidateQueries(e,n={}){return Zt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=Zt.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let s=l.fetch(void 0,r);return r.throwOnError||(s=s.catch(Kn)),l.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(Kn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Zh(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kn).catch(Kn)}fetchInfiniteQuery(e){return e.behavior=ib(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kn).catch(Kn)}ensureInfiniteQueryData(e){return e.behavior=ib(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#a.set(Ll(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(i=>{zl(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(Ll(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(i=>{zl(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=$p(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Gp&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},LN=v.createContext(void 0),zN=({client:e,children:n})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(LN.Provider,{value:e,children:n}));const IN={theme:"system",setTheme:()=>null},uw=v.createContext(IN);function BN({children:e,defaultTheme:n="system",storageKey:r="ui-theme",...i}){const[l,s]=v.useState(n);v.useEffect(()=>{const f=localStorage?.getItem(r);f&&s(f)},[r]),v.useEffect(()=>{const f=window.document.documentElement;if(f.classList.remove("light","dark","coconut"),l==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(d);return}f.classList.add(l)},[l]);const c={theme:l,setTheme:f=>{localStorage?.setItem(r,f),s(f)}};return g.jsx(uw.Provider,{...i,value:c,children:e})}const VU=()=>{const e=v.useContext(uw);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},Mt="",qU="https://app.coconut.dev";async function Fi(e,n={}){const r=`${Mt}${e}`,i={headers:{"Content-Type":"application/json",...n.headers},...n},l=await fetch(r,i);if(!l.ok)throw new Error(`API request failed: ${l.status} ${l.statusText}`);return l.json()}const $U=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`,cw=v.createContext(void 0);function UN({children:e}){const[n,r]=v.useState({user:null,isAuthenticated:!1,isLoading:!0,authEnabled:!1}),i=v.useCallback(async()=>{try{const d=await Fi("/api/v1/auth/status");if(!d.success){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}if(!(d.data?.enabled||!1)){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}try{const m=await Fi("/api/v1/auth/me");m.success&&m.data?.user?r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0}):r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}catch{r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}}catch(d){console.error("Failed to check auth status:",d),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1})}},[]);v.useEffect(()=>{i()},[i]);const l=v.useCallback(async(d,h)=>{const m=await Fi("/api/v1/auth/login",{method:"POST",body:JSON.stringify({email:d,password:h})});if(!m.success)throw new Error(m.error||"Login failed");r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),s=v.useCallback(async(d,h,m)=>{const y=await Fi("/api/v1/auth/register",{method:"POST",body:JSON.stringify({email:d,password:h,name:m})});if(!y.success)throw new Error(y.error||"Registration failed");r({user:y.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),c=v.useCallback(async()=>{await Fi("/api/v1/auth/logout",{method:"POST"}),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})},[]),f=v.useCallback(async()=>{try{const d=await Fi("/api/v1/auth/me");d.success&&d.data?.user&&r(h=>({...h,user:d.data.user,isAuthenticated:!0}))}catch(d){console.error("Failed to refresh user:",d)}},[]);return g.jsx(cw.Provider,{value:{...n,login:l,register:s,logout:c,refreshUser:f,checkAuthStatus:i},children:e})}function fw(){const e=v.useContext(cw);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const dw=v.createContext(null);function HN(){const e=v.useContext(dw);if(!e)throw new Error("useSidebarBadges must be used within SidebarBadgeProvider");return e}function FN({children:e,pollInterval:n=1e4}){const[r,i]=v.useState({codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0}),[l,s]=v.useState(!0),c=v.useCallback(async()=>{try{const[d,h,m]=await Promise.allSettled([fetch(`${Mt}/api/v1/terminal/sessions`).then(b=>b.json()),fetch(`${Mt}/api/v1/git/status`).then(b=>b.json()),fetch(`${Mt}/api/v1/jobs`).then(b=>b.json())]),y={codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0};if(d.status==="fulfilled"&&d.value?.sessions){const b=d.value.sessions;y.codeSessions=b.filter(w=>w.proposalId?.startsWith("cp-")||w.proposalId?.startsWith("sk-")).length,y.terminalSessions=b.filter(w=>!w.proposalId?.startsWith("cp-")&&!w.proposalId?.startsWith("sk-")).length}if(h.status==="fulfilled"&&h.value?.success&&h.value?.data?.changes&&(y.gitChanges=h.value.data.changes.length),m.status==="fulfilled"&&m.value?.success&&m.value?.data){const b=Array.isArray(m.value.data)?m.value.data:[],w=b.filter(E=>{if(!E.runs||!Array.isArray(E.runs)||E.runs.length===0)return!1;const S=E.runs[0],A=S&&S.status==="running";return A&&console.log("[SidebarBadge] Running job detected:",{name:E.name,status:S.status,startedAt:S.startedAt,finishedAt:S.finishedAt}),A});y.runningScheduledJobs=w.length,(w.length>0||b.length>0)&&console.log("[SidebarBadge] Jobs summary:",{total:b.length,running:w.length,runningJobNames:w.map(E=>E.name)})}i(y)}catch(d){console.error("Failed to fetch sidebar badges:",d)}finally{s(!1)}},[]);v.useEffect(()=>{c()},[c]),v.useEffect(()=>{const d=setInterval(c,n);return()=>clearInterval(d)},[c,n]),v.useEffect(()=>{const d=()=>{console.log("[SidebarBadge] Tab focused, refreshing badges..."),c()};return window.addEventListener("focus",d),()=>window.removeEventListener("focus",d)},[c]);const f={badges:r,loading:l,refresh:c};return g.jsx(dw.Provider,{value:f,children:e})}function VN({children:e}){const[n]=v.useState(()=>new PN({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return g.jsx(zN,{client:n,children:g.jsx(BN,{defaultTheme:"system",storageKey:"coconut-ui-theme",children:g.jsx(UN,{children:g.jsx(FN,{children:e})})})})}const qN=1,$N=1e6;let ph=0;function GN(){return ph=(ph+1)%Number.MAX_SAFE_INTEGER,ph.toString()}const mh=new Map,lb=e=>{if(mh.has(e))return;const n=setTimeout(()=>{mh.delete(e),_l({type:"REMOVE_TOAST",toastId:e})},$N);mh.set(e,n)},YN=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,qN)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=n;return r?lb(r):e.toasts.forEach(i=>{lb(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},Hu=[];let Fu={toasts:[]};function _l(e){Fu=YN(Fu,e),Hu.forEach(n=>{n(Fu)})}function Jh({...e}){const n=GN(),r=l=>_l({type:"UPDATE_TOAST",toast:{...l,id:n}}),i=()=>_l({type:"DISMISS_TOAST",toastId:n});return _l({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:l=>{l||i()}}}),{id:n,dismiss:i,update:r}}function KN(){const[e,n]=v.useState(Fu);return v.useEffect(()=>(Hu.push(n),()=>{const r=Hu.indexOf(n);r>-1&&Hu.splice(r,1)}),[e]),{...e,toast:Jh,dismiss:r=>_l({type:"DISMISS_TOAST",toastId:r})}}function me(e,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e?.(l),r===!1||!l.defaultPrevented)return n?.(l)}}function sb(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function vc(...e){return n=>{let r=!1;const i=e.map(l=>{const s=sb(l,n);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let l=0;l<i.length;l++){const s=i[l];typeof s=="function"?s():sb(e[l],null)}}}}function Be(...e){return v.useCallback(vc(...e),e)}function XN(e,n){const r=v.createContext(n),i=s=>{const{children:c,...f}=s,d=v.useMemo(()=>f,Object.values(f));return g.jsx(r.Provider,{value:d,children:c})};i.displayName=e+"Provider";function l(s){const c=v.useContext(r);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,l]}function Bn(e,n=[]){let r=[];function i(s,c){const f=v.createContext(c),d=r.length;r=[...r,c];const h=y=>{const{scope:b,children:w,...E}=y,S=b?.[e]?.[d]||f,A=v.useMemo(()=>E,Object.values(E));return g.jsx(S.Provider,{value:A,children:w})};h.displayName=s+"Provider";function m(y,b){const w=b?.[e]?.[d]||f,E=v.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${s}\``)}return[h,m]}const l=()=>{const s=r.map(c=>v.createContext(c));return function(f){const d=f?.[e]||s;return v.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return l.scopeName=e,[i,QN(l,...n)]}function QN(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(s){const c=i.reduce((f,{useScope:d,scopeName:h})=>{const y=d(s)[`__scope${h}`];return{...f,...y}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function Ya(e){const n=ZN(e),r=v.forwardRef((i,l)=>{const{children:s,...c}=i,f=v.Children.toArray(s),d=f.find(WN);if(d){const h=d.props.children,m=f.map(y=>y===d?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:y);return g.jsx(n,{...c,ref:l,children:v.isValidElement(h)?v.cloneElement(h,void 0,m):null})}return g.jsx(n,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}var co=Ya("Slot");function ZN(e){const n=v.forwardRef((r,i)=>{const{children:l,...s}=r;if(v.isValidElement(l)){const c=e_(l),f=JN(s,l.props);return l.type!==v.Fragment&&(f.ref=i?vc(i,c):c),v.cloneElement(l,f)}return v.Children.count(l)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var hw=Symbol("radix.slottable");function pw(e){const n=({children:r})=>g.jsx(g.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=hw,n}function WN(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hw}function JN(e,n){const r={...n};for(const i in n){const l=e[i],s=n[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function e_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function xc(e){const n=e+"CollectionProvider",[r,i]=Bn(n),[l,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:A,children:T}=S,R=pa.useRef(null),N=pa.useRef(new Map).current;return g.jsx(l,{scope:A,itemMap:N,collectionRef:R,children:T})};c.displayName=n;const f=e+"CollectionSlot",d=Ya(f),h=pa.forwardRef((S,A)=>{const{scope:T,children:R}=S,N=s(f,T),D=Be(A,N.collectionRef);return g.jsx(d,{ref:D,children:R})});h.displayName=f;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Ya(m),w=pa.forwardRef((S,A)=>{const{scope:T,children:R,...N}=S,D=pa.useRef(null),L=Be(A,D),j=s(m,T);return pa.useEffect(()=>(j.itemMap.set(D,{ref:D,...N}),()=>void j.itemMap.delete(D))),g.jsx(b,{[y]:"",ref:L,children:R})});w.displayName=m;function E(S){const A=s(e+"CollectionConsumer",S);return pa.useCallback(()=>{const R=A.collectionRef.current;if(!R)return[];const N=Array.from(R.querySelectorAll(`[${y}]`));return Array.from(A.itemMap.values()).sort((j,F)=>N.indexOf(j.ref.current)-N.indexOf(F.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:c,Slot:h,ItemSlot:w},E,i]}var t_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=t_.reduce((e,n)=>{const r=Ya(`Primitive.${n}`),i=v.forwardRef((l,s)=>{const{asChild:c,...f}=l,d=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...f,ref:s})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function Yp(e,n){e&&uo.flushSync(()=>e.dispatchEvent(n))}function Et(e){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useMemo(()=>(...r)=>n.current?.(...r),[])}function n_(e,n=globalThis?.document){const r=Et(e);v.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var r_="DismissableLayer",ep="dismissableLayer.update",a_="dismissableLayer.pointerDownOutside",i_="dismissableLayer.focusOutside",ub,mw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fo=v.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...d}=e,h=v.useContext(mw),[m,y]=v.useState(null),b=m?.ownerDocument??globalThis?.document,[,w]=v.useState({}),E=Be(n,F=>y(F)),S=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(A),R=m?S.indexOf(m):-1,N=h.layersWithOutsidePointerEventsDisabled.size>0,D=R>=T,L=l_(F=>{const q=F.target,J=[...h.branches].some(z=>z.contains(q));!D||J||(l?.(F),c?.(F),F.defaultPrevented||f?.())},b),j=s_(F=>{const q=F.target;[...h.branches].some(z=>z.contains(q))||(s?.(F),c?.(F),F.defaultPrevented||f?.())},b);return n_(F=>{R===h.layers.size-1&&(i?.(F),!F.defaultPrevented&&f&&(F.preventDefault(),f()))},b),v.useEffect(()=>{if(m)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(ub=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),cb(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=ub)}},[m,b,r,h]),v.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),cb())},[m,h]),v.useEffect(()=>{const F=()=>w({});return document.addEventListener(ep,F),()=>document.removeEventListener(ep,F)},[]),g.jsx(Me.div,{...d,ref:E,style:{pointerEvents:N?D?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,j.onFocusCapture),onBlurCapture:me(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,L.onPointerDownCapture)})});fo.displayName=r_;var o_="DismissableLayerBranch",gw=v.forwardRef((e,n)=>{const r=v.useContext(mw),i=v.useRef(null),l=Be(n,i);return v.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),g.jsx(Me.div,{...e,ref:l})});gw.displayName=o_;function l_(e,n=globalThis?.document){const r=Et(e),i=v.useRef(!1),l=v.useRef(()=>{});return v.useEffect(()=>{const s=f=>{if(f.target&&!i.current){let d=function(){yw(a_,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=d,n.addEventListener("click",l.current,{once:!0})):d()}else n.removeEventListener("click",l.current);i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",s),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function s_(e,n=globalThis?.document){const r=Et(e),i=v.useRef(!1);return v.useEffect(()=>{const l=s=>{s.target&&!i.current&&yw(i_,r,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function cb(){const e=new CustomEvent(ep);document.dispatchEvent(e)}function yw(e,n,r,{discrete:i}){const l=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?Yp(l,s):l.dispatchEvent(s)}var u_=fo,c_=gw,zt=globalThis?.document?v.useLayoutEffect:()=>{},f_="Portal",Ql=v.forwardRef((e,n)=>{const{container:r,...i}=e,[l,s]=v.useState(!1);zt(()=>s(!0),[]);const c=r||l&&globalThis?.document?.body;return c?dN.createPortal(g.jsx(Me.div,{...i,ref:n}),c):null});Ql.displayName=f_;function d_(e,n){return v.useReducer((r,i)=>n[r][i]??r,e)}var Jt=e=>{const{present:n,children:r}=e,i=h_(n),l=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),s=Be(i.ref,p_(l));return typeof r=="function"||i.isPresent?v.cloneElement(l,{ref:s}):null};Jt.displayName="Presence";function h_(e){const[n,r]=v.useState(),i=v.useRef(null),l=v.useRef(e),s=v.useRef("none"),c=e?"mounted":"unmounted",[f,d]=d_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=Au(i.current);s.current=f==="mounted"?h:"none"},[f]),zt(()=>{const h=i.current,m=l.current;if(m!==e){const b=s.current,w=Au(h);e?d("MOUNT"):w==="none"||h?.display==="none"?d("UNMOUNT"):d(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,d]),zt(()=>{if(n){let h;const m=n.ownerDocument.defaultView??window,y=w=>{const S=Au(i.current).includes(CSS.escape(w.animationName));if(w.target===n&&S&&(d("ANIMATION_END"),!l.current)){const A=n.style.animationFillMode;n.style.animationFillMode="forwards",h=m.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=A)})}},b=w=>{w.target===n&&(s.current=Au(i.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{m.clearTimeout(h),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Au(e){return e?.animationName||"none"}function p_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var m_=B0[" useInsertionEffect ".trim().toString()]||zt;function va({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[l,s,c]=g_({defaultProp:n,onChange:r}),f=e!==void 0,d=f?e:l;{const m=v.useRef(e!==void 0);v.useEffect(()=>{const y=m.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,i])}const h=v.useCallback(m=>{if(f){const y=y_(m)?m(e):m;y!==e&&c.current?.(y)}else s(m)},[f,e,s,c]);return[d,h]}function g_({defaultProp:e,onChange:n}){const[r,i]=v.useState(e),l=v.useRef(r),s=v.useRef(n);return m_(()=>{s.current=n},[n]),v.useEffect(()=>{l.current!==r&&(s.current?.(r),l.current=r)},[r,l]),[r,i,s]}function y_(e){return typeof e=="function"}var vw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),v_="VisuallyHidden",bc=v.forwardRef((e,n)=>g.jsx(Me.span,{...e,ref:n,style:{...vw,...e.style}}));bc.displayName=v_;var x_=bc,Kp="ToastProvider",[Xp,b_,w_]=xc("Toast"),[xw,GU]=Bn("Toast",[w_]),[S_,wc]=xw(Kp),bw=e=>{const{__scopeToast:n,label:r="Notification",duration:i=5e3,swipeDirection:l="right",swipeThreshold:s=50,children:c}=e,[f,d]=v.useState(null),[h,m]=v.useState(0),y=v.useRef(!1),b=v.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Kp}\`. Expected non-empty \`string\`.`),g.jsx(Xp.Provider,{scope:n,children:g.jsx(S_,{scope:n,label:r,duration:i,swipeDirection:l,swipeThreshold:s,toastCount:h,viewport:f,onViewportChange:d,onToastAdd:v.useCallback(()=>m(w=>w+1),[]),onToastRemove:v.useCallback(()=>m(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};bw.displayName=Kp;var ww="ToastViewport",E_=["F8"],tp="toast.viewportPause",np="toast.viewportResume",Sw=v.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:i=E_,label:l="Notifications ({hotkey})",...s}=e,c=wc(ww,r),f=b_(r),d=v.useRef(null),h=v.useRef(null),m=v.useRef(null),y=v.useRef(null),b=Be(n,y,c.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=c.toastCount>0;v.useEffect(()=>{const A=T=>{i.length!==0&&i.every(N=>T[N]||T.code===N)&&y.current?.focus()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[i]),v.useEffect(()=>{const A=d.current,T=y.current;if(E&&A&&T){const R=()=>{if(!c.isClosePausedRef.current){const j=new CustomEvent(tp);T.dispatchEvent(j),c.isClosePausedRef.current=!0}},N=()=>{if(c.isClosePausedRef.current){const j=new CustomEvent(np);T.dispatchEvent(j),c.isClosePausedRef.current=!1}},D=j=>{!A.contains(j.relatedTarget)&&N()},L=()=>{A.contains(document.activeElement)||N()};return A.addEventListener("focusin",R),A.addEventListener("focusout",D),A.addEventListener("pointermove",R),A.addEventListener("pointerleave",L),window.addEventListener("blur",R),window.addEventListener("focus",N),()=>{A.removeEventListener("focusin",R),A.removeEventListener("focusout",D),A.removeEventListener("pointermove",R),A.removeEventListener("pointerleave",L),window.removeEventListener("blur",R),window.removeEventListener("focus",N)}}},[E,c.isClosePausedRef]);const S=v.useCallback(({tabbingDirection:A})=>{const R=f().map(N=>{const D=N.ref.current,L=[D,...L_(D)];return A==="forwards"?L:L.reverse()});return(A==="forwards"?R.reverse():R).flat()},[f]);return v.useEffect(()=>{const A=y.current;if(A){const T=R=>{const N=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!N){const L=document.activeElement,j=R.shiftKey;if(R.target===A&&j){h.current?.focus();return}const J=S({tabbingDirection:j?"backwards":"forwards"}),z=J.findIndex(ee=>ee===L);gh(J.slice(z+1))?R.preventDefault():j?h.current?.focus():m.current?.focus()}};return A.addEventListener("keydown",T),()=>A.removeEventListener("keydown",T)}},[f,S]),g.jsxs(c_,{ref:d,role:"region","aria-label":l.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&g.jsx(rp,{ref:h,onFocusFromOutsideViewport:()=>{const A=S({tabbingDirection:"forwards"});gh(A)}}),g.jsx(Xp.Slot,{scope:r,children:g.jsx(Me.ol,{tabIndex:-1,...s,ref:b})}),E&&g.jsx(rp,{ref:m,onFocusFromOutsideViewport:()=>{const A=S({tabbingDirection:"backwards"});gh(A)}})]})});Sw.displayName=ww;var Ew="ToastFocusProxy",rp=v.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...l}=e,s=wc(Ew,r);return g.jsx(bc,{tabIndex:0,...l,ref:n,style:{position:"fixed"},onFocus:c=>{const f=c.relatedTarget;!s.viewport?.contains(f)&&i()}})});rp.displayName=Ew;var Zl="Toast",C_="toast.swipeStart",k_="toast.swipeMove",A_="toast.swipeCancel",T_="toast.swipeEnd",Cw=v.forwardRef((e,n)=>{const{forceMount:r,open:i,defaultOpen:l,onOpenChange:s,...c}=e,[f,d]=va({prop:i,defaultProp:l??!0,onChange:s,caller:Zl});return g.jsx(Jt,{present:r||f,children:g.jsx(__,{open:f,...c,ref:n,onClose:()=>d(!1),onPause:Et(e.onPause),onResume:Et(e.onResume),onSwipeStart:me(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(e.onSwipeMove,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:me(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(e.onSwipeEnd,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),d(!1)})})})});Cw.displayName=Zl;var[R_,N_]=xw(Zl,{onClose(){}}),__=v.forwardRef((e,n)=>{const{__scopeToast:r,type:i="foreground",duration:l,open:s,onClose:c,onEscapeKeyDown:f,onPause:d,onResume:h,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...E}=e,S=wc(Zl,r),[A,T]=v.useState(null),R=Be(n,U=>T(U)),N=v.useRef(null),D=v.useRef(null),L=l||S.duration,j=v.useRef(0),F=v.useRef(L),q=v.useRef(0),{onToastAdd:J,onToastRemove:z}=S,ee=Et(()=>{A?.contains(document.activeElement)&&S.viewport?.focus(),c()}),ae=v.useCallback(U=>{!U||U===1/0||(window.clearTimeout(q.current),j.current=new Date().getTime(),q.current=window.setTimeout(ee,U))},[ee]);v.useEffect(()=>{const U=S.viewport;if(U){const Q=()=>{ae(F.current),h?.()},P=()=>{const K=new Date().getTime()-j.current;F.current=F.current-K,window.clearTimeout(q.current),d?.()};return U.addEventListener(tp,P),U.addEventListener(np,Q),()=>{U.removeEventListener(tp,P),U.removeEventListener(np,Q)}}},[S.viewport,L,d,h,ae]),v.useEffect(()=>{s&&!S.isClosePausedRef.current&&ae(L)},[s,L,S.isClosePausedRef,ae]),v.useEffect(()=>(J(),()=>z()),[J,z]);const W=v.useMemo(()=>A?Mw(A):null,[A]);return S.viewport?g.jsxs(g.Fragment,{children:[W&&g.jsx(M_,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:W}),g.jsx(R_,{scope:r,onClose:ee,children:uo.createPortal(g.jsx(Xp.ItemSlot,{scope:r,children:g.jsx(u_,{asChild:!0,onEscapeKeyDown:me(f,()=>{S.isFocusedToastEscapeKeyDownRef.current||ee(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Me.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":S.swipeDirection,...E,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:me(e.onKeyDown,U=>{U.key==="Escape"&&(f?.(U.nativeEvent),U.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,ee()))}),onPointerDown:me(e.onPointerDown,U=>{U.button===0&&(N.current={x:U.clientX,y:U.clientY})}),onPointerMove:me(e.onPointerMove,U=>{if(!N.current)return;const Q=U.clientX-N.current.x,P=U.clientY-N.current.y,K=!!D.current,B=["left","right"].includes(S.swipeDirection),ne=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,k=B?ne(0,Q):0,Z=B?0:ne(0,P),se=U.pointerType==="touch"?10:2,M={x:k,y:Z},ce={originalEvent:U,delta:M};K?(D.current=M,Tu(k_,y,ce,{discrete:!1})):fb(M,S.swipeDirection,se)?(D.current=M,Tu(C_,m,ce,{discrete:!1}),U.target.setPointerCapture(U.pointerId)):(Math.abs(Q)>se||Math.abs(P)>se)&&(N.current=null)}),onPointerUp:me(e.onPointerUp,U=>{const Q=D.current,P=U.target;if(P.hasPointerCapture(U.pointerId)&&P.releasePointerCapture(U.pointerId),D.current=null,N.current=null,Q){const K=U.currentTarget,B={originalEvent:U,delta:Q};fb(Q,S.swipeDirection,S.swipeThreshold)?Tu(T_,w,B,{discrete:!0}):Tu(A_,b,B,{discrete:!0}),K.addEventListener("click",ne=>ne.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),M_=e=>{const{__scopeToast:n,children:r,...i}=e,l=wc(Zl,n),[s,c]=v.useState(!1),[f,d]=v.useState(!1);return O_(()=>c(!0)),v.useEffect(()=>{const h=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(h)},[]),f?null:g.jsx(Ql,{asChild:!0,children:g.jsx(bc,{...i,children:s&&g.jsxs(g.Fragment,{children:[l.label," ",r]})})})},j_="ToastTitle",kw=v.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Me.div,{...i,ref:n})});kw.displayName=j_;var D_="ToastDescription",Aw=v.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Me.div,{...i,ref:n})});Aw.displayName=D_;var Tw="ToastAction",Rw=v.forwardRef((e,n)=>{const{altText:r,...i}=e;return r.trim()?g.jsx(_w,{altText:r,asChild:!0,children:g.jsx(Qp,{...i,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tw}\`. Expected non-empty \`string\`.`),null)});Rw.displayName=Tw;var Nw="ToastClose",Qp=v.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e,l=N_(Nw,r);return g.jsx(_w,{asChild:!0,children:g.jsx(Me.button,{type:"button",...i,ref:n,onClick:me(e.onClick,l.onClose)})})});Qp.displayName=Nw;var _w=v.forwardRef((e,n)=>{const{__scopeToast:r,altText:i,...l}=e;return g.jsx(Me.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...l,ref:n})});function Mw(e){const n=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&n.push(i.textContent),P_(i)){const l=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!l)if(s){const c=i.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...Mw(i))}}),n}function Tu(e,n,r,{discrete:i}){const l=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?Yp(l,s):l.dispatchEvent(s)}var fb=(e,n,r=0)=>{const i=Math.abs(e.x),l=Math.abs(e.y),s=i>l;return n==="left"||n==="right"?s&&i>r:!s&&l>r};function O_(e=()=>{}){const n=Et(e);zt(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[n])}function P_(e){return e.nodeType===e.ELEMENT_NODE}function L_(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function gh(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var z_=bw,jw=Sw,Dw=Cw,Ow=kw,Pw=Aw,Lw=Rw,zw=Qp;function Iw(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=Iw(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Bw(){for(var e,n,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=Iw(e))&&(i&&(i+=" "),i+=n);return i}const db=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,hb=Bw,Sc=(e,n)=>r=>{var i;if(n?.variants==null)return hb(e,r?.class,r?.className);const{variants:l,defaultVariants:s}=n,c=Object.keys(l).map(h=>{const m=r?.[h],y=s?.[h];if(m===null)return null;const b=db(m)||db(y);return l[h][b]}),f=r&&Object.entries(r).reduce((h,m)=>{let[y,b]=m;return b===void 0||(h[y]=b),h},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:y,className:b,...w}=m;return Object.entries(w).every(E=>{let[S,A]=E;return Array.isArray(A)?A.includes({...s,...f}[S]):{...s,...f}[S]===A})?[...h,y,b]:h},[]);return hb(e,c,d,r?.class,r?.className)};/**
|
|
62
|
-
* @license lucide-react v0.542.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const I_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),B_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),pb=e=>{const n=B_(e);return n.charAt(0).toUpperCase()+n.slice(1)},Uw=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),U_=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
67
|
-
* @license lucide-react v0.542.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/var H_={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"};/**
|
|
72
|
-
* @license lucide-react v0.542.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const F_=v.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:c,...f},d)=>v.createElement("svg",{ref:d,...H_,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:Uw("lucide",l),...!s&&!U_(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,m])=>v.createElement(h,m)),...Array.isArray(s)?s:[s]]));/**
|
|
77
|
-
* @license lucide-react v0.542.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const Oe=(e,n)=>{const r=v.forwardRef(({className:i,...l},s)=>v.createElement(F_,{ref:s,iconNode:n,className:Uw(`lucide-${I_(pb(e))}`,`lucide-${e}`,i),...l}));return r.displayName=pb(e),r};/**
|
|
82
|
-
* @license lucide-react v0.542.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const V_=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],q_=Oe("activity",V_);/**
|
|
87
|
-
* @license lucide-react v0.542.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const $_=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ml=Oe("bot",$_);/**
|
|
92
|
-
* @license lucide-react v0.542.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const G_=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Y_=Oe("brain",G_);/**
|
|
97
|
-
* @license lucide-react v0.542.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const K_=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],X_=Oe("calendar-clock",K_);/**
|
|
102
|
-
* @license lucide-react v0.542.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Q_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ec=Oe("check",Q_);/**
|
|
107
|
-
* @license lucide-react v0.542.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const Z_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Hw=Oe("chevron-down",Z_);/**
|
|
112
|
-
* @license lucide-react v0.542.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const W_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],J_=Oe("chevron-right",W_);/**
|
|
117
|
-
* @license lucide-react v0.542.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const eM=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],tM=Oe("chevron-up",eM);/**
|
|
122
|
-
* @license lucide-react v0.542.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const nM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rM=Oe("circle",nM);/**
|
|
127
|
-
* @license lucide-react v0.542.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const aM=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],iM=Oe("code",aM);/**
|
|
132
|
-
* @license lucide-react v0.542.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const oM=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lM=Oe("copy",oM);/**
|
|
137
|
-
* @license lucide-react v0.542.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const sM=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],uM=Oe("expand",sM);/**
|
|
142
|
-
* @license lucide-react v0.542.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const cM=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]],Fw=Oe("file-plus-2",cM);/**
|
|
147
|
-
* @license lucide-react v0.542.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const fM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wu=Oe("file-text",fM);/**
|
|
152
|
-
* @license lucide-react v0.542.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const dM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],mb=Oe("file",dM);/**
|
|
157
|
-
* @license lucide-react v0.542.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const hM=[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],pM=Oe("files",hM);/**
|
|
162
|
-
* @license lucide-react v0.542.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const mM=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],gM=Oe("folder-open",mM);/**
|
|
167
|
-
* @license lucide-react v0.542.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const yM=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Vu=Oe("folder",yM);/**
|
|
172
|
-
* @license lucide-react v0.542.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const vM=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Vw=Oe("git-branch",vM);/**
|
|
177
|
-
* @license lucide-react v0.542.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const xM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],bM=Oe("history",xM);/**
|
|
182
|
-
* @license lucide-react v0.542.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const wM=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],SM=Oe("house",wM);/**
|
|
187
|
-
* @license lucide-react v0.542.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const EM=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],CM=Oe("id-card",EM);/**
|
|
192
|
-
* @license lucide-react v0.542.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const kM=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],AM=Oe("key",kM);/**
|
|
197
|
-
* @license lucide-react v0.542.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const TM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ju=Oe("loader-circle",TM);/**
|
|
202
|
-
* @license lucide-react v0.542.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const RM=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],NM=Oe("log-out",RM);/**
|
|
207
|
-
* @license lucide-react v0.542.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const _M=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],MM=Oe("menu",_M);/**
|
|
212
|
-
* @license lucide-react v0.542.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const jM=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],DM=Oe("message-circle",jM);/**
|
|
217
|
-
* @license lucide-react v0.542.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const OM=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],PM=Oe("network",OM);/**
|
|
222
|
-
* @license lucide-react v0.542.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const LM=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]],zM=Oe("notebook",LM);/**
|
|
227
|
-
* @license lucide-react v0.542.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const IM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],BM=Oe("panel-left",IM);/**
|
|
232
|
-
* @license lucide-react v0.542.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const UM=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],HM=Oe("plug",UM);/**
|
|
237
|
-
* @license lucide-react v0.542.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const FM=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],VM=Oe("save",FM);/**
|
|
242
|
-
* @license lucide-react v0.542.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const qM=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],$M=Oe("send",qM);/**
|
|
247
|
-
* @license lucide-react v0.542.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const GM=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],YM=Oe("server",GM);/**
|
|
252
|
-
* @license lucide-react v0.542.0 - ISC
|
|
253
|
-
*
|
|
254
|
-
* This source code is licensed under the ISC license.
|
|
255
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const KM=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],XM=Oe("settings",KM);/**
|
|
257
|
-
* @license lucide-react v0.542.0 - ISC
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the ISC license.
|
|
260
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const QM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ZM=Oe("shield",QM);/**
|
|
262
|
-
* @license lucide-react v0.542.0 - ISC
|
|
263
|
-
*
|
|
264
|
-
* This source code is licensed under the ISC license.
|
|
265
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const WM=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],JM=Oe("sliders-horizontal",WM);/**
|
|
267
|
-
* @license lucide-react v0.542.0 - ISC
|
|
268
|
-
*
|
|
269
|
-
* This source code is licensed under the ISC license.
|
|
270
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const ej=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ap=Oe("sparkles",ej);/**
|
|
272
|
-
* @license lucide-react v0.542.0 - ISC
|
|
273
|
-
*
|
|
274
|
-
* This source code is licensed under the ISC license.
|
|
275
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const tj=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],nj=Oe("square-pen",tj);/**
|
|
277
|
-
* @license lucide-react v0.542.0 - ISC
|
|
278
|
-
*
|
|
279
|
-
* This source code is licensed under the ISC license.
|
|
280
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const rj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],aj=Oe("square",rj);/**
|
|
282
|
-
* @license lucide-react v0.542.0 - ISC
|
|
283
|
-
*
|
|
284
|
-
* This source code is licensed under the ISC license.
|
|
285
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const ij=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],oj=Oe("terminal",ij);/**
|
|
287
|
-
* @license lucide-react v0.542.0 - ISC
|
|
288
|
-
*
|
|
289
|
-
* This source code is licensed under the ISC license.
|
|
290
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const lj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],sj=Oe("trash-2",lj);/**
|
|
292
|
-
* @license lucide-react v0.542.0 - ISC
|
|
293
|
-
*
|
|
294
|
-
* This source code is licensed under the ISC license.
|
|
295
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const uj=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],cj=Oe("tree-palm",uj);/**
|
|
297
|
-
* @license lucide-react v0.542.0 - ISC
|
|
298
|
-
*
|
|
299
|
-
* This source code is licensed under the ISC license.
|
|
300
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const fj=[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]],dj=Oe("user-pen",fj);/**
|
|
302
|
-
* @license lucide-react v0.542.0 - ISC
|
|
303
|
-
*
|
|
304
|
-
* This source code is licensed under the ISC license.
|
|
305
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const hj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pj=Oe("user",hj);/**
|
|
307
|
-
* @license lucide-react v0.542.0 - ISC
|
|
308
|
-
*
|
|
309
|
-
* This source code is licensed under the ISC license.
|
|
310
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const mj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],gj=Oe("wrench",mj);/**
|
|
312
|
-
* @license lucide-react v0.542.0 - ISC
|
|
313
|
-
*
|
|
314
|
-
* This source code is licensed under the ISC license.
|
|
315
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const yj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zi=Oe("x",yj),Zp="-",vj=e=>{const n=bj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const f=c.split(Zp);return f[0]===""&&f.length!==1&&f.shift(),qw(f,n)||xj(c)},getConflictingClassGroupIds:(c,f)=>{const d=r[c]||[];return f&&i[c]?[...d,...i[c]]:d}}},qw=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),l=i?qw(e.slice(1),i):void 0;if(l)return l;if(n.validators.length===0)return;const s=e.join(Zp);return n.validators.find(({validator:c})=>c(s))?.classGroupId},gb=/^\[(.+)\]$/,xj=e=>{if(gb.test(e)){const n=gb.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},bj=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const l in r)ip(r[l],i,l,n);return i},ip=(e,n,r,i)=>{e.forEach(l=>{if(typeof l=="string"){const s=l===""?n:yb(n,l);s.classGroupId=r;return}if(typeof l=="function"){if(wj(l)){ip(l(i),n,r,i);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{ip(c,yb(n,s),r,i)})})},yb=(e,n)=>{let r=e;return n.split(Zp).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},wj=e=>e.isThemeGetter,Sj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const l=(s,c)=>{r.set(s,c),n++,n>e&&(n=0,i=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},op="!",lp=":",Ej=lp.length,Cj=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=l=>{const s=[];let c=0,f=0,d=0,h;for(let E=0;E<l.length;E++){let S=l[E];if(c===0&&f===0){if(S===lp){s.push(l.slice(d,E)),d=E+Ej;continue}if(S==="/"){h=E;continue}}S==="["?c++:S==="]"?c--:S==="("?f++:S===")"&&f--}const m=s.length===0?l:l.substring(d),y=kj(m),b=y!==m,w=h&&h>d?h-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(n){const l=n+lp,s=i;i=c=>c.startsWith(l)?s(c.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const l=i;i=s=>r({className:s,parseClassName:l})}return i},kj=e=>e.endsWith(op)?e.substring(0,e.length-1):e.startsWith(op)?e.substring(1):e,Aj=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const l=[];let s=[];return i.forEach(c=>{c[0]==="["||n[c]?(l.push(...s.sort(),c),s=[]):s.push(c)}),l.push(...s.sort()),l}},Tj=e=>({cache:Sj(e.cacheSize),parseClassName:Cj(e),sortModifiers:Aj(e),...vj(e)}),Rj=/\s+/,Nj=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:s}=n,c=[],f=e.trim().split(Rj);let d="";for(let h=f.length-1;h>=0;h-=1){const m=f[h],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:S}=r(m);if(y){d=m+(d.length>0?" "+d:d);continue}let A=!!S,T=i(A?E.substring(0,S):E);if(!T){if(!A){d=m+(d.length>0?" "+d:d);continue}if(T=i(E),!T){d=m+(d.length>0?" "+d:d);continue}A=!1}const R=s(b).join(":"),N=w?R+op:R,D=N+T;if(c.includes(D))continue;c.push(D);const L=l(T,A);for(let j=0;j<L.length;++j){const F=L[j];c.push(N+F)}d=m+(d.length>0?" "+d:d)}return d};function _j(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=$w(n))&&(i&&(i+=" "),i+=r);return i}const $w=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=$w(e[i]))&&(r&&(r+=" "),r+=n);return r};function Mj(e,...n){let r,i,l,s=c;function c(d){const h=n.reduce((m,y)=>y(m),e());return r=Tj(h),i=r.cache.get,l=r.cache.set,s=f,f(d)}function f(d){const h=i(d);if(h)return h;const m=Nj(d,r);return l(d,m),m}return function(){return s(_j.apply(null,arguments))}}const _t=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Gw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jj=/^\d+\/\d+$/,Dj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vi=e=>jj.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),da=e=>!!e&&Number.isInteger(Number(e)),yh=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),jr=e=>Dj.test(e),Ij=()=>!0,Bj=e=>Oj.test(e)&&!Pj.test(e),Kw=()=>!1,Uj=e=>Lj.test(e),Hj=e=>zj.test(e),Fj=e=>!be(e)&&!we(e),Vj=e=>ho(e,Zw,Kw),be=e=>Gw.test(e),Ha=e=>ho(e,Ww,Bj),vh=e=>ho(e,Kj,Fe),vb=e=>ho(e,Xw,Kw),qj=e=>ho(e,Qw,Hj),Ru=e=>ho(e,Jw,Uj),we=e=>Yw.test(e),bl=e=>po(e,Ww),$j=e=>po(e,Xj),xb=e=>po(e,Xw),Gj=e=>po(e,Zw),Yj=e=>po(e,Qw),Nu=e=>po(e,Jw,!0),ho=(e,n,r)=>{const i=Gw.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},po=(e,n,r=!1)=>{const i=Yw.exec(e);return i?i[1]?n(i[1]):r:!1},Xw=e=>e==="position"||e==="percentage",Qw=e=>e==="image"||e==="url",Zw=e=>e==="length"||e==="size"||e==="bg-size",Ww=e=>e==="length",Kj=e=>e==="number",Xj=e=>e==="family-name",Jw=e=>e==="shadow",Qj=()=>{const e=_t("color"),n=_t("font"),r=_t("text"),i=_t("font-weight"),l=_t("tracking"),s=_t("leading"),c=_t("breakpoint"),f=_t("container"),d=_t("spacing"),h=_t("radius"),m=_t("shadow"),y=_t("inset-shadow"),b=_t("text-shadow"),w=_t("drop-shadow"),E=_t("blur"),S=_t("perspective"),A=_t("aspect"),T=_t("ease"),R=_t("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...D(),we,be],j=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],q=()=>[we,be,d],J=()=>[Vi,"full","auto",...q()],z=()=>[da,"none","subgrid",we,be],ee=()=>["auto",{span:["full",da,we,be]},da,we,be],ae=()=>[da,"auto",we,be],W=()=>["auto","min","max","fr",we,be],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...q()],K=()=>[Vi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],B=()=>[e,we,be],ne=()=>[...D(),xb,vb,{position:[we,be]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",Gj,Vj,{size:[we,be]}],se=()=>[yh,bl,Ha],M=()=>["","none","full",h,we,be],ce=()=>["",Fe,bl,Ha],ye=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Fe,yh,xb,vb],ge=()=>["","none",E,we,be],ke=()=>["none",Fe,we,be],Ne=()=>["none",Fe,we,be],Le=()=>[Fe,we,be],Ye=()=>[Vi,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jr],breakpoint:[jr],color:[Ij],container:[jr],"drop-shadow":[jr],ease:["in","out","in-out"],font:[Fj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jr],shadow:[jr],spacing:["px",Fe],text:[jr],"text-shadow":[jr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vi,be,we,A]}],container:["container"],columns:[{columns:[Fe,be,we,f]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[da,"auto",we,be]}],basis:[{basis:[Vi,"full","auto",f,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,Vi,"auto","initial","none",be]}],grow:[{grow:["",Fe,we,be]}],shrink:[{shrink:["",Fe,we,be]}],order:[{order:[da,"first","last","none",we,be]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[f,"screen",...K()]}],"min-w":[{"min-w":[f,"screen","none",...K()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,bl,Ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,we,vh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yh,be]}],"font-family":[{font:[$j,be,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,we,be]}],"line-clamp":[{"line-clamp":[Fe,"none",we,vh]}],leading:[{leading:[s,...q()]}],"list-image":[{"list-image":["none",we,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",we,Ha]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Fe,"auto",we,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},da,we,be],radial:["",we,be],conic:[da,we,be]},Yj,qj]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ye(),"hidden","none"]}],"divide-style":[{divide:[...ye(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,we,be]}],"outline-w":[{outline:["",Fe,bl,Ha]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",m,Nu,Ru]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",y,Nu,Ru]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Fe,Ha]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,Nu,Ru]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Fe,we,be]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[we,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,be]}],filter:[{filter:["","none",we,be]}],blur:[{blur:ge()}],brightness:[{brightness:[Fe,we,be]}],contrast:[{contrast:[Fe,we,be]}],"drop-shadow":[{"drop-shadow":["","none",w,Nu,Ru]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Fe,we,be]}],"hue-rotate":[{"hue-rotate":[Fe,we,be]}],invert:[{invert:["",Fe,we,be]}],saturate:[{saturate:[Fe,we,be]}],sepia:[{sepia:["",Fe,we,be]}],"backdrop-filter":[{"backdrop-filter":["","none",we,be]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,we,be]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,we,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,we,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,we,be]}],"backdrop-invert":[{"backdrop-invert":["",Fe,we,be]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,we,be]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,we,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,we,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",we,be]}],ease:[{ease:["linear","initial",T,we,be]}],delay:[{delay:[Fe,we,be]}],animate:[{animate:["none",R,we,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,we,be]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[we,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,be]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Fe,bl,Ha,vh]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Zj=Mj(Qj);function ue(...e){return Zj(Bw(e))}const Wj=z_,e1=v.forwardRef(({className:e,...n},r)=>g.jsx(jw,{ref:r,className:ue("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...n}));e1.displayName=jw.displayName;const Jj=Sc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),t1=v.forwardRef(({className:e,variant:n,...r},i)=>g.jsx(Dw,{ref:i,className:ue(Jj({variant:n}),e),...r}));t1.displayName=Dw.displayName;const eD=v.forwardRef(({className:e,...n},r)=>g.jsx(Lw,{ref:r,className:ue("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));eD.displayName=Lw.displayName;const n1=v.forwardRef(({className:e,...n},r)=>g.jsx(zw,{ref:r,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:g.jsx(Zi,{className:"h-4 w-4"})}));n1.displayName=zw.displayName;const r1=v.forwardRef(({className:e,...n},r)=>g.jsx(Ow,{ref:r,className:ue("text-sm font-semibold",e),...n}));r1.displayName=Ow.displayName;const a1=v.forwardRef(({className:e,...n},r)=>g.jsx(Pw,{ref:r,className:ue("text-sm opacity-90",e),...n}));a1.displayName=Pw.displayName;function tD(){const{toasts:e}=KN();return g.jsxs(Wj,{children:[e.map(function({id:n,title:r,description:i,action:l,...s}){return g.jsxs(t1,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[r&&g.jsx(r1,{children:r}),i&&g.jsx(a1,{children:i})]}),l,g.jsx(n1,{})]},n)}),g.jsx(e1,{})]})}function nD({children:e}){const{isAuthenticated:n,authEnabled:r,isLoading:i}=fw(),l=In();return i?g.jsx("div",{className:"min-h-screen flex items-center justify-center",children:g.jsx(Ju,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r?n?g.jsx(g.Fragment,{children:e}):g.jsx(_R,{to:"/login",state:{from:l},replace:!0}):g.jsx(g.Fragment,{children:e})}function rD(){return g.jsx("div",{className:"flex items-center justify-center min-h-screen",children:g.jsxs("div",{className:"flex flex-col items-center gap-4",children:[g.jsx(Ju,{className:"h-8 w-8 animate-spin text-primary"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}const xh=768;function i1(){const[e,n]=v.useState(void 0);return v.useEffect(()=>{const r=window.matchMedia(`(max-width: ${xh-1}px)`),i=()=>{n(window.innerWidth<xh)};return r.addEventListener("change",i),n(window.innerWidth<xh),()=>r.removeEventListener("change",i)},[]),!!e}const Wp=Sc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),yt=v.forwardRef(({className:e,variant:n,size:r,asChild:i=!1,...l},s)=>{const c=i?co:"button";return g.jsx(c,{className:ue(Wp({variant:n,size:r,className:e})),ref:s,...l})});yt.displayName="Button";const o1=v.forwardRef(({className:e,type:n,...r},i)=>g.jsx("input",{type:n,className:ue("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));o1.displayName="Input";var aD="Separator",bb="horizontal",iD=["horizontal","vertical"],l1=v.forwardRef((e,n)=>{const{decorative:r,orientation:i=bb,...l}=e,s=oD(i)?i:bb,f=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return g.jsx(Me.div,{"data-orientation":s,...f,...l,ref:n})});l1.displayName=aD;function oD(e){return iD.includes(e)}var s1=l1;const u1=v.forwardRef(({className:e,orientation:n="horizontal",decorative:r=!0,...i},l)=>g.jsx(s1,{ref:l,decorative:r,orientation:n,className:ue("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));u1.displayName=s1.displayName;var lD=B0[" useId ".trim().toString()]||(()=>{}),sD=0;function sr(e){const[n,r]=v.useState(lD());return zt(()=>{r(i=>i??String(sD++))},[e]),e||(n?`radix-${n}`:"")}var bh="focusScope.autoFocusOnMount",wh="focusScope.autoFocusOnUnmount",wb={bubbles:!1,cancelable:!0},uD="FocusScope",Cc=v.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:s,...c}=e,[f,d]=v.useState(null),h=Et(l),m=Et(s),y=v.useRef(null),b=Be(n,S=>d(S)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(N){if(w.paused||!f)return;const D=N.target;f.contains(D)?y.current=D:ma(y.current,{select:!0})},A=function(N){if(w.paused||!f)return;const D=N.relatedTarget;D!==null&&(f.contains(D)||ma(y.current,{select:!0}))},T=function(N){if(document.activeElement===document.body)for(const L of N)L.removedNodes.length>0&&ma(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",A);const R=new MutationObserver(T);return f&&R.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",A),R.disconnect()}}},[i,f,w.paused]),v.useEffect(()=>{if(f){Eb.add(w);const S=document.activeElement;if(!f.contains(S)){const T=new CustomEvent(bh,wb);f.addEventListener(bh,h),f.dispatchEvent(T),T.defaultPrevented||(cD(mD(c1(f)),{select:!0}),document.activeElement===S&&ma(f))}return()=>{f.removeEventListener(bh,h),setTimeout(()=>{const T=new CustomEvent(wh,wb);f.addEventListener(wh,m),f.dispatchEvent(T),T.defaultPrevented||ma(S??document.body,{select:!0}),f.removeEventListener(wh,m),Eb.remove(w)},0)}}},[f,h,m,w]);const E=v.useCallback(S=>{if(!r&&!i||w.paused)return;const A=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(A&&T){const R=S.currentTarget,[N,D]=fD(R);N&&D?!S.shiftKey&&T===D?(S.preventDefault(),r&&ma(N,{select:!0})):S.shiftKey&&T===N&&(S.preventDefault(),r&&ma(D,{select:!0})):T===R&&S.preventDefault()}},[r,i,w.paused]);return g.jsx(Me.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});Cc.displayName=uD;function cD(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(ma(i,{select:n}),document.activeElement!==r)return}function fD(e){const n=c1(e),r=Sb(n,e),i=Sb(n.reverse(),e);return[r,i]}function c1(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Sb(e,n){for(const r of e)if(!dD(r,{upTo:n}))return r}function dD(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hD(e){return e instanceof HTMLInputElement&&"select"in e}function ma(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hD(e)&&n&&e.select()}}var Eb=pD();function pD(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=Cb(e,n),e.unshift(n)},remove(n){e=Cb(e,n),e[0]?.resume()}}}function Cb(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function mD(e){return e.filter(n=>n.tagName!=="A")}var Sh=0;function Jp(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kb()),document.body.insertAdjacentElement("beforeend",e[1]??kb()),Sh++,()=>{Sh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Sh--}},[])}function kb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var or=function(){return or=Object.assign||function(n){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},or.apply(this,arguments)};function f1(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function gD(e,n,r){if(r||arguments.length===2)for(var i=0,l=n.length,s;i<l;i++)(s||!(i in n))&&(s||(s=Array.prototype.slice.call(n,0,i)),s[i]=n[i]);return e.concat(s||Array.prototype.slice.call(n))}var qu="right-scroll-bar-position",$u="width-before-scroll-bar",yD="with-scroll-bars-hidden",vD="--removed-body-scroll-bar-size";function Eh(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function xD(e,n){var r=v.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=n,r.facade}var bD=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ab=new WeakMap;function wD(e,n){var r=xD(null,function(i){return e.forEach(function(l){return Eh(l,i)})});return bD(function(){var i=Ab.get(r);if(i){var l=new Set(i),s=new Set(e),c=r.current;l.forEach(function(f){s.has(f)||Eh(f,null)}),s.forEach(function(f){l.has(f)||Eh(f,c)})}Ab.set(r,e)},[e]),r}function SD(e){return e}function ED(e,n){n===void 0&&(n=SD);var r=[],i=!1,l={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=n(s,i);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(i=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var d=function(){var m=c;c=[],m.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(m){c.push(m),h()},filter:function(m){return c=c.filter(m),r}}}};return l}function CD(e){e===void 0&&(e={});var n=ED(null);return n.options=or({async:!0,ssr:!1},e),n}var d1=function(e){var n=e.sideCar,r=f1(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,or({},r))};d1.isSideCarExport=!0;function kD(e,n){return e.useMedium(n),d1}var h1=CD(),Ch=function(){},kc=v.forwardRef(function(e,n){var r=v.useRef(null),i=v.useState({onScrollCapture:Ch,onWheelCapture:Ch,onTouchMoveCapture:Ch}),l=i[0],s=i[1],c=e.forwardProps,f=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noRelative,E=e.noIsolation,S=e.inert,A=e.allowPinchZoom,T=e.as,R=T===void 0?"div":T,N=e.gapMode,D=f1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=b,j=wD([r,n]),F=or(or({},D),l);return v.createElement(v.Fragment,null,m&&v.createElement(L,{sideCar:h1,removeScrollBar:h,shards:y,noRelative:w,noIsolation:E,inert:S,setCallbacks:s,allowPinchZoom:!!A,lockRef:r,gapMode:N}),c?v.cloneElement(v.Children.only(f),or(or({},F),{ref:j})):v.createElement(R,or({},F,{className:d,ref:j}),f))});kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};kc.classNames={fullWidth:$u,zeroRight:qu};var AD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=AD();return n&&e.setAttribute("nonce",n),e}function RD(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function ND(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var _D=function(){var e=0,n=null;return{add:function(r){e==0&&(n=TD())&&(RD(n,r),ND(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},MD=function(){var e=_D();return function(n,r){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},p1=function(){var e=MD(),n=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return n},jD={left:0,top:0,right:0,gap:0},kh=function(e){return parseInt(e||"",10)||0},DD=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],l=n[e==="padding"?"paddingRight":"marginRight"];return[kh(r),kh(i),kh(l)]},OD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jD;var n=DD(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},PD=p1(),Wi="data-scroll-locked",LD=function(e,n,r,i){var l=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
317
|
-
.`.concat(yD,` {
|
|
318
|
-
overflow: hidden `).concat(i,`;
|
|
319
|
-
padding-right: `).concat(f,"px ").concat(i,`;
|
|
320
|
-
}
|
|
321
|
-
body[`).concat(Wi,`] {
|
|
322
|
-
overflow: hidden `).concat(i,`;
|
|
323
|
-
overscroll-behavior: contain;
|
|
324
|
-
`).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
325
|
-
padding-left: `.concat(l,`px;
|
|
326
|
-
padding-top: `).concat(s,`px;
|
|
327
|
-
padding-right: `).concat(c,`px;
|
|
328
|
-
margin-left:0;
|
|
329
|
-
margin-top:0;
|
|
330
|
-
margin-right: `).concat(f,"px ").concat(i,`;
|
|
331
|
-
`),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.`).concat(qu,` {
|
|
335
|
-
right: `).concat(f,"px ").concat(i,`;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.`).concat($u,` {
|
|
339
|
-
margin-right: `).concat(f,"px ").concat(i,`;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.`).concat(qu," .").concat(qu,` {
|
|
343
|
-
right: 0 `).concat(i,`;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.`).concat($u," .").concat($u,` {
|
|
347
|
-
margin-right: 0 `).concat(i,`;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
body[`).concat(Wi,`] {
|
|
351
|
-
`).concat(vD,": ").concat(f,`px;
|
|
352
|
-
}
|
|
353
|
-
`)},Tb=function(){var e=parseInt(document.body.getAttribute(Wi)||"0",10);return isFinite(e)?e:0},zD=function(){v.useEffect(function(){return document.body.setAttribute(Wi,(Tb()+1).toString()),function(){var e=Tb()-1;e<=0?document.body.removeAttribute(Wi):document.body.setAttribute(Wi,e.toString())}},[])},ID=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;zD();var s=v.useMemo(function(){return OD(l)},[l]);return v.createElement(PD,{styles:LD(s,!n,l,r?"":"!important")})},sp=!1;if(typeof window<"u")try{var _u=Object.defineProperty({},"passive",{get:function(){return sp=!0,!0}});window.addEventListener("test",_u,_u),window.removeEventListener("test",_u,_u)}catch{sp=!1}var qi=sp?{passive:!1}:!1,BD=function(e){return e.tagName==="TEXTAREA"},m1=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!BD(e)&&r[n]==="visible")},UD=function(e){return m1(e,"overflowY")},HD=function(e){return m1(e,"overflowX")},Rb=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=g1(e,i);if(l){var s=y1(e,i),c=s[1],f=s[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},FD=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},VD=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},g1=function(e,n){return e==="v"?UD(n):HD(n)},y1=function(e,n){return e==="v"?FD(n):VD(n)},qD=function(e,n){return e==="h"&&n==="rtl"?-1:1},$D=function(e,n,r,i,l){var s=qD(e,window.getComputedStyle(n).direction),c=s*i,f=r.target,d=n.contains(f),h=!1,m=c>0,y=0,b=0;do{if(!f)break;var w=y1(e,f),E=w[0],S=w[1],A=w[2],T=S-A-s*E;(E||T)&&g1(e,f)&&(y+=T,b+=E);var R=f.parentNode;f=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!d&&f!==document.body||d&&(n.contains(f)||n===f));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(h=!0),h},Mu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nb=function(e){return[e.deltaX,e.deltaY]},_b=function(e){return e&&"current"in e?e.current:e},GD=function(e,n){return e[0]===n[0]&&e[1]===n[1]},YD=function(e){return`
|
|
354
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
355
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
356
|
-
`)},KD=0,$i=[];function XD(e){var n=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),l=v.useState(KD++)[0],s=v.useState(p1)[0],c=v.useRef(e);v.useEffect(function(){c.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var S=gD([e.lockRef.current],(e.shards||[]).map(_b),!0).filter(Boolean);return S.forEach(function(A){return A.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),S.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(S,A){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var T=Mu(S),R=r.current,N="deltaX"in S?S.deltaX:R[0]-T[0],D="deltaY"in S?S.deltaY:R[1]-T[1],L,j=S.target,F=Math.abs(N)>Math.abs(D)?"h":"v";if("touches"in S&&F==="h"&&j.type==="range")return!1;var q=Rb(F,j);if(!q)return!0;if(q?L=F:(L=F==="v"?"h":"v",q=Rb(F,j)),!q)return!1;if(!i.current&&"changedTouches"in S&&(N||D)&&(i.current=L),!L)return!0;var J=i.current||L;return $D(J,A,S,J==="h"?N:D)},[]),d=v.useCallback(function(S){var A=S;if(!(!$i.length||$i[$i.length-1]!==s)){var T="deltaY"in A?Nb(A):Mu(A),R=n.current.filter(function(L){return L.name===A.type&&(L.target===A.target||A.target===L.shadowParent)&&GD(L.delta,T)})[0];if(R&&R.should){A.cancelable&&A.preventDefault();return}if(!R){var N=(c.current.shards||[]).map(_b).filter(Boolean).filter(function(L){return L.contains(A.target)}),D=N.length>0?f(A,N[0]):!c.current.noIsolation;D&&A.cancelable&&A.preventDefault()}}},[]),h=v.useCallback(function(S,A,T,R){var N={name:S,delta:A,target:T,should:R,shadowParent:QD(T)};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(D){return D!==N})},1)},[]),m=v.useCallback(function(S){r.current=Mu(S),i.current=void 0},[]),y=v.useCallback(function(S){h(S.type,Nb(S),S.target,f(S,e.lockRef.current))},[]),b=v.useCallback(function(S){h(S.type,Mu(S),S.target,f(S,e.lockRef.current))},[]);v.useEffect(function(){return $i.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",d,qi),document.addEventListener("touchmove",d,qi),document.addEventListener("touchstart",m,qi),function(){$i=$i.filter(function(S){return S!==s}),document.removeEventListener("wheel",d,qi),document.removeEventListener("touchmove",d,qi),document.removeEventListener("touchstart",m,qi)}},[]);var w=e.removeScrollBar,E=e.inert;return v.createElement(v.Fragment,null,E?v.createElement(s,{styles:YD(l)}):null,w?v.createElement(ID,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function QD(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const ZD=kD(h1,XD);var Ac=v.forwardRef(function(e,n){return v.createElement(kc,or({},e,{ref:n,sideCar:ZD}))});Ac.classNames=kc.classNames;var WD=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Gi=new WeakMap,ju=new WeakMap,Du={},Ah=0,v1=function(e){return e&&(e.host||v1(e.parentNode))},JD=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=v1(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},eO=function(e,n,r,i){var l=JD(n,Array.isArray(e)?e:[e]);Du[r]||(Du[r]=new WeakMap);var s=Du[r],c=[],f=new Set,d=new Set(l),h=function(y){!y||f.has(y)||(f.add(y),h(y.parentNode))};l.forEach(h);var m=function(y){!y||d.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))m(b);else try{var w=b.getAttribute(i),E=w!==null&&w!=="false",S=(Gi.get(b)||0)+1,A=(s.get(b)||0)+1;Gi.set(b,S),s.set(b,A),c.push(b),S===1&&E&&ju.set(b,!0),A===1&&b.setAttribute(r,"true"),E||b.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return m(n),f.clear(),Ah++,function(){c.forEach(function(y){var b=Gi.get(y)-1,w=s.get(y)-1;Gi.set(y,b),s.set(y,w),b||(ju.has(y)||y.removeAttribute(i),ju.delete(y)),w||y.removeAttribute(r)}),Ah--,Ah||(Gi=new WeakMap,Gi=new WeakMap,ju=new WeakMap,Du={})}},em=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=WD(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),eO(i,l,r,"aria-hidden")):function(){return null}},Tc="Dialog",[x1,b1]=Bn(Tc),[tO,Jn]=x1(Tc),w1=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=v.useRef(null),d=v.useRef(null),[h,m]=va({prop:i,defaultProp:l??!1,onChange:s,caller:Tc});return g.jsx(tO,{scope:n,triggerRef:f,contentRef:d,contentId:sr(),titleId:sr(),descriptionId:sr(),open:h,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})};w1.displayName=Tc;var S1="DialogTrigger",E1=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=Jn(S1,r),s=Be(n,l.triggerRef);return g.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":rm(l.open),...i,ref:s,onClick:me(e.onClick,l.onOpenToggle)})});E1.displayName=S1;var tm="DialogPortal",[nO,C1]=x1(tm,{forceMount:void 0}),k1=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:l}=e,s=Jn(tm,n);return g.jsx(nO,{scope:n,forceMount:r,children:v.Children.map(i,c=>g.jsx(Jt,{present:r||s.open,children:g.jsx(Ql,{asChild:!0,container:l,children:c})}))})};k1.displayName=tm;var ec="DialogOverlay",A1=v.forwardRef((e,n)=>{const r=C1(ec,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,s=Jn(ec,e.__scopeDialog);return s.modal?g.jsx(Jt,{present:i||s.open,children:g.jsx(aO,{...l,ref:n})}):null});A1.displayName=ec;var rO=Ya("DialogOverlay.RemoveScroll"),aO=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=Jn(ec,r);return g.jsx(Ac,{as:rO,allowPinchZoom:!0,shards:[l.contentRef],children:g.jsx(Me.div,{"data-state":rm(l.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),Ka="DialogContent",T1=v.forwardRef((e,n)=>{const r=C1(Ka,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,s=Jn(Ka,e.__scopeDialog);return g.jsx(Jt,{present:i||s.open,children:s.modal?g.jsx(iO,{...l,ref:n}):g.jsx(oO,{...l,ref:n})})});T1.displayName=Ka;var iO=v.forwardRef((e,n)=>{const r=Jn(Ka,e.__scopeDialog),i=v.useRef(null),l=Be(n,r.contentRef,i);return v.useEffect(()=>{const s=i.current;if(s)return em(s)},[]),g.jsx(R1,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),oO=v.forwardRef((e,n)=>{const r=Jn(Ka,e.__scopeDialog),i=v.useRef(!1),l=v.useRef(!1);return g.jsx(R1,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(i.current||r.triggerRef.current?.focus(),s.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&l.current&&s.preventDefault()}})}),R1=v.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,...c}=e,f=Jn(Ka,r),d=v.useRef(null),h=Be(n,d);return Jp(),g.jsxs(g.Fragment,{children:[g.jsx(Cc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:s,children:g.jsx(fo,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":rm(f.open),...c,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(sO,{titleId:f.titleId}),g.jsx(cO,{contentRef:d,descriptionId:f.descriptionId})]})]})}),nm="DialogTitle",N1=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=Jn(nm,r);return g.jsx(Me.h2,{id:l.titleId,...i,ref:n})});N1.displayName=nm;var _1="DialogDescription",M1=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=Jn(_1,r);return g.jsx(Me.p,{id:l.descriptionId,...i,ref:n})});M1.displayName=_1;var j1="DialogClose",D1=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=Jn(j1,r);return g.jsx(Me.button,{type:"button",...i,ref:n,onClick:me(e.onClick,()=>l.onOpenChange(!1))})});D1.displayName=j1;function rm(e){return e?"open":"closed"}var O1="DialogTitleWarning",[lO,P1]=XN(O1,{contentName:Ka,titleName:nm,docsSlug:"dialog"}),sO=({titleId:e})=>{const n=P1(O1),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
357
|
-
|
|
358
|
-
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
359
|
-
|
|
360
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},uO="DialogDescriptionWarning",cO=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${P1(uO).contentName}}.`;return v.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},am=w1,L1=E1,im=k1,Wl=A1,Jl=T1,es=N1,ts=M1,Rc=D1;const z1=am,fO=im,I1=v.forwardRef(({className:e,...n},r)=>g.jsx(Wl,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));I1.displayName=Wl.displayName;const dO=Sc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),om=v.forwardRef(({side:e="right",className:n,children:r,...i},l)=>g.jsxs(fO,{children:[g.jsx(I1,{}),g.jsxs(Jl,{ref:l,className:ue(dO({side:e}),n),...i,children:[r,g.jsxs(Rc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(Zi,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));om.displayName=Jl.displayName;const lm=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});lm.displayName="SheetHeader";const sm=v.forwardRef(({className:e,...n},r)=>g.jsx(es,{ref:r,className:ue("text-lg font-semibold text-foreground",e),...n}));sm.displayName=es.displayName;const B1=v.forwardRef(({className:e,...n},r)=>g.jsx(ts,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));B1.displayName=ts.displayName;function Mb({className:e,...n}){return g.jsx("div",{className:ue("animate-pulse rounded-md bg-muted",e),...n})}const hO=["top","right","bottom","left"],xa=Math.min,wn=Math.max,tc=Math.round,Ou=Math.floor,ur=e=>({x:e,y:e}),pO={left:"right",right:"left",bottom:"top",top:"bottom"},mO={start:"end",end:"start"};function up(e,n,r){return wn(e,xa(n,r))}function Lr(e,n){return typeof e=="function"?e(n):e}function zr(e){return e.split("-")[0]}function mo(e){return e.split("-")[1]}function um(e){return e==="x"?"y":"x"}function cm(e){return e==="y"?"height":"width"}const gO=new Set(["top","bottom"]);function lr(e){return gO.has(zr(e))?"y":"x"}function fm(e){return um(lr(e))}function yO(e,n,r){r===void 0&&(r=!1);const i=mo(e),l=fm(e),s=cm(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=nc(c)),[c,nc(c)]}function vO(e){const n=nc(e);return[cp(e),n,cp(n)]}function cp(e){return e.replace(/start|end/g,n=>mO[n])}const jb=["left","right"],Db=["right","left"],xO=["top","bottom"],bO=["bottom","top"];function wO(e,n,r){switch(e){case"top":case"bottom":return r?n?Db:jb:n?jb:Db;case"left":case"right":return n?xO:bO;default:return[]}}function SO(e,n,r,i){const l=mo(e);let s=wO(zr(e),r==="start",i);return l&&(s=s.map(c=>c+"-"+l),n&&(s=s.concat(s.map(cp)))),s}function nc(e){return e.replace(/left|right|bottom|top/g,n=>pO[n])}function EO(e){return{top:0,right:0,bottom:0,left:0,...e}}function U1(e){return typeof e!="number"?EO(e):{top:e,right:e,bottom:e,left:e}}function rc(e){const{x:n,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function Ob(e,n,r){let{reference:i,floating:l}=e;const s=lr(n),c=fm(n),f=cm(c),d=zr(n),h=s==="y",m=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,b=i[f]/2-l[f]/2;let w;switch(d){case"top":w={x:m,y:i.y-l.height};break;case"bottom":w={x:m,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-l.width,y};break;default:w={x:i.x,y:i.y}}switch(mo(n)){case"start":w[c]-=b*(r&&h?-1:1);break;case"end":w[c]+=b*(r&&h?-1:1);break}return w}const CO=async(e,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:l}),{x:m,y}=Ob(h,i,d),b=i,w={},E=0;for(let S=0;S<f.length;S++){const{name:A,fn:T}=f[S],{x:R,y:N,data:D,reset:L}=await T({x:m,y,initialPlacement:i,placement:b,strategy:l,middlewareData:w,rects:h,platform:c,elements:{reference:e,floating:n}});m=R??m,y=N??y,w={...w,[A]:{...w[A],...D}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(h=L.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:l}):L.rects),{x:m,y}=Ob(h,b,d)),S=-1)}return{x:m,y,placement:b,strategy:l,middlewareData:w}};async function Il(e,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=Lr(n,e),E=U1(w),A=f[b?y==="floating"?"reference":"floating":y],T=rc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(A)))==null||r?A:A.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:m,strategy:d})),R=y==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),D=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},L=rc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:N,strategy:d}):R);return{top:(T.top-L.top+E.top)/D.y,bottom:(L.bottom-T.bottom+E.bottom)/D.y,left:(T.left-L.left+E.left)/D.x,right:(L.right-T.right+E.right)/D.x}}const kO=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:l,rects:s,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:m=0}=Lr(e,n)||{};if(h==null)return{};const y=U1(m),b={x:r,y:i},w=fm(l),E=cm(w),S=await c.getDimensions(h),A=w==="y",T=A?"top":"left",R=A?"bottom":"right",N=A?"clientHeight":"clientWidth",D=s.reference[E]+s.reference[w]-b[w]-s.floating[E],L=b[w]-s.reference[w],j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let F=j?j[N]:0;(!F||!await(c.isElement==null?void 0:c.isElement(j)))&&(F=f.floating[N]||s.floating[E]);const q=D/2-L/2,J=F/2-S[E]/2-1,z=xa(y[T],J),ee=xa(y[R],J),ae=z,W=F-S[E]-ee,U=F/2-S[E]/2+q,Q=up(ae,U,W),P=!d.arrow&&mo(l)!=null&&U!==Q&&s.reference[E]/2-(U<ae?z:ee)-S[E]/2<0,K=P?U<ae?U-ae:U-W:0;return{[w]:b[w]+K,data:{[w]:Q,centerOffset:U-Q-K,...P&&{alignmentOffset:K}},reset:P}}}),AO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:l,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...A}=Lr(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const T=zr(l),R=lr(f),N=zr(f)===f,D=await(d.isRTL==null?void 0:d.isRTL(h.floating)),L=b||(N||!S?[nc(f)]:vO(f)),j=E!=="none";!b&&j&&L.push(...SO(f,S,E,D));const F=[f,...L],q=await Il(n,A),J=[];let z=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&J.push(q[T]),y){const U=yO(l,c,D);J.push(q[U[0]],q[U[1]])}if(z=[...z,{placement:l,overflows:J}],!J.every(U=>U<=0)){var ee,ae;const U=(((ee=s.flip)==null?void 0:ee.index)||0)+1,Q=F[U];if(Q&&(!(y==="alignment"?R!==lr(Q):!1)||z.every(B=>lr(B.placement)===R?B.overflows[0]>0:!0)))return{data:{index:U,overflows:z},reset:{placement:Q}};let P=(ae=z.filter(K=>K.overflows[0]<=0).sort((K,B)=>K.overflows[1]-B.overflows[1])[0])==null?void 0:ae.placement;if(!P)switch(w){case"bestFit":{var W;const K=(W=z.filter(B=>{if(j){const ne=lr(B.placement);return ne===R||ne==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ne=>ne>0).reduce((ne,k)=>ne+k,0)]).sort((B,ne)=>B[1]-ne[1])[0])==null?void 0:W[0];K&&(P=K);break}case"initialPlacement":P=f;break}if(l!==P)return{reset:{placement:P}}}return{}}}};function Pb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Lb(e){return hO.some(n=>e[n]>=0)}const TO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=Lr(e,n);switch(i){case"referenceHidden":{const s=await Il(n,{...l,elementContext:"reference"}),c=Pb(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Lb(c)}}}case"escaped":{const s=await Il(n,{...l,altBoundary:!0}),c=Pb(s,r.floating);return{data:{escapedOffsets:c,escaped:Lb(c)}}}default:return{}}}}},H1=new Set(["left","top"]);async function RO(e,n){const{placement:r,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=zr(r),f=mo(r),d=lr(r)==="y",h=H1.has(c)?-1:1,m=s&&d?-1:1,y=Lr(n,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),d?{x:w*m,y:b*h}:{x:b*h,y:w*m}}const NO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:l,y:s,placement:c,middlewareData:f}=n,d=await RO(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:c}}}}},_O=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:A=>{let{x:T,y:R}=A;return{x:T,y:R}}},...d}=Lr(e,n),h={x:r,y:i},m=await Il(n,d),y=lr(zr(l)),b=um(y);let w=h[b],E=h[y];if(s){const A=b==="y"?"top":"left",T=b==="y"?"bottom":"right",R=w+m[A],N=w-m[T];w=up(R,w,N)}if(c){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",R=E+m[A],N=E-m[T];E=up(R,E,N)}const S=f.fn({...n,[b]:w,[y]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[b]:s,[y]:c}}}}}},MO=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:l,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Lr(e,n),m={x:r,y:i},y=lr(l),b=um(y);let w=m[b],E=m[y];const S=Lr(f,n),A=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const N=b==="y"?"height":"width",D=s.reference[b]-s.floating[N]+A.mainAxis,L=s.reference[b]+s.reference[N]-A.mainAxis;w<D?w=D:w>L&&(w=L)}if(h){var T,R;const N=b==="y"?"width":"height",D=H1.has(zr(l)),L=s.reference[y]-s.floating[N]+(D&&((T=c.offset)==null?void 0:T[y])||0)+(D?0:A.crossAxis),j=s.reference[y]+s.reference[N]+(D?0:((R=c.offset)==null?void 0:R[y])||0)-(D?A.crossAxis:0);E<L?E=L:E>j&&(E=j)}return{[b]:w,[y]:E}}}},jO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:l,rects:s,platform:c,elements:f}=n,{apply:d=()=>{},...h}=Lr(e,n),m=await Il(n,h),y=zr(l),b=mo(l),w=lr(l)==="y",{width:E,height:S}=s.floating;let A,T;y==="top"||y==="bottom"?(A=y,T=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(T=y,A=b==="end"?"top":"bottom");const R=S-m.top-m.bottom,N=E-m.left-m.right,D=xa(S-m[A],R),L=xa(E-m[T],N),j=!n.middlewareData.shift;let F=D,q=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(q=N),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(F=R),j&&!b){const z=wn(m.left,0),ee=wn(m.right,0),ae=wn(m.top,0),W=wn(m.bottom,0);w?q=E-2*(z!==0||ee!==0?z+ee:wn(m.left,m.right)):F=S-2*(ae!==0||W!==0?ae+W:wn(m.top,m.bottom))}await d({...n,availableWidth:q,availableHeight:F});const J=await c.getDimensions(f.floating);return E!==J.width||S!==J.height?{reset:{rects:!0}}:{}}}};function Nc(){return typeof window<"u"}function go(e){return F1(e)?(e.nodeName||"").toLowerCase():"#document"}function Sn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function fr(e){var n;return(n=(F1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function F1(e){return Nc()?e instanceof Node||e instanceof Sn(e).Node:!1}function Qn(e){return Nc()?e instanceof Element||e instanceof Sn(e).Element:!1}function cr(e){return Nc()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}function zb(e){return!Nc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}const DO=new Set(["inline","contents"]);function ns(e){const{overflow:n,overflowX:r,overflowY:i,display:l}=Zn(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!DO.has(l)}const OO=new Set(["table","td","th"]);function PO(e){return OO.has(go(e))}const LO=[":popover-open",":modal"];function _c(e){return LO.some(n=>{try{return e.matches(n)}catch{return!1}})}const zO=["transform","translate","scale","rotate","perspective"],IO=["transform","translate","scale","rotate","perspective","filter"],BO=["paint","layout","strict","content"];function dm(e){const n=hm(),r=Qn(e)?Zn(e):e;return zO.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||IO.some(i=>(r.willChange||"").includes(i))||BO.some(i=>(r.contain||"").includes(i))}function UO(e){let n=ba(e);for(;cr(n)&&!no(n);){if(dm(n))return n;if(_c(n))return null;n=ba(n)}return null}function hm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const HO=new Set(["html","body","#document"]);function no(e){return HO.has(go(e))}function Zn(e){return Sn(e).getComputedStyle(e)}function Mc(e){return Qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ba(e){if(go(e)==="html")return e;const n=e.assignedSlot||e.parentNode||zb(e)&&e.host||fr(e);return zb(n)?n.host:n}function V1(e){const n=ba(e);return no(n)?e.ownerDocument?e.ownerDocument.body:e.body:cr(n)&&ns(n)?n:V1(n)}function Bl(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=V1(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),c=Sn(l);if(s){const f=fp(c);return n.concat(c,c.visualViewport||[],ns(l)?l:[],f&&r?Bl(f):[])}return n.concat(l,Bl(l,[],r))}function fp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function q1(e){const n=Zn(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=cr(e),s=l?e.offsetWidth:r,c=l?e.offsetHeight:i,f=tc(r)!==s||tc(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function pm(e){return Qn(e)?e:e.contextElement}function Ji(e){const n=pm(e);if(!cr(n))return ur(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:s}=q1(n);let c=(s?tc(r.width):r.width)/i,f=(s?tc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const FO=ur(0);function $1(e){const n=Sn(e);return!hm()||!n.visualViewport?FO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function VO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Sn(e)?!1:n}function Xa(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=pm(e);let c=ur(1);n&&(i?Qn(i)&&(c=Ji(i)):c=Ji(e));const f=VO(s,r,i)?$1(s):ur(0);let d=(l.left+f.x)/c.x,h=(l.top+f.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(s){const b=Sn(s),w=i&&Qn(i)?Sn(i):i;let E=b,S=fp(E);for(;S&&i&&w!==E;){const A=Ji(S),T=S.getBoundingClientRect(),R=Zn(S),N=T.left+(S.clientLeft+parseFloat(R.paddingLeft))*A.x,D=T.top+(S.clientTop+parseFloat(R.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,y*=A.y,d+=N,h+=D,E=Sn(S),S=fp(E)}}return rc({width:m,height:y,x:d,y:h})}function mm(e,n){const r=Mc(e).scrollLeft;return n?n.left+r:Xa(fr(e)).left+r}function G1(e,n,r){r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-(r?0:mm(e,i)),s=i.top+n.scrollTop;return{x:l,y:s}}function qO(e){let{elements:n,rect:r,offsetParent:i,strategy:l}=e;const s=l==="fixed",c=fr(i),f=n?_c(n.floating):!1;if(i===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=ur(1);const m=ur(0),y=cr(i);if((y||!y&&!s)&&((go(i)!=="body"||ns(c))&&(d=Mc(i)),cr(i))){const w=Xa(i);h=Ji(i),m.x=w.x+i.clientLeft,m.y=w.y+i.clientTop}const b=c&&!y&&!s?G1(c,d,!0):ur(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:r.y*h.y-d.scrollTop*h.y+m.y+b.y}}function $O(e){return Array.from(e.getClientRects())}function GO(e){const n=fr(e),r=Mc(e),i=e.ownerDocument.body,l=wn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=wn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+mm(e);const f=-r.scrollTop;return Zn(i).direction==="rtl"&&(c+=wn(n.clientWidth,i.clientWidth)-l),{width:l,height:s,x:c,y:f}}function YO(e,n){const r=Sn(e),i=fr(e),l=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,d=0;if(l){s=l.width,c=l.height;const h=hm();(!h||h&&n==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:c,x:f,y:d}}const KO=new Set(["absolute","fixed"]);function XO(e,n){const r=Xa(e,!0,n==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,s=cr(e)?Ji(e):ur(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=l*s.x,h=i*s.y;return{width:c,height:f,x:d,y:h}}function Ib(e,n,r){let i;if(n==="viewport")i=YO(e,r);else if(n==="document")i=GO(fr(e));else if(Qn(n))i=XO(n,r);else{const l=$1(e);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return rc(i)}function Y1(e,n){const r=ba(e);return r===n||!Qn(r)||no(r)?!1:Zn(r).position==="fixed"||Y1(r,n)}function QO(e,n){const r=n.get(e);if(r)return r;let i=Bl(e,[],!1).filter(f=>Qn(f)&&go(f)!=="body"),l=null;const s=Zn(e).position==="fixed";let c=s?ba(e):e;for(;Qn(c)&&!no(c);){const f=Zn(c),d=dm(c);!d&&f.position==="fixed"&&(l=null),(s?!d&&!l:!d&&f.position==="static"&&!!l&&KO.has(l.position)||ns(c)&&!d&&Y1(e,c))?i=i.filter(m=>m!==c):l=f,c=ba(c)}return n.set(e,i),i}function ZO(e){let{element:n,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?_c(n)?[]:QO(n,this._c):[].concat(r),i],f=c[0],d=c.reduce((h,m)=>{const y=Ib(n,m,l);return h.top=wn(y.top,h.top),h.right=xa(y.right,h.right),h.bottom=xa(y.bottom,h.bottom),h.left=wn(y.left,h.left),h},Ib(n,f,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function WO(e){const{width:n,height:r}=q1(e);return{width:n,height:r}}function JO(e,n,r){const i=cr(n),l=fr(n),s=r==="fixed",c=Xa(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const d=ur(0);function h(){d.x=mm(l)}if(i||!i&&!s)if((go(n)!=="body"||ns(l))&&(f=Mc(n)),i){const w=Xa(n,!0,s,n);d.x=w.x+n.clientLeft,d.y=w.y+n.clientTop}else l&&h();s&&!i&&l&&h();const m=l&&!i&&!s?G1(l,f):ur(0),y=c.left+f.scrollLeft-d.x-m.x,b=c.top+f.scrollTop-d.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function Th(e){return Zn(e).position==="static"}function Bb(e,n){if(!cr(e)||Zn(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return fr(e)===r&&(r=r.ownerDocument.body),r}function K1(e,n){const r=Sn(e);if(_c(e))return r;if(!cr(e)){let l=ba(e);for(;l&&!no(l);){if(Qn(l)&&!Th(l))return l;l=ba(l)}return r}let i=Bb(e,n);for(;i&&PO(i)&&Th(i);)i=Bb(i,n);return i&&no(i)&&Th(i)&&!dm(i)?r:i||UO(e)||r}const e4=async function(e){const n=this.getOffsetParent||K1,r=this.getDimensions,i=await r(e.floating);return{reference:JO(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function t4(e){return Zn(e).direction==="rtl"}const n4={convertOffsetParentRelativeRectToViewportRelativeRect:qO,getDocumentElement:fr,getClippingRect:ZO,getOffsetParent:K1,getElementRects:e4,getClientRects:$O,getDimensions:WO,getScale:Ji,isElement:Qn,isRTL:t4};function X1(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function r4(e,n){let r=null,i;const l=fr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:m,top:y,width:b,height:w}=h;if(f||n(),!b||!w)return;const E=Ou(y),S=Ou(l.clientWidth-(m+b)),A=Ou(l.clientHeight-(y+w)),T=Ou(m),N={rootMargin:-E+"px "+-S+"px "+-A+"px "+-T+"px",threshold:wn(0,xa(1,d))||1};let D=!0;function L(j){const F=j[0].intersectionRatio;if(F!==d){if(!D)return c();F?c(!1,F):i=setTimeout(()=>{c(!1,1e-7)},1e3)}F===1&&!X1(h,e.getBoundingClientRect())&&c(),D=!1}try{r=new IntersectionObserver(L,{...N,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,N)}r.observe(e)}return c(!0),s}function a4(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=pm(e),m=l||s?[...h?Bl(h):[],...Bl(n)]:[];m.forEach(T=>{l&&T.addEventListener("scroll",r,{passive:!0}),s&&T.addEventListener("resize",r)});const y=h&&f?r4(h,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(T=>{let[R]=T;R&&R.target===h&&w&&(w.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=w)==null||N.observe(n)})),r()}),h&&!d&&w.observe(h),w.observe(n));let E,S=d?Xa(e):null;d&&A();function A(){const T=Xa(e);S&&!X1(S,T)&&r(),S=T,E=requestAnimationFrame(A)}return r(),()=>{var T;m.forEach(R=>{l&&R.removeEventListener("scroll",r),s&&R.removeEventListener("resize",r)}),y?.(),(T=w)==null||T.disconnect(),w=null,d&&cancelAnimationFrame(E)}}const i4=NO,o4=_O,l4=AO,s4=jO,u4=TO,Ub=kO,c4=MO,f4=(e,n,r)=>{const i=new Map,l={platform:n4,...r},s={...l.platform,_c:i};return CO(e,n,{...l,platform:s})};var d4=typeof document<"u",h4=function(){},Gu=d4?v.useLayoutEffect:h4;function ac(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!ac(e[i],n[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const s=l[i];if(!(s==="_owner"&&e.$$typeof)&&!ac(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function Q1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hb(e,n){const r=Q1(e);return Math.round(n*r)/r}function Rh(e){const n=v.useRef(e);return Gu(()=>{n.current=e}),n}function p4(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[m,y]=v.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,w]=v.useState(i);ac(b,i)||w(i);const[E,S]=v.useState(null),[A,T]=v.useState(null),R=v.useCallback(B=>{B!==j.current&&(j.current=B,S(B))},[]),N=v.useCallback(B=>{B!==F.current&&(F.current=B,T(B))},[]),D=s||E,L=c||A,j=v.useRef(null),F=v.useRef(null),q=v.useRef(m),J=d!=null,z=Rh(d),ee=Rh(l),ae=Rh(h),W=v.useCallback(()=>{if(!j.current||!F.current)return;const B={placement:n,strategy:r,middleware:b};ee.current&&(B.platform=ee.current),f4(j.current,F.current,B).then(ne=>{const k={...ne,isPositioned:ae.current!==!1};U.current&&!ac(q.current,k)&&(q.current=k,uo.flushSync(()=>{y(k)}))})},[b,n,r,ee,ae]);Gu(()=>{h===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[h]);const U=v.useRef(!1);Gu(()=>(U.current=!0,()=>{U.current=!1}),[]),Gu(()=>{if(D&&(j.current=D),L&&(F.current=L),D&&L){if(z.current)return z.current(D,L,W);W()}},[D,L,W,z,J]);const Q=v.useMemo(()=>({reference:j,floating:F,setReference:R,setFloating:N}),[R,N]),P=v.useMemo(()=>({reference:D,floating:L}),[D,L]),K=v.useMemo(()=>{const B={position:r,left:0,top:0};if(!P.floating)return B;const ne=Hb(P.floating,m.x),k=Hb(P.floating,m.y);return f?{...B,transform:"translate("+ne+"px, "+k+"px)",...Q1(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ne,top:k}},[r,f,P.floating,m.x,m.y]);return v.useMemo(()=>({...m,update:W,refs:Q,elements:P,floatingStyles:K}),[m,W,Q,P,K])}const m4=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?Ub({element:i.current,padding:l}).fn(r):{}:i?Ub({element:i,padding:l}).fn(r):{}}}},g4=(e,n)=>({...i4(e),options:[e,n]}),y4=(e,n)=>({...o4(e),options:[e,n]}),v4=(e,n)=>({...c4(e),options:[e,n]}),x4=(e,n)=>({...l4(e),options:[e,n]}),b4=(e,n)=>({...s4(e),options:[e,n]}),w4=(e,n)=>({...u4(e),options:[e,n]}),S4=(e,n)=>({...m4(e),options:[e,n]});var E4="Arrow",Z1=v.forwardRef((e,n)=>{const{children:r,width:i=10,height:l=5,...s}=e;return g.jsx(Me.svg,{...s,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Z1.displayName=E4;var C4=Z1;function W1(e){const[n,r]=v.useState(void 0);return zt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var gm="Popper",[J1,yo]=Bn(gm),[k4,eS]=J1(gm),tS=e=>{const{__scopePopper:n,children:r}=e,[i,l]=v.useState(null);return g.jsx(k4,{scope:n,anchor:i,onAnchorChange:l,children:r})};tS.displayName=gm;var nS="PopperAnchor",rS=v.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...l}=e,s=eS(nS,r),c=v.useRef(null),f=Be(n,c),d=v.useRef(null);return v.useEffect(()=>{const h=d.current;d.current=i?.current||c.current,h!==d.current&&s.onAnchorChange(d.current)}),i?null:g.jsx(Me.div,{...l,ref:f})});rS.displayName=nS;var ym="PopperContent",[A4,T4]=J1(ym),aS=v.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:E,...S}=e,A=eS(ym,r),[T,R]=v.useState(null),N=Be(n,le=>R(le)),[D,L]=v.useState(null),j=W1(D),F=j?.width??0,q=j?.height??0,J=i+(s!=="center"?"-"+s:""),z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ee=Array.isArray(h)?h:[h],ae=ee.length>0,W={padding:z,boundary:ee.filter(N4),altBoundary:ae},{refs:U,floatingStyles:Q,placement:P,isPositioned:K,middlewareData:B}=p4({strategy:"fixed",placement:J,whileElementsMounted:(...le)=>a4(...le,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[g4({mainAxis:l+q,alignmentAxis:c}),d&&y4({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?v4():void 0,...W}),d&&x4({...W}),b4({...W,apply:({elements:le,rects:ge,availableWidth:ke,availableHeight:Ne})=>{const{width:Le,height:Ye}=ge.reference,bt=le.floating.style;bt.setProperty("--radix-popper-available-width",`${ke}px`),bt.setProperty("--radix-popper-available-height",`${Ne}px`),bt.setProperty("--radix-popper-anchor-width",`${Le}px`),bt.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),D&&S4({element:D,padding:f}),_4({arrowWidth:F,arrowHeight:q}),b&&w4({strategy:"referenceHidden",...W})]}),[ne,k]=lS(P),Z=Et(E);zt(()=>{K&&Z?.()},[K,Z]);const se=B.arrow?.x,M=B.arrow?.y,ce=B.arrow?.centerOffset!==0,[ye,pe]=v.useState();return zt(()=>{T&&pe(window.getComputedStyle(T).zIndex)},[T]),g.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:K?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(A4,{scope:r,placedSide:ne,onArrowChange:L,arrowX:se,arrowY:M,shouldHideArrow:ce,children:g.jsx(Me.div,{"data-side":ne,"data-align":k,...S,ref:N,style:{...S.style,animation:K?void 0:"none"}})})})});aS.displayName=ym;var iS="PopperArrow",R4={top:"bottom",right:"left",bottom:"top",left:"right"},oS=v.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,s=T4(iS,i),c=R4[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(C4,{...l,ref:r,style:{...l.style,display:"block"}})})});oS.displayName=iS;function N4(e){return e!==null}var _4=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:l}=n,c=l.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,m]=lS(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(l.arrow?.x??0)+f/2,w=(l.arrow?.y??0)+d/2;let E="",S="";return h==="bottom"?(E=c?y:`${b}px`,S=`${-d}px`):h==="top"?(E=c?y:`${b}px`,S=`${i.floating.height+d}px`):h==="right"?(E=`${-d}px`,S=c?y:`${w}px`):h==="left"&&(E=`${i.floating.width+d}px`,S=c?y:`${w}px`),{data:{x:E,y:S}}}});function lS(e){const[n,r="center"]=e.split("-");return[n,r]}var vm=tS,xm=rS,bm=aS,wm=oS,[jc,YU]=Bn("Tooltip",[yo]),Dc=yo(),sS="TooltipProvider",M4=700,dp="tooltip.open",[j4,Sm]=jc(sS),uS=e=>{const{__scopeTooltip:n,delayDuration:r=M4,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:s}=e,c=v.useRef(!0),f=v.useRef(!1),d=v.useRef(0);return v.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),g.jsx(j4,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(h=>{f.current=h},[]),disableHoverableContent:l,children:s})};uS.displayName=sS;var Ul="Tooltip",[D4,Oc]=jc(Ul),cS=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:l,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,d=Sm(Ul,e.__scopeTooltip),h=Dc(n),[m,y]=v.useState(null),b=sr(),w=v.useRef(0),E=c??d.disableHoverableContent,S=f??d.delayDuration,A=v.useRef(!1),[T,R]=va({prop:i,defaultProp:l??!1,onChange:F=>{F?(d.onOpen(),document.dispatchEvent(new CustomEvent(dp))):d.onClose(),s?.(F)},caller:Ul}),N=v.useMemo(()=>T?A.current?"delayed-open":"instant-open":"closed",[T]),D=v.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,R(!0)},[R]),L=v.useCallback(()=>{window.clearTimeout(w.current),w.current=0,R(!1)},[R]),j=v.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,R(!0),w.current=0},S)},[S,R]);return v.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(vm,{...h,children:g.jsx(D4,{scope:n,contentId:b,open:T,stateAttribute:N,trigger:m,onTriggerChange:y,onTriggerEnter:v.useCallback(()=>{d.isOpenDelayedRef.current?j():D()},[d.isOpenDelayedRef,j,D]),onTriggerLeave:v.useCallback(()=>{E?L():(window.clearTimeout(w.current),w.current=0)},[L,E]),onOpen:D,onClose:L,disableHoverableContent:E,children:r})})};cS.displayName=Ul;var hp="TooltipTrigger",fS=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=Oc(hp,r),s=Sm(hp,r),c=Dc(r),f=v.useRef(null),d=Be(n,f,l.onTriggerChange),h=v.useRef(!1),m=v.useRef(!1),y=v.useCallback(()=>h.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(xm,{asChild:!0,...c,children:g.jsx(Me.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:d,onPointerMove:me(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:me(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:me(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:me(e.onBlur,l.onClose),onClick:me(e.onClick,l.onClose)})})});fS.displayName=hp;var O4="TooltipPortal",[KU,P4]=jc(O4,{forceMount:void 0}),ro="TooltipContent",dS=v.forwardRef((e,n)=>{const r=P4(ro,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...s}=e,c=Oc(ro,e.__scopeTooltip);return g.jsx(Jt,{present:i||c.open,children:c.disableHoverableContent?g.jsx(hS,{side:l,...s,ref:n}):g.jsx(L4,{side:l,...s,ref:n})})}),L4=v.forwardRef((e,n)=>{const r=Oc(ro,e.__scopeTooltip),i=Sm(ro,e.__scopeTooltip),l=v.useRef(null),s=Be(n,l),[c,f]=v.useState(null),{trigger:d,onClose:h}=r,m=l.current,{onPointerInTransitChange:y}=i,b=v.useCallback(()=>{f(null),y(!1)},[y]),w=v.useCallback((E,S)=>{const A=E.currentTarget,T={x:E.clientX,y:E.clientY},R=H4(T,A.getBoundingClientRect()),N=F4(T,R),D=V4(S.getBoundingClientRect()),L=$4([...N,...D]);f(L),y(!0)},[y]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(d&&m){const E=A=>w(A,m),S=A=>w(A,d);return d.addEventListener("pointerleave",E),m.addEventListener("pointerleave",S),()=>{d.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",S)}}},[d,m,w,b]),v.useEffect(()=>{if(c){const E=S=>{const A=S.target,T={x:S.clientX,y:S.clientY},R=d?.contains(A)||m?.contains(A),N=!q4(T,c);R?b():N&&(b(),h())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,m,c,h,b]),g.jsx(hS,{...e,ref:s})}),[z4,I4]=jc(Ul,{isInside:!1}),B4=pw("TooltipContent"),hS=v.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,d=Oc(ro,r),h=Dc(r),{onClose:m}=d;return v.useEffect(()=>(document.addEventListener(dp,m),()=>document.removeEventListener(dp,m)),[m]),v.useEffect(()=>{if(d.trigger){const y=b=>{b.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[d.trigger,m]),g.jsx(fo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(bm,{"data-state":d.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(B4,{children:i}),g.jsx(z4,{scope:r,isInside:!0,children:g.jsx(x_,{id:d.contentId,role:"tooltip",children:l||i})})]})})});dS.displayName=ro;var pS="TooltipArrow",U4=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=Dc(r);return I4(pS,r).isInside?null:g.jsx(wm,{...l,...i,ref:n})});U4.displayName=pS;function H4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,l,s)){case s:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function F4(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function V4(e){const{top:n,right:r,bottom:i,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:i},{x:l,y:i}]}function q4(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,b=d.y;m>i!=b>i&&r<(y-h)*(i-m)/(b-m)+h&&(l=!l)}return l}function $4(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),G4(n)}function G4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const l=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var Y4=uS,K4=cS,X4=fS,mS=dS;const Q4=Y4,Z4=K4,W4=X4,gS=v.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(mS,{ref:i,sideOffset:n,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));gS.displayName=mS.displayName;const J4="sidebar_state",eP=3600*24*7,tP="16rem",nP="18rem",rP="3rem",aP="b",yS=v.createContext(null);function Pc(){const e=v.useContext(yS);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const vS=v.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:l,children:s,...c},f)=>{const d=i1(),[h,m]=v.useState(!1),[y,b]=v.useState(e),w=n??y,E=v.useCallback(R=>{const N=typeof R=="function"?R(w):R;r?r(N):b(N),document.cookie=`${J4}=${N}; path=/; max-age=${eP}`},[r,w]),S=v.useCallback(()=>d?m(R=>!R):E(R=>!R),[d,E,m]);v.useEffect(()=>{const R=N=>{N.key===aP&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),S())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[S]);const A=w?"expanded":"collapsed",T=v.useMemo(()=>({state:A,open:w,setOpen:E,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:S}),[A,w,E,d,h,m,S]);return g.jsx(yS.Provider,{value:T,children:g.jsx(Q4,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":tP,"--sidebar-width-icon":rP,...l},className:ue("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});vS.displayName="SidebarProvider";const xS=v.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:l,...s},c)=>{const{isMobile:f,state:d,openMobile:h,setOpenMobile:m}=Pc();return r==="none"?g.jsx("div",{className:ue("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:l}):f?g.jsx(z1,{open:h,onOpenChange:m,...s,children:g.jsxs(om,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":nP},side:e,children:[g.jsxs(lm,{className:"sr-only",children:[g.jsx(sm,{children:"Sidebar"}),g.jsx(B1,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:l})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:ue("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),g.jsx("div",{className:ue("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:g.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});xS.displayName="Sidebar";const bS=v.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:l}=Pc();return g.jsxs(yt,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ue("h-7 w-7",e),onClick:s=>{n?.(s),l()},...r,children:[g.jsx(BM,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});bS.displayName="SidebarTrigger";const iP=v.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=Pc();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:ue("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});iP.displayName="SidebarRail";const wS=v.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:ue("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...n}));wS.displayName="SidebarInset";const oP=v.forwardRef(({className:e,...n},r)=>g.jsx(o1,{ref:r,"data-sidebar":"input",className:ue("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));oP.displayName="SidebarInput";const SS=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:ue("flex flex-col gap-2 p-2",e),...n}));SS.displayName="SidebarHeader";const ES=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:ue("flex flex-col gap-2 p-2",e),...n}));ES.displayName="SidebarFooter";const lP=v.forwardRef(({className:e,...n},r)=>g.jsx(u1,{ref:r,"data-sidebar":"separator",className:ue("mx-2 w-auto bg-sidebar-border",e),...n}));lP.displayName="SidebarSeparator";const CS=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:ue("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));CS.displayName="SidebarContent";const kl=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:ue("relative flex w-full min-w-0 flex-col p-2",e),...n}));kl.displayName="SidebarGroup";const Yu=v.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?co:"div";return g.jsx(l,{ref:i,"data-sidebar":"group-label",className:ue("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Yu.displayName="SidebarGroupLabel";const sP=v.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?co:"button";return g.jsx(l,{ref:i,"data-sidebar":"group-action",className:ue("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});sP.displayName="SidebarGroupAction";const Al=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:ue("w-full text-sm",e),...n}));Al.displayName="SidebarGroupContent";const qa=v.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:ue("flex w-full min-w-0 flex-col gap-1",e),...n}));qa.displayName="SidebarMenu";const $a=v.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:ue("group/menu-item relative",e),...n}));$a.displayName="SidebarMenuItem";const uP=Sc("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ga=v.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:l,className:s,...c},f)=>{const d=e?co:"button",{isMobile:h,state:m}=Pc(),y=g.jsx(d,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:ue(uP({variant:r,size:i}),s),...c});return l?(typeof l=="string"&&(l={children:l}),g.jsxs(Z4,{children:[g.jsx(W4,{asChild:!0,children:y}),g.jsx(gS,{side:"right",align:"center",hidden:m!=="collapsed"||h,...l})]})):y});Ga.displayName="SidebarMenuButton";const cP=v.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},l)=>{const s=n?co:"button";return g.jsx(s,{ref:l,"data-sidebar":"menu-action",className:ue("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...i})});cP.displayName="SidebarMenuAction";const pp=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:ue("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums shadow-sm","transition-all duration-200 ease-in-out hover:scale-110","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));pp.displayName="SidebarMenuBadge";const fP=v.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const l=v.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:ue("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(Mb,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(Mb,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});fP.displayName="SidebarMenuSkeleton";const dP=v.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:ue("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));dP.displayName="SidebarMenuSub";const hP=v.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));hP.displayName="SidebarMenuSubItem";const pP=v.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...l},s)=>{const c=e?co:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:ue("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...l})});pP.displayName="SidebarMenuSubButton";const mP="1.0.75-alpha.8",gP={version:mP};function yP({className:e}){return g.jsxs("svg",{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",className:e,children:[g.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),g.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),g.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),g.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const vP=[{title:"Home",url:"/",icon:SM},{title:"Role",url:"/context/role",icon:dj},{title:"Skills",url:"/skills",icon:iM}],xP=[{title:"Tasks",url:"/proposals",icon:Fw},{title:"Agents",url:"/code",icon:Ml},{title:"Jobs",url:"/schedule",icon:X_},{title:"Utilities",url:"/utilities",icon:gj}],bP=[{title:"Overview",url:"/context/project",icon:Wu},{title:"Architecture",url:"/context/architecture",icon:YM},{title:"Knowledge",url:"/context/knowledge",icon:Y_},{title:"Resources",url:"/resources",icon:gM}],wP=[{title:"Source Control",url:"/git",icon:Vw},{title:"Terminal",url:"/terminal",icon:oj},{title:"Identity",url:"/identity",icon:CM},{title:"Activity",url:"/activity",icon:q_}],SP=[{title:"Documentation",url:"https://docs.coconut.dev/studio",icon:zM,external:!0},{title:"Settings",url:"/settings/user",icon:XM}];function EP(){const{badges:e}=HN();return g.jsxs(xS,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(SS,{children:g.jsx(qa,{children:g.jsx($a,{children:g.jsx(Ga,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs(Dr,{to:"/",children:[g.jsx(yP,{className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-0.5",children:[g.jsxs("span",{className:"font-semibold",children:[g.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-yellow-600 bg-clip-text text-transparent",children:"Coconut"}),g.jsx("span",{children:" Studio"})]}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",gP.version]})]})]})})})})}),g.jsxs(CS,{children:[g.jsx(kl,{children:g.jsx(Al,{children:g.jsx(qa,{children:vP.map(n=>g.jsx($a,{children:g.jsx(Ga,{asChild:!0,children:g.jsxs(Dr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})}),g.jsxs(kl,{children:[g.jsx(Yu,{children:"Work"}),g.jsx(Al,{children:g.jsx(qa,{children:xP.map(n=>{let r=0;return n.title==="Code"&&e.codeSessions>0?r=e.codeSessions:n.title==="Jobs"&&e.runningScheduledJobs>0&&(r=e.runningScheduledJobs),g.jsxs($a,{children:[g.jsx(Ga,{asChild:!0,children:g.jsxs(Dr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(pp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]}),g.jsxs(kl,{children:[g.jsx(Yu,{children:"Assets"}),g.jsx(Al,{children:g.jsx(qa,{children:bP.map(n=>g.jsx($a,{children:g.jsx(Ga,{asChild:!0,children:g.jsxs(Dr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(kl,{children:[g.jsx(Yu,{children:"System"}),g.jsx(Al,{children:g.jsx(qa,{children:wP.map(n=>{let r=0;return n.title==="Source Control"&&e.gitChanges>0?r=e.gitChanges:n.title==="Terminal"&&e.terminalSessions>0&&(r=e.terminalSessions),g.jsxs($a,{children:[g.jsx(Ga,{asChild:!0,children:g.jsxs(Dr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(pp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]})]}),g.jsx(ES,{children:g.jsx(qa,{children:SP.map(n=>g.jsx($a,{children:g.jsx(Ga,{asChild:!0,children:n.external?g.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]}):g.jsxs(Dr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]})}function mp(e,[n,r]){return Math.min(r,Math.max(n,e))}var CP=v.createContext(void 0);function Lc(e){const n=v.useContext(CP);return e||n||"ltr"}function kS(e){const n=v.useRef({value:e,previous:e});return v.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var kP=[" ","Enter","ArrowUp","ArrowDown"],AP=[" ","Enter"],Qa="Select",[zc,Ic,TP]=xc(Qa),[vo,XU]=Bn(Qa,[TP,yo]),Bc=yo(),[RP,wa]=vo(Qa),[NP,_P]=vo(Qa),AS=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:l,onOpenChange:s,value:c,defaultValue:f,onValueChange:d,dir:h,name:m,autoComplete:y,disabled:b,required:w,form:E}=e,S=Bc(n),[A,T]=v.useState(null),[R,N]=v.useState(null),[D,L]=v.useState(!1),j=Lc(h),[F,q]=va({prop:i,defaultProp:l??!1,onChange:s,caller:Qa}),[J,z]=va({prop:c,defaultProp:f,onChange:d,caller:Qa}),ee=v.useRef(null),ae=A?E||!!A.closest("form"):!0,[W,U]=v.useState(new Set),Q=Array.from(W).map(P=>P.props.value).join(";");return g.jsx(vm,{...S,children:g.jsxs(RP,{required:w,scope:n,trigger:A,onTriggerChange:T,valueNode:R,onValueNodeChange:N,valueNodeHasChildren:D,onValueNodeHasChildrenChange:L,contentId:sr(),value:J,onValueChange:z,open:F,onOpenChange:q,dir:j,triggerPointerDownPosRef:ee,disabled:b,children:[g.jsx(zc.Provider,{scope:n,children:g.jsx(NP,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(P=>{U(K=>new Set(K).add(P))},[]),onNativeOptionRemove:v.useCallback(P=>{U(K=>{const B=new Set(K);return B.delete(P),B})},[]),children:r})}),ae?g.jsxs(QS,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:y,value:J,onChange:P=>z(P.target.value),disabled:b,form:E,children:[J===void 0?g.jsx("option",{value:""}):null,Array.from(W)]},Q):null]})})};AS.displayName=Qa;var TS="SelectTrigger",RS=v.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,s=Bc(r),c=wa(TS,r),f=c.disabled||i,d=Be(n,c.onTriggerChange),h=Ic(r),m=v.useRef("touch"),[y,b,w]=WS(S=>{const A=h().filter(N=>!N.disabled),T=A.find(N=>N.value===c.value),R=JS(A,S,T);R!==void 0&&c.onValueChange(R.value)}),E=S=>{f||(c.onOpenChange(!0),w()),S&&(c.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return g.jsx(xm,{asChild:!0,...s,children:g.jsx(Me.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":ZS(c.value)?"":void 0,...l,ref:d,onClick:me(l.onClick,S=>{S.currentTarget.focus(),m.current!=="mouse"&&E(S)}),onPointerDown:me(l.onPointerDown,S=>{m.current=S.pointerType;const A=S.target;A.hasPointerCapture(S.pointerId)&&A.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:me(l.onKeyDown,S=>{const A=y.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(A&&S.key===" ")&&kP.includes(S.key)&&(E(),S.preventDefault())})})})});RS.displayName=TS;var NS="SelectValue",_S=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,children:s,placeholder:c="",...f}=e,d=wa(NS,r),{onValueNodeHasChildrenChange:h}=d,m=s!==void 0,y=Be(n,d.onValueNodeChange);return zt(()=>{h(m)},[h,m]),g.jsx(Me.span,{...f,ref:y,style:{pointerEvents:"none"},children:ZS(d.value)?g.jsx(g.Fragment,{children:c}):s})});_S.displayName=NS;var MP="SelectIcon",MS=v.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...l}=e;return g.jsx(Me.span,{"aria-hidden":!0,...l,ref:n,children:i||"▼"})});MS.displayName=MP;var jP="SelectPortal",jS=e=>g.jsx(Ql,{asChild:!0,...e});jS.displayName=jP;var Za="SelectContent",DS=v.forwardRef((e,n)=>{const r=wa(Za,e.__scopeSelect),[i,l]=v.useState();if(zt(()=>{l(new DocumentFragment)},[]),!r.open){const s=i;return s?uo.createPortal(g.jsx(OS,{scope:e.__scopeSelect,children:g.jsx(zc.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(PS,{...e,ref:n})});DS.displayName=Za;var Yn=10,[OS,Sa]=vo(Za),DP="SelectContentImpl",OP=Ya("SelectContent.RemoveScroll"),PS=v.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:c,side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:A,...T}=e,R=wa(Za,r),[N,D]=v.useState(null),[L,j]=v.useState(null),F=Be(n,le=>D(le)),[q,J]=v.useState(null),[z,ee]=v.useState(null),ae=Ic(r),[W,U]=v.useState(!1),Q=v.useRef(!1);v.useEffect(()=>{if(N)return em(N)},[N]),Jp();const P=v.useCallback(le=>{const[ge,...ke]=ae().map(Ye=>Ye.ref.current),[Ne]=ke.slice(-1),Le=document.activeElement;for(const Ye of le)if(Ye===Le||(Ye?.scrollIntoView({block:"nearest"}),Ye===ge&&L&&(L.scrollTop=0),Ye===Ne&&L&&(L.scrollTop=L.scrollHeight),Ye?.focus(),document.activeElement!==Le))return},[ae,L]),K=v.useCallback(()=>P([q,N]),[P,q,N]);v.useEffect(()=>{W&&K()},[W,K]);const{onOpenChange:B,triggerPointerDownPosRef:ne}=R;v.useEffect(()=>{if(N){let le={x:0,y:0};const ge=Ne=>{le={x:Math.abs(Math.round(Ne.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(Ne.pageY)-(ne.current?.y??0))}},ke=Ne=>{le.x<=10&&le.y<=10?Ne.preventDefault():N.contains(Ne.target)||B(!1),document.removeEventListener("pointermove",ge),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",ke,{capture:!0})}}},[N,B,ne]),v.useEffect(()=>{const le=()=>B(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[B]);const[k,Z]=WS(le=>{const ge=ae().filter(Le=>!Le.disabled),ke=ge.find(Le=>Le.ref.current===document.activeElement),Ne=JS(ge,le,ke);Ne&&setTimeout(()=>Ne.ref.current.focus())}),se=v.useCallback((le,ge,ke)=>{const Ne=!Q.current&&!ke;(R.value!==void 0&&R.value===ge||Ne)&&(J(le),Ne&&(Q.current=!0))},[R.value]),M=v.useCallback(()=>N?.focus(),[N]),ce=v.useCallback((le,ge,ke)=>{const Ne=!Q.current&&!ke;(R.value!==void 0&&R.value===ge||Ne)&&ee(le)},[R.value]),ye=i==="popper"?gp:LS,pe=ye===gp?{side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:A}:{};return g.jsx(OS,{scope:r,content:N,viewport:L,onViewportChange:j,itemRefCallback:se,selectedItem:q,onItemLeave:M,itemTextRefCallback:ce,focusSelectedItem:K,selectedItemText:z,position:i,isPositioned:W,searchRef:k,children:g.jsx(Ac,{as:OP,allowPinchZoom:!0,children:g.jsx(Cc,{asChild:!0,trapped:R.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:me(l,le=>{R.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:g.jsx(fo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:g.jsx(ye,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:le=>le.preventDefault(),...T,...pe,onPlaced:()=>U(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:me(T.onKeyDown,le=>{const ge=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ge&&le.key.length===1&&Z(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let Ne=ae().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(le.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const Le=le.target,Ye=Ne.indexOf(Le);Ne=Ne.slice(Ye+1)}setTimeout(()=>P(Ne)),le.preventDefault()}})})})})})})});PS.displayName=DP;var PP="SelectItemAlignedPosition",LS=v.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,s=wa(Za,r),c=Sa(Za,r),[f,d]=v.useState(null),[h,m]=v.useState(null),y=Be(n,F=>m(F)),b=Ic(r),w=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:A,selectedItemText:T,focusSelectedItem:R}=c,N=v.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&h&&S&&A&&T){const F=s.trigger.getBoundingClientRect(),q=h.getBoundingClientRect(),J=s.valueNode.getBoundingClientRect(),z=T.getBoundingClientRect();if(s.dir!=="rtl"){const Le=z.left-q.left,Ye=J.left-Le,bt=F.left-Ye,Ft=F.width+bt,Cn=Math.max(Ft,q.width),fn=window.innerWidth-Yn,lt=mp(Ye,[Yn,Math.max(Yn,fn-Cn)]);f.style.minWidth=Ft+"px",f.style.left=lt+"px"}else{const Le=q.right-z.right,Ye=window.innerWidth-J.right-Le,bt=window.innerWidth-F.right-Ye,Ft=F.width+bt,Cn=Math.max(Ft,q.width),fn=window.innerWidth-Yn,lt=mp(Ye,[Yn,Math.max(Yn,fn-Cn)]);f.style.minWidth=Ft+"px",f.style.right=lt+"px"}const ee=b(),ae=window.innerHeight-Yn*2,W=S.scrollHeight,U=window.getComputedStyle(h),Q=parseInt(U.borderTopWidth,10),P=parseInt(U.paddingTop,10),K=parseInt(U.borderBottomWidth,10),B=parseInt(U.paddingBottom,10),ne=Q+P+W+B+K,k=Math.min(A.offsetHeight*5,ne),Z=window.getComputedStyle(S),se=parseInt(Z.paddingTop,10),M=parseInt(Z.paddingBottom,10),ce=F.top+F.height/2-Yn,ye=ae-ce,pe=A.offsetHeight/2,le=A.offsetTop+pe,ge=Q+P+le,ke=ne-ge;if(ge<=ce){const Le=ee.length>0&&A===ee[ee.length-1].ref.current;f.style.bottom="0px";const Ye=h.clientHeight-S.offsetTop-S.offsetHeight,bt=Math.max(ye,pe+(Le?M:0)+Ye+K),Ft=ge+bt;f.style.height=Ft+"px"}else{const Le=ee.length>0&&A===ee[0].ref.current;f.style.top="0px";const bt=Math.max(ce,Q+S.offsetTop+(Le?se:0)+pe)+ke;f.style.height=bt+"px",S.scrollTop=ge-ce+S.offsetTop}f.style.margin=`${Yn}px 0`,f.style.minHeight=k+"px",f.style.maxHeight=ae+"px",i?.(),requestAnimationFrame(()=>w.current=!0)}},[b,s.trigger,s.valueNode,f,h,S,A,T,s.dir,i]);zt(()=>N(),[N]);const[D,L]=v.useState();zt(()=>{h&&L(window.getComputedStyle(h).zIndex)},[h]);const j=v.useCallback(F=>{F&&E.current===!0&&(N(),R?.(),E.current=!1)},[N,R]);return g.jsx(zP,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:j,children:g.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:g.jsx(Me.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});LS.displayName=PP;var LP="SelectPopperPosition",gp=v.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=Yn,...s}=e,c=Bc(r);return g.jsx(bm,{...c,...s,ref:n,align:i,collisionPadding:l,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gp.displayName=LP;var[zP,Em]=vo(Za,{}),yp="SelectViewport",zS=v.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...l}=e,s=Sa(yp,r),c=Em(yp,r),f=Be(n,s.onViewportChange),d=v.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),g.jsx(zc.Slot,{scope:r,children:g.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:me(l.onScroll,h=>{const m=h.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=c;if(b?.current&&y){const w=Math.abs(d.current-m.scrollTop);if(w>0){const E=window.innerHeight-Yn*2,S=parseFloat(y.style.minHeight),A=parseFloat(y.style.height),T=Math.max(S,A);if(T<E){const R=T+w,N=Math.min(E,R),D=R-N;y.style.height=N+"px",y.style.bottom==="0px"&&(m.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});zS.displayName=yp;var IS="SelectGroup",[IP,BP]=vo(IS),UP=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=sr();return g.jsx(IP,{scope:r,id:l,children:g.jsx(Me.div,{role:"group","aria-labelledby":l,...i,ref:n})})});UP.displayName=IS;var BS="SelectLabel",US=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=BP(BS,r);return g.jsx(Me.div,{id:l.id,...i,ref:n})});US.displayName=BS;var ic="SelectItem",[HP,HS]=vo(ic),FS=v.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:s,...c}=e,f=wa(ic,r),d=Sa(ic,r),h=f.value===i,[m,y]=v.useState(s??""),[b,w]=v.useState(!1),E=Be(n,R=>d.itemRefCallback?.(R,i,l)),S=sr(),A=v.useRef("touch"),T=()=>{l||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(HP,{scope:r,value:i,disabled:l,textId:S,isSelected:h,onItemTextChange:v.useCallback(R=>{y(N=>N||(R?.textContent??"").trim())},[]),children:g.jsx(zc.ItemSlot,{scope:r,value:i,disabled:l,textValue:m,children:g.jsx(Me.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:E,onFocus:me(c.onFocus,()=>w(!0)),onBlur:me(c.onBlur,()=>w(!1)),onClick:me(c.onClick,()=>{A.current!=="mouse"&&T()}),onPointerUp:me(c.onPointerUp,()=>{A.current==="mouse"&&T()}),onPointerDown:me(c.onPointerDown,R=>{A.current=R.pointerType}),onPointerMove:me(c.onPointerMove,R=>{A.current=R.pointerType,l?d.onItemLeave?.():A.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(c.onPointerLeave,R=>{R.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:me(c.onKeyDown,R=>{d.searchRef?.current!==""&&R.key===" "||(AP.includes(R.key)&&T(),R.key===" "&&R.preventDefault())})})})})});FS.displayName=ic;var Tl="SelectItemText",VS=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,...s}=e,c=wa(Tl,r),f=Sa(Tl,r),d=HS(Tl,r),h=_P(Tl,r),[m,y]=v.useState(null),b=Be(n,T=>y(T),d.onItemTextChange,T=>f.itemTextRefCallback?.(T,d.value,d.disabled)),w=m?.textContent,E=v.useMemo(()=>g.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:A}=h;return zt(()=>(S(E),()=>A(E)),[S,A,E]),g.jsxs(g.Fragment,{children:[g.jsx(Me.span,{id:d.textId,...s,ref:b}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?uo.createPortal(s.children,c.valueNode):null]})});VS.displayName=Tl;var qS="SelectItemIndicator",$S=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return HS(qS,r).isSelected?g.jsx(Me.span,{"aria-hidden":!0,...i,ref:n}):null});$S.displayName=qS;var vp="SelectScrollUpButton",GS=v.forwardRef((e,n)=>{const r=Sa(vp,e.__scopeSelect),i=Em(vp,e.__scopeSelect),[l,s]=v.useState(!1),c=Be(n,i.onScrollButtonChange);return zt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollTop>0;s(h)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(KS,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null});GS.displayName=vp;var xp="SelectScrollDownButton",YS=v.forwardRef((e,n)=>{const r=Sa(xp,e.__scopeSelect),i=Em(xp,e.__scopeSelect),[l,s]=v.useState(!1),c=Be(n,i.onScrollButtonChange);return zt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;s(m)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(KS,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null});YS.displayName=xp;var KS=v.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,s=Sa("SelectScrollButton",r),c=v.useRef(null),f=Ic(r),d=v.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return v.useEffect(()=>()=>d(),[d]),zt(()=>{f().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),g.jsx(Me.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:me(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:me(l.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:me(l.onPointerLeave,()=>{d()})})}),FP="SelectSeparator",XS=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return g.jsx(Me.div,{"aria-hidden":!0,...i,ref:n})});XS.displayName=FP;var bp="SelectArrow",VP=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=Bc(r),s=wa(bp,r),c=Sa(bp,r);return s.open&&c.position==="popper"?g.jsx(wm,{...l,...i,ref:n}):null});VP.displayName=bp;var qP="SelectBubbleInput",QS=v.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const l=v.useRef(null),s=Be(i,l),c=kS(n);return v.useEffect(()=>{const f=l.current;if(!f)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==n&&m){const y=new Event("change",{bubbles:!0});m.call(f,n),f.dispatchEvent(y)}},[c,n]),g.jsx(Me.select,{...r,style:{...vw,...r.style},ref:s,defaultValue:n})});QS.displayName=qP;function ZS(e){return e===""||e===void 0}function WS(e){const n=Et(e),r=v.useRef(""),i=v.useRef(0),l=v.useCallback(c=>{const f=r.current+c;n(f),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(f)},[n]),s=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,s]}function JS(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=$P(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function $P(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var GP=AS,eE=RS,YP=_S,KP=MS,XP=jS,tE=DS,QP=zS,nE=US,rE=FS,ZP=VS,WP=$S,aE=GS,iE=YS,oE=XS;const JP=GP,eL=YP,lE=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(eE,{ref:i,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,g.jsx(KP,{asChild:!0,children:g.jsx(Hw,{className:"h-4 w-4 opacity-50"})})]}));lE.displayName=eE.displayName;const sE=v.forwardRef(({className:e,...n},r)=>g.jsx(aE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(tM,{className:"h-4 w-4"})}));sE.displayName=aE.displayName;const uE=v.forwardRef(({className:e,...n},r)=>g.jsx(iE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(Hw,{className:"h-4 w-4"})}));uE.displayName=iE.displayName;const cE=v.forwardRef(({className:e,children:n,position:r="popper",...i},l)=>g.jsx(XP,{children:g.jsxs(tE,{ref:l,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...i,children:[g.jsx(sE,{}),g.jsx(QP,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),g.jsx(uE,{})]})}));cE.displayName=tE.displayName;const tL=v.forwardRef(({className:e,...n},r)=>g.jsx(nE,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",e),...n}));tL.displayName=nE.displayName;const Xi=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(rE,{ref:i,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(WP,{children:g.jsx(Ec,{className:"h-4 w-4"})})}),g.jsx(ZP,{children:n})]}));Xi.displayName=rE.displayName;const nL=v.forwardRef(({className:e,...n},r)=>g.jsx(oE,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));nL.displayName=oE.displayName;const Uc=am,QU=L1,rL=im,fE=v.forwardRef(({className:e,...n},r)=>g.jsx(Wl,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));fE.displayName=Wl.displayName;const rs=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(rL,{children:[g.jsx(fE,{}),g.jsxs(Jl,{ref:i,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[n,g.jsxs(Rc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g.jsx(Zi,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rs.displayName=Jl.displayName;const as=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});as.displayName="DialogHeader";const dE=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});dE.displayName="DialogFooter";const is=v.forwardRef(({className:e,...n},r)=>g.jsx(es,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",e),...n}));is.displayName=es.displayName;const Rl=v.forwardRef(({className:e,...n},r)=>g.jsx(ts,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));Rl.displayName=ts.displayName;function Nh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:ue("inline-flex h-5 items-center justify-center rounded border border-muted-foreground/30 bg-muted/50 px-1.5 font-sans text-[11px] font-medium text-muted-foreground shadow-sm",e),...n})}function ZU({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:ue("inline-flex items-center gap-0.5",e),...n})}function WU(){}function JU(){}function eH(e){const n=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&n.push(c),l=i+1,i=r.indexOf(",",l)}return n}function aL(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const iL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lL={};function Fb(e,n){return(lL.jsx?oL:iL).test(e)}const sL=/[ \t\n\f\r]/g;function uL(e){return typeof e=="object"?e.type==="text"?Vb(e.value):!1:Vb(e)}function Vb(e){return e.replace(sL,"")===""}class os{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}os.prototype.normal={};os.prototype.property={};os.prototype.space=void 0;function hE(e,n){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new os(r,i,n)}function wp(e){return e.toLowerCase()}class cn{constructor(n,r){this.attribute=r,this.property=n}}cn.prototype.attribute="";cn.prototype.booleanish=!1;cn.prototype.boolean=!1;cn.prototype.commaOrSpaceSeparated=!1;cn.prototype.commaSeparated=!1;cn.prototype.defined=!1;cn.prototype.mustUseProperty=!1;cn.prototype.number=!1;cn.prototype.overloadedBoolean=!1;cn.prototype.property="";cn.prototype.spaceSeparated=!1;cn.prototype.space=void 0;let cL=0;const Ie=Ja(),Tt=Ja(),Sp=Ja(),de=Ja(),ct=Ja(),eo=Ja(),bn=Ja();function Ja(){return 2**++cL}const Ep=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:Tt,commaOrSpaceSeparated:bn,commaSeparated:eo,number:de,overloadedBoolean:Sp,spaceSeparated:ct},Symbol.toStringTag,{value:"Module"})),_h=Object.keys(Ep);class Cm extends cn{constructor(n,r,i,l){let s=-1;if(super(n,r),qb(this,"space",l),typeof i=="number")for(;++s<_h.length;){const c=_h[s];qb(this,_h[s],(i&Ep[c])===Ep[c])}}}Cm.prototype.defined=!0;function qb(e,n,r){r&&(e[n]=r)}function xo(e){const n={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new Cm(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[wp(i)]=i,r[wp(s.attribute)]=i}return new os(n,r,e.space)}const pE=xo({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:ct,ariaCurrent:null,ariaDescribedBy:ct,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:ct,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:ct,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ct,ariaLevel:de,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:ct,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:ct,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:Tt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function mE(e,n){return n in e?e[n]:n}function gE(e,n){return mE(e,n.toLowerCase())}const fL=xo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eo,acceptCharset:ct,accessKey:ct,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:ct,autoFocus:Ie,autoPlay:Ie,blocking:ct,capture:null,charSet:null,checked:Ie,cite:null,className:ct,cols:de,colSpan:null,content:null,contentEditable:Tt,controls:Ie,controlsList:ct,coords:de|eo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:Sp,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:ct,height:de,hidden:Sp,high:de,href:null,hrefLang:null,htmlFor:ct,httpEquiv:ct,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:ct,itemRef:ct,itemScope:Ie,itemType:ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:de,pattern:null,ping:ct,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:ct,required:Ie,reversed:Ie,rows:de,rowSpan:de,sandbox:ct,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Tt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ct,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:gE}),dL=xo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:bn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eo,g2:eo,glyphName:eo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mE}),yE=xo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),vE=xo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),xE=xo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),hL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pL=/[A-Z]/g,$b=/-[a-z]/g,mL=/^data[-\w.:]+$/i;function gL(e,n){const r=wp(n);let i=n,l=cn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&mL.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace($b,vL);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!$b.test(s)){let c=s.replace(pL,yL);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Cm}return new l(i,n)}function yL(e){return"-"+e.toLowerCase()}function vL(e){return e.charAt(1).toUpperCase()}const xL=hE([pE,fL,yE,vE,xE],"html"),km=hE([pE,dL,yE,vE,xE],"svg");function tH(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function bL(e){return e.join(" ").trim()}var Yi={},Mh,Gb;function wL(){if(Gb)return Mh;Gb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
|
361
|
-
`,h="/",m="*",y="",b="comment",w="declaration";Mh=function(S,A){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];A=A||{};var T=1,R=1;function N(W){var U=W.match(n);U&&(T+=U.length);var Q=W.lastIndexOf(d);R=~Q?W.length-Q:R+W.length}function D(){var W={line:T,column:R};return function(U){return U.position=new L(W),q(),U}}function L(W){this.start=W,this.end={line:T,column:R},this.source=A.source}L.prototype.content=S;function j(W){var U=new Error(A.source+":"+T+":"+R+": "+W);if(U.reason=W,U.filename=A.source,U.line=T,U.column=R,U.source=S,!A.silent)throw U}function F(W){var U=W.exec(S);if(U){var Q=U[0];return N(Q),S=S.slice(Q.length),U}}function q(){F(r)}function J(W){var U;for(W=W||[];U=z();)U!==!1&&W.push(U);return W}function z(){var W=D();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var U=2;y!=S.charAt(U)&&(m!=S.charAt(U)||h!=S.charAt(U+1));)++U;if(U+=2,y===S.charAt(U-1))return j("End of comment missing");var Q=S.slice(2,U-2);return R+=2,N(Q),S=S.slice(U),R+=2,W({type:b,comment:Q})}}function ee(){var W=D(),U=F(i);if(U){if(z(),!F(l))return j("property missing ':'");var Q=F(s),P=W({type:w,property:E(U[0].replace(e,y)),value:Q?E(Q[0].replace(e,y)):y});return F(c),P}}function ae(){var W=[];J(W);for(var U;U=ee();)U!==!1&&(W.push(U),J(W));return W}return q(),ae()};function E(S){return S?S.replace(f,y):y}return Mh}var Yb;function SL(){if(Yb)return Yi;Yb=1;var e=Yi&&Yi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=r;var n=e(wL());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,n.default)(i),f=typeof l=="function";return c.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;f?l(h,m,d):m&&(s=s||{},s[h]=m)}}),s}return Yi}var wl={},Kb;function EL(){if(Kb)return wl;Kb=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(l,f):h=h.replace(i,f),h.replace(n,c))};return wl.camelCase=d,wl}var Sl,Xb;function CL(){if(Xb)return Sl;Xb=1;var e=Sl&&Sl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(SL()),r=EL();function i(l,s){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(f,d){f&&d&&(c[(0,r.camelCase)(f,s)]=d)}),c}return i.default=i,Sl=i,Sl}var kL=CL();const AL=hc(kL),bE=wE("end"),Am=wE("start");function wE(e){return n;function n(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function SE(e){const n=Am(e),r=bE(e);if(n&&r)return{start:n,end:r}}function jl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qb(e.position):"start"in e||"end"in e?Qb(e):"line"in e||"column"in e?Cp(e):""}function Cp(e){return Zb(e&&e.line)+":"+Zb(e&&e.column)}function Qb(e){return Cp(e&&e.start)+"-"+Cp(e&&e.end)}function Zb(e){return e&&typeof e=="number"?e:1}class Kt extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof n=="string"?l=n:!s.cause&&n&&(c=!0,l=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?s.ruleId=i:(s.source=i.slice(0,d),s.ruleId=i.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=jl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Kt.prototype.file="";Kt.prototype.name="";Kt.prototype.reason="";Kt.prototype.message="";Kt.prototype.stack="";Kt.prototype.column=void 0;Kt.prototype.line=void 0;Kt.prototype.ancestors=void 0;Kt.prototype.cause=void 0;Kt.prototype.fatal=void 0;Kt.prototype.place=void 0;Kt.prototype.ruleId=void 0;Kt.prototype.source=void 0;const Tm={}.hasOwnProperty,TL=new Map,RL=/[A-Z]/g,NL=new Set(["table","tbody","thead","tfoot","tr"]),_L=new Set(["td","th"]),EE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ML(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=BL(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=IL(r,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?km:xL,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=CE(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function CE(e,n,r){if(n.type==="element")return jL(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return DL(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return PL(e,n,r);if(n.type==="mdxjsEsm")return OL(e,n);if(n.type==="root")return LL(e,n,r);if(n.type==="text")return zL(e,n)}function jL(e,n,r){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=km,e.schema=l),e.ancestors.push(n);const s=AE(e,n.tagName,!1),c=UL(e,n);let f=Nm(e,n);return NL.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!uL(d):!0})),kE(e,c,s,n),Rm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function DL(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Hl(e,n.position)}function OL(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Hl(e,n.position)}function PL(e,n,r){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=km,e.schema=l),e.ancestors.push(n);const s=n.name===null?e.Fragment:AE(e,n.name,!0),c=HL(e,n),f=Nm(e,n);return kE(e,c,s,n),Rm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function LL(e,n,r){const i={};return Rm(i,Nm(e,n)),e.create(n,e.Fragment,i,r)}function zL(e,n){return n.value}function kE(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function Rm(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function IL(e,n,r){return i;function i(l,s,c,f){const h=Array.isArray(c.children)?r:n;return f?h(s,c,f):h(s,c)}}function BL(e,n){return r;function r(i,l,s,c){const f=Array.isArray(s.children),d=Am(i);return n(l,s,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function UL(e,n){const r={};let i,l;for(l in n.properties)if(l!=="children"&&Tm.call(n.properties,l)){const s=FL(e,l,n.properties[l]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&_L.has(n.tagName)?i=f:r[c]=f}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function HL(e,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Hl(e,n.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Hl(e,n.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function Nm(e,n){const r=[];let i=-1;const l=e.passKeys?new Map:TL;for(;++i<n.children.length;){const s=n.children[i];let c;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=l.get(d)||0;c=d+"-"+h,l.set(d,h+1)}}const f=CE(e,s,c);f!==void 0&&r.push(f)}return r}function FL(e,n,r){const i=gL(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?aL(r):bL(r)),i.property==="style"){let l=typeof r=="object"?r:VL(e,String(r));return e.stylePropertyNameCase==="css"&&(l=qL(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?hL[i.property]||i.property:i.attribute,r]}}function VL(e,n){try{return AL(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new Kt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=EE+"#cannot-parse-style-attribute",l}}function AE(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let s=-1,c;for(;++s<l.length;){const f=Fb(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=c}else i=Fb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return Tm.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Hl(e)}function Hl(e,n){const r=new Kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=EE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function qL(e){const n={};let r;for(r in e)Tm.call(e,r)&&(n[$L(r)]=e[r]);return n}function $L(e){let n=e.replace(RL,GL);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function GL(e){return"-"+e.toLowerCase()}const jh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},YL={};function _m(e,n){const r=YL,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return TE(e,i,l)}function TE(e,n,r){if(KL(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Wb(e.children,n,r)}return Array.isArray(e)?Wb(e,n,r):""}function Wb(e,n,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=TE(e[l],n,r);return i.join("")}function KL(e){return!!(e&&typeof e=="object")}const Jb=document.createElement("i");function Mm(e){const n="&"+e+";";Jb.innerHTML=n;const r=Jb.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function En(e,n,r,i){const l=e.length;let s=0,c;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function On(e,n){return e.length>0?(En(e,e.length,0,n),e):n}const e0={}.hasOwnProperty;function RE(e){const n={};let r=-1;for(;++r<e.length;)XL(n,e[r]);return n}function XL(e,n){let r;for(r in n){const l=(e0.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){e0.call(l,c)||(l[c]=[]);const f=s[c];QL(l[c],Array.isArray(f)?f:f?[f]:[])}}}function QL(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);En(e,0,0,i)}function NE(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Xn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=Ea(/[A-Za-z]/),Yt=Ea(/[\dA-Za-z]/),ZL=Ea(/[#-'*+\--9=?A-Z^-~]/);function oc(e){return e!==null&&(e<32||e===127)}const kp=Ea(/\d/),WL=Ea(/[\dA-Fa-f]/),JL=Ea(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function ot(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}const Hc=Ea(new RegExp("\\p{P}|\\p{S}","u")),Wa=Ea(/\s/);function Ea(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function bo(e){const n=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Yt(e.charCodeAt(r+1))&&Yt(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),l=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return n.join("")+e.slice(i)}function Xe(e,n,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(d){return Ge(d)?(e.enter(r),f(d)):n(d)}function f(d){return Ge(d)&&s++<l?(e.consume(d),f):(e.exit(r),n(d))}}const ez={tokenize:tz};function tz(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return n;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Xe(e,n,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ae(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const nz={tokenize:rz},t0={tokenize:az};function rz(e){const n=this,r=[];let i=0,l,s,c;return f;function f(N){if(i<r.length){const D=r[i];return n.containerState=D[1],e.attempt(D[0].continuation,d,h)(N)}return h(N)}function d(N){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&R();const D=n.events.length;let L=D,j;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){j=n.events[L][1].end;break}T(i);let F=D;for(;F<n.events.length;)n.events[F][1].end={...j},F++;return En(n.events,L+1,0,n.events.slice(D)),n.events.length=F,h(N)}return f(N)}function h(N){if(i===r.length){if(!l)return b(N);if(l.currentConstruct&&l.currentConstruct.concrete)return E(N);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(t0,m,y)(N)}function m(N){return l&&R(),T(i),b(N)}function y(N){return n.parser.lazy[n.now().line]=i!==r.length,c=n.now().offset,E(N)}function b(N){return n.containerState={},e.attempt(t0,w,E)(N)}function w(N){return i++,r.push([n.currentConstruct,n.containerState]),b(N)}function E(N){if(N===null){l&&R(),T(0),e.consume(N);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),S(N)}function S(N){if(N===null){A(e.exit("chunkFlow"),!0),T(0),e.consume(N);return}return Ae(N)?(e.consume(N),A(e.exit("chunkFlow")),i=0,n.interrupt=void 0,f):(e.consume(N),S)}function A(N,D){const L=n.sliceStream(N);if(D&&L.push(null),N.previous=s,s&&(s.next=N),s=N,l.defineSkip(N.start),l.write(L),n.parser.lazy[N.start.line]){let j=l.events.length;for(;j--;)if(l.events[j][1].start.offset<c&&(!l.events[j][1].end||l.events[j][1].end.offset>c))return;const F=n.events.length;let q=F,J,z;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(J){z=n.events[q][1].end;break}J=!0}for(T(i),j=F;j<n.events.length;)n.events[j][1].end={...z},j++;En(n.events,q+1,0,n.events.slice(F)),n.events.length=j}}function T(N){let D=r.length;for(;D-- >N;){const L=r[D];n.containerState=L[1],L[0].exit.call(n,e)}r.length=N}function R(){l.write([null]),s=void 0,l=void 0,n.containerState._closeFlow=void 0}}function az(e,n,r){return Xe(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ao(e){if(e===null||ot(e)||Wa(e))return 1;if(Hc(e))return 2}function Fc(e,n,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(n=s(n,r),i.push(s))}return n}const Ap={name:"attention",resolveAll:iz,tokenize:oz};function iz(e,n){let r=-1,i,l,s,c,f,d,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[i][1].end},b={...e[r][1].start};n0(y,-d),n0(b,d),c={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[r][1].start={...f.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=On(h,[["enter",e[i][1],n],["exit",e[i][1],n]])),h=On(h,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",s,n]]),h=On(h,Fc(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),h=On(h,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",l,n]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=On(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):m=0,En(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function oz(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=ao(i);let s;return c;function c(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const h=e.exit("attentionSequence"),m=ao(d),y=!m||m===2&&l||r.includes(d),b=!l||l===2&&m||r.includes(i);return h._open=!!(s===42?y:y&&(l||!b)),h._close=!!(s===42?b:b&&(m||!y)),n(d)}}function n0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const lz={name:"autolink",tokenize:sz};function sz(e,n,r){let i=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return Wt(w)?(e.consume(w),c):w===64?r(w):h(w)}function c(w){return w===43||w===45||w===46||Yt(w)?(i=1,f(w)):h(w)}function f(w){return w===58?(e.consume(w),i=0,d):(w===43||w===45||w===46||Yt(w))&&i++<32?(e.consume(w),f):(i=0,h(w))}function d(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):w===null||w===32||w===60||oc(w)?r(w):(e.consume(w),d)}function h(w){return w===64?(e.consume(w),m):ZL(w)?(e.consume(w),h):r(w)}function m(w){return Yt(w)?y(w):r(w)}function y(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):b(w)}function b(w){if((w===45||Yt(w))&&i++<63){const E=w===45?b:y;return e.consume(w),E}return r(w)}}const ls={partial:!0,tokenize:uz};function uz(e,n,r){return i;function i(s){return Ge(s)?Xe(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Ae(s)?n(s):r(s)}}const _E={continuation:{tokenize:fz},exit:dz,name:"blockQuote",tokenize:cz};function cz(e,n,r){const i=this;return l;function l(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Ge(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function fz(e,n,r){const i=this;return l;function l(c){return Ge(c)?Xe(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(_E,n,r)(c)}}function dz(e){e.exit("blockQuote")}const ME={name:"characterEscape",tokenize:hz};function hz(e,n,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return JL(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const jE={name:"characterReference",tokenize:pz};function pz(e,n,r){const i=this;let l=0,s,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,c=Yt,m(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=WL,m):(e.enter("characterReferenceValue"),s=7,c=kp,m(y))}function m(y){if(y===59&&l){const b=e.exit("characterReferenceValue");return c===Yt&&!Mm(i.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&l++<s?(e.consume(y),m):r(y)}}const r0={partial:!0,tokenize:gz},a0={concrete:!0,name:"codeFenced",tokenize:mz};function mz(e,n,r){const i=this,l={partial:!0,tokenize:L};let s=0,c=0,f;return d;function d(j){return h(j)}function h(j){const F=i.events[i.events.length-1];return s=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,f=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===f?(c++,e.consume(j),m):c<3?r(j):(e.exit("codeFencedFenceSequence"),Ge(j)?Xe(e,y,"whitespace")(j):y(j))}function y(j){return j===null||Ae(j)?(e.exit("codeFencedFence"),i.interrupt?n(j):e.check(r0,S,D)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(j))}function b(j){return j===null||Ae(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(j)):Ge(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,w,"whitespace")(j)):j===96&&j===f?r(j):(e.consume(j),b)}function w(j){return j===null||Ae(j)?y(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(j))}function E(j){return j===null||Ae(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(j)):j===96&&j===f?r(j):(e.consume(j),E)}function S(j){return e.attempt(l,D,A)(j)}function A(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),T}function T(j){return s>0&&Ge(j)?Xe(e,R,"linePrefix",s+1)(j):R(j)}function R(j){return j===null||Ae(j)?e.check(r0,S,D)(j):(e.enter("codeFlowValue"),N(j))}function N(j){return j===null||Ae(j)?(e.exit("codeFlowValue"),R(j)):(e.consume(j),N)}function D(j){return e.exit("codeFenced"),n(j)}function L(j,F,q){let J=0;return z;function z(Q){return j.enter("lineEnding"),j.consume(Q),j.exit("lineEnding"),ee}function ee(Q){return j.enter("codeFencedFence"),Ge(Q)?Xe(j,ae,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):ae(Q)}function ae(Q){return Q===f?(j.enter("codeFencedFenceSequence"),W(Q)):q(Q)}function W(Q){return Q===f?(J++,j.consume(Q),W):J>=c?(j.exit("codeFencedFenceSequence"),Ge(Q)?Xe(j,U,"whitespace")(Q):U(Q)):q(Q)}function U(Q){return Q===null||Ae(Q)?(j.exit("codeFencedFence"),F(Q)):q(Q)}}}function gz(e,n,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}const Dh={name:"codeIndented",tokenize:vz},yz={partial:!0,tokenize:xz};function vz(e,n,r){const i=this;return l;function l(h){return e.enter("codeIndented"),Xe(e,s,"linePrefix",5)(h)}function s(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?d(h):Ae(h)?e.attempt(yz,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Ae(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function xz(e,n,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Xe(e,s,"linePrefix",5)(c)}function s(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Ae(c)?l(c):r(c)}}const bz={name:"codeText",previous:Sz,resolve:wz,tokenize:Ez};function wz(e){let n=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function Sz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ez(e,n,r){let i=0,l,s;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(s=e.enter("codeTextSequence"),l=0,m(y)):Ae(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Ae(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),h)}function m(y){return y===96?(e.consume(y),l++,m):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(s.type="codeTextData",h(y))}}class Cz{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const l=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&El(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),El(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),El(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);El(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);El(this.left,r.reverse())}}}function El(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function DE(e){const n={};let r=-1,i,l,s,c,f,d,h;const m=new Cz(e);for(;++r<m.length;){for(;r in n;)r=n[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,kz(m,r)),r=n[r],h=!0);else if(i[1]._container){for(s=r,l=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...m.get(l)[1].start},f=m.slice(l,r),f.unshift(i),m.splice(l,r-l+1,f))}}return En(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function kz(e,n){const r=e.get(n)[1],i=e.get(n)[2];let l=n-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let m,y,b=-1,w=r,E=0,S=0;const A=[S];for(;w;){for(;e.get(++l)[1]!==w;);s.push(l),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),y&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=w,w=w.next}for(w=r;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(S=b+1,A.push(S),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):A.pop(),b=A.length;b--;){const T=f.slice(A[b],A[b+1]),R=s.pop();d.push([R,R+T.length-1]),e.splice(R,2,T)}for(d.reverse(),b=-1;++b<d.length;)h[E+d[b][0]]=E+d[b][1],E+=d[b][1]-d[b][0]-1;return h}const Az={resolve:Rz,tokenize:Nz},Tz={partial:!0,tokenize:_z};function Rz(e){return DE(e),e}function Nz(e,n){let r;return i;function i(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):Ae(f)?e.check(Tz,c,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function _z(e,n,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Xe(e,s,"linePrefix")}function s(c){if(c===null||Ae(c))return r(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,r,n)(c)}}function OE(e,n,r,i,l,s,c,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return y;function y(T){return T===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(T),e.exit(s),b):T===null||T===32||T===41||oc(T)?r(T):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(T))}function b(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(l),e.exit(i),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(T))}function w(T){return T===62?(e.exit("chunkString"),e.exit(f),b(T)):T===null||T===60||Ae(T)?r(T):(e.consume(T),T===92?E:w)}function E(T){return T===60||T===62||T===92?(e.consume(T),w):w(T)}function S(T){return!m&&(T===null||T===41||ot(T))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),n(T)):m<h&&T===40?(e.consume(T),m++,S):T===41?(e.consume(T),m--,S):T===null||T===32||T===40||oc(T)?r(T):(e.consume(T),T===92?A:S)}function A(T){return T===40||T===41||T===92?(e.consume(T),S):S(T)}}function PE(e,n,r,i,l,s){const c=this;let f=0,d;return h;function h(w){return e.enter(i),e.enter(l),e.consume(w),e.exit(l),e.enter(s),m}function m(w){return f>999||w===null||w===91||w===93&&!d||w===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(s),e.enter(l),e.consume(w),e.exit(l),e.exit(i),n):Ae(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||w===91||w===93||Ae(w)||f++>999?(e.exit("chunkString"),m(w)):(e.consume(w),d||(d=!Ge(w)),w===92?b:y)}function b(w){return w===91||w===92||w===93?(e.consume(w),f++,y):y(w)}}function LE(e,n,r,i,l,s){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(i),e.enter(l),e.consume(b),e.exit(l),c=b===40?41:b,d):r(b)}function d(b){return b===c?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),n):(e.enter(s),h(b))}function h(b){return b===c?(e.exit(s),d(c)):b===null?r(b):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Xe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||Ae(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}function Dl(e,n){let r;return i;function i(l){return Ae(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Ge(l)?Xe(e,i,r?"linePrefix":"lineSuffix")(l):n(l)}}const Mz={name:"definition",tokenize:Dz},jz={partial:!0,tokenize:Oz};function Dz(e,n,r){const i=this;let l;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return PE.call(i,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return l=Xn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),d):r(w)}function d(w){return ot(w)?Dl(e,h)(w):h(w)}function h(w){return OE(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(jz,y,y)(w)}function y(w){return Ge(w)?Xe(e,b,"whitespace")(w):b(w)}function b(w){return w===null||Ae(w)?(e.exit("definition"),i.parser.defined.push(l),n(w)):r(w)}}function Oz(e,n,r){return i;function i(f){return ot(f)?Dl(e,l)(f):r(f)}function l(f){return LE(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ge(f)?Xe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ae(f)?n(f):r(f)}}const Pz={name:"hardBreakEscape",tokenize:Lz};function Lz(e,n,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Ae(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const zz={name:"headingAtx",resolve:Iz,tokenize:Bz};function Iz(e,n){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},En(e,i,r-i+1,[["enter",l,n],["enter",s,n],["exit",s,n],["exit",l,n]])),e}function Bz(e,n,r){let i=0;return l;function l(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||ot(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Ae(m)?(e.exit("atxHeading"),n(m)):Ge(m)?Xe(e,f,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||ot(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),h)}}const Uz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],i0=["pre","script","style","textarea"],Hz={concrete:!0,name:"htmlFlow",resolveTo:qz,tokenize:$z},Fz={partial:!0,tokenize:Yz},Vz={partial:!0,tokenize:Gz};function qz(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function $z(e,n,r){const i=this;let l,s,c,f,d;return h;function h(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),b):M===47?(e.consume(M),s=!0,S):M===63?(e.consume(M),l=3,i.interrupt?n:k):Wt(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function b(M){return M===45?(e.consume(M),l=2,w):M===91?(e.consume(M),l=5,f=0,E):Wt(M)?(e.consume(M),l=4,i.interrupt?n:k):r(M)}function w(M){return M===45?(e.consume(M),i.interrupt?n:k):r(M)}function E(M){const ce="CDATA[";return M===ce.charCodeAt(f++)?(e.consume(M),f===ce.length?i.interrupt?n:ae:E):r(M)}function S(M){return Wt(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function A(M){if(M===null||M===47||M===62||ot(M)){const ce=M===47,ye=c.toLowerCase();return!ce&&!s&&i0.includes(ye)?(l=1,i.interrupt?n(M):ae(M)):Uz.includes(c.toLowerCase())?(l=6,ce?(e.consume(M),T):i.interrupt?n(M):ae(M)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(M):s?R(M):N(M))}return M===45||Yt(M)?(e.consume(M),c+=String.fromCharCode(M),A):r(M)}function T(M){return M===62?(e.consume(M),i.interrupt?n:ae):r(M)}function R(M){return Ge(M)?(e.consume(M),R):z(M)}function N(M){return M===47?(e.consume(M),z):M===58||M===95||Wt(M)?(e.consume(M),D):Ge(M)?(e.consume(M),N):z(M)}function D(M){return M===45||M===46||M===58||M===95||Yt(M)?(e.consume(M),D):L(M)}function L(M){return M===61?(e.consume(M),j):Ge(M)?(e.consume(M),L):N(M)}function j(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),d=M,F):Ge(M)?(e.consume(M),j):q(M)}function F(M){return M===d?(e.consume(M),d=null,J):M===null||Ae(M)?r(M):(e.consume(M),F)}function q(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||ot(M)?L(M):(e.consume(M),q)}function J(M){return M===47||M===62||Ge(M)?N(M):r(M)}function z(M){return M===62?(e.consume(M),ee):r(M)}function ee(M){return M===null||Ae(M)?ae(M):Ge(M)?(e.consume(M),ee):r(M)}function ae(M){return M===45&&l===2?(e.consume(M),P):M===60&&l===1?(e.consume(M),K):M===62&&l===4?(e.consume(M),Z):M===63&&l===3?(e.consume(M),k):M===93&&l===5?(e.consume(M),ne):Ae(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(Fz,se,W)(M)):M===null||Ae(M)?(e.exit("htmlFlowData"),W(M)):(e.consume(M),ae)}function W(M){return e.check(Vz,U,se)(M)}function U(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||Ae(M)?W(M):(e.enter("htmlFlowData"),ae(M))}function P(M){return M===45?(e.consume(M),k):ae(M)}function K(M){return M===47?(e.consume(M),c="",B):ae(M)}function B(M){if(M===62){const ce=c.toLowerCase();return i0.includes(ce)?(e.consume(M),Z):ae(M)}return Wt(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),B):ae(M)}function ne(M){return M===93?(e.consume(M),k):ae(M)}function k(M){return M===62?(e.consume(M),Z):M===45&&l===2?(e.consume(M),k):ae(M)}function Z(M){return M===null||Ae(M)?(e.exit("htmlFlowData"),se(M)):(e.consume(M),Z)}function se(M){return e.exit("htmlFlow"),n(M)}}function Gz(e,n,r){const i=this;return l;function l(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}function Yz(e,n,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ls,n,r)}}const Kz={name:"htmlText",tokenize:Xz};function Xz(e,n,r){const i=this;let l,s,c;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),L):k===63?(e.consume(k),N):Wt(k)?(e.consume(k),q):r(k)}function h(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),s=0,E):Wt(k)?(e.consume(k),R):r(k)}function m(k){return k===45?(e.consume(k),w):r(k)}function y(k){return k===null?r(k):k===45?(e.consume(k),b):Ae(k)?(c=y,K(k)):(e.consume(k),y)}function b(k){return k===45?(e.consume(k),w):y(k)}function w(k){return k===62?P(k):k===45?b(k):y(k)}function E(k){const Z="CDATA[";return k===Z.charCodeAt(s++)?(e.consume(k),s===Z.length?S:E):r(k)}function S(k){return k===null?r(k):k===93?(e.consume(k),A):Ae(k)?(c=S,K(k)):(e.consume(k),S)}function A(k){return k===93?(e.consume(k),T):S(k)}function T(k){return k===62?P(k):k===93?(e.consume(k),T):S(k)}function R(k){return k===null||k===62?P(k):Ae(k)?(c=R,K(k)):(e.consume(k),R)}function N(k){return k===null?r(k):k===63?(e.consume(k),D):Ae(k)?(c=N,K(k)):(e.consume(k),N)}function D(k){return k===62?P(k):N(k)}function L(k){return Wt(k)?(e.consume(k),j):r(k)}function j(k){return k===45||Yt(k)?(e.consume(k),j):F(k)}function F(k){return Ae(k)?(c=F,K(k)):Ge(k)?(e.consume(k),F):P(k)}function q(k){return k===45||Yt(k)?(e.consume(k),q):k===47||k===62||ot(k)?J(k):r(k)}function J(k){return k===47?(e.consume(k),P):k===58||k===95||Wt(k)?(e.consume(k),z):Ae(k)?(c=J,K(k)):Ge(k)?(e.consume(k),J):P(k)}function z(k){return k===45||k===46||k===58||k===95||Yt(k)?(e.consume(k),z):ee(k)}function ee(k){return k===61?(e.consume(k),ae):Ae(k)?(c=ee,K(k)):Ge(k)?(e.consume(k),ee):J(k)}function ae(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,W):Ae(k)?(c=ae,K(k)):Ge(k)?(e.consume(k),ae):(e.consume(k),U)}function W(k){return k===l?(e.consume(k),l=void 0,Q):k===null?r(k):Ae(k)?(c=W,K(k)):(e.consume(k),W)}function U(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||ot(k)?J(k):(e.consume(k),U)}function Q(k){return k===47||k===62||ot(k)?J(k):r(k)}function P(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):r(k)}function K(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),B}function B(k){return Ge(k)?Xe(e,ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ne(k)}function ne(k){return e.enter("htmlTextData"),c(k)}}const jm={name:"labelEnd",resolveAll:Jz,resolveTo:e3,tokenize:t3},Qz={tokenize:n3},Zz={tokenize:r3},Wz={tokenize:a3};function Jz(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==r.length&&En(e,0,e.length,r),e}function e3(e,n){let r=e.length,i=0,l,s,c,f;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=On(f,e.slice(s+1,s+i+3)),f=On(f,[["enter",m,n]]),f=On(f,Fc(n.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),n)),f=On(f,[["exit",m,n],e[c-2],e[c-1],["exit",h,n]]),f=On(f,e.slice(c+1)),f=On(f,[["exit",d,n]]),En(e,s,e.length,f),e}function t3(e,n,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return f;function f(b){return s?s._inactive?y(b):(c=i.parser.defined.includes(Xn(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):r(b)}function d(b){return b===40?e.attempt(Qz,m,c?m:y)(b):b===91?e.attempt(Zz,m,c?h:y)(b):c?m(b):y(b)}function h(b){return e.attempt(Wz,m,y)(b)}function m(b){return n(b)}function y(b){return s._balanced=!0,r(b)}}function n3(e,n,r){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return ot(y)?Dl(e,s)(y):s(y)}function s(y){return y===41?m(y):OE(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return ot(y)?Dl(e,d)(y):m(y)}function f(y){return r(y)}function d(y){return y===34||y===39||y===40?LE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return ot(y)?Dl(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):r(y)}}function r3(e,n,r){const i=this;return l;function l(f){return PE.call(i,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(Xn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function a3(e,n,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const i3={name:"labelStartImage",resolveAll:jm.resolveAll,tokenize:o3};function o3(e,n,r){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):n(f)}}const l3={name:"labelStartLink",resolveAll:jm.resolveAll,tokenize:s3};function s3(e,n,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const Oh={name:"lineEnding",tokenize:u3};function u3(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Xe(e,n,"linePrefix")}}const Ku={name:"thematicBreak",tokenize:c3};function c3(e,n,r){let i=0,l;return s;function s(h){return e.enter("thematicBreak"),c(h)}function c(h){return l=h,f(h)}function f(h){return h===l?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Ae(h))?(e.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===l?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Ge(h)?Xe(e,f,"whitespace")(h):f(h))}}const un={continuation:{tokenize:p3},exit:g3,name:"list",tokenize:h3},f3={partial:!0,tokenize:y3},d3={partial:!0,tokenize:m3};function h3(e,n,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(w){const E=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:kp(w)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Ku,r,h)(w):h(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(w)}return r(w)}function d(w){return kp(w)&&++c<10?(e.consume(w),d):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):r(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(ls,i.interrupt?r:m,e.attempt(f3,b,y))}function m(w){return i.containerState.initialBlankLine=!0,s++,b(w)}function y(w){return Ge(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),b):r(w)}function b(w){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(w)}}function p3(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ls,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Xe(e,n,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!Ge(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(d3,n,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Xe(e,e.attempt(un,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function m3(e,n,r){const i=this;return Xe(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(s):r(s)}}function g3(e){e.exit(this.containerState.type)}function y3(e,n,r){const i=this;return Xe(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!Ge(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const o0={name:"setextUnderline",resolveTo:v3,tokenize:x3};function v3(e,n){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,n]),e.splice(s+1,0,["exit",e[i][1],n]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function x3(e,n,r){const i=this;let l;return s;function s(h){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),l=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===l?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ge(h)?Xe(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ae(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const b3={tokenize:w3};function w3(e){const n=this,r=e.attempt(ls,i,e.attempt(this.parser.constructs.flowInitial,l,Xe(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Az,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const S3={resolveAll:IE()},E3=zE("string"),C3=zE("text");function zE(e){return{resolveAll:IE(e==="text"?k3:void 0),tokenize:n};function n(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,f);return c;function c(m){return h(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),d}function d(m){return h(m)?(r.exit("data"),s(m)):(r.consume(m),d)}function h(m){if(m===null)return!0;const y=l[m];let b=-1;if(y)for(;++b<y.length;){const w=y[b];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function IE(e){return n;function n(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function k3(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=n.sliceStream(i);let s=l.length,c=-1,f=0,d;for(;s--;){const h=l[s];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const h={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return e}const A3={42:un,43:un,45:un,48:un,49:un,50:un,51:un,52:un,53:un,54:un,55:un,56:un,57:un,62:_E},T3={91:Mz},R3={[-2]:Dh,[-1]:Dh,32:Dh},N3={35:zz,42:Ku,45:[o0,Ku],60:Hz,61:o0,95:Ku,96:a0,126:a0},_3={38:jE,92:ME},M3={[-5]:Oh,[-4]:Oh,[-3]:Oh,33:i3,38:jE,42:Ap,60:[lz,Kz],91:l3,92:[Pz,ME],93:jm,95:Ap,96:bz},j3={null:[Ap,S3]},D3={null:[42,95]},O3={null:[]},P3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:D3,contentInitial:T3,disable:O3,document:A3,flow:N3,flowInitial:R3,insideSpan:j3,string:_3,text:M3},Symbol.toStringTag,{value:"Module"}));function L3(e,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let c=[],f=[];const d={attempt:F(L),check:F(j),consume:R,enter:N,exit:D,interrupt:F(j,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:w,write:y};let m=n.tokenize.call(h,d);return n.resolveAll&&s.push(n),h;function y(ee){return c=On(c,ee),A(),c[c.length-1]!==null?[]:(q(n,0),h.events=Fc(s,h.events,h),h.events)}function b(ee,ae){return I3(w(ee),ae)}function w(ee){return z3(c,ee)}function E(){const{_bufferIndex:ee,_index:ae,line:W,column:U,offset:Q}=i;return{_bufferIndex:ee,_index:ae,line:W,column:U,offset:Q}}function S(ee){l[ee.line]=ee.column,z()}function A(){let ee;for(;i._index<c.length;){const ae=c[i._index];if(typeof ae=="string")for(ee=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ee&&i._bufferIndex<ae.length;)T(ae.charCodeAt(i._bufferIndex));else T(ae)}}function T(ee){m=m(ee)}function R(ee){Ae(ee)?(i.line++,i.column=1,i.offset+=ee===-3?2:1,z()):ee!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=ee}function N(ee,ae){const W=ae||{};return W.type=ee,W.start=E(),h.events.push(["enter",W,h]),f.push(W),W}function D(ee){const ae=f.pop();return ae.end=E(),h.events.push(["exit",ae,h]),ae}function L(ee,ae){q(ee,ae.from)}function j(ee,ae){ae.restore()}function F(ee,ae){return W;function W(U,Q,P){let K,B,ne,k;return Array.isArray(U)?se(U):"tokenize"in U?se([U]):Z(U);function Z(pe){return le;function le(ge){const ke=ge!==null&&pe[ge],Ne=ge!==null&&pe.null,Le=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(Ne)?Ne:Ne?[Ne]:[]];return se(Le)(ge)}}function se(pe){return K=pe,B=0,pe.length===0?P:M(pe[B])}function M(pe){return le;function le(ge){return k=J(),ne=pe,pe.partial||(h.currentConstruct=pe),pe.name&&h.parser.constructs.disable.null.includes(pe.name)?ye():pe.tokenize.call(ae?Object.assign(Object.create(h),ae):h,d,ce,ye)(ge)}}function ce(pe){return ee(ne,k),Q}function ye(pe){return k.restore(),++B<K.length?M(K[B]):P}}}function q(ee,ae){ee.resolveAll&&!s.includes(ee)&&s.push(ee),ee.resolve&&En(h.events,ae,h.events.length-ae,ee.resolve(h.events.slice(ae),h)),ee.resolveTo&&(h.events=ee.resolveTo(h.events,h))}function J(){const ee=E(),ae=h.previous,W=h.currentConstruct,U=h.events.length,Q=Array.from(f);return{from:U,restore:P};function P(){i=ee,h.previous=ae,h.currentConstruct=W,h.events.length=U,f=Q,z()}}function z(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function z3(e,n){const r=n.start._index,i=n.start._bufferIndex,l=n.end._index,s=n.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function I3(e,n){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
362
|
-
`;break}case-3:{c=`\r
|
|
363
|
-
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}function B3(e){const i={constructs:RE([P3,...(e||{}).extensions||[]]),content:l(ez),defined:[],document:l(nz),flow:l(b3),lazy:{},string:l(E3),text:l(C3)};return i;function l(s){return c;function c(f){return L3(i,s,f)}}}function U3(e){for(;!DE(e););return e}const l0=/[\0\t\n\r]/g;function H3(){let e=1,n="",r=!0,i;return l;function l(s,c,f){const d=[];let h,m,y,b,w;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),y=0,n="",r&&(s.charCodeAt(0)===65279&&y++,r=void 0);y<s.length;){if(l0.lastIndex=y,h=l0.exec(s),b=h&&h.index!==void 0?h.index:s.length,w=s.charCodeAt(b),!h){n=s.slice(y);break}if(w===10&&y===b&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<b&&(d.push(s.slice(y,b)),e+=b-y),w){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}y=b+1}return f&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const F3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function V3(e){return e.replace(F3,q3)}function q3(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return NE(r.slice(s?2:1),s?16:10)}return Mm(r)||e}const BE={}.hasOwnProperty;function $3(e,n,r){return typeof n!="string"&&(r=n,n=void 0),G3(r)(U3(B3(r).document().write(H3()(e,n,!0))))}function G3(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Hr),autolinkProtocol:J,autolinkEmail:J,atxHeading:s(Cn),blockQuote:s(Ne),characterEscape:J,characterReference:J,codeFenced:s(Le),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Le,c),codeText:s(Ye,c),codeTextData:J,data:J,codeFlowValue:J,definition:s(bt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ft),hardBreakEscape:s(fn),hardBreakTrailing:s(fn),htmlFlow:s(lt,c),htmlFlowData:J,htmlText:s(lt,c),htmlTextData:J,image:s(Ur),label:c,link:s(Hr),listItem:s(pr),listItemValue:b,listOrdered:s(Fr,y),listUnordered:s(Fr),paragraph:s(ni),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Cn),strong:s(mr),thematicBreak:s(ri)},exit:{atxHeading:d(),atxHeadingSequence:L,autolink:d(),autolinkEmail:ke,autolinkProtocol:ge,blockQuote:d(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:pe,characterReference:le,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:w,codeFencedFenceMeta:E,codeFlowValue:z,codeIndented:d(T),codeText:d(Q),codeTextData:z,data:z,definition:d(),definitionDestinationString:D,definitionLabelString:R,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(ae),hardBreakTrailing:d(ae),htmlFlow:d(W),htmlFlowData:z,htmlText:d(U),htmlTextData:z,image:d(K),label:ne,labelText:B,lineEnding:ee,link:d(P),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ce,resourceDestinationString:k,resourceTitleString:Z,resource:se,setextHeading:d(q),setextHeadingLineSequence:F,setextHeadingText:j,strong:d(),thematicBreak:d()}};UE(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(te){let fe={type:"root",children:[]};const Ce={stack:[fe],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:m,data:r},Te=[];let We=-1;for(;++We<te.length;)if(te[We][1].type==="listOrdered"||te[We][1].type==="listUnordered")if(te[We][0]==="enter")Te.push(We);else{const Xt=Te.pop();We=l(te,Xt,We)}for(We=-1;++We<te.length;){const Xt=n[te[We][0]];BE.call(Xt,te[We][1].type)&&Xt[te[We][1].type].call(Object.assign({sliceSerialize:te[We][2].sliceSerialize},Ce),te[We][1])}if(Ce.tokenStack.length>0){const Xt=Ce.tokenStack[Ce.tokenStack.length-1];(Xt[1]||s0).call(Ce,void 0,Xt[0])}for(fe.position={start:ha(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:ha(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<n.transforms.length;)fe=n.transforms[We](fe)||fe;return fe}function l(te,fe,Ce){let Te=fe-1,We=-1,Xt=!1,Hn,It,tn,Vt;for(;++Te<=Ce;){const ft=te[Te];switch(ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ft[0]==="enter"?We++:We--,Vt=void 0;break}case"lineEndingBlank":{ft[0]==="enter"&&(Hn&&!Vt&&!We&&!tn&&(tn=Te),Vt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Vt=void 0}if(!We&&ft[0]==="enter"&&ft[1].type==="listItemPrefix"||We===-1&&ft[0]==="exit"&&(ft[1].type==="listUnordered"||ft[1].type==="listOrdered")){if(Hn){let qt=Te;for(It=void 0;qt--;){const G=te[qt];if(G[1].type==="lineEnding"||G[1].type==="lineEndingBlank"){if(G[0]==="exit")continue;It&&(te[It][1].type="lineEndingBlank",Xt=!0),G[1].type="lineEnding",It=qt}else if(!(G[1].type==="linePrefix"||G[1].type==="blockQuotePrefix"||G[1].type==="blockQuotePrefixWhitespace"||G[1].type==="blockQuoteMarker"||G[1].type==="listItemIndent"))break}tn&&(!It||tn<It)&&(Hn._spread=!0),Hn.end=Object.assign({},It?te[It][1].start:ft[1].end),te.splice(It||Te,0,["exit",Hn,ft[2]]),Te++,Ce++}if(ft[1].type==="listItemPrefix"){const qt={type:"listItem",_spread:!1,start:Object.assign({},ft[1].start),end:void 0};Hn=qt,te.splice(Te,0,["enter",qt,ft[2]]),Te++,Ce++,tn=void 0,Vt=!0}}}return te[fe][1]._spread=Xt,Ce}function s(te,fe){return Ce;function Ce(Te){f.call(this,te(Te),Te),fe&&fe.call(this,Te)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(te,fe,Ce){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([fe,Ce||void 0]),te.position={start:ha(fe.start),end:void 0}}function d(te){return fe;function fe(Ce){te&&te.call(this,Ce),h.call(this,Ce)}}function h(te,fe){const Ce=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==te.type&&(fe?fe.call(this,te,Te[0]):(Te[1]||s0).call(this,te,Te[0]));else throw new Error("Cannot close `"+te.type+"` ("+jl({start:te.start,end:te.end})+"): it’s not open");Ce.position.end=ha(te.end)}function m(){return _m(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(te){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function w(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=te}function E(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=te}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te.replace(/(\r?\n|\r)$/g,"")}function R(te){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=Xn(this.sliceSerialize(te)).toLowerCase()}function N(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function D(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function L(te){const fe=this.stack[this.stack.length-1];if(!fe.depth){const Ce=this.sliceSerialize(te).length;fe.depth=Ce}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function F(te){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function J(te){const Ce=this.stack[this.stack.length-1].children;let Te=Ce[Ce.length-1];(!Te||Te.type!=="text")&&(Te=wo(),Te.position={start:ha(te.start),end:void 0},Ce.push(Te)),this.stack.push(Te)}function z(te){const fe=this.stack.pop();fe.value+=this.sliceSerialize(te),fe.position.end=ha(te.end)}function ee(te){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=fe.children[fe.children.length-1];Ce.position.end=ha(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(fe.type)&&(J.call(this,te),z.call(this,te))}function ae(){this.data.atHardBreak=!0}function W(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function U(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function Q(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function P(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=fe,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function K(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=fe,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function B(te){const fe=this.sliceSerialize(te),Ce=this.stack[this.stack.length-2];Ce.label=V3(fe),Ce.identifier=Xn(fe).toLowerCase()}function ne(){const te=this.stack[this.stack.length-1],fe=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Te=te.children;Ce.children=Te}else Ce.alt=fe}function k(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function Z(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function se(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ce(te){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=Xn(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function ye(te){this.data.characterReferenceType=te.type}function pe(te){const fe=this.sliceSerialize(te),Ce=this.data.characterReferenceType;let Te;Ce?(Te=NE(fe,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=Mm(fe);const We=this.stack[this.stack.length-1];We.value+=Te}function le(te){const fe=this.stack.pop();fe.position.end=ha(te.end)}function ge(te){z.call(this,te);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(te)}function ke(te){z.call(this,te);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(te)}function Ne(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function Ye(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ft(){return{type:"emphasis",children:[]}}function Cn(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function lt(){return{type:"html",value:""}}function Ur(){return{type:"image",title:null,url:"",alt:null}}function Hr(){return{type:"link",title:null,url:"",children:[]}}function Fr(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function pr(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function ni(){return{type:"paragraph",children:[]}}function mr(){return{type:"strong",children:[]}}function wo(){return{type:"text",value:""}}function ri(){return{type:"thematicBreak"}}}function ha(e){return{line:e.line,column:e.column,offset:e.offset}}function UE(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?UE(e,i):Y3(e,i)}}function Y3(e,n){let r;for(r in n)if(BE.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function s0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+jl({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+jl({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+jl({start:n.start,end:n.end})+") is still open")}function K3(e){const n=this;n.parser=r;function r(i){return $3(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function X3(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function Q3(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
364
|
-
`}]}function Z3(e,n){const r=n.value?n.value+`
|
|
365
|
-
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function W3(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function J3(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function e5(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),l=bo(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,h),e.applyData(n,h)}function t5(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function n5(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function HE(e,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const l=e.all(n),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function r5(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return HE(e,n);const l={src:bo(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,s),e.applyData(n,s)}function a5(e,n){const r={src:bo(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function i5(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,i),e.applyData(n,i)}function o5(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return HE(e,n);const l={href:bo(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function l5(e,n){const r={href:bo(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function s5(e,n,r){const i=e.all(n),l=r?u5(r):FE(n),s={},c=[];if(typeof n.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(l||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
366
|
-
`}),m.type==="element"&&m.tagName==="p"&&!l?c.push(...m.children):c.push(m)}const d=i[i.length-1];d&&(l||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
|
|
367
|
-
`});const h={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,h),e.applyData(n,h)}function u5(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let i=-1;for(;!n&&++i<r.length;)n=FE(r[i])}return n}function FE(e){const n=e.spread;return n??e.children.length>1}function c5(e,n){const r={},i=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(n,s),e.applyData(n,s)}function f5(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function d5(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function h5(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function p5(e,n){const r=e.all(n),i=r.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=Am(n.children[1]),d=bE(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function m5(e,n,r){const i=r?r.children:void 0,s=(i?i.indexOf(n):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:n.children.length;let d=-1;const h=[];for(;++d<f;){const y=n.children[d],b={},w=c?c[d]:void 0;w&&(b.align=w);let E={type:"element",tagName:s,properties:b,children:[]};y&&(E.children=e.all(y),e.patch(y,E),E=e.applyData(y,E)),h.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,m),e.applyData(n,m)}function g5(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const u0=9,c0=32;function y5(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),l=0;const s=[];for(;i;)s.push(f0(n.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(n);return s.push(f0(n.slice(l),l>0,!1)),s.join("")}function f0(e,n,r){let i=0,l=e.length;if(n){let s=e.codePointAt(i);for(;s===u0||s===c0;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===u0||s===c0;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function v5(e,n){const r={type:"text",value:y5(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function x5(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const b5={blockquote:X3,break:Q3,code:Z3,delete:W3,emphasis:J3,footnoteReference:e5,heading:t5,html:n5,imageReference:r5,image:a5,inlineCode:i5,linkReference:o5,link:l5,listItem:s5,list:c5,paragraph:f5,root:d5,strong:h5,table:p5,tableCell:g5,tableRow:m5,text:v5,thematicBreak:x5,toml:Pu,yaml:Pu,definition:Pu,footnoteDefinition:Pu};function Pu(){}const VE=-1,Vc=0,Ol=1,lc=2,Dm=3,Om=4,Pm=5,Lm=6,qE=7,$E=8,d0=typeof self=="object"?self:globalThis,w5=(e,n)=>{const r=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,c]=n[l];switch(s){case Vc:case VE:return r(c,l);case Ol:{const f=r([],l);for(const d of c)f.push(i(d));return f}case lc:{const f=r({},l);for(const[d,h]of c)f[i(d)]=i(h);return f}case Dm:return r(new Date(c),l);case Om:{const{source:f,flags:d}=c;return r(new RegExp(f,d),l)}case Pm:{const f=r(new Map,l);for(const[d,h]of c)f.set(i(d),i(h));return f}case Lm:{const f=r(new Set,l);for(const d of c)f.add(i(d));return f}case qE:{const{name:f,message:d}=c;return r(new d0[f](d),l)}case $E:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}}return r(new d0[s](c),l)};return i},h0=e=>w5(new Map,e)(0),Ki="",{toString:S5}={},{keys:E5}=Object,Cl=e=>{const n=typeof e;if(n!=="object"||!e)return[Vc,n];const r=S5.call(e).slice(8,-1);switch(r){case"Array":return[Ol,Ki];case"Object":return[lc,Ki];case"Date":return[Dm,Ki];case"RegExp":return[Om,Ki];case"Map":return[Pm,Ki];case"Set":return[Lm,Ki];case"DataView":return[Ol,r]}return r.includes("Array")?[Ol,r]:r.includes("Error")?[qE,r]:[lc,r]},Lu=([e,n])=>e===Vc&&(n==="function"||n==="symbol"),C5=(e,n,r,i)=>{const l=(c,f)=>{const d=i.push(c)-1;return r.set(f,d),d},s=c=>{if(r.has(c))return r.get(c);let[f,d]=Cl(c);switch(f){case Vc:{let m=c;switch(d){case"bigint":f=$E,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return l([VE],c)}return l([f,m],c)}case Ol:{if(d){let b=c;return d==="DataView"?b=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(c)),l([d,[...b]],c)}const m=[],y=l([f,m],c);for(const b of c)m.push(s(b));return y}case lc:{if(d)switch(d){case"BigInt":return l([d,c.toString()],c);case"Boolean":case"Number":case"String":return l([d,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const m=[],y=l([f,m],c);for(const b of E5(c))(e||!Lu(Cl(c[b])))&&m.push([s(b),s(c[b])]);return y}case Dm:return l([f,c.toISOString()],c);case Om:{const{source:m,flags:y}=c;return l([f,{source:m,flags:y}],c)}case Pm:{const m=[],y=l([f,m],c);for(const[b,w]of c)(e||!(Lu(Cl(b))||Lu(Cl(w))))&&m.push([s(b),s(w)]);return y}case Lm:{const m=[],y=l([f,m],c);for(const b of c)(e||!Lu(Cl(b)))&&m.push(s(b));return y}}const{message:h}=c;return l([f,{name:d,message:h}],c)};return s},p0=(e,{json:n,lossy:r}={})=>{const i=[];return C5(!(n||r),!!n,new Map,i)(e),i},Fl=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?h0(p0(e,n)):structuredClone(e):(e,n)=>h0(p0(e,n));function k5(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function A5(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function T5(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||k5,i=e.options.footnoteBackLabel||A5,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),y=String(h.identifier).toUpperCase(),b=bo(y.toLowerCase());let w=0;const E=[],S=e.footnoteCounts.get(y);for(;S!==void 0&&++w<=S;){E.length>0&&E.push({type:"text",value:" "});let R=typeof r=="string"?r:r(d,w);typeof R=="string"&&(R={type:"text",value:R}),E.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,w),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const R=A.children[A.children.length-1];R&&R.type==="text"?R.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...E)}else m.push(...E);const T={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(m,!0)};e.patch(h,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Fl(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
368
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
369
|
-
`}]}}const qc=(function(e){if(e==null)return M5;if(typeof e=="function")return $c(e);if(typeof e=="object")return Array.isArray(e)?R5(e):N5(e);if(typeof e=="string")return _5(e);throw new Error("Expected function, string, or object as test")});function R5(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=qc(e[r]);return $c(i);function i(...l){let s=-1;for(;++s<n.length;)if(n[s].apply(this,l))return!0;return!1}}function N5(e){const n=e;return $c(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==n[s])return!1;return!0}}function _5(e){return $c(n);function n(r){return r&&r.type===e}}function $c(e){return n;function n(r,i,l){return!!(j5(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function M5(){return!0}function j5(e){return e!==null&&typeof e=="object"&&"type"in e}const GE=[],D5=!0,Tp=!1,O5="skip";function YE(e,n,r,i){let l;typeof n=="function"&&typeof r!="function"?(i=r,r=n):l=n;const s=qc(l),c=i?-1:1;f(e,void 0,[])();function f(d,h,m){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const w=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=GE,E,S,A;if((!n||s(d,h,m[m.length-1]||void 0))&&(w=P5(r(d,m)),w[0]===Tp))return w;if("children"in d&&d.children){const T=d;if(T.children&&w[0]!==O5)for(S=(i?T.children.length:-1)+c,A=m.concat(T);S>-1&&S<T.children.length;){const R=T.children[S];if(E=f(R,S,A)(),E[0]===Tp)return E;S=typeof E[1]=="number"?E[1]:S+c}}return w}}}function P5(e){return Array.isArray(e)?e:typeof e=="number"?[D5,e]:e==null?GE:[e]}function zm(e,n,r,i){let l,s,c;typeof n=="function"&&typeof r!="function"?(s=void 0,c=n,l=r):(s=n,c=r,l=i),YE(e,s,f,l);function f(d,h){const m=h[h.length-1],y=m?m.children.indexOf(d):void 0;return c(d,y,m)}}const Rp={}.hasOwnProperty,L5={};function z5(e,n){const r=n||L5,i=new Map,l=new Map,s=new Map,c={...b5,...r.handlers},f={all:h,applyData:B5,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:d,options:r,patch:I5,wrap:H5};return zm(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:l,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function d(m,y){const b=m.type,w=f.handlers[b];if(Rp.call(f.handlers,b)&&w)return w(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in m){const{children:S,...A}=m,T=Fl(A);return T.children=f.all(m),T}return Fl(m)}return(f.options.unknownHandler||U5)(f,m,y)}function h(m){const y=[];if("children"in m){const b=m.children;let w=-1;for(;++w<b.length;){const E=f.one(b[w],m);if(E){if(w&&b[w-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=m0(E.value)),!Array.isArray(E)&&E.type==="element")){const S=E.children[0];S&&S.type==="text"&&(S.value=m0(S.value))}Array.isArray(E)?y.push(...E):y.push(E)}}}return y}}function I5(e,n){e.position&&(n.position=SE(e))}function B5(e,n){let r=n;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Fl(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function U5(e,n){const r=n.data||{},i="value"in n&&!(Rp.call(r,"hProperties")||Rp.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function H5(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
|
|
370
|
-
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
371
|
-
`}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
372
|
-
`}),r}function m0(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function g0(e,n){const r=z5(e,n),i=r.one(e,void 0),l=T5(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
|
|
373
|
-
`},l),s}function F5(e,n){return e&&"run"in e?async function(r,i){const l=g0(r,{file:i,...n});await e.run(l,i)}:function(r,i){return g0(r,{file:i,...e||n})}}function y0(e){if(e)throw e}var Ph,v0;function V5(){if(v0)return Ph;v0=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},s=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},f=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Ph=function d(){var h,m,y,b,w,E,S=arguments[0],A=1,T=arguments.length,R=!1;for(typeof S=="boolean"&&(R=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<T;++A)if(h=arguments[A],h!=null)for(m in h)y=f(S,m),b=f(h,m),S!==b&&(R&&b&&(s(b)||(w=l(b)))?(w?(w=!1,E=y&&l(y)?y:[]):E=y&&s(y)?y:{},c(S,{name:m,newValue:d(R,E,b)})):typeof b<"u"&&c(S,{name:m,newValue:b}));return S},Ph}var q5=V5();const Lh=hc(q5);function Np(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $5(){const e=[],n={run:r,use:i};return n;function r(...l){let s=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...l);function f(d,...h){const m=e[++s];let y=-1;if(d){c(d);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,m?G5(m,f)(...h):c(null,...h)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function G5(e,n){let r;return i;function i(...c){const f=e.length>c.length;let d;f&&c.push(l);try{d=e.apply(this,c)}catch(h){const m=h;if(f&&r)throw m;return l(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,l):d instanceof Error?l(d):s(d))}function l(c,...f){r||(r=!0,n(c,...f))}function s(c){l(null,c)}}const ir={basename:Y5,dirname:K5,extname:X5,join:Q5,sep:"/"};function Y5(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ss(e);let r=0,i=-1,l=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let c=-1,f=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else c<0&&(s=!0,c=l+1),f>-1&&(e.codePointAt(l)===n.codePointAt(f--)?f<0&&(i=l):(f=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function K5(e){if(ss(e),e.length===0)return".";let n=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function X5(e){ss(e);let n=e.length,r=-1,i=0,l=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){i=n+1;break}continue}r<0&&(c=!0,r=n+1),f===46?l<0?l=n:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function Q5(...e){let n=-1,r;for(;++n<e.length;)ss(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":Z5(r)}function Z5(e){ss(e);const n=e.codePointAt(0)===47;let r=W5(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function W5(e,n){let r="",i=0,l=-1,s=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(l===c-1||s===1))if(l!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),l=c,s=0;continue}}else if(r.length>0){r="",i=0,l=c,s=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),i=c-l-1;l=c,s=0}else f===46&&s>-1?s++:s=-1}return r}function ss(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const J5={cwd:e6};function e6(){return"/"}function _p(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function t6(e){if(typeof e=="string")e=new URL(e);else if(!_p(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return n6(e)}function n6(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const zh=["history","path","basename","stem","extname","dirname"];class KE{constructor(n){let r;n?_p(n)?r={path:n}:typeof n=="string"||r6(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":J5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<zh.length;){const s=zh[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)zh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(n){Bh(n,"basename"),Ih(n,"basename"),this.path=ir.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(n){x0(this.basename,"dirname"),this.path=ir.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(n){if(Ih(n,"extname"),x0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){_p(n)&&(n=t6(n)),Bh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(n){Bh(n,"stem"),Ih(n,"stem"),this.path=ir.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const l=this.message(n,r,i);throw l.fatal=!0,l}info(n,r,i){const l=this.message(n,r,i);return l.fatal=void 0,l}message(n,r,i){const l=new Kt(n,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Ih(e,n){if(e&&e.includes(ir.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ir.sep+"`")}function Bh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function x0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function r6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const a6=(function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),i6={}.hasOwnProperty;class Im extends a6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$5()}copy(){const n=new Im;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(Lh(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(Fh("data",this.frozen),this.namespace[n]=r,this):i6.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Fh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=zu(n),i=this.parser||this.Parser;return Uh("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),Uh("process",this.parser||this.Parser),Hh("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const f=zu(n),d=i.parse(f);i.run(d,f,function(m,y,b){if(m||!y||!b)return h(m);const w=y,E=i.stringify(w,b);s6(E)?b.value=E:b.result=E,h(m,b)});function h(m,y){m||!y?c(m):s?s(y):r(void 0,y)}}}processSync(n){let r=!1,i;return this.freeze(),Uh("processSync",this.parser||this.Parser),Hh("processSync",this.compiler||this.Compiler),this.process(n,l),w0("processSync","process",r),i;function l(s,c){r=!0,y0(s),i=c}}run(n,r,i){b0(n),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,f){const d=zu(r);l.run(n,d,h);function h(m,y,b){const w=y||n;m?f(m):c?c(w):i(void 0,w,b)}}}runSync(n,r){let i=!1,l;return this.run(n,r,s),w0("runSync","run",i),l;function s(c,f){y0(c),l=f,i=!0}}stringify(n,r){this.freeze();const i=zu(r),l=this.compiler||this.Compiler;return Hh("stringify",l),b0(n),l(n,i)}use(n,...r){const i=this.attachers,l=this.namespace;if(Fh("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;d(m,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(l.settings=Lh(!0,l.settings,h.settings))}function f(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];s(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===h){b=y;break}if(b===-1)i.push([h,...m]);else if(m.length>0){let[w,...E]=m;const S=i[b][1];Np(S)&&Np(w)&&(w=Lh(!0,S,w)),i[b]=[h,w,...E]}}}}const o6=new Im().freeze();function Uh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Fh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function b0(e){if(!Np(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function w0(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function zu(e){return l6(e)?e:new KE(e)}function l6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function s6(e){return typeof e=="string"||u6(e)}function u6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const c6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",S0=[],E0={allowDangerousHtml:!0},f6=/^(https?|ircs?|mailto|xmpp)$/i,d6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function h6(e){const n=p6(e),r=m6(e);return g6(n.runSync(n.parse(r),r),e)}function p6(e){const n=e.rehypePlugins||S0,r=e.remarkPlugins||S0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...E0}:E0;return o6().use(K3).use(r).use(F5,i).use(n)}function m6(e){const n=e.children||"",r=new KE;return typeof n=="string"&&(r.value=n),r}function g6(e,n){const r=n.allowedElements,i=n.allowElement,l=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||y6;for(const m of d6)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+c6+m.id,void 0);return zm(e,h),ML(e,{Fragment:g.Fragment,components:l,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let w;for(w in jh)if(Object.hasOwn(jh,w)&&Object.hasOwn(m.properties,w)){const E=m.properties[w],S=jh[w];(S===null||S.includes(m.tagName))&&(m.properties[w]=d(String(E||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):s?s.includes(m.tagName):!1;if(!w&&i&&typeof y=="number"&&(w=!i(m,y,b)),w&&b&&typeof y=="number")return f&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}}function y6(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||r!==-1&&n>r||i!==-1&&n>i||f6.test(e.slice(0,n))?e:""}function C0(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=r.indexOf(n);for(;l!==-1;)i++,l=r.indexOf(n,l+n.length);return i}function v6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function x6(e,n,r){const l=qc((r||{}).ignore||[]),s=b6(n);let c=-1;for(;++c<s.length;)YE(e,"text",f);function f(h,m){let y=-1,b;for(;++y<m.length;){const w=m[y],E=b?b.children:void 0;if(l(w,E?E.indexOf(w):void 0,b))return;b=w}if(b)return d(h,m)}function d(h,m){const y=m[m.length-1],b=s[c][0],w=s[c][1];let E=0;const A=y.children.indexOf(h);let T=!1,R=[];b.lastIndex=0;let N=b.exec(h.value);for(;N;){const D=N.index,L={index:N.index,input:N.input,stack:[...m,h]};let j=w(...N,L);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?b.lastIndex=D+1:(E!==D&&R.push({type:"text",value:h.value.slice(E,D)}),Array.isArray(j)?R.push(...j):j&&R.push(j),E=D+N[0].length,T=!0),!b.global)break;N=b.exec(h.value)}return T?(E<h.value.length&&R.push({type:"text",value:h.value.slice(E)}),y.children.splice(A,1,...R)):R=[h],A+R.length}}function b6(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const l=r[i];n.push([w6(l[0]),S6(l[1])])}return n}function w6(e){return typeof e=="string"?new RegExp(v6(e),"g"):e}function S6(e){return typeof e=="function"?e:function(){return e}}const Vh="phrasing",qh=["autolink","link","image","label"];function E6(){return{transforms:[_6],enter:{literalAutolink:k6,literalAutolinkEmail:$h,literalAutolinkHttp:$h,literalAutolinkWww:$h},exit:{literalAutolink:N6,literalAutolinkEmail:R6,literalAutolinkHttp:A6,literalAutolinkWww:T6}}}function C6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vh,notInConstruct:qh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vh,notInConstruct:qh},{character:":",before:"[ps]",after:"\\/",inConstruct:Vh,notInConstruct:qh}]}}function k6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $h(e){this.config.enter.autolinkProtocol.call(this,e)}function A6(e){this.config.exit.autolinkProtocol.call(this,e)}function T6(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function R6(e){this.config.exit.autolinkEmail.call(this,e)}function N6(e){this.exit(e)}function _6(e){x6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,M6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),j6]],{ignore:["link","linkReference"]})}function M6(e,n,r,i,l){let s="";if(!XE(l)||(/^w/i.test(n)&&(r=n+r,n="",s="http://"),!D6(r)))return!1;const c=O6(r+i);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function j6(e,n,r,i){return!XE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function D6(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function O6(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],i=r.indexOf(")");const l=C0(e,"(");let s=C0(e,")");for(;i!==-1&&l>s;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),s++;return[e,r]}function XE(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Wa(r)||Hc(r))&&(!n||r!==47)}QE.peek=V6;function P6(){this.buffer()}function L6(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function z6(){this.buffer()}function I6(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function B6(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Xn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function U6(e){this.exit(e)}function H6(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Xn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function F6(e){this.exit(e)}function V6(){return"["}function QE(e,n,r,i){const l=r.createTracker(i);let s=l.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return s+=l.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),c(),s+=l.move("]"),s}function q6(){return{enter:{gfmFootnoteCallString:P6,gfmFootnoteCall:L6,gfmFootnoteDefinitionLabelString:z6,gfmFootnoteDefinition:I6},exit:{gfmFootnoteCallString:B6,gfmFootnoteCall:U6,gfmFootnoteDefinitionLabelString:H6,gfmFootnoteDefinition:F6}}}function $6(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:QE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,l,s,c){const f=s.createTracker(c);let d=f.move("[^");const h=s.enter("footnoteDefinition"),m=s.enter("label");return d+=f.move(s.safe(s.associationId(i),{before:d,after:"]"})),m(),d+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),d+=f.move((n?`
|
|
374
|
-
`:" ")+s.indentLines(s.containerFlow(i,f.current()),n?ZE:G6))),h(),d}}function G6(e,n,r){return n===0?e:ZE(e,n,r)}function ZE(e,n,r){return(r?"":" ")+e}const Y6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];WE.peek=W6;function K6(){return{canContainEols:["delete"],enter:{strikethrough:Q6},exit:{strikethrough:Z6}}}function X6(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Y6}],handlers:{delete:WE}}}function Q6(e){this.enter({type:"delete",children:[]},e)}function Z6(e){this.exit(e)}function WE(e,n,r,i){const l=r.createTracker(i),s=r.enter("strikethrough");let c=l.move("~~");return c+=r.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),s(),c}function W6(){return"~"}function J6(e){return e.length}function eI(e,n){const r=n||{},i=(r.align||[]).concat(),l=r.stringLength||J6,s=[],c=[],f=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],A=[];let T=-1;for(e[m].length>h&&(h=e[m].length);++T<e[m].length;){const R=tI(e[m][T]);if(r.alignDelimiters!==!1){const N=l(R);A[T]=N,(d[T]===void 0||N>d[T])&&(d[T]=N)}S.push(R)}c[m]=S,f[m]=A}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<h;)s[y]=k0(i[y]);else{const S=k0(i);for(;++y<h;)s[y]=S}y=-1;const b=[],w=[];for(;++y<h;){const S=s[y];let A="",T="";S===99?(A=":",T=":"):S===108?A=":":S===114&&(T=":");let R=r.alignDelimiters===!1?1:Math.max(1,d[y]-A.length-T.length);const N=A+"-".repeat(R)+T;r.alignDelimiters!==!1&&(R=A.length+R+T.length,R>d[y]&&(d[y]=R),w[y]=R),b[y]=N}c.splice(1,0,b),f.splice(1,0,w),m=-1;const E=[];for(;++m<c.length;){const S=c[m],A=f[m];y=-1;const T=[];for(;++y<h;){const R=S[y]||"";let N="",D="";if(r.alignDelimiters!==!1){const L=d[y]-(A[y]||0),j=s[y];j===114?N=" ".repeat(L):j===99?L%2?(N=" ".repeat(L/2+.5),D=" ".repeat(L/2-.5)):(N=" ".repeat(L/2),D=N):D=" ".repeat(L)}r.delimiterStart!==!1&&!y&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&R==="")&&(r.delimiterStart!==!1||y)&&T.push(" "),r.alignDelimiters!==!1&&T.push(N),T.push(R),r.alignDelimiters!==!1&&T.push(D),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||y!==h-1)&&T.push("|")}E.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return E.join(`
|
|
375
|
-
`)}function tI(e){return e==null?"":String(e)}function k0(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function nI(e,n,r,i){const l=r.enter("blockquote"),s=r.createTracker(i);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(e,s.current()),rI);return l(),c}function rI(e,n,r){return">"+(r?"":" ")+e}function aI(e,n){return A0(e,n.inConstruct,!0)&&!A0(e,n.notInConstruct,!1)}function A0(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function T0(e,n,r,i){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
376
|
-
`&&aI(r.stack,r.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
377
|
-
`}function iI(e,n){const r=String(e);let i=r.indexOf(n),l=i,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++s>c&&(c=s):s=1,l=i+n.length,i=r.indexOf(n,l);return c}function oI(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function lI(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function sI(e,n,r,i){const l=lI(r),s=e.value||"",c=l==="`"?"GraveAccent":"Tilde";if(oI(e,r)){const y=r.enter("codeIndented"),b=r.indentLines(s,uI);return y(),b}const f=r.createTracker(i),d=l.repeat(Math.max(iI(s,l)+1,3)),h=r.enter("codeFenced");let m=f.move(d);if(e.lang){const y=r.enter(`codeFencedLang${c}`);m+=f.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=r.enter(`codeFencedMeta${c}`);m+=f.move(" "),m+=f.move(r.safe(e.meta,{before:m,after:`
|
|
378
|
-
`,encode:["`"],...f.current()})),y()}return m+=f.move(`
|
|
379
|
-
`),s&&(m+=f.move(s+`
|
|
380
|
-
`)),m+=f.move(d),h(),m}function uI(e,n,r){return(r?"":" ")+e}function Bm(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function cI(e,n,r,i){const l=Bm(r),s=l==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const d=r.createTracker(i);let h=d.move("[");return h+=d.move(r.safe(r.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
381
|
-
`,...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+l),h+=d.move(r.safe(e.title,{before:h,after:l,...d.current()})),h+=d.move(l),f()),c(),h}function fI(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Vl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sc(e,n,r){const i=ao(e),l=ao(n);return i===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}JE.peek=dI;function JE(e,n,r,i){const l=fI(r),s=r.enter("emphasis"),c=r.createTracker(i),f=c.move(l);let d=c.move(r.containerPhrasing(e,{after:l,before:f,...c.current()}));const h=d.charCodeAt(0),m=sc(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(d=Vl(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=sc(i.after.charCodeAt(0),y,l);b.inside&&(d=d.slice(0,-1)+Vl(y));const w=c.move(l);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+d+w}function dI(e,n,r){return r.options.emphasis||"*"}function hI(e,n){let r=!1;return zm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Tp}),!!((!e.depth||e.depth<3)&&_m(e)&&(n.options.setext||r))}function pI(e,n,r,i){const l=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(hI(e,r)){const m=r.enter("headingSetext"),y=r.enter("phrasing"),b=r.containerPhrasing(e,{...s.current(),before:`
|
|
382
|
-
`,after:`
|
|
383
|
-
`});return y(),m(),b+`
|
|
384
|
-
`+(l===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
385
|
-
`))+1))}const c="#".repeat(l),f=r.enter("headingAtx"),d=r.enter("phrasing");s.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
386
|
-
`,...s.current()});return/^[\t ]/.test(h)&&(h=Vl(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),d(),f(),h}eC.peek=mI;function eC(e){return e.value||""}function mI(){return"<"}tC.peek=gI;function tC(e,n,r,i){const l=Bm(r),s=l==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const d=r.createTracker(i);let h=d.move("![");return h+=d.move(r.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+l),h+=d.move(r.safe(e.title,{before:h,after:l,...d.current()})),h+=d.move(l),f()),h+=d.move(")"),c(),h}function gI(){return"!"}nC.peek=yI;function nC(e,n,r,i){const l=e.referenceType,s=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(i);let d=f.move("![");const h=r.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=m,s(),l==="full"||!h||h!==y?d+=f.move(y+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function yI(){return"!"}rC.peek=vI;function rC(e,n,r){let i=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<r.unsafe.length;){const c=r.unsafe[s],f=r.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return l+i+l}function vI(){return"`"}function aC(e,n){const r=_m(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}iC.peek=xI;function iC(e,n,r,i){const l=Bm(r),s=l==='"'?"Quote":"Apostrophe",c=r.createTracker(i);let f,d;if(aC(e,r)){const m=r.stack;r.stack=[],f=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),r.stack=m,y}f=r.enter("link"),d=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(d=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=r.enter(`title${s}`),h+=c.move(" "+l),h+=c.move(r.safe(e.title,{before:h,after:l,...c.current()})),h+=c.move(l),d()),h+=c.move(")"),f(),h}function xI(e,n,r){return aC(e,r)?"<":"["}oC.peek=bI;function oC(e,n,r,i){const l=e.referenceType,s=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(i);let d=f.move("[");const h=r.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=m,s(),l==="full"||!h||h!==y?d+=f.move(y+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function bI(){return"["}function Um(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function wI(e){const n=Um(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function SI(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function lC(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function EI(e,n,r,i){const l=r.enter("list"),s=r.bulletCurrent;let c=e.ordered?SI(r):Um(r);const f=e.ordered?c==="."?")":".":wI(r);let d=n&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(d=!0),lC(r)===c&&m){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),r.bulletCurrent=c;const h=r.containerFlow(e,i);return r.bulletLastUsed=c,r.bulletCurrent=s,l(),h}function CI(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function kI(e,n,r,i){const l=CI(r);let s=r.bulletCurrent||Um(r);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(i);f.move(s+" ".repeat(c-s.length)),f.shift(c);const d=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,f.current()),m);return d(),h;function m(y,b,w){return b?(w?"":" ".repeat(c))+y:(w?s:s+" ".repeat(c-s.length))+y}}function AI(e,n,r,i){const l=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(e,i);return s(),l(),c}const TI=qc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function RI(e,n,r,i){return(e.children.some(function(c){return TI(c)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function NI(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}sC.peek=_I;function sC(e,n,r,i){const l=NI(r),s=r.enter("strong"),c=r.createTracker(i),f=c.move(l+l);let d=c.move(r.containerPhrasing(e,{after:l,before:f,...c.current()}));const h=d.charCodeAt(0),m=sc(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(d=Vl(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=sc(i.after.charCodeAt(0),y,l);b.inside&&(d=d.slice(0,-1)+Vl(y));const w=c.move(l+l);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+d+w}function _I(e,n,r){return r.options.strong||"*"}function MI(e,n,r,i){return r.safe(e.value,i)}function jI(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function DI(e,n,r){const i=(lC(r)+(r.options.ruleSpaces?" ":"")).repeat(jI(r));return r.options.ruleSpaces?i.slice(0,-1):i}const uC={blockquote:nI,break:T0,code:sI,definition:cI,emphasis:JE,hardBreak:T0,heading:pI,html:eC,image:tC,imageReference:nC,inlineCode:rC,link:iC,linkReference:oC,list:EI,listItem:kI,paragraph:AI,root:RI,strong:sC,text:MI,thematicBreak:DI};function OI(){return{enter:{table:PI,tableData:R0,tableHeader:R0,tableRow:zI},exit:{codeText:II,table:LI,tableData:Gh,tableHeader:Gh,tableRow:Gh}}}function PI(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function LI(e){this.exit(e),this.data.inTable=void 0}function zI(e){this.enter({type:"tableRow",children:[]},e)}function Gh(e){this.exit(e)}function R0(e){this.enter({type:"tableCell",children:[]},e)}function II(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,BI));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function BI(e,n){return n==="|"?n:e}function UI(e){const n=e||{},r=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
387
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:d,tableRow:f}};function c(w,E,S,A){return h(m(w,S,A),w.align)}function f(w,E,S,A){const T=y(w,S,A),R=h([T]);return R.slice(0,R.indexOf(`
|
|
388
|
-
`))}function d(w,E,S,A){const T=S.enter("tableCell"),R=S.enter("phrasing"),N=S.containerPhrasing(w,{...A,before:s,after:s});return R(),T(),N}function h(w,E){return eI(w,{align:E,alignDelimiters:i,padding:r,stringLength:l})}function m(w,E,S){const A=w.children;let T=-1;const R=[],N=E.enter("table");for(;++T<A.length;)R[T]=y(A[T],E,S);return N(),R}function y(w,E,S){const A=w.children;let T=-1;const R=[],N=E.enter("tableRow");for(;++T<A.length;)R[T]=d(A[T],w,E,S);return N(),R}function b(w,E,S){let A=uC.inlineCode(w,E,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function HI(){return{exit:{taskListCheckValueChecked:N0,taskListCheckValueUnchecked:N0,paragraph:VI}}}function FI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qI}}}function N0(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function VI(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const l=n.children;let s=-1,c;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){c=f;break}}c===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function qI(e,n,r,i){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(i);s&&f.move(c);let d=uC.listItem(e,n,r,{...i,...f.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+c}}function $I(){return[E6(),q6(),K6(),OI(),HI()]}function GI(e){return{extensions:[C6(),$6(e),X6(),UI(e),FI()]}}const YI={tokenize:JI,partial:!0},cC={tokenize:e9,partial:!0},fC={tokenize:t9,partial:!0},dC={tokenize:n9,partial:!0},KI={tokenize:r9,partial:!0},hC={name:"wwwAutolink",tokenize:ZI,previous:mC},pC={name:"protocolAutolink",tokenize:WI,previous:gC},Ir={name:"emailAutolink",tokenize:QI,previous:yC},dr={};function XI(){return{text:dr}}let Fa=48;for(;Fa<123;)dr[Fa]=Ir,Fa++,Fa===58?Fa=65:Fa===91&&(Fa=97);dr[43]=Ir;dr[45]=Ir;dr[46]=Ir;dr[95]=Ir;dr[72]=[Ir,pC];dr[104]=[Ir,pC];dr[87]=[Ir,hC];dr[119]=[Ir,hC];function QI(e,n,r){const i=this;let l,s;return c;function c(y){return!Mp(y)||!yC.call(i,i.previous)||Hm(i.events)?r(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Mp(y)?(e.consume(y),f):y===64?(e.consume(y),d):r(y)}function d(y){return y===46?e.check(KI,m,h)(y):y===45||y===95||Yt(y)?(s=!0,e.consume(y),d):m(y)}function h(y){return e.consume(y),l=!0,d}function m(y){return s&&l&&Wt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):r(y)}}function ZI(e,n,r){const i=this;return l;function l(c){return c!==87&&c!==119||!mC.call(i,i.previous)||Hm(i.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(YI,e.attempt(cC,e.attempt(fC,s),r),r)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function WI(e,n,r){const i=this;let l="",s=!1;return c;function c(y){return(y===72||y===104)&&gC.call(i,i.previous)&&!Hm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(y),e.consume(y),f):r(y)}function f(y){if(Wt(y)&&l.length<5)return l+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=l.toLowerCase();if(b==="http"||b==="https")return e.consume(y),d}return r(y)}function d(y){return y===47?(e.consume(y),s?h:(s=!0,d)):r(y)}function h(y){return y===null||oc(y)||ot(y)||Wa(y)||Hc(y)?r(y):e.attempt(cC,e.attempt(fC,m),r)(y)}function m(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function JI(e,n,r){let i=0;return l;function l(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),l):c===46&&i===3?(e.consume(c),s):r(c)}function s(c){return c===null?r(c):n(c)}}function e9(e,n,r){let i,l,s;return c;function c(h){return h===46||h===95?e.check(dC,d,f)(h):h===null||ot(h)||Wa(h)||h!==45&&Hc(h)?d(h):(s=!0,e.consume(h),c)}function f(h){return h===95?i=!0:(l=i,i=void 0),e.consume(h),c}function d(h){return l||i||!s?r(h):n(h)}}function t9(e,n){let r=0,i=0;return l;function l(c){return c===40?(r++,e.consume(c),l):c===41&&i<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(dC,n,s)(c):c===null||ot(c)||Wa(c)?n(c):(e.consume(c),l)}function s(c){return c===41&&i++,e.consume(c),l}}function n9(e,n,r){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||ot(f)||Wa(f)?n(f):r(f)}function l(f){return f===null||f===40||f===91||ot(f)||Wa(f)?n(f):i(f)}function s(f){return Wt(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),i):Wt(f)?(e.consume(f),c):r(f)}}function r9(e,n,r){return i;function i(s){return e.consume(s),l}function l(s){return Yt(s)?r(s):n(s)}}function mC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ot(e)}function gC(e){return!Wt(e)}function yC(e){return!(e===47||Mp(e))}function Mp(e){return e===43||e===45||e===46||e===95||Yt(e)}function Hm(e){let n=e.length,r=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const a9={tokenize:d9,partial:!0};function i9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:u9,continuation:{tokenize:c9},exit:f9}},text:{91:{name:"gfmFootnoteCall",tokenize:s9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:o9,resolveTo:l9}}}}function o9(e,n,r){const i=this;let l=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;l--;){const d=i.events[l][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return r(d);const h=Xn(i.sliceSerialize({start:c.end,end:i.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?r(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function l9(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[r+1],e[r+2],["enter",i,n],e[r+3],e[r+4],["enter",l,n],["exit",l,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(r,e.length-r+1,...f),e}function s9(e,n,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?r(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(s>999||y===93&&!c||y===null||y===91||ot(y))return r(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return l.includes(Xn(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(y)}return ot(y)||(c=!0),s++,e.consume(y),y===92?m:h}function m(y){return y===91||y===92||y===93?(e.consume(y),s++,h):h(y)}}function u9(e,n,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,f;return d;function d(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(E)}function m(E){if(c>999||E===93&&!f||E===null||E===91||ot(E))return r(E);if(E===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return s=Xn(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return ot(E)||(f=!0),c++,e.consume(E),E===92?y:m}function y(E){return E===91||E===92||E===93?(e.consume(E),c++,m):m(E)}function b(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),l.includes(s)||l.push(s),Xe(e,w,"gfmFootnoteDefinitionWhitespace")):r(E)}function w(E){return n(E)}}function c9(e,n,r){return e.check(ls,n,e.attempt(a9,n,r))}function f9(e){e.exit("gfmFootnoteDefinition")}function d9(e,n,r){const i=this;return Xe(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):r(s)}}function h9(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:l};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let h=d;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[d][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[d][1].end)},y={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[d][1].start)},b=[["enter",m,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",y,f]],w=f.parser.constructs.insideSpan.null;w&&En(b,b.length,0,Fc(w,c.slice(h+1,d),f)),En(b,b.length,0,[["exit",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",m,f]]),En(c,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function s(c,f,d){const h=this.previous,m=this.events;let y=0;return b;function b(E){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(E):(c.enter("strikethroughSequenceTemporary"),w(E))}function w(E){const S=ao(h);if(E===126)return y>1?d(E):(c.consume(E),y++,w);if(y<2&&!r)return d(E);const A=c.exit("strikethroughSequenceTemporary"),T=ao(E);return A._open=!T||T===2&&!!S,A._close=!S||S===2&&!!T,f(E)}}}class p9{constructor(){this.map=[]}add(n,r,i){m9(this,n,r,i)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const s of l)n.push(s);l=i.pop()}this.map.length=0}}function m9(e,n,r,i){let l=0;if(!(r===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=r,e.map[l][2].push(...i);return}l+=1}e.map.push([n,r,i])}}function g9(e,n){let r=!1;const i=[];for(;n<e.length;){const l=e[n];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return i}function y9(){return{flow:{null:{name:"table",tokenize:v9,resolveAll:x9}}}}function v9(e,n,r){const i=this;let l=0,s=0,c;return f;function f(z){let ee=i.events.length-1;for(;ee>-1;){const U=i.events[ee][1].type;if(U==="lineEnding"||U==="linePrefix")ee--;else break}const ae=ee>-1?i.events[ee][1].type:null,W=ae==="tableHead"||ae==="tableRow"?j:d;return W===j&&i.parser.lazy[i.now().line]?r(z):W(z)}function d(z){return e.enter("tableHead"),e.enter("tableRow"),h(z)}function h(z){return z===124||(c=!0,s+=1),m(z)}function m(z){return z===null?r(z):Ae(z)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),w):r(z):Ge(z)?Xe(e,m,"whitespace")(z):(s+=1,c&&(c=!1,l+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),y(z)))}function y(z){return z===null||z===124||ot(z)?(e.exit("data"),m(z)):(e.consume(z),z===92?b:y)}function b(z){return z===92||z===124?(e.consume(z),y):y(z)}function w(z){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(z):(e.enter("tableDelimiterRow"),c=!1,Ge(z)?Xe(e,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):E(z))}function E(z){return z===45||z===58?A(z):z===124?(c=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),S):L(z)}function S(z){return Ge(z)?Xe(e,A,"whitespace")(z):A(z)}function A(z){return z===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),T):z===45?(s+=1,T(z)):z===null||Ae(z)?D(z):L(z)}function T(z){return z===45?(e.enter("tableDelimiterFiller"),R(z)):L(z)}function R(z){return z===45?(e.consume(z),R):z===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(z))}function N(z){return Ge(z)?Xe(e,D,"whitespace")(z):D(z)}function D(z){return z===124?E(z):z===null||Ae(z)?!c||l!==s?L(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(z)):L(z)}function L(z){return r(z)}function j(z){return e.enter("tableRow"),F(z)}function F(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),F):z===null||Ae(z)?(e.exit("tableRow"),n(z)):Ge(z)?Xe(e,F,"whitespace")(z):(e.enter("data"),q(z))}function q(z){return z===null||z===124||ot(z)?(e.exit("data"),F(z)):(e.consume(z),z===92?J:q)}function J(z){return z===92||z===124?(e.consume(z),q):q(z)}}function x9(e,n){let r=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,h,m,y;const b=new p9;for(;++r<e.length;){const w=e[r],E=w[1];w[0]==="enter"?E.type==="tableHead"?(f=!1,d!==0&&(_0(b,n,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(r,0,[["enter",h,n]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(i=!0,y=void 0,s=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(r,0,[["enter",m,n]])),l=E.type==="tableDelimiterRow"?2:m?3:1):l&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],y=Iu(b,n,s,l,void 0,y),s=[0,0,0,0]),c[2]=r)):E.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],y=Iu(b,n,s,l,void 0,y)),s=c,c=[s[1],r,0,0])):E.type==="tableHead"?(f=!0,d=r):E.type==="tableRow"||E.type==="tableDelimiterRow"?(d=r,s[1]!==0?(c[0]=c[1],y=Iu(b,n,s,l,r,y)):c[1]!==0&&(y=Iu(b,n,c,l,r,y)),l=0):l&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=r)}for(d!==0&&_0(b,n,d,h,m),b.consume(n.events),r=-1;++r<n.events.length;){const w=n.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=g9(n.events,r))}return e}function Iu(e,n,r,i,l,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},Qi(n.events,r[0])),e.add(r[0],0,[["exit",s,n]]));const d=Qi(n.events,r[1]);if(s={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",s,n]]),r[2]!==0){const h=Qi(n.events,r[2]),m=Qi(n.events,r[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",y,n]]),i!==2){const b=n.events[r[2]],w=n.events[r[3]];if(b[1].end=Object.assign({},w[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const E=r[2]+1,S=r[3]-r[2]-1;e.add(E,S,[])}}e.add(r[3]+1,0,[["exit",y,n]])}return l!==void 0&&(s.end=Object.assign({},Qi(n.events,l)),e.add(l,0,[["exit",s,n]]),s=void 0),s}function _0(e,n,r,i,l){const s=[],c=Qi(n.events,r);l&&(l.end=Object.assign({},c),s.push(["exit",l,n])),i.end=Object.assign({},c),s.push(["exit",i,n]),e.add(r+1,0,s)}function Qi(e,n){const r=e[n],i=r[0]==="enter"?"start":"end";return r[1][i]}const b9={name:"tasklistCheck",tokenize:S9};function w9(){return{text:{91:b9}}}function S9(e,n,r){const i=this;return l;function l(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return ot(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):r(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(d)}function f(d){return Ae(d)?n(d):Ge(d)?e.check({tokenize:E9},n,r)(d):r(d)}}function E9(e,n,r){return Xe(e,i,"whitespace");function i(l){return l===null?r(l):n(l)}}function C9(e){return RE([XI(),i9(),h9(e),y9(),w9()])}const k9={};function A9(e){const n=this,r=e||k9,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(C9(r)),s.push($I()),c.push(GI(r))}const Va=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],M0={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Va,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Va],h2:[["className","sr-only"]],img:[...Va,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Va,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Va],table:[...Va],ul:[...Va,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},ga={}.hasOwnProperty;function T9(e,n){let r={type:"root",children:[]};const i={schema:n?{...M0,...n}:M0,stack:[]},l=vC(i,e);return l&&(Array.isArray(l)?l.length===1?r=l[0]:r.children=l:r=l),r}function vC(e,n){if(n&&typeof n=="object"){const r=n;switch(typeof r.type=="string"?r.type:""){case"comment":return R9(e,r);case"doctype":return N9(e,r);case"element":return _9(e,r);case"root":return M9(e,r);case"text":return j9(e,r)}}}function R9(e,n){if(e.schema.allowComments){const r=typeof n.value=="string"?n.value:"",i=r.indexOf("-->"),s={type:"comment",value:i<0?r:r.slice(0,i)};return us(s,n),s}}function N9(e,n){if(e.schema.allowDoctypes){const r={type:"doctype"};return us(r,n),r}}function _9(e,n){const r=typeof n.tagName=="string"?n.tagName:"";e.stack.push(r);const i=xC(e,n.children),l=D9(e,n.properties);e.stack.pop();let s=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&ga.call(e.schema.ancestors,r))){const f=e.schema.ancestors[r];let d=-1;for(s=!1;++d<f.length;)e.stack.includes(f[d])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const c={type:"element",tagName:r,properties:l,children:i};return us(c,n),c}function M9(e,n){const i={type:"root",children:xC(e,n.children)};return us(i,n),i}function j9(e,n){const i={type:"text",value:typeof n.value=="string"?n.value:""};return us(i,n),i}function xC(e,n){const r=[];if(Array.isArray(n)){const i=n;let l=-1;for(;++l<i.length;){const s=vC(e,i[l]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}function D9(e,n){const r=e.stack[e.stack.length-1],i=e.schema.attributes,l=e.schema.required,s=i&&ga.call(i,r)?i[r]:void 0,c=i&&ga.call(i,"*")?i["*"]:void 0,f=n&&typeof n=="object"?n:{},d={};let h;for(h in f)if(ga.call(f,h)){const m=f[h];let y=j0(e,D0(s,h),h,m);y==null&&(y=j0(e,D0(c,h),h,m)),y!=null&&(d[h]=y)}if(l&&ga.call(l,r)){const m=l[r];for(h in m)ga.call(m,h)&&!ga.call(d,h)&&(d[h]=m[h])}return d}function j0(e,n,r,i){return n?Array.isArray(i)?O9(e,n,r,i):bC(e,n,r,i):void 0}function O9(e,n,r,i){let l=-1;const s=[];for(;++l<i.length;){const c=bC(e,n,r,i[l]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function bC(e,n,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&P9(e,r,i)){if(typeof n=="object"&&n.length>1){let l=!1,s=0;for(;++s<n.length;){const c=n[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){l=!0;break}}else if(c===i){l=!0;break}}if(!l)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function P9(e,n,r){const i=e.schema.protocols&&ga.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!i||i.length===0)return!0;const l=String(r),s=l.indexOf(":"),c=l.indexOf("?"),f=l.indexOf("#"),d=l.indexOf("/");if(s<0||d>-1&&s>d||c>-1&&s>c||f>-1&&s>f)return!0;let h=-1;for(;++h<i.length;){const m=i[h];if(s===m.length&&l.slice(0,m.length)===m)return!0}return!1}function us(e,n){const r=SE(n);n.data&&(e.data=Fl(n.data)),r&&(e.position=r)}function D0(e,n){let r,i=-1;if(e)for(;++i<e.length;){const l=e[i],s=typeof l=="string"?l:l[0];if(s===n)return l;s==="data*"&&(r=l)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return r}function L9(e){return function(n){return T9(n,e)}}const cs=v.forwardRef(({children:e,className:n,...r},i)=>g.jsx("div",{ref:i,className:ue("prose prose-sm max-w-none dark:prose-invert","prose-headings:font-semibold prose-headings:text-foreground","prose-h1:text-2xl prose-h1:mb-4 prose-h1:mt-6 first:prose-h1:mt-0","prose-h2:text-xl prose-h2:mb-3 prose-h2:mt-5","prose-h3:text-lg prose-h3:mb-2 prose-h3:mt-4","prose-p:text-sm prose-p:leading-relaxed prose-p:text-foreground prose-p:mb-4","prose-code:text-xs prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-foreground","prose-pre:bg-muted prose-pre:text-sm prose-pre:p-4 prose-pre:rounded-lg prose-pre:overflow-x-auto","prose-blockquote:border-l-4 prose-blockquote:border-muted-foreground prose-blockquote:pl-4 prose-blockquote:italic prose-blockquote:text-muted-foreground","prose-ul:text-sm prose-ul:mb-4 prose-ul:list-disc prose-ul:pl-6","prose-ol:text-sm prose-ol:mb-4 prose-ol:list-decimal prose-ol:pl-6","prose-li:text-sm prose-li:leading-relaxed prose-li:text-foreground prose-li:mb-1 prose-li:marker:text-muted-foreground","prose-table:text-sm prose-table:border-collapse prose-table:w-full","prose-th:text-xs prose-th:font-semibold prose-th:text-muted-foreground prose-th:border prose-th:border-border prose-th:p-2 prose-th:bg-muted/50","prose-td:text-sm prose-td:border prose-td:border-border prose-td:p-2","prose-strong:text-foreground prose-strong:font-semibold","prose-em:text-foreground prose-em:italic","prose-hr:border-border prose-hr:my-6",n),...r,children:g.jsx(h6,{remarkPlugins:[A9],rehypePlugins:[L9],components:{input:({type:l,checked:s,...c})=>l==="checkbox"?g.jsx("input",{type:"checkbox",checked:s,disabled:!0,className:"mr-2 h-4 w-4 rounded border-2 border-muted-foreground bg-background accent-primary flex-shrink-0 mt-0.5",...c}):g.jsx("input",{type:l,...c}),li:({children:l,...s})=>v.Children.toArray(l).some(f=>v.isValidElement(f)&&f.props&&f.props.type==="checkbox")?g.jsx("li",{className:"flex items-start gap-1 list-none pl-0",...s,children:l}):g.jsx("li",{...s,children:l}),a:({href:l,children:s,...c})=>g.jsx("a",{href:l,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",...c,children:s}),img:({src:l,alt:s,...c})=>{let f=l;return l?.startsWith("../images/")&&(f=`/api/v1/context/images/${l.replace("../images/","")}`),g.jsx("img",{src:f,alt:s||"",className:"max-w-full h-auto rounded-lg",loading:"lazy",...c})}},children:e})}));cs.displayName="MarkdownViewer";var wC="AlertDialog",[z9,nH]=Bn(wC,[b1]),Br=b1(),SC=e=>{const{__scopeAlertDialog:n,...r}=e,i=Br(n);return g.jsx(am,{...i,...r,modal:!0})};SC.displayName=wC;var I9="AlertDialogTrigger",EC=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Br(r);return g.jsx(L1,{...l,...i,ref:n})});EC.displayName=I9;var B9="AlertDialogPortal",CC=e=>{const{__scopeAlertDialog:n,...r}=e,i=Br(n);return g.jsx(im,{...i,...r})};CC.displayName=B9;var U9="AlertDialogOverlay",kC=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Br(r);return g.jsx(Wl,{...l,...i,ref:n})});kC.displayName=U9;var to="AlertDialogContent",[H9,F9]=z9(to),V9=pw("AlertDialogContent"),AC=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,children:i,...l}=e,s=Br(r),c=v.useRef(null),f=Be(n,c),d=v.useRef(null);return g.jsx(lO,{contentName:to,titleName:TC,docsSlug:"alert-dialog",children:g.jsx(H9,{scope:r,cancelRef:d,children:g.jsxs(Jl,{role:"alertdialog",...s,...l,ref:f,onOpenAutoFocus:me(l.onOpenAutoFocus,h=>{h.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[g.jsx(V9,{children:i}),g.jsx($9,{contentRef:c})]})})})});AC.displayName=to;var TC="AlertDialogTitle",RC=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Br(r);return g.jsx(es,{...l,...i,ref:n})});RC.displayName=TC;var NC="AlertDialogDescription",_C=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Br(r);return g.jsx(ts,{...l,...i,ref:n})});_C.displayName=NC;var q9="AlertDialogAction",MC=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Br(r);return g.jsx(Rc,{...l,...i,ref:n})});MC.displayName=q9;var jC="AlertDialogCancel",DC=v.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=F9(jC,r),s=Br(r),c=Be(n,l);return g.jsx(Rc,{...s,...i,ref:c})});DC.displayName=jC;var $9=({contentRef:e})=>{const n=`\`${to}\` requires a description for the component to be accessible for screen reader users.
|
|
389
|
-
|
|
390
|
-
You can add a description to the \`${to}\` by passing a \`${NC}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
391
|
-
|
|
392
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${to}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
393
|
-
|
|
394
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,e]),null},G9=SC,Y9=EC,K9=CC,OC=kC,PC=AC,LC=MC,zC=DC,IC=RC,BC=_C;const X9=G9,Q9=Y9,Z9=K9,UC=v.forwardRef(({className:e,...n},r)=>g.jsx(OC,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));UC.displayName=OC.displayName;const HC=v.forwardRef(({className:e,...n},r)=>g.jsxs(Z9,{children:[g.jsx(UC,{}),g.jsx(PC,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n})]}));HC.displayName=PC.displayName;const FC=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});FC.displayName="AlertDialogHeader";const VC=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});VC.displayName="AlertDialogFooter";const qC=v.forwardRef(({className:e,...n},r)=>g.jsx(IC,{ref:r,className:ue("text-lg font-semibold",e),...n}));qC.displayName=IC.displayName;const $C=v.forwardRef(({className:e,...n},r)=>g.jsx(BC,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));$C.displayName=BC.displayName;const GC=v.forwardRef(({className:e,...n},r)=>g.jsx(LC,{ref:r,className:ue(Wp(),e),...n}));GC.displayName=LC.displayName;const YC=v.forwardRef(({className:e,...n},r)=>g.jsx(zC,{ref:r,className:ue(Wp({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));YC.displayName=zC.displayName;var Gc="Checkbox",[W9,rH]=Bn(Gc),[J9,Fm]=W9(Gc);function e8(e){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:l,disabled:s,form:c,name:f,onCheckedChange:d,required:h,value:m="on",internal_do_not_use_render:y}=e,[b,w]=va({prop:r,defaultProp:l??!1,onChange:d,caller:Gc}),[E,S]=v.useState(null),[A,T]=v.useState(null),R=v.useRef(!1),N=E?!!c||!!E.closest("form"):!0,D={checked:b,disabled:s,setChecked:w,control:E,setControl:S,name:f,form:c,value:m,hasConsumerStoppedPropagationRef:R,required:h,defaultChecked:ya(l)?!1:l,isFormControl:N,bubbleInput:A,setBubbleInput:T};return g.jsx(J9,{scope:n,...D,children:t8(y)?y(D):i})}var KC="CheckboxTrigger",XC=v.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...i},l)=>{const{control:s,value:c,disabled:f,checked:d,required:h,setControl:m,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:E}=Fm(KC,e),S=Be(l,m),A=v.useRef(d);return v.useEffect(()=>{const T=s?.form;if(T){const R=()=>y(A.current);return T.addEventListener("reset",R),()=>T.removeEventListener("reset",R)}},[s,y]),g.jsx(Me.button,{type:"button",role:"checkbox","aria-checked":ya(d)?"mixed":d,"aria-required":h,"data-state":ek(d),"data-disabled":f?"":void 0,disabled:f,value:c,...i,ref:S,onKeyDown:me(n,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:me(r,T=>{y(R=>ya(R)?!0:!R),E&&w&&(b.current=T.isPropagationStopped(),b.current||T.stopPropagation())})})});XC.displayName=KC;var Vm=v.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:i,checked:l,defaultChecked:s,required:c,disabled:f,value:d,onCheckedChange:h,form:m,...y}=e;return g.jsx(e8,{__scopeCheckbox:r,checked:l,defaultChecked:s,disabled:f,required:c,onCheckedChange:h,name:i,form:m,value:d,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(XC,{...y,ref:n,__scopeCheckbox:r}),b&&g.jsx(JC,{__scopeCheckbox:r})]})})});Vm.displayName=Gc;var QC="CheckboxIndicator",ZC=v.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:i,...l}=e,s=Fm(QC,r);return g.jsx(Jt,{present:i||ya(s.checked)||s.checked===!0,children:g.jsx(Me.span,{"data-state":ek(s.checked),"data-disabled":s.disabled?"":void 0,...l,ref:n,style:{pointerEvents:"none",...e.style}})})});ZC.displayName=QC;var WC="CheckboxBubbleInput",JC=v.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:l,checked:s,defaultChecked:c,required:f,disabled:d,name:h,value:m,form:y,bubbleInput:b,setBubbleInput:w}=Fm(WC,e),E=Be(r,w),S=kS(s),A=W1(i);v.useEffect(()=>{const R=b;if(!R)return;const N=window.HTMLInputElement.prototype,L=Object.getOwnPropertyDescriptor(N,"checked").set,j=!l.current;if(S!==s&&L){const F=new Event("click",{bubbles:j});R.indeterminate=ya(s),L.call(R,ya(s)?!1:s),R.dispatchEvent(F)}},[b,S,s,l]);const T=v.useRef(ya(s)?!1:s);return g.jsx(Me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??T.current,required:f,disabled:d,name:h,value:m,form:y,...n,tabIndex:-1,ref:E,style:{...n.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});JC.displayName=WC;function t8(e){return typeof e=="function"}function ya(e){return e==="indeterminate"}function ek(e){return ya(e)?"indeterminate":e?"checked":"unchecked"}const Xu=v.forwardRef(({className:e,...n},r)=>g.jsx(Vm,{ref:r,className:ue("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:g.jsx(ZC,{className:ue("flex items-center justify-center text-current"),children:g.jsx(Ec,{className:"h-4 w-4"})})}));Xu.displayName=Vm.displayName;function n8(e,n){return v.useReducer((r,i)=>n[r][i]??r,e)}var qm="ScrollArea",[tk,aH]=Bn(qm),[r8,Un]=tk(qm),nk=v.forwardRef((e,n)=>{const{__scopeScrollArea:r,type:i="hover",dir:l,scrollHideDelay:s=600,...c}=e,[f,d]=v.useState(null),[h,m]=v.useState(null),[y,b]=v.useState(null),[w,E]=v.useState(null),[S,A]=v.useState(null),[T,R]=v.useState(0),[N,D]=v.useState(0),[L,j]=v.useState(!1),[F,q]=v.useState(!1),J=Be(n,ee=>d(ee)),z=Lc(l);return g.jsx(r8,{scope:r,type:i,dir:z,scrollHideDelay:s,scrollArea:f,viewport:h,onViewportChange:m,content:y,onContentChange:b,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:j,scrollbarY:S,onScrollbarYChange:A,scrollbarYEnabled:F,onScrollbarYEnabledChange:q,onCornerWidthChange:R,onCornerHeightChange:D,children:g.jsx(Me.div,{dir:z,...c,ref:J,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});nk.displayName=qm;var rk="ScrollAreaViewport",ak=v.forwardRef((e,n)=>{const{__scopeScrollArea:r,children:i,nonce:l,...s}=e,c=Un(rk,r),f=v.useRef(null),d=Be(n,f,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),g.jsx(Me.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});ak.displayName=rk;var hr="ScrollAreaScrollbar",$m=v.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Un(hr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=l,f=e.orientation==="horizontal";return v.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),l.type==="hover"?g.jsx(a8,{...i,ref:n,forceMount:r}):l.type==="scroll"?g.jsx(i8,{...i,ref:n,forceMount:r}):l.type==="auto"?g.jsx(ik,{...i,ref:n,forceMount:r}):l.type==="always"?g.jsx(Gm,{...i,ref:n}):null});$m.displayName=hr;var a8=v.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Un(hr,e.__scopeScrollArea),[s,c]=v.useState(!1);return v.useEffect(()=>{const f=l.scrollArea;let d=0;if(f){const h=()=>{window.clearTimeout(d),c(!0)},m=()=>{d=window.setTimeout(()=>c(!1),l.scrollHideDelay)};return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",m)}}},[l.scrollArea,l.scrollHideDelay]),g.jsx(Jt,{present:r||s,children:g.jsx(ik,{"data-state":s?"visible":"hidden",...i,ref:n})})}),i8=v.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Un(hr,e.__scopeScrollArea),s=e.orientation==="horizontal",c=Kc(()=>d("SCROLL_END"),100),[f,d]=n8("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(f==="idle"){const h=window.setTimeout(()=>d("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(h)}},[f,l.scrollHideDelay,d]),v.useEffect(()=>{const h=l.viewport,m=s?"scrollLeft":"scrollTop";if(h){let y=h[m];const b=()=>{const w=h[m];y!==w&&(d("SCROLL"),c()),y=w};return h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[l.viewport,s,d,c]),g.jsx(Jt,{present:r||f!=="hidden",children:g.jsx(Gm,{"data-state":f==="hidden"?"hidden":"visible",...i,ref:n,onPointerEnter:me(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),ik=v.forwardRef((e,n)=>{const r=Un(hr,e.__scopeScrollArea),{forceMount:i,...l}=e,[s,c]=v.useState(!1),f=e.orientation==="horizontal",d=Kc(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(f?h:m)}},10);return io(r.viewport,d),io(r.content,d),g.jsx(Jt,{present:i||s,children:g.jsx(Gm,{"data-state":s?"visible":"hidden",...l,ref:n})})}),Gm=v.forwardRef((e,n)=>{const{orientation:r="vertical",...i}=e,l=Un(hr,e.__scopeScrollArea),s=v.useRef(null),c=v.useRef(0),[f,d]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=ck(f.viewport,f.content),m={...i,sizes:f,onSizesChange:d,hasThumb:h>0&&h<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,w){return f8(b,c.current,f,w)}return r==="horizontal"?g.jsx(o8,{...m,ref:n,onThumbPositionChange:()=>{if(l.viewport&&s.current){const b=l.viewport.scrollLeft,w=O0(b,f,l.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollLeft=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollLeft=y(b,l.dir))}}):r==="vertical"?g.jsx(l8,{...m,ref:n,onThumbPositionChange:()=>{if(l.viewport&&s.current){const b=l.viewport.scrollTop,w=O0(b,f);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollTop=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollTop=y(b))}}):null}),o8=v.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...l}=e,s=Un(hr,e.__scopeScrollArea),[c,f]=v.useState(),d=v.useRef(null),h=Be(n,d,s.onScrollbarXChange);return v.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),g.jsx(lk,{"data-orientation":"horizontal",...l,ref:h,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Yc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),dk(b,y)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:cc(c.paddingLeft),paddingEnd:cc(c.paddingRight)}})}})}),l8=v.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...l}=e,s=Un(hr,e.__scopeScrollArea),[c,f]=v.useState(),d=v.useRef(null),h=Be(n,d,s.onScrollbarYChange);return v.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),g.jsx(lk,{"data-orientation":"vertical",...l,ref:h,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Yc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),dk(b,y)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:cc(c.paddingTop),paddingEnd:cc(c.paddingBottom)}})}})}),[s8,ok]=tk(hr),lk=v.forwardRef((e,n)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:l,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:d,onDragScroll:h,onWheelScroll:m,onResize:y,...b}=e,w=Un(hr,r),[E,S]=v.useState(null),A=Be(n,J=>S(J)),T=v.useRef(null),R=v.useRef(""),N=w.viewport,D=i.content-i.viewport,L=Et(m),j=Et(d),F=Kc(y,10);function q(J){if(T.current){const z=J.clientX-T.current.left,ee=J.clientY-T.current.top;h({x:z,y:ee})}}return v.useEffect(()=>{const J=z=>{const ee=z.target;E?.contains(ee)&&L(z,D)};return document.addEventListener("wheel",J,{passive:!1}),()=>document.removeEventListener("wheel",J,{passive:!1})},[N,E,D,L]),v.useEffect(j,[i,j]),io(E,F),io(w.content,F),g.jsx(s8,{scope:r,scrollbar:E,hasThumb:l,onThumbChange:Et(s),onThumbPointerUp:Et(c),onThumbPositionChange:j,onThumbPointerDown:Et(f),children:g.jsx(Me.div,{...b,ref:A,style:{position:"absolute",...b.style},onPointerDown:me(e.onPointerDown,J=>{J.button===0&&(J.target.setPointerCapture(J.pointerId),T.current=E.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),q(J))}),onPointerMove:me(e.onPointerMove,q),onPointerUp:me(e.onPointerUp,J=>{const z=J.target;z.hasPointerCapture(J.pointerId)&&z.releasePointerCapture(J.pointerId),document.body.style.webkitUserSelect=R.current,w.viewport&&(w.viewport.style.scrollBehavior=""),T.current=null})})})}),uc="ScrollAreaThumb",sk=v.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=ok(uc,e.__scopeScrollArea);return g.jsx(Jt,{present:r||l.hasThumb,children:g.jsx(u8,{ref:n,...i})})}),u8=v.forwardRef((e,n)=>{const{__scopeScrollArea:r,style:i,...l}=e,s=Un(uc,r),c=ok(uc,r),{onThumbPositionChange:f}=c,d=Be(n,y=>c.onThumbChange(y)),h=v.useRef(void 0),m=Kc(()=>{h.current&&(h.current(),h.current=void 0)},100);return v.useEffect(()=>{const y=s.viewport;if(y){const b=()=>{if(m(),!h.current){const w=d8(y,f);h.current=w,f()}};return f(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[s.viewport,m,f]),g.jsx(Me.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:me(e.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),E=y.clientX-w.left,S=y.clientY-w.top;c.onThumbPointerDown({x:E,y:S})}),onPointerUp:me(e.onPointerUp,c.onThumbPointerUp)})});sk.displayName=uc;var Ym="ScrollAreaCorner",uk=v.forwardRef((e,n)=>{const r=Un(Ym,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(c8,{...e,ref:n}):null});uk.displayName=Ym;var c8=v.forwardRef((e,n)=>{const{__scopeScrollArea:r,...i}=e,l=Un(Ym,r),[s,c]=v.useState(0),[f,d]=v.useState(0),h=!!(s&&f);return io(l.scrollbarX,()=>{const m=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(m),d(m)}),io(l.scrollbarY,()=>{const m=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(m),c(m)}),h?g.jsx(Me.div,{...i,ref:n,style:{width:s,height:f,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function cc(e){return e?parseInt(e,10):0}function ck(e,n){const r=e/n;return isNaN(r)?0:r}function Yc(e){const n=ck(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*n;return Math.max(i,18)}function f8(e,n,r,i="ltr"){const l=Yc(r),s=l/2,c=n||s,f=l-c,d=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-f,m=r.content-r.viewport,y=i==="ltr"?[0,m]:[m*-1,0];return fk([d,h],y)(e)}function O0(e,n,r="ltr"){const i=Yc(n),l=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=n.scrollbar.size-l,c=n.content-n.viewport,f=s-i,d=r==="ltr"?[0,c]:[c*-1,0],h=mp(e,d);return fk([0,c],[0,f])(h)}function fk(e,n){return r=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(r-e[0])}}function dk(e,n){return e>0&&e<n}var d8=(e,n=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function l(){const s={left:e.scrollLeft,top:e.scrollTop},c=r.left!==s.left,f=r.top!==s.top;(c||f)&&n(),r=s,i=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(i)};function Kc(e,n){const r=Et(e),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,n)},[r,n])}function io(e,n){const r=Et(n);zt(()=>{let i=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return l.observe(e),()=>{window.cancelAnimationFrame(i),l.unobserve(e)}}},[e,r])}var hk=nk,h8=ak,p8=uk;const ql=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(hk,{ref:i,className:ue("relative overflow-hidden",e),...r,children:[g.jsx(h8,{className:"h-full w-full rounded-[inherit]",children:n}),g.jsx(pk,{}),g.jsx(p8,{})]}));ql.displayName=hk.displayName;const pk=v.forwardRef(({className:e,orientation:n="vertical",...r},i)=>g.jsx($m,{ref:i,orientation:n,className:ue("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(sk,{className:"relative flex-1 rounded-full bg-border"})}));pk.displayName=$m.displayName;async function mk(){const n=[...[{id:"project-md",name:"project.md",path:".nut/context/project.md",relativePath:"context/project.md",type:"context",content:"Loading..."},{id:"architecture-md",name:"architecture.md",path:".nut/context/architecture.md",relativePath:"context/architecture.md",type:"context",content:"Loading..."},{id:"role-md",name:"role.md",path:".nut/context/role.md",relativePath:"context/role.md",type:"context",content:"Loading..."}]];try{const r=await fetch(`${Mt}/api/v1/context/knowledge`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.documents)){const l=i.documents.filter(s=>typeof s?.filename=="string").map(s=>({id:`knowledge-${s.filename.replace(".md","")}`,name:s.filename,path:`.nut/context/knowledge/${s.filename}`,relativePath:`context/knowledge/${s.filename}`,type:"knowledge",content:"Loading..."}));n.push(...l)}}}catch(r){console.error("Error fetching knowledge documents:",r)}try{const r=await fetch(`${Mt}/api/v1/proposals`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.data)){const l=i.data.filter(s=>typeof s?.id=="string"&&(typeof s.title=="string"||typeof s.intent=="string")).map(s=>({id:`proposal-${s.id}`,name:`${s.id}: ${s.title||s.intent}`,path:`.nut/proposals/${s.id}.md`,relativePath:`proposals/${s.id}.md`,type:"proposal",content:"Loading..."}));n.push(...l)}}}catch(r){console.error("Error fetching proposals:",r)}return n}async function jp(e){if(e.content&&e.content!=="Loading...")return e;try{let n=null;if(e.name==="project.md"?n="/api/v1/context/project":e.name==="architecture.md"?n="/api/v1/context/architecture":e.name==="role.md"?n="/api/v1/context/role":e.type==="knowledge"?n=`/api/v1/context/knowledge/${e.path?.split("/").pop()?.replace(".md","")||e.relativePath?.split("/").pop()?.replace(".md","")||e.name.replace(".md","")}`:e.type==="proposal"&&(n=`/api/v1/proposals/${e.id.replace("proposal-","")}`),n){const r=await fetch(`${Mt}${n}`);if(r.ok)if(e.type==="proposal"){const l=(await r.json()).data;if(l&&(typeof l.title=="string"||typeof l.intent=="string"))return{...e,content:`# ${l.title||l.intent}
|
|
395
|
-
|
|
396
|
-
${l.content||"No content available"}`}}else{const l=(await r.json()).document?.content;return{...e,content:typeof l=="string"&&l.length>0?l:"Content not available"}}}}catch(n){console.error(`Error loading content for ${e.name}:`,n)}return{...e,content:e.content??"Content could not be loaded."}}function P0({open:e,onOpenChange:n,onSelectionConfirm:r,initialSelection:i=[]}){const[l,s]=v.useState([]),[c,f]=v.useState(i),[d,h]=v.useState(null),[m,y]=v.useState(!1);v.useEffect(()=>{e&&(b(),f(i))},[e,i]);const b=async()=>{y(!0);try{const N=await mk();s(N)}catch(N){console.error("Error loading context files:",N)}finally{y(!1)}},w=async N=>{if(N.content&&N.content!=="Loading...")return N;try{return await jp(N)}catch(D){console.error("Error loading file content via API:",D)}try{let D="Content could not be loaded.";return N.name==="project.md"?D=`# Coconut - Project Context
|
|
397
|
-
|
|
398
|
-
## What is Coconut?
|
|
399
|
-
|
|
400
|
-
Coconut (Git-Adjacent Intent Tracking) revolutionizes software development by treating intent, plans, and product operations as first-class citizens alongside code. Built for the AI era where humans and agents collaborate seamlessly.
|
|
401
|
-
|
|
402
|
-
## Core Philosophy
|
|
403
|
-
|
|
404
|
-
1. **Lives with your code** - Build and manage your project context, backlog, agents, and knowledge that lives directly alongside your code
|
|
405
|
-
2. **Everyone is first-class** - PMs, designers, engineers, and AI agents are all first-class
|
|
406
|
-
3. **Accessible everywhere** - IDE, Web UI, CLI, Mobile
|
|
407
|
-
4. **Inline AI** - AI everywhere with flexible API key management
|
|
408
|
-
5. **File-first architecture** - Start with zero infrastructure (on premise or hosted), scale when needed
|
|
409
|
-
6. **Intent over diffs** - Express what you want to achieve, not just what changed`:N.name==="architecture.md"&&(D=`# Coconut Architecture
|
|
410
|
-
|
|
411
|
-
## Technology Stack
|
|
412
|
-
|
|
413
|
-
### Frontend
|
|
414
|
-
- **Next.js 14+**: React framework with App Router
|
|
415
|
-
- **TypeScript**: End-to-end type safety
|
|
416
|
-
- **Tailwind CSS**: Utility-first styling
|
|
417
|
-
- **shadcn/ui**: Modern component library
|
|
418
|
-
|
|
419
|
-
### Data Layer
|
|
420
|
-
- **File Storage**: Markdown files with YAML frontmatter in .nut/
|
|
421
|
-
- **Local State**: React Context + localStorage
|
|
422
|
-
- **Real-time**: File system watching with chokidar
|
|
423
|
-
|
|
424
|
-
### AI Integration
|
|
425
|
-
- **Vercel AI SDK**: Unified AI integration
|
|
426
|
-
- **OpenAI/Anthropic SDKs**: Direct model access
|
|
427
|
-
|
|
428
|
-
## Repository Structure
|
|
429
|
-
|
|
430
|
-
\`\`\`
|
|
431
|
-
project-root/
|
|
432
|
-
├── .nut/ # Coconut data directory
|
|
433
|
-
│ ├── config.json # Repository configuration
|
|
434
|
-
│ ├── proposals/ # Change proposals
|
|
435
|
-
│ ├── agents/ # AI agents
|
|
436
|
-
│ ├── context/ # Project context
|
|
437
|
-
│ └── knowledge/ # Team knowledge
|
|
438
|
-
└── your-actual-code/ # Your project files
|
|
439
|
-
\`\`\``),{...N,content:D}}catch(D){return console.error("Fallback content generation failed:",D),{...N,content:"Error loading content"}}},E=async N=>{const D=await w(N);h(D)},S=(N,D)=>{f(L=>D?[...L,N]:L.filter(j=>j!==N))},A=()=>{const N=l.filter(D=>c.includes(D.id));r({files:N,selectedIds:c}),n(!1)},T=N=>{switch(N){case"context":case"knowledge":return g.jsx(Wu,{className:"h-4 w-4"});case"agent":return g.jsx(Ml,{className:"h-4 w-4"});case"proposal":return g.jsx(mb,{className:"h-4 w-4"});default:return g.jsx(mb,{className:"h-4 w-4"})}},R=l.reduce((N,D)=>{let L="context";return D.type==="knowledge"?L="knowledge":D.type==="proposal"&&(L="proposals"),N[L]||(N[L]=[]),N[L].push(D),N},{});return g.jsx(Uc,{open:e,onOpenChange:n,children:g.jsxs(rs,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(as,{children:g.jsx(is,{children:"Select Context Files"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsx("div",{className:"mb-2 text-sm font-medium",children:"Project Context"}),g.jsx(ql,{className:"h-full",children:m?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(Ju,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading files..."})]})}):l.length===0?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"text-center text-muted-foreground",children:[g.jsx(pM,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No context files available"})]})}):g.jsxs("div",{className:"space-y-1",children:[R.context&&g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Vu,{className:"h-3 w-3"}),g.jsx("span",{children:"Context"})]}),R.context.map(N=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===N.id&&"bg-muted"),onClick:()=>E(N),children:[g.jsx(Xu,{checked:c.includes(N.id),onCheckedChange:D=>S(N.id,D),onClick:D=>D.stopPropagation()}),T(N.type),g.jsx("span",{className:"text-sm truncate flex-1",children:N.name})]},N.id))]}),R.knowledge&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Vu,{className:"h-3 w-3"}),g.jsx("span",{children:"Knowledge"})]}),R.knowledge.map(N=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===N.id&&"bg-muted"),onClick:()=>E(N),children:[g.jsx(Xu,{checked:c.includes(N.id),onCheckedChange:D=>S(N.id,D),onClick:D=>D.stopPropagation()}),T(N.type),g.jsx("span",{className:"text-sm truncate flex-1",children:N.name})]},N.id))]}),R.proposals&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Vu,{className:"h-3 w-3"}),g.jsx("span",{children:"Proposals"})]}),R.proposals.map(N=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===N.id&&"bg-muted"),onClick:()=>E(N),children:[g.jsx(Xu,{checked:c.includes(N.id),onCheckedChange:D=>S(N.id,D),onClick:D=>D.stopPropagation()}),T(N.type),g.jsx("span",{className:"text-sm truncate flex-1",title:N.name,children:N.name.length>30?`${N.name.substring(0,30)}...`:N.name})]},N.id))]})]})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:d?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[T(d.type),g.jsx("span",{className:"font-medium",children:d.name}),g.jsx("span",{className:"text-xs text-muted-foreground",children:d.relativePath})]})}),g.jsx(ql,{className:"flex-1 border rounded-md p-4",children:d.content==="Loading..."?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(Ju,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading content..."})]})}):g.jsx(cs,{className:"[&_.prose]:max-w-none",children:d.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(Wu,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a file to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsxs("div",{className:"text-sm text-muted-foreground",children:[c.length," file",c.length!==1?"s":""," selected"]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(yt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(yt,{onClick:A,children:"Use Selected Context"})]})]})]})})}function L0({open:e,onOpenChange:n,onSelect:r,initialSelectedId:i=null}){const[l,s]=v.useState([]),[c,f]=v.useState(!1),[d,h]=v.useState(i);v.useEffect(()=>{e&&(h(i),f(!0),fetch(`${Mt}/api/v1/skills`).then(async b=>{if(!b.ok)throw new Error("Failed to load skills");const w=await b.json();s(w.documents||[])}).catch(()=>s([])).finally(()=>f(!1)))},[e,i]);const m=v.useMemo(()=>l.find(b=>b.id===d)||null,[l,d]),y=()=>{m&&(r(m),n(!1))};return g.jsx(Uc,{open:e,onOpenChange:n,children:g.jsxs(rs,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(as,{children:g.jsx(is,{children:"Select a Skill"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsxs("div",{className:"mb-2 text-sm font-medium flex items-center gap-2",children:[g.jsx(Vu,{className:"h-3 w-3"}),g.jsx("span",{children:"Skills"})]}),g.jsx(ql,{className:"h-full",children:c?g.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):l.length===0?g.jsx("div",{className:"py-8 text-sm text-muted-foreground text-center",children:"No skills found"}):g.jsx("div",{className:"space-y-1",children:l.map(b=>{const w=d===b.id;return g.jsxs("button",{onClick:()=>h(b.id),className:ue("w-full text-left p-2 rounded-md hover:bg-muted flex items-center gap-2",w&&"bg-muted"),children:[g.jsx("input",{type:"radio",checked:w,onChange:()=>h(b.id),className:"h-4 w-4"}),g.jsx(Ml,{className:"h-4 w-4"}),g.jsx("span",{className:"text-sm truncate flex-1",children:b.name})]},b.id)})})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:m?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ml,{className:"h-4 w-4"}),g.jsx("span",{className:"font-medium",children:m.name}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:[".nut/skills/",m.id,"/SKILL.md"]})]})}),g.jsx(ql,{className:"flex-1 border rounded-md p-4",children:g.jsx(cs,{className:"[&_.prose]:max-w-none",children:m.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(Ml,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a skill to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsx("div",{className:"text-sm text-muted-foreground",children:m?`Selected: ${m.name}`:"No skill selected"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(yt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(yt,{onClick:y,disabled:!m,children:"Use Skill"})]})]})]})})}const gk=v.forwardRef(({className:e,...n},r)=>g.jsx("textarea",{className:ue("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));gk.displayName="Textarea";const m8=/```knowledge_action\s*\n([\s\S]*?)```/gi;function Dp(e){if(!e||typeof e!="object")return!1;const n=e;return!(typeof n.action!="string"||n.action!=="create"&&n.action!=="update"||typeof n.title!="string"||typeof n.content!="string"||n.action==="update"&&typeof n.filename!="string")}function Op(e){const n=e.metadata?{...e.metadata,tags:Array.isArray(e.metadata.tags)?e.metadata.tags:e.metadata.tags?[e.metadata.tags].flat().map(String):[],sources:Array.isArray(e.metadata.sources)?e.metadata.sources:e.metadata.sources?[e.metadata.sources].flat().map(String):[],related:Array.isArray(e.metadata.related)?e.metadata.related:[],audience:Array.isArray(e.metadata.audience)?e.metadata.audience:[]}:void 0;return{...e,metadata:n}}function g8(e){if(!e)return[];const n=Array.isArray(e)?e:[e],r=[];for(const i of n)Dp(i)&&r.push(Op(i));return r}function y8(e){const n=e.trimEnd();if(!n.endsWith("}"))return null;let r=0,i=!1,l=!1;for(let s=n.length-1;s>=0;s--){const c=n[s];if(i){l?l=!1:c==="\\"?l=!0:c==='"'&&(i=!1);continue}if(c==='"'){i=!0;continue}if(c==="}"){r+=1;continue}if(c==="{"&&(r-=1,r===0)){const f=n.slice(s);try{const d=JSON.parse(f),h=g8(d);if(h.length>0)return{cleaned:n.slice(0,s).trimEnd(),actions:h}}catch(d){console.error("Failed to parse trailing knowledge action payload:",d)}return null}}return null}function v8(e){const n=[];let i=e.replace(m8,(l,s)=>{try{const c=JSON.parse(s.trim());Array.isArray(c)?c.forEach(f=>{Dp(f)&&n.push(Op(f))}):Dp(c)&&n.push(Op(c))}catch(c){console.error("Failed to parse knowledge_action block:",c)}return""}).replace(/\n{3,}/g,`
|
|
440
|
-
|
|
441
|
-
`).trim();if(n.length===0){const l=y8(i);l&&(n.push(...l.actions),i=l.cleaned)}return{cleanedContent:i,actions:n}}function x8(e){return e.action==="create"?`Proposed new knowledge document "${e.title}"`:`Proposed updates to ${e.filename||e.title}`}function b8(e,n){const r=e.split(`
|
|
442
|
-
`),i=n.split(`
|
|
443
|
-
`),l=r.length,s=i.length,c=Array.from({length:l+1},()=>Array(s+1).fill(0));for(let m=l-1;m>=0;m--)for(let y=s-1;y>=0;y--)r[m]===i[y]?c[m][y]=c[m+1][y+1]+1:c[m][y]=Math.max(c[m+1][y],c[m][y+1]);const f=[];let d=0,h=0;for(;d<l&&h<s;)r[d]===i[h]?(f.push({type:"context",value:r[d]}),d++,h++):c[d+1][h]>=c[d][h+1]?(f.push({type:"removed",value:r[d]}),d++):(f.push({type:"added",value:i[h]}),h++);for(;d<l;)f.push({type:"removed",value:r[d]}),d++;for(;h<s;)f.push({type:"added",value:i[h]}),h++;return f}function w8({original:e,updated:n}){const r=v.useMemo(()=>b8(e??"",n??""),[e,n]);return g.jsx("div",{className:"max-h-[60vh] overflow-auto border rounded-md bg-background",children:g.jsx("pre",{className:"text-xs leading-5 font-mono p-4 space-y-1",children:r.map((i,l)=>{const s=i.type==="added"?"+":i.type==="removed"?"-":" ",c=i.type==="added"?"bg-green-100 dark:bg-green-950/40 text-green-900 dark:text-green-200 border-l-2 border-green-500":i.type==="removed"?"bg-red-100 dark:bg-red-950/40 text-red-900 dark:text-red-200 border-l-2 border-red-500":"text-muted-foreground";return g.jsxs("div",{className:ue("px-2 py-1 whitespace-pre-wrap break-words rounded-sm",c),children:[s," ",i.value]},l)})})})}function S8({action:e,onApply:n,fetchDocumentContent:r}){const[i,l]=v.useState(!1),[s,c]=v.useState(null),[f,d]=v.useState(null),[h,m]=v.useState(!1),[y,b]=v.useState(!1),[w,E]=v.useState("idle"),[S,A]=v.useState(null),T=e.action==="create"?"Preview document":"View diff",R=e.action==="create"?"Add to knowledge":`Update ${e.filename||"document"}`,N=async()=>{if(d(null),e.action==="update"){if(!e.filename){d("Filename is required to load the existing document."),l(!0);return}l(!0),m(!0);try{const j=await r(e.filename);if(!j){d("Could not load the existing knowledge document.");return}c({mode:"diff",original:j,updated:e.content})}catch(j){d(j instanceof Error?j.message:"Failed to load preview.")}finally{m(!1)}}else c({mode:"content",updated:e.content}),l(!0)},D=async()=>{A(null),E("idle"),b(!0);try{await n(e),E("success")}catch(j){E("error"),A(j instanceof Error?j.message:"Failed to update knowledge document.")}finally{b(!1)}},L=()=>{l(!1),c(null),d(null)};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"border border-dashed border-primary/40 bg-primary/5 text-sm rounded-md p-3 space-y-2",children:[g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("p",{className:"font-medium leading-tight",children:x8(e)}),e.summary&&g.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:e.summary})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(yt,{variant:"outline",size:"sm",onClick:N,disabled:h,children:h?"Loading…":T}),g.jsx(yt,{size:"sm",onClick:D,disabled:y||w==="success",children:y?"Applying…":R})]})]}),w==="success"&&g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"Knowledge document saved."}),w==="error"&&S&&g.jsx("p",{className:"text-xs text-destructive",children:S})]}),g.jsx(Uc,{open:i,onOpenChange:j=>j?l(!0):L(),children:g.jsxs(rs,{className:"max-w-3xl",children:[g.jsxs(as,{children:[g.jsx(is,{children:e.action==="create"?e.title:`Proposed changes for ${e.filename||e.title}`}),f&&g.jsx(Rl,{className:"text-destructive",children:f}),h&&!f&&g.jsx(Rl,{children:"Loading preview…"}),s?.mode==="diff"&&!h&&!f&&g.jsx(Rl,{children:"Review differences before updating the knowledge document."}),s?.mode==="content"&&!h&&!f&&g.jsx(Rl,{children:"Review the drafted knowledge content before saving."})]}),!h&&!f&&s&&(s.mode==="diff"&&s.original?g.jsx(w8,{original:s.original,updated:s.updated}):g.jsx("div",{className:"border rounded-md p-4 max-h-[60vh] overflow-auto bg-background",children:g.jsx(cs,{className:"text-sm [&_.prose]:text-sm",children:s.updated})})),g.jsx(dE,{children:g.jsx(yt,{variant:"outline",size:"sm",onClick:L,children:"Close"})})]})})]})}function E8({isOpen:e,onToggle:n,contextInfo:r,discussDocument:i,onDiscussDocumentHandled:l,pendingPrompt:s,onPendingPromptHandled:c,openInFullScreen:f,onFullScreenHandled:d}){const[h,m]=v.useState(""),[y,b]=v.useState([]),[w,E]=v.useState(!1),[S,A]=v.useState(!1),T=i1(),R=Kl(),[N,D]=v.useState(!1),[L,j]=v.useState([]),[F,q]=v.useState(!1),[J,z]=v.useState(!1),[ee,ae]=v.useState([]),[W,U]=v.useState([]),Q=v.useRef([]),P=v.useRef(new Map),K=v.useRef(!0),[B,ne]=v.useState([]),k=B.length,Z=k>0?`${k} file${k===1?"":"s"}`:"None",se=()=>g.jsxs(g.Fragment,{children:["Added context:"," ",g.jsx("span",{className:"text-emerald-500 font-medium",children:Z})]}),[M,ce]=v.useState(!1),[ye,pe]=v.useState(null),[le,ge]=v.useState(!1),[ke,Ne]=v.useState(!1),[Le,Ye]=v.useState(null),[bt,Ft]=v.useState(null);v.useEffect(()=>{const G=he=>{if(he.key==="Escape"){if(S){tn();return}if(ke){Ne(!1);return}}if((he.metaKey||he.ctrlKey)&&he.shiftKey&&he.key.toLowerCase()==="k"){he.preventDefault(),z(!0);return}if((he.metaKey||he.ctrlKey)&&he.shiftKey&&he.key.toLowerCase()==="n"){he.preventDefault(),(y.length>0||B.length>0||ye)&&(lt.current&&(lt.current.abort(),lt.current=null),E(!1),A(!1),b([]),ne([]),U([]),Q.current=[],pe(null),ge(!1),m(""));return}if((he.metaKey||he.ctrlKey)&&he.shiftKey&&he.key.toLowerCase()==="e"){he.preventDefault(),Ne(ve=>!ve);return}};if(e)return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[e,ke,S,y.length,B.length,ye]);const Cn=v.useRef(null),fn=v.useRef(null),lt=v.useRef(null),Ur=v.useRef(null);v.useEffect(()=>{e&&setTimeout(()=>Ur.current?.focus(),100)},[e]);const Hr=v.useCallback((G=!1)=>{try{fn.current?fn.current.scrollTop=fn.current.scrollHeight:Cn.current&&Cn.current.scrollIntoView({behavior:G?"auto":"smooth"})}catch{console.error("Error scrolling to bottom")}},[]);v.useEffect(()=>{Hr(S)},[y,w,S,Hr]),v.useEffect(()=>()=>{K.current=!1},[]),v.useEffect(()=>{Q.current=W},[W]),v.useEffect(()=>{if(!ke&&Le){const G=Le;Ye(null),requestAnimationFrame(()=>{R("/proposals/new",{state:G})})}},[ke,Le,R]),v.useEffect(()=>{let G=!1;return(async()=>{try{const ve=await mk();if(G)return;ae(ve);const Se=P.current;ve.forEach(je=>{const st=Se.get(je.id);st&&st.content&&st.content!=="Loading..."&&(!je.content||je.content==="Loading...")?Se.set(je.id,st):Se.set(je.id,je)})}catch(ve){G||console.error("Error loading context file list:",ve)}})(),()=>{G=!0}},[]);const Fr=v.useCallback(G=>{const he=P.current.get(G);if(he)return he;const ve=ee.find(Se=>Se.id===G);return ve?(P.current.set(G,ve),ve):null},[ee]),pr=v.useCallback(G=>{if(G.startsWith("knowledge-")){const ve=`${G.replace("knowledge-","")}.md`;return{id:G,name:ve,type:"knowledge",path:`.nut/context/knowledge/${ve}`,relativePath:`context/knowledge/${ve}`,content:"Loading..."}}if(G.startsWith("proposal-")){const he=G.replace("proposal-","");return{id:G,name:`${he}.md`,type:"proposal",path:`.nut/proposals/${he}.md`,relativePath:`proposals/${he}.md`,content:"Loading..."}}return G==="project-md"?{id:G,name:"project.md",type:"context",path:".nut/context/project.md",relativePath:"context/project.md",content:"Loading..."}:G==="architecture-md"?{id:G,name:"architecture.md",type:"context",path:".nut/context/architecture.md",relativePath:"context/architecture.md",content:"Loading..."}:null},[]),ni=v.useCallback(async G=>{const he=G.filter((Se,je,st)=>st.indexOf(Se)===je),ve=[];for(const Se of he){let je=Fr(Se);if(je||(je=pr(Se),je&&P.current.set(Se,je)),!!je){if(je.content&&je.content!=="Loading..."){P.current.set(Se,je),ve.push(je);continue}try{const st=await jp(je);P.current.set(Se,st),ve.push(st)}catch(st){console.error(`Error ensuring content for context file ${je.name}:`,st),ve.push(je)}}}return ve},[pr,Fr]),mr=v.useCallback(async G=>{if(G.length===0){ne([]);return}try{const he=await ni(G);if(!K.current)return;const ve=new Map(he.map(je=>[je.id,je])),Se=G.map(je=>ve.get(je)).filter(je=>!!je);ne(Se)}catch(he){console.error("Error synchronizing selected context files:",he)}},[ni]);v.useEffect(()=>{if(i&&e){const G={id:i.id,name:i.name,type:i.type||"knowledge",path:i.path,relativePath:i.path,content:"Loading..."};if(!Q.current.includes(i.id)){const he=[...Q.current,i.id];U(he),Q.current=he,P.current.set(i.id,G),ne(ve=>ve.some(Se=>Se.id===i.id)?ve:[...ve,G]),mr(he).catch(ve=>{console.error("Error syncing context after discuss document:",ve)})}l?.()}},[i,e,l,mr]),v.useEffect(()=>{s&&e&&(m(s),c?.())},[s,e,c]),v.useEffect(()=>{f&&(Ne(!0),d?.(),setTimeout(()=>Ur.current?.focus(),100))},[f,d]),v.useEffect(()=>{const G=()=>{Ne(he=>!he),setTimeout(()=>Ur.current?.focus(),100)};return window.addEventListener("toggle-assistant-fullscreen",G),()=>{window.removeEventListener("toggle-assistant-fullscreen",G)}},[]);const wo=async()=>{if(y.length!==0)try{const G=await fetch(`${Mt}/api/v1/chats`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:y,model:"anthropic/claude-sonnet-4.5",context:r})});if(!G.ok){const ve=await G.json();throw new Error(ve.error||"Failed to save chat")}const he=await G.json();console.log("Chat saved:",he.chatId)}catch(G){console.error("Error saving chat:",G)}},ri=async()=>{q(!0);try{const G=await fetch(`${Mt}/api/v1/chats`);if(!G.ok)throw new Error("Failed to load chat history");const he=await G.json();j(he.chats)}catch(G){console.error("Error loading chat history:",G)}finally{q(!1)}},te=async G=>{try{const he=await fetch(`${Mt}/api/v1/chats/${G}`);if(!he.ok)throw new Error("Failed to load chat");const ve=await he.json();b(ve.chat.messages),D(!1)}catch(he){console.error("Error loading chat:",he)}},fe=async G=>{try{if(!(await fetch(`${Mt}/api/v1/chats/${G}`,{method:"DELETE"})).ok)throw new Error("Failed to delete chat");await ri()}catch(he){console.error("Error deleting chat:",he)}},Ce=()=>{S&&tn(),b([]),ne([]),U([]),Q.current=[],pe(null),ge(!1),m("")},Te=async(G,he)=>{try{await navigator.clipboard.writeText(G),Ft(he),setTimeout(()=>Ft(null),2e3)}catch(ve){console.error("Failed to copy message:",ve)}},We=G=>{const he=ft(),Se=[...he.understand,...he.define,...he.explore,...he.synthesize,...he.capture].find(je=>je.label===G);Se&&m(Se.prompt)},Xt=async G=>{try{const he=G.endsWith(".md")?G.slice(0,-3):G,ve=await fetch(`${Mt}/api/v1/context/knowledge/${he}`);return ve.ok?(await ve.json()).document?.content||null:(console.error("Failed to fetch knowledge document:",ve.statusText),null)}catch(he){return console.error("Error fetching knowledge document:",he),null}},Hn=async G=>{const he={tool:"knowledge_documents",arguments:{operation:G.action==="create"?"create":"update",title:G.title,content:G.content,filename:G.filename,metadata:G.metadata,summary:G.summary}};try{const ve=await fetch(`${Mt}/api/v1/mcp/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(he)}),Se=await ve.json();if(!ve.ok||!Se.success)throw new Error(Se.error||"Knowledge tool execution failed");const je=Se.data?.filename||G.filename||G.title,st=G.action==="create"?"added to the knowledge base":"updated in the knowledge base";b(dn=>[...dn,{role:"system",content:`Knowledge document ${je} ${st}.`}])}catch(ve){throw console.error("Error applying knowledge action:",ve),ve instanceof Error?ve:new Error("Failed to apply knowledge action")}},It=async()=>{if(!h.trim()||S)return;const G=h,ve=!y.some(Qe=>Qe.role==="user");let Se;ve&&ye&&!le&&(Se=`--- System Persona ---
|
|
444
|
-
You MUST adopt and consistently act as the following skill persona for this entire conversation.
|
|
445
|
-
- Follow its goals, tone, constraints, and tools.
|
|
446
|
-
- Prioritize the skill's specified focus areas in your reasoning and responses.
|
|
447
|
-
- Do not disclaim or deviate unless the instructions explicitly permit.
|
|
448
|
-
|
|
449
|
-
Skill: ${ye.name} (.nut/skills/${ye.id}/SKILL.md)
|
|
450
|
-
|
|
451
|
-
${ye.content}
|
|
452
|
-
--- End System Persona ---`,ge(!0));const st=(await Promise.all(B.map(async Qe=>{if(Qe.content&&Qe.content!=="Loading..."&&Qe.content!=="Content not available")return Qe;try{const nn=await jp(Qe);return P.current.set(Qe.id,nn),nn}catch(nn){return console.error(`Failed to load content for ${Qe.name}:`,nn),Qe}}))).filter(Qe=>Qe.content&&Qe.content!=="Loading..."&&Qe.content!=="Content not available").map(Qe=>({name:Qe.name,path:Qe.path,type:Qe.type,content:Qe.content})),dn={role:"user",content:h};b(Qe=>[...Qe,dn]),m(""),E(!0),A(!0);const Vr=new AbortController;lt.current=Vr;try{const nn=[...y,dn].filter(dt=>dt.role==="user"||dt.role==="assistant").map((dt,ht,Ct)=>ht===Ct.length-1&&dt.role==="user"?{role:dt.role,content:G}:dt),Fn={message:G,history:nn,context:r?.type,contextContent:r?.content,skillPersona:Se,attachedContextFiles:st.length>0?st:void 0},Vn=await fetch(`${Mt}/api/v1/ai`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Fn),signal:Vr.signal});if(!Vn.ok){let dt="Failed to get AI response";try{const ht=await Vn.json();dt=ht.error||ht.message||dt,ht.status&&(dt=`${dt} (${ht.status})`)}catch{dt=`${Vn.statusText||dt} (${Vn.status})`}throw new Error(dt)}if(Vn.body){const dt=Vn.body.getReader(),ht=new TextDecoder;let Ct="";b(jt=>[...jt,{role:"assistant",content:""}]),E(!1);try{for(;;){const{done:jt,value:rn}=await dt.read();if(jt)break;Ct+=ht.decode(rn,{stream:!0}),b(gr=>{const So=[...gr];return So[So.length-1]={role:"assistant",content:Ct},So})}Ct.trim()||(b(jt=>{const rn=[...jt];return rn[rn.length-1]?.role==="assistant"&&!rn[rn.length-1]?.content&&rn.pop(),rn}),console.warn("Stream completed with no content"))}catch(jt){jt instanceof DOMException&&jt.name==="AbortError"||(console.error("Streaming error:",jt),b(rn=>{const gr=[...rn];return gr[gr.length-1]?.role==="assistant"&&(gr[gr.length-1]={role:"assistant",content:`Sorry, I encountered a streaming error: ${jt instanceof Error?jt.message:"Unknown error"}`}),gr}))}}}catch(Qe){if(Qe instanceof DOMException&&Qe.name==="AbortError")b(nn=>{const Fn=[...nn],Vn=Fn[Fn.length-1];return Vn?.role==="assistant"&&!Vn.content&&Fn.pop(),Fn});else{console.error("Error calling AI:",Qe);const nn={role:"assistant",content:`Sorry, I encountered an error: ${Qe instanceof Error?Qe.message:"Unknown error"}`};b(Fn=>[...Fn,nn])}}finally{lt.current=null,E(!1),A(!1)}},tn=()=>{lt.current&&(lt.current.abort(),lt.current=null),E(!1),A(!1)},Vt=G=>{G.files.forEach(Se=>{const je=P.current.get(Se.id);(!je||je.content!==Se.content)&&P.current.set(Se.id,Se)}),U(G.selectedIds),Q.current=G.selectedIds;const he=new Map(G.files.map(Se=>[Se.id,Se])),ve=G.selectedIds.map(Se=>{const je=he.get(Se);if(je)return je;const st=P.current.get(Se);return st||ee.find(dn=>dn.id===Se)||null}).filter(Se=>Se!==null);ne(ve),mr(G.selectedIds).catch(Se=>{console.error("Error syncing context after manual selection:",Se)})},ft=()=>({understand:[{label:"Summarize this context",prompt:"Summarize the key points from the attached context. What are the main themes and takeaways?"},{label:"Explain relationships",prompt:"How do the attached documents relate to each other? What connections and dependencies exist?"},{label:"Identify gaps",prompt:"Based on the attached context, what important information seems to be missing or could be better documented?"}],define:[{label:"Define my project",prompt:"Help me define my project. I'd like to create or update the project.md document that captures what we're building, who it's for, and what success looks like. Please ask me questions to understand the project."},{label:"Define my architecture",prompt:"Help me define the technical architecture. I'd like to create or update the architecture.md document that captures our tech stack, conventions, and system design. Please ask me questions about our technical setup."},{label:"Refine project definition",prompt:"I'd like to refine or add to my project.md document. Please read the current version and suggest improvements or ask what I'd like to change."},{label:"Refine architecture",prompt:"I'd like to refine or add to my architecture.md document. Please read the current version and suggest improvements or ask what I'd like to change."}],explore:[{label:"What's been happening?",prompt:"Show me recent activity in this Coconut. What's been happening with proposals, knowledge updates, or agent sessions?"},{label:"Search knowledge base",prompt:"Search the knowledge base for information about: "},{label:"Find proposals about...",prompt:"Find and summarize proposals related to: "},{label:"Show recent events",prompt:"Show me the most recent events. I want to see what's been happening."}],synthesize:[{label:"Extract key insights",prompt:"Extract the most important insights from the attached context that should be preserved in the knowledge base."},{label:"Connect the dots",prompt:"Find patterns and connections across the attached documents. What story do they tell together?"},{label:"Draft proposal content",prompt:"Help me draft content for a change proposal about: (I'll create it via the Proposals UI or a coding agent)"},{label:"Compare approaches",prompt:"Help me understand the tradeoffs between: "}],capture:[{label:"Save to knowledge base",prompt:"Save the key insights from our conversation to the knowledge base as a new document."},{label:"Document a decision",prompt:"Create a knowledge document capturing this decision and its rationale: "},{label:"Update knowledge document",prompt:"Update the knowledge document about: "},{label:"Add to project.md",prompt:"I'd like to add the following to my project.md document: "},{label:"Add to architecture.md",prompt:"I'd like to add the following to my architecture.md document: "}]}),qt=g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex h-full w-full flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between p-4 border-b flex-shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(ap,{className:ue(ke?"h-6 w-6":"h-5 w-5")}),g.jsxs("div",{children:[g.jsx("h2",{className:ue("font-semibold leading-tight",ke?"text-xl":"text-lg"),children:"Coconut Assistant"}),g.jsx("p",{className:"text-xs text-muted-foreground leading-tight",children:"Context Management"})]})]}),g.jsx("div",{className:ue("flex items-center gap-1",T&&"mr-8"),children:ke?g.jsx(yt,{onClick:()=>Ne(!1),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Exit Expanded View (Esc)",children:g.jsx(Zi,{className:"h-4 w-4"})}):g.jsxs(g.Fragment,{children:[g.jsx(yt,{onClick:()=>{D(!N),N||ri()},size:"icon",variant:"outline",className:"h-8 w-8",title:"Chat History",children:g.jsx(bM,{className:"h-4 w-4"})}),g.jsx(yt,{onClick:()=>Ne(!0),size:"icon",variant:"outline",className:"h-8 w-8",title:"Expand View (⌘⇧L)",children:g.jsx(uM,{className:"h-4 w-4"})})]})})]}),g.jsx("div",{className:"px-4 py-2 border-b flex-shrink-0",children:g.jsxs("div",{className:"flex gap-2 items-center justify-end",children:[g.jsx(yt,{onClick:wo,disabled:y.length===0,size:"icon",variant:"outline",className:"h-8 w-8 shrink-0",title:"Save Chat",children:g.jsx(VM,{className:"h-4 w-4"})}),g.jsxs(X9,{children:[g.jsx(Q9,{asChild:!0,children:g.jsx(yt,{disabled:y.length===0&&B.length===0&&!ye,size:"icon",variant:"outline",className:"h-8 w-8 shrink-0",title:"New Chat (⌘⇧N)",children:g.jsx(nj,{className:"h-4 w-4"})})}),g.jsxs(HC,{children:[g.jsxs(FC,{children:[g.jsx(qC,{children:"Clear Chat"}),g.jsx($C,{children:"This clears all messages, removes selected context files, and resets the selected agent. This action cannot be undone."})]}),g.jsxs(VC,{children:[g.jsx(YC,{children:"Cancel"}),g.jsx(GC,{onClick:Ce,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Clear Chat"})]})]})]})]})}),g.jsx("div",{className:"p-4 border-b bg-muted/50 flex-shrink-0",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex-1 min-w-0",children:k>0?g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:se()}),g.jsx("div",{className:"flex flex-wrap gap-1",children:B.map(G=>g.jsxs("div",{className:ue("flex items-center gap-1 text-xs px-2 py-1 rounded-md","bg-primary/10 text-primary"),children:[g.jsx("span",{children:G.name}),g.jsx("button",{onClick:he=>{he.stopPropagation();const ve=Q.current.filter(Se=>Se!==G.id);U(ve),Q.current=ve,ne(Se=>Se.filter(je=>je.id!==G.id)),mr(ve).catch(Se=>{console.error("Error syncing context after removal:",Se)})},className:ue("ml-1 rounded-full p-0.5 transition-colors","hover:bg-primary/20"),disabled:!1,title:"Remove from context",children:g.jsx(Zi,{className:"h-3 w-3"})})]},G.id))})]}):g.jsx("p",{className:"text-sm text-muted-foreground",children:se()})}),g.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[g.jsx(yt,{onClick:()=>z(!0),size:"icon",variant:"ghost",className:"h-6 w-6",title:"Select Context Files (⌘⇧K)",disabled:!1,children:g.jsx(MM,{className:"h-4 w-4"})}),g.jsxs("span",{className:"hidden sm:inline-flex items-center gap-0.5 text-muted-foreground/60",children:[g.jsx(Nh,{className:"text-[9px] px-1 h-4",children:"⌘"}),g.jsx(Nh,{className:"text-[9px] px-1 h-4",children:"⇧"}),g.jsx(Nh,{className:"text-[9px] px-1 h-4",children:"K"})]})]})]})}),N&&g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-2 min-h-0",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h3",{className:"font-medium",children:"Chat History"}),g.jsx(yt,{onClick:()=>D(!1),size:"sm",variant:"ghost",children:g.jsx(Zi,{className:"h-4 w-4"})})]}),F?g.jsx("div",{className:"text-center text-muted-foreground py-8",children:g.jsxs("div",{className:"flex items-center justify-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):L.length===0?g.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[g.jsx(DM,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No saved chats yet"})]}):g.jsx("div",{className:"space-y-2",children:L.map(G=>g.jsx("div",{className:"border rounded-lg p-3 hover:bg-muted/50 cursor-pointer group",onClick:()=>te(G.id),children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h4",{className:"text-sm font-medium truncate",children:G.title}),g.jsxs("p",{className:"text-xs text-muted-foreground",children:[new Date(G.updatedAt).toLocaleDateString()," • ",G.messages.length," messages"]}),g.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:G.model.split("/")[1]||G.model})]}),g.jsx(yt,{onClick:he=>{he.stopPropagation(),fe(G.id)},size:"icon",variant:"ghost",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",children:g.jsx(sj,{className:"h-3 w-3"})})]})},G.id))})]}),!N&&g.jsxs("div",{ref:fn,className:ue("flex-1 w-full overflow-y-auto space-y-4 min-h-0",ke?"p-6 max-w-4xl mx-auto":"p-4"),children:[y.length===0&&g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-muted-foreground py-12",children:[g.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/5 flex items-center justify-center mb-4",children:g.jsx(ap,{className:"h-5 w-5 text-primary/40"})}),g.jsx("p",{className:"text-sm font-medium text-foreground/70 mb-1",children:"Plan, explore, and create tasks"}),g.jsx("p",{className:"text-xs text-muted-foreground/70 mb-4 max-w-[220px]",children:"Plan projects, structure work for coding agents, or explore your knowledge base"}),g.jsxs("button",{onClick:()=>z(!0),className:"text-xs text-primary/70 hover:text-primary transition-colors flex items-center gap-1.5",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current"}),se()]})]}),y.map((G,he)=>{const ve=G.role==="assistant",Se=ve?v8(G.content):{cleanedContent:G.content,actions:[]},je=ve?Se.cleanedContent.length>0?Se.cleanedContent:Se.actions.length>0?"Proposed knowledge update available below.":G.content:G.content;return g.jsx("div",{className:ue("rounded-2xl",G.role==="user"?ue("bg-primary text-primary-foreground p-3 min-w-[80px] max-w-[85%] ml-auto",ke&&"max-w-[70%]"):G.role==="system"?ue("bg-muted/50 text-muted-foreground text-center text-xs py-2 px-3 mx-auto max-w-[90%] rounded-lg"):ue("bg-muted p-3 min-w-[80px] max-w-[85%] mr-auto",ke&&"max-w-[70%]")),children:ve?g.jsxs("div",{className:"space-y-2",children:[g.jsx(cs,{className:"text-sm [&_.prose]:text-sm [&_.prose-p]:text-sm [&_.prose-li]:text-sm [&_.prose-code]:text-xs",children:je}),Se.actions.map((st,dn)=>g.jsx(S8,{action:st,onApply:Hn,fetchDocumentContent:Xt},`${he}-knowledge-${dn}`)),!w&&G.content.length>0&&g.jsxs("div",{className:"flex justify-end gap-1",children:[g.jsx(yt,{onClick:()=>{const st=G.content.match(/(?:^|\n)#{1,2}\s+(.+?)(?:\n|$)/),dn=st?st[1].trim():void 0,Vr={description:G.content,title:dn};if(ke){Ye(Vr),Ne(!1);return}R("/proposals/new",{state:Vr})},size:"icon",variant:"ghost",className:"h-5 w-5 opacity-60 hover:opacity-100",title:"Create task from message",children:g.jsx(Fw,{className:"h-3 w-3"})}),g.jsx(yt,{onClick:()=>Te(G.content,he),size:"icon",variant:"ghost",className:"h-5 w-5 opacity-60 hover:opacity-100",title:bt===he?"Copied!":"Copy message",children:bt===he?g.jsx(Ec,{className:"h-3 w-3"}):g.jsx(lM,{className:"h-3 w-3"})})]})]}):g.jsx("div",{className:"text-sm",children:G.content})},he)}),w&&g.jsx("div",{className:ue("p-3 rounded-2xl text-sm min-w-[80px] max-w-[85%] mr-auto bg-muted",ke&&"max-w-[70%]"),children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}),g.jsx("div",{ref:Cn})]}),!N&&g.jsx("div",{className:"border-t flex-shrink-0 w-full",children:g.jsxs("div",{className:ue(ke?"p-6 max-w-4xl mx-auto":"p-4"),children:[g.jsx("div",{className:"mb-4 flex gap-2 items-center",children:g.jsxs(JP,{onValueChange:We,children:[g.jsx(lE,{className:"flex-1",children:g.jsx(eL,{placeholder:"Actions..."})}),g.jsxs(cE,{children:[g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider",children:"Understand"}),ft().understand.map(G=>g.jsx(Xi,{value:G.label,className:"text-sm",children:G.label},G.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Define"}),ft().define.map(G=>g.jsx(Xi,{value:G.label,className:"text-sm",children:G.label},G.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Explore"}),ft().explore.map(G=>g.jsx(Xi,{value:G.label,className:"text-sm",children:G.label},G.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Synthesize"}),ft().synthesize.map(G=>g.jsx(Xi,{value:G.label,className:"text-sm",children:G.label},G.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Capture"}),ft().capture.map(G=>g.jsx(Xi,{value:G.label,className:"text-sm",children:G.label},G.label))]})]})}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(gk,{ref:Ur,value:h,onChange:G=>m(G.target.value),onKeyDown:G=>{G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),It())},placeholder:"Ask AI for help...",className:ue("flex-1 resize-none",ke?"min-h-[3rem] max-h-40 text-base":"min-h-[2.5rem] max-h-32"),"aria-label":"Assistant message input"}),S?g.jsx(yt,{onClick:tn,size:"icon",variant:"outline",className:"shrink-0",title:"Stop response (Esc)","aria-label":"Stop response",children:g.jsx(aj,{className:"h-4 w-4"})}):g.jsx(yt,{onClick:It,disabled:!h.trim(),size:"icon",className:"shrink-0",children:g.jsx($M,{className:"h-4 w-4"})})]})]})})]})});return T?g.jsxs(g.Fragment,{children:[g.jsx(z1,{open:e,onOpenChange:n,children:g.jsxs(om,{side:"right",className:"w-96 h-full p-0 bg-sidebar border-l border-sidebar-border",children:[g.jsx(lm,{className:"sr-only",children:g.jsx(sm,{children:"Assistant"})}),qt]})}),g.jsx(P0,{open:J,onOpenChange:z,onSelectionConfirm:Vt,initialSelection:W}),g.jsx(L0,{open:M,onOpenChange:ce,initialSelectedId:ye?.id||null,onSelect:G=>{const he={id:G.id,name:G.name,content:G.content||""};pe(he),b(ve=>[...ve,{role:"system",content:`${he.name} selected.`}])}})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ue("fixed inset-y-0 right-0 z-10 h-dvh bg-sidebar border-l border-sidebar-border transition-all duration-300 ease-in-out",e?"w-96":"w-0 overflow-hidden"),children:g.jsx("div",{className:"w-96 h-full",children:qt})}),g.jsx(Uc,{open:ke,onOpenChange:Ne,children:g.jsxs(rs,{className:"max-w-[90vw] w-[90vw] max-h-[90vh] h-[90vh] p-0 gap-0 [&>button]:hidden",children:[g.jsx(as,{className:"sr-only",children:g.jsx(is,{children:"Assistant"})}),g.jsx("div",{className:"h-full w-full flex flex-col bg-background rounded-lg overflow-hidden",children:qt})]})}),g.jsx(P0,{open:J,onOpenChange:z,onSelectionConfirm:Vt,initialSelection:W}),g.jsx(L0,{open:M,onOpenChange:ce,initialSelectedId:ye?.id||null,onSelect:G=>{const he={id:G.id,name:G.name,content:G.content||""};pe(he),b(ve=>[...ve,{role:"system",content:`${he.name} selected.`}])}})]})}var Yh="rovingFocusGroup.onEntryFocus",C8={bubbles:!1,cancelable:!0},fs="RovingFocusGroup",[Pp,yk,k8]=xc(fs),[A8,vk]=Bn(fs,[k8]),[T8,R8]=A8(fs),xk=v.forwardRef((e,n)=>g.jsx(Pp.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(Pp.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(N8,{...e,ref:n})})}));xk.displayName=fs;var N8=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...y}=e,b=v.useRef(null),w=Be(n,b),E=Lc(s),[S,A]=va({prop:c,defaultProp:f??null,onChange:d,caller:fs}),[T,R]=v.useState(!1),N=Et(h),D=yk(r),L=v.useRef(!1),[j,F]=v.useState(0);return v.useEffect(()=>{const q=b.current;if(q)return q.addEventListener(Yh,N),()=>q.removeEventListener(Yh,N)},[N]),g.jsx(T8,{scope:r,orientation:i,dir:E,loop:l,currentTabStopId:S,onItemFocus:v.useCallback(q=>A(q),[A]),onItemShiftTab:v.useCallback(()=>R(!0),[]),onFocusableItemAdd:v.useCallback(()=>F(q=>q+1),[]),onFocusableItemRemove:v.useCallback(()=>F(q=>q-1),[]),children:g.jsx(Me.div,{tabIndex:T||j===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,()=>{L.current=!0}),onFocus:me(e.onFocus,q=>{const J=!L.current;if(q.target===q.currentTarget&&J&&!T){const z=new CustomEvent(Yh,C8);if(q.currentTarget.dispatchEvent(z),!z.defaultPrevented){const ee=D().filter(P=>P.focusable),ae=ee.find(P=>P.active),W=ee.find(P=>P.id===S),Q=[ae,W,...ee].filter(Boolean).map(P=>P.ref.current);Sk(Q,m)}}L.current=!1}),onBlur:me(e.onBlur,()=>R(!1))})})}),bk="RovingFocusGroupItem",wk=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:s,children:c,...f}=e,d=sr(),h=s||d,m=R8(bk,r),y=m.currentTabStopId===h,b=yk(r),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:S}=m;return v.useEffect(()=>{if(i)return w(),()=>E()},[i,w,E]),g.jsx(Pp.ItemSlot,{scope:r,id:h,focusable:i,active:l,children:g.jsx(Me.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...f,ref:n,onMouseDown:me(e.onMouseDown,A=>{i?m.onItemFocus(h):A.preventDefault()}),onFocus:me(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:me(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const T=j8(A,m.orientation,m.dir);if(T!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let N=b().filter(D=>D.focusable).map(D=>D.ref.current);if(T==="last")N.reverse();else if(T==="prev"||T==="next"){T==="prev"&&N.reverse();const D=N.indexOf(A.currentTarget);N=m.loop?D8(N,D+1):N.slice(D+1)}setTimeout(()=>Sk(N))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:S!=null}):c})})});wk.displayName=bk;var _8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M8(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function j8(e,n,r){const i=M8(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return _8[i]}function Sk(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function D8(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var O8=xk,P8=wk,Lp=["Enter"," "],L8=["ArrowDown","PageUp","Home"],Ek=["ArrowUp","PageDown","End"],z8=[...L8,...Ek],I8={ltr:[...Lp,"ArrowRight"],rtl:[...Lp,"ArrowLeft"]},B8={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ds="Menu",[$l,U8,H8]=xc(ds),[ei,Ck]=Bn(ds,[H8,yo,vk]),Xc=yo(),kk=vk(),[F8,ti]=ei(ds),[V8,hs]=ei(ds),Ak=e=>{const{__scopeMenu:n,open:r=!1,children:i,dir:l,onOpenChange:s,modal:c=!0}=e,f=Xc(n),[d,h]=v.useState(null),m=v.useRef(!1),y=Et(s),b=Lc(l);return v.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),g.jsx(vm,{...f,children:g.jsx(F8,{scope:n,open:r,onOpenChange:y,content:d,onContentChange:h,children:g.jsx(V8,{scope:n,onClose:v.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:i})})})};Ak.displayName=ds;var q8="MenuAnchor",Km=v.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,l=Xc(r);return g.jsx(xm,{...l,...i,ref:n})});Km.displayName=q8;var Xm="MenuPortal",[$8,Tk]=ei(Xm,{forceMount:void 0}),Rk=e=>{const{__scopeMenu:n,forceMount:r,children:i,container:l}=e,s=ti(Xm,n);return g.jsx($8,{scope:n,forceMount:r,children:g.jsx(Jt,{present:r||s.open,children:g.jsx(Ql,{asChild:!0,container:l,children:i})})})};Rk.displayName=Xm;var Pn="MenuContent",[G8,Qm]=ei(Pn),Nk=v.forwardRef((e,n)=>{const r=Tk(Pn,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=ti(Pn,e.__scopeMenu),c=hs(Pn,e.__scopeMenu);return g.jsx($l.Provider,{scope:e.__scopeMenu,children:g.jsx(Jt,{present:i||s.open,children:g.jsx($l.Slot,{scope:e.__scopeMenu,children:c.modal?g.jsx(Y8,{...l,ref:n}):g.jsx(K8,{...l,ref:n})})})})}),Y8=v.forwardRef((e,n)=>{const r=ti(Pn,e.__scopeMenu),i=v.useRef(null),l=Be(n,i);return v.useEffect(()=>{const s=i.current;if(s)return em(s)},[]),g.jsx(Zm,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),K8=v.forwardRef((e,n)=>{const r=ti(Pn,e.__scopeMenu);return g.jsx(Zm,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),X8=Ya("MenuContent.ScrollLock"),Zm=v.forwardRef((e,n)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,disableOutsideScroll:E,...S}=e,A=ti(Pn,r),T=hs(Pn,r),R=Xc(r),N=kk(r),D=U8(r),[L,j]=v.useState(null),F=v.useRef(null),q=Be(n,F,A.onContentChange),J=v.useRef(0),z=v.useRef(""),ee=v.useRef(0),ae=v.useRef(null),W=v.useRef("right"),U=v.useRef(0),Q=E?Ac:v.Fragment,P=E?{as:X8,allowPinchZoom:!0}:void 0,K=ne=>{const k=z.current+ne,Z=D().filter(le=>!le.disabled),se=document.activeElement,M=Z.find(le=>le.ref.current===se)?.textValue,ce=Z.map(le=>le.textValue),ye=lB(ce,k,M),pe=Z.find(le=>le.textValue===ye)?.ref.current;(function le(ge){z.current=ge,window.clearTimeout(J.current),ge!==""&&(J.current=window.setTimeout(()=>le(""),1e3))})(k),pe&&setTimeout(()=>pe.focus())};v.useEffect(()=>()=>window.clearTimeout(J.current),[]),Jp();const B=v.useCallback(ne=>W.current===ae.current?.side&&uB(ne,ae.current?.area),[]);return g.jsx(G8,{scope:r,searchRef:z,onItemEnter:v.useCallback(ne=>{B(ne)&&ne.preventDefault()},[B]),onItemLeave:v.useCallback(ne=>{B(ne)||(F.current?.focus(),j(null))},[B]),onTriggerLeave:v.useCallback(ne=>{B(ne)&&ne.preventDefault()},[B]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:v.useCallback(ne=>{ae.current=ne},[]),children:g.jsx(Q,{...P,children:g.jsx(Cc,{asChild:!0,trapped:l,onMountAutoFocus:me(s,ne=>{ne.preventDefault(),F.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:g.jsx(fo,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,children:g.jsx(O8,{asChild:!0,...N,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:j,onEntryFocus:me(d,ne=>{T.isUsingKeyboardRef.current||ne.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(bm,{role:"menu","aria-orientation":"vertical","data-state":$k(A.open),"data-radix-menu-content":"",dir:T.dir,...R,...S,ref:q,style:{outline:"none",...S.style},onKeyDown:me(S.onKeyDown,ne=>{const Z=ne.target.closest("[data-radix-menu-content]")===ne.currentTarget,se=ne.ctrlKey||ne.altKey||ne.metaKey,M=ne.key.length===1;Z&&(ne.key==="Tab"&&ne.preventDefault(),!se&&M&&K(ne.key));const ce=F.current;if(ne.target!==ce||!z8.includes(ne.key))return;ne.preventDefault();const pe=D().filter(le=>!le.disabled).map(le=>le.ref.current);Ek.includes(ne.key)&&pe.reverse(),iB(pe)}),onBlur:me(e.onBlur,ne=>{ne.currentTarget.contains(ne.target)||(window.clearTimeout(J.current),z.current="")}),onPointerMove:me(e.onPointerMove,Gl(ne=>{const k=ne.target,Z=U.current!==ne.clientX;if(ne.currentTarget.contains(k)&&Z){const se=ne.clientX>U.current?"right":"left";W.current=se,U.current=ne.clientX}}))})})})})})})});Nk.displayName=Pn;var Q8="MenuGroup",Wm=v.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Me.div,{role:"group",...i,ref:n})});Wm.displayName=Q8;var Z8="MenuLabel",_k=v.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Me.div,{...i,ref:n})});_k.displayName=Z8;var fc="MenuItem",z0="menu.itemSelect",Qc=v.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:i,...l}=e,s=v.useRef(null),c=hs(fc,e.__scopeMenu),f=Qm(fc,e.__scopeMenu),d=Be(n,s),h=v.useRef(!1),m=()=>{const y=s.current;if(!r&&y){const b=new CustomEvent(z0,{bubbles:!0,cancelable:!0});y.addEventListener(z0,w=>i?.(w),{once:!0}),Yp(y,b),b.defaultPrevented?h.current=!1:c.onClose()}};return g.jsx(Mk,{...l,ref:d,disabled:r,onClick:me(e.onClick,m),onPointerDown:y=>{e.onPointerDown?.(y),h.current=!0},onPointerUp:me(e.onPointerUp,y=>{h.current||y.currentTarget?.click()}),onKeyDown:me(e.onKeyDown,y=>{const b=f.searchRef.current!=="";r||b&&y.key===" "||Lp.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Qc.displayName=fc;var Mk=v.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:i=!1,textValue:l,...s}=e,c=Qm(fc,r),f=kk(r),d=v.useRef(null),h=Be(n,d),[m,y]=v.useState(!1),[b,w]=v.useState("");return v.useEffect(()=>{const E=d.current;E&&w((E.textContent??"").trim())},[s.children]),g.jsx($l.ItemSlot,{scope:r,disabled:i,textValue:l??b,children:g.jsx(P8,{asChild:!0,...f,focusable:!i,children:g.jsx(Me.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:h,onPointerMove:me(e.onPointerMove,Gl(E=>{i?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(e.onPointerLeave,Gl(E=>c.onItemLeave(E))),onFocus:me(e.onFocus,()=>y(!0)),onBlur:me(e.onBlur,()=>y(!1))})})})}),W8="MenuCheckboxItem",jk=v.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:i,...l}=e;return g.jsx(zk,{scope:e.__scopeMenu,checked:r,children:g.jsx(Qc,{role:"menuitemcheckbox","aria-checked":dc(r)?"mixed":r,...l,ref:n,"data-state":eg(r),onSelect:me(l.onSelect,()=>i?.(dc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});jk.displayName=W8;var Dk="MenuRadioGroup",[J8,eB]=ei(Dk,{value:void 0,onValueChange:()=>{}}),Ok=v.forwardRef((e,n)=>{const{value:r,onValueChange:i,...l}=e,s=Et(i);return g.jsx(J8,{scope:e.__scopeMenu,value:r,onValueChange:s,children:g.jsx(Wm,{...l,ref:n})})});Ok.displayName=Dk;var Pk="MenuRadioItem",Lk=v.forwardRef((e,n)=>{const{value:r,...i}=e,l=eB(Pk,e.__scopeMenu),s=r===l.value;return g.jsx(zk,{scope:e.__scopeMenu,checked:s,children:g.jsx(Qc,{role:"menuitemradio","aria-checked":s,...i,ref:n,"data-state":eg(s),onSelect:me(i.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Lk.displayName=Pk;var Jm="MenuItemIndicator",[zk,tB]=ei(Jm,{checked:!1}),Ik=v.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:i,...l}=e,s=tB(Jm,r);return g.jsx(Jt,{present:i||dc(s.checked)||s.checked===!0,children:g.jsx(Me.span,{...l,ref:n,"data-state":eg(s.checked)})})});Ik.displayName=Jm;var nB="MenuSeparator",Bk=v.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Me.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});Bk.displayName=nB;var rB="MenuArrow",Uk=v.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,l=Xc(r);return g.jsx(wm,{...l,...i,ref:n})});Uk.displayName=rB;var aB="MenuSub",[iH,Hk]=ei(aB),Nl="MenuSubTrigger",Fk=v.forwardRef((e,n)=>{const r=ti(Nl,e.__scopeMenu),i=hs(Nl,e.__scopeMenu),l=Hk(Nl,e.__scopeMenu),s=Qm(Nl,e.__scopeMenu),c=v.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,h={__scopeMenu:e.__scopeMenu},m=v.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return v.useEffect(()=>m,[m]),v.useEffect(()=>{const y=f.current;return()=>{window.clearTimeout(y),d(null)}},[f,d]),g.jsx(Km,{asChild:!0,...h,children:g.jsx(Mk,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":$k(r.open),...e,ref:vc(n,l.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:me(e.onPointerMove,Gl(y=>{s.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:me(e.onPointerLeave,Gl(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const w=r.content?.dataset.side,E=w==="right",S=E?-5:5,A=b[E?"left":"right"],T=b[E?"right":"left"];s.onPointerGraceIntentChange({area:[{x:y.clientX+S,y:y.clientY},{x:A,y:b.top},{x:T,y:b.top},{x:T,y:b.bottom},{x:A,y:b.bottom}],side:w}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(y),y.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:me(e.onKeyDown,y=>{const b=s.searchRef.current!=="";e.disabled||b&&y.key===" "||I8[i.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});Fk.displayName=Nl;var Vk="MenuSubContent",qk=v.forwardRef((e,n)=>{const r=Tk(Pn,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=ti(Pn,e.__scopeMenu),c=hs(Pn,e.__scopeMenu),f=Hk(Vk,e.__scopeMenu),d=v.useRef(null),h=Be(n,d);return g.jsx($l.Provider,{scope:e.__scopeMenu,children:g.jsx(Jt,{present:i||s.open,children:g.jsx($l.Slot,{scope:e.__scopeMenu,children:g.jsx(Zm,{id:f.contentId,"aria-labelledby":f.triggerId,...l,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:me(e.onFocusOutside,m=>{m.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:me(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:me(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=B8[c.dir].includes(m.key);y&&b&&(s.onOpenChange(!1),f.trigger?.focus(),m.preventDefault())})})})})})});qk.displayName=Vk;function $k(e){return e?"open":"closed"}function dc(e){return e==="indeterminate"}function eg(e){return dc(e)?"indeterminate":e?"checked":"unchecked"}function iB(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function oB(e,n){return e.map((r,i)=>e[(n+i)%e.length])}function lB(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=oB(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function sB(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,b=d.y;m>i!=b>i&&r<(y-h)*(i-m)/(b-m)+h&&(l=!l)}return l}function uB(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return sB(r,n)}function Gl(e){return n=>n.pointerType==="mouse"?e(n):void 0}var cB=Ak,fB=Km,dB=Rk,hB=Nk,pB=Wm,mB=_k,gB=Qc,yB=jk,vB=Ok,xB=Lk,bB=Ik,wB=Bk,SB=Uk,EB=Fk,CB=qk,Zc="DropdownMenu",[kB,oH]=Bn(Zc,[Ck]),en=Ck(),[AB,Gk]=kB(Zc),Yk=e=>{const{__scopeDropdownMenu:n,children:r,dir:i,open:l,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,d=en(n),h=v.useRef(null),[m,y]=va({prop:l,defaultProp:s??!1,onChange:c,caller:Zc});return g.jsx(AB,{scope:n,triggerId:sr(),triggerRef:h,contentId:sr(),open:m,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(b=>!b),[y]),modal:f,children:g.jsx(cB,{...d,open:m,onOpenChange:y,dir:i,modal:f,children:r})})};Yk.displayName=Zc;var Kk="DropdownMenuTrigger",Xk=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...l}=e,s=Gk(Kk,r),c=en(r);return g.jsx(fB,{asChild:!0,...c,children:g.jsx(Me.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:vc(n,s.triggerRef),onPointerDown:me(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:me(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});Xk.displayName=Kk;var TB="DropdownMenuPortal",Qk=e=>{const{__scopeDropdownMenu:n,...r}=e,i=en(n);return g.jsx(dB,{...i,...r})};Qk.displayName=TB;var Zk="DropdownMenuContent",Wk=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=Gk(Zk,r),s=en(r),c=v.useRef(!1);return g.jsx(hB,{id:l.contentId,"aria-labelledby":l.triggerId,...s,...i,ref:n,onCloseAutoFocus:me(e.onCloseAutoFocus,f=>{c.current||l.triggerRef.current?.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:me(e.onInteractOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,m=d.button===2||h;(!l.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wk.displayName=Zk;var RB="DropdownMenuGroup",NB=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(pB,{...l,...i,ref:n})});NB.displayName=RB;var _B="DropdownMenuLabel",Jk=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(mB,{...l,...i,ref:n})});Jk.displayName=_B;var MB="DropdownMenuItem",e2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(gB,{...l,...i,ref:n})});e2.displayName=MB;var jB="DropdownMenuCheckboxItem",t2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(yB,{...l,...i,ref:n})});t2.displayName=jB;var DB="DropdownMenuRadioGroup",OB=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(vB,{...l,...i,ref:n})});OB.displayName=DB;var PB="DropdownMenuRadioItem",n2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(xB,{...l,...i,ref:n})});n2.displayName=PB;var LB="DropdownMenuItemIndicator",r2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(bB,{...l,...i,ref:n})});r2.displayName=LB;var zB="DropdownMenuSeparator",a2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(wB,{...l,...i,ref:n})});a2.displayName=zB;var IB="DropdownMenuArrow",BB=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(SB,{...l,...i,ref:n})});BB.displayName=IB;var UB="DropdownMenuSubTrigger",i2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(EB,{...l,...i,ref:n})});i2.displayName=UB;var HB="DropdownMenuSubContent",o2=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=en(r);return g.jsx(CB,{...l,...i,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});o2.displayName=HB;var FB=Yk,VB=Xk,qB=Qk,l2=Wk,s2=Jk,u2=e2,c2=t2,f2=n2,d2=r2,h2=a2,p2=i2,m2=o2;const $B=FB,GB=VB,YB=v.forwardRef(({className:e,inset:n,children:r,...i},l)=>g.jsxs(p2,{ref:l,className:ue("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",e),...i,children:[r,g.jsx(J_,{className:"ml-auto h-4 w-4"})]}));YB.displayName=p2.displayName;const KB=v.forwardRef(({className:e,...n},r)=>g.jsx(m2,{ref:r,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));KB.displayName=m2.displayName;const g2=v.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(qB,{children:g.jsx(l2,{ref:i,sideOffset:n,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));g2.displayName=l2.displayName;const y2=v.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(u2,{ref:i,className:ue("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),...r}));y2.displayName=u2.displayName;const XB=v.forwardRef(({className:e,children:n,checked:r,...i},l)=>g.jsxs(c2,{ref:l,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...i,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(d2,{children:g.jsx(Ec,{className:"h-4 w-4"})})}),n]}));XB.displayName=c2.displayName;const QB=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(f2,{ref:i,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(d2,{children:g.jsx(rM,{className:"h-2 w-2 fill-current"})})}),n]}));QB.displayName=f2.displayName;const v2=v.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(s2,{ref:i,className:ue("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));v2.displayName=s2.displayName;const x2=v.forwardRef(({className:e,...n},r)=>g.jsx(h2,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));x2.displayName=h2.displayName;function ZB(){const[e,n]=v.useState(!1),[r,i]=v.useState(null),[l,s]=v.useState(null),[c,f]=v.useState(null),[d,h]=v.useState("Coconut"),[m,y]=v.useState(null),[b,w]=v.useState(null),[E,S]=v.useState(!1),A=In(),T=Kl(),R=A.pathname,{user:N,logout:D,authEnabled:L}=fw(),j=new URLSearchParams(A.search),F=j.get("hideNav")==="true",q=j.get("hideAssistant")==="true",J=j.get("expandAssistant")==="true";v.useEffect(()=>{if(q){n(!1);return}if(J){n(!0),S(!0);return}const W=localStorage.getItem("ai-sidebar-open");W!==null&&n(JSON.parse(W))},[]),v.useEffect(()=>{const W=U=>{const Q=U.detail;Q&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),y(Q))};return window.addEventListener("discuss-in-chat",W),()=>{window.removeEventListener("discuss-in-chat",W)}},[]),v.useEffect(()=>{const W=U=>{const Q=U.detail;Q?.prompt&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),w(Q.prompt))};return window.addEventListener("customize-prompt-in-assistant",W),()=>{window.removeEventListener("customize-prompt-in-assistant",W)}},[]),v.useEffect(()=>{const W=()=>{n(!0),localStorage.setItem("ai-sidebar-open","true"),S(!0)};return window.addEventListener("open-assistant-expanded",W),()=>{window.removeEventListener("open-assistant-expanded",W)}},[]),v.useEffect(()=>{const W=U=>{if((U.metaKey||U.ctrlKey)&&U.shiftKey&&U.key==="l"){U.preventDefault(),e||(n(!0),localStorage.setItem("ai-sidebar-open","true")),window.dispatchEvent(new CustomEvent("toggle-assistant-fullscreen"));return}(U.metaKey||U.ctrlKey)&&U.key==="l"&&(U.preventDefault(),z())};return window.addEventListener("keydown",W),()=>{window.removeEventListener("keydown",W)}},[e]),v.useEffect(()=>{const W=async()=>{try{const Q=await fetch(`${Mt}/api/v1/config`);if(Q.ok){const P=await Q.json();if(P.success&&P.data?.coconut){const{firstName:K,lastName:B}=P.data.coconut;K&&B?h(`${K} ${B}`):(K||B)&&h(K||B)}}}catch(Q){console.error("Error fetching config:",Q)}};W();const U=()=>{W()};return window.addEventListener("config-updated",U),()=>{window.removeEventListener("config-updated",U)}},[]);const z=()=>{const W=!e;n(W),localStorage.setItem("ai-sidebar-open",JSON.stringify(W))},ee=async()=>{try{await D(),Jh({title:"Logged out",description:"You have been logged out successfully"}),T("/login")}catch(W){console.error("Logout error:",W),Jh({title:"Error",description:"Failed to logout",variant:"destructive"})}};v.useEffect(()=>{(async()=>{try{const U=await fetch(`${Mt}/api/v1/context/project`);if(U.ok){const Q=await U.text();s(Q)}else s(null)}catch(U){console.error("Error fetching project context:",U),s(null)}if(R.includes("/context/architecture")||R.includes("/proposals"))try{const U=await fetch(`${Mt}/api/v1/context/architecture`);if(U.ok){const Q=await U.text();f(Q)}else f(null)}catch(U){console.error("Error fetching architecture context:",U),f(null)}else f(null);if(R.includes("/proposals")&&(R.includes("/edit")||R.match(/\/proposals\/[^/]+$/))){const Q=R.match(/\/proposals\/([^/]+)(?:\/edit)?/)?.[1];if(Q)try{const K=await(await fetch(`${Mt}/api/v1/proposals/${Q}`)).json();if(K.success){const B=K.data,ne=`Proposal ID: ${Q}
|
|
453
|
-
Title: ${B.title||B.intent}
|
|
454
|
-
Status: ${B.status}
|
|
455
|
-
Priority: ${B.metadata?.priority||"medium"}
|
|
456
|
-
Author: ${B.author?.name}
|
|
457
|
-
Description:
|
|
458
|
-
${B.content||""}`;i(ne)}else i(null)}catch(P){console.error("Error fetching proposal:",P),i(null)}}else i(null)})()},[R]);const ae=()=>{if(R.includes("/proposals")){const U=R.match(/\/proposals\/([^/]+)(?:\/edit)?/)?.[1];if(R.includes("/new"))return{type:"proposals-new",content:null};if(U){const P=["project.md",`${U}.md`].join(", "),K=[l&&`=== PROJECT CONTEXT ===
|
|
459
|
-
${l}`,r&&`=== PROPOSAL CONTENT ===
|
|
460
|
-
${r}`].filter(Boolean),B=K.length>0?K.join(`
|
|
461
|
-
|
|
462
|
-
`):null;return{type:R.includes("/edit")?"proposals-edit":"proposals-view",content:B,displayId:U,contextFiles:P}}return{type:"proposals",content:l,contextFiles:"project.md"}}return R.includes("/context")?R.includes("/architecture")?{type:"context-architecture",content:c,contextFiles:"architecture.md"}:R.includes("/project")?{type:"context-project",content:l,contextFiles:"project.md"}:R.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:R.includes("/settings")?R.includes("/skills")?{type:"settings-skills",content:null}:R.includes("/integrations")?{type:"settings-integrations",content:null}:R.includes("/prompts")?{type:"settings-prompts",content:null}:R.includes("/rules")?{type:"settings-rules",content:null}:R.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:R.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(vS,{defaultOpen:!F,children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(EP,{}),g.jsxs(wS,{className:ue("flex-1 min-w-0 transition-all duration-300 ease-in-out",e&&"mr-96"),children:[g.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-content-border px-4 bg-background",children:[g.jsx(bS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:d||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(yt,{onClick:z,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(ap,{className:"h-4 w-4"})}),L&&N&&g.jsxs($B,{children:[g.jsx(GB,{asChild:!0,children:g.jsx(yt,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(pj,{className:"h-4 w-4"})})}),g.jsxs(g2,{align:"end",children:[g.jsx(v2,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:N.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:N.email})]})}),g.jsx(x2,{}),g.jsxs(y2,{onClick:ee,children:[g.jsx(NM,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})]})]}),g.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4 overflow-auto bg-content-background",children:g.jsx(Q0,{})})]}),g.jsx(E8,{isOpen:e,onToggle:z,contextInfo:ae(),discussDocument:m,onDiscussDocumentHandled:()=>y(null),pendingPrompt:b,onPendingPromptHandled:()=>w(null),openInFullScreen:E,onFullScreenHandled:()=>S(!1)})]})})}const WB=[{title:"Coconut Profile",href:"/settings/user",icon:cj,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:JM,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:ZM,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:AM,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:Wu,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:HM,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:Vw,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:PM,description:"Model Context Protocol configuration and settings"}];function JB(){const e=In();return g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:WB.map(n=>g.jsxs(Dr,{to:n.href,className:ue("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1 lg:max-w-2xl",children:g.jsx("div",{className:"space-y-6",children:g.jsx(Q0,{})})})]})}const eU=v.lazy(()=>Ue(()=>import("./DashboardPage-BaSQQ8Nv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),tU=v.lazy(()=>Ue(()=>import("./LoginPage-DptfKsWo.js"),__vite__mapDeps([20,4,1,21]))),nU=v.lazy(()=>Ue(()=>import("./CallbackPage-BGLKeyjv.js"),__vite__mapDeps([22,9,23]))),rU=v.lazy(()=>Ue(()=>import("./ProposalsPage-C7n4-G05.js"),__vite__mapDeps([24,1,2,3,19,11]))),aU=v.lazy(()=>Ue(()=>import("./ProposalDetailPage-K4iMXHEg.js"),__vite__mapDeps([25,26,1,2,4,3,27,28,29,30,13,17]))),iU=v.lazy(()=>Ue(()=>import("./ProposalEditPage-jZOtCMqP.js"),__vite__mapDeps([31,4,1,32,33,34,35,19,36,2,27])).then(e=>({default:e.ProposalEditPage}))),oU=v.lazy(()=>Ue(()=>import("./NewProposalPage-B_sDMBTK.js"),__vite__mapDeps([37,1,4,32,33,34,35,19,36,2,27])).then(e=>({default:e.NewProposalPage}))),lU=v.lazy(()=>Ue(()=>import("./TerminalPage--KZ7azvP.js"),__vite__mapDeps([38,1,5,6,7,8,39,40,16,41,42]))),sU=v.lazy(()=>Ue(()=>import("./TerminalSessionPage-ClvxK9ia.js"),__vite__mapDeps([43,1,2,44,34,4,5,7,8,45,46,39,16,19,47,12,42]))),uU=v.lazy(()=>Ue(()=>import("./UtilitiesPage-9rTxR2md.js"),__vite__mapDeps([48,1,5,41,16]))),cU=v.lazy(()=>Ue(()=>import("./CodePage-CrokcH-S.js"),__vite__mapDeps([49,1,2,5,6,7,8,46,39,40,16]))),fU=v.lazy(()=>Ue(()=>import("./SkillsPage-D2G7EfK8.js"),__vite__mapDeps([50,1,2,26,51,52,11,19,53]))),dU=v.lazy(()=>Ue(()=>import("./SkillDetailPage-5sDxf3Of.js"),__vite__mapDeps([54,1,2,27]))),hU=v.lazy(()=>Ue(()=>import("./NewSkillPage-Cwy2MSr9.js"),__vite__mapDeps([55,1,4,2,26,27,28]))),pU=v.lazy(()=>Ue(()=>import("./SkillEditPage-BDd2CtAS.js"),__vite__mapDeps([56,1,4,2,26,27,28]))),mU=v.lazy(()=>Ue(()=>import("./ResourcesPage-vB5-XkUv.js"),__vite__mapDeps([57,1,4,2,26,52,30,10,13,53,19,11]))),gU=v.lazy(()=>Ue(()=>import("./KnowledgePage-aU1GxZSZ.js"),__vite__mapDeps([58,1,2,26,51,52,11,19,59,45]))),yU=v.lazy(()=>Ue(()=>import("./KnowledgeDetailPage-QMU2bC3L.js"),__vite__mapDeps([60,1,2,26,27,13,53,15]))),vU=v.lazy(()=>Ue(()=>import("./KnowledgeEditPage-DbMJVcLc.js"),__vite__mapDeps([61,1,4,32,33,36,2,62,19,15,27]))),xU=v.lazy(()=>Ue(()=>import("./NewKnowledgePage-Cbiswrw_.js"),__vite__mapDeps([63,1,4,32,33,36,2,62,19,15,27]))),bU=v.lazy(()=>Ue(()=>import("./ProjectPage-DgUr4bVU.js"),__vite__mapDeps([64,1,2,26,15]))),wU=v.lazy(()=>Ue(()=>import("./ProjectEditPage-BznWiBBc.js"),__vite__mapDeps([65,1,4,32,33,27,18]))),SU=v.lazy(()=>Ue(()=>import("./ArchitecturePage-Db__w054.js"),__vite__mapDeps([66,1,26]))),EU=v.lazy(()=>Ue(()=>import("./ArchitectureEditPage-CIjqkpMz.js"),__vite__mapDeps([67,1,4,32,33,27,18]))),CU=v.lazy(()=>Ue(()=>import("./RolePage-Sc-GFiL2.js"),__vite__mapDeps([68,1,26]))),kU=v.lazy(()=>Ue(()=>import("./RoleEditPage-Cu7ZB3yj.js"),__vite__mapDeps([69,1,32,33,27,18]))),AU=v.lazy(()=>Ue(()=>import("./IdentityPage-D2yBjeYn.js"),__vite__mapDeps([70,1,4,2,71,21,12,47,19,28]))),I0=v.lazy(()=>Ue(()=>import("./UserSettingsPage-C8STDvfQ.js"),__vite__mapDeps([72,1,4,28]))),TU=v.lazy(()=>Ue(()=>import("./AuthSettingsPage-Bpooi8Z0.js"),__vite__mapDeps([73,1,4,74,2,75]))),RU=v.lazy(()=>Ue(()=>import("./ApiKeysSettingsPage-Chw9PNL5.js"),__vite__mapDeps([76,1,4,2,71,29,19,75]))),NU=v.lazy(()=>Ue(()=>import("./SkillsSettingsPage-1N0JQOYc.js"),__vite__mapDeps([77,1,15]))),_U=v.lazy(()=>Ue(()=>import("./IntegrationsSettingsPage-Bx8-0Ig4.js"),__vite__mapDeps([78,1,4]))),MU=v.lazy(()=>Ue(()=>import("./GitSettingsPage-tKBXYAFm.js"),__vite__mapDeps([79,1,4,44,39,15,9,23]))),jU=v.lazy(()=>Ue(()=>import("./McpSettingsPage-C3WxFwRB.js"),__vite__mapDeps([80,1,4,2,74,71,51,52,11,75,19,18]))),DU=v.lazy(()=>Ue(()=>import("./PromptsSettingsPage-CY0-870a.js"),__vite__mapDeps([81,1,4,2,19,47,30]))),OU=v.lazy(()=>Ue(()=>import("./RulesSettingsPage-DdMCzh9j.js"),__vite__mapDeps([82,1,4,2,19]))),PU=v.lazy(()=>Ue(()=>import("./GitPage-DxjLaRWe.js"),__vite__mapDeps([83,1,4,21,9,23,45,59,39,75,14]))),LU=v.lazy(()=>Ue(()=>import("./SchedulePage-Bkkf2wA0.js"),__vite__mapDeps([84,1,2,4,74,21,39,19,16,85,17]))),zU=v.lazy(()=>Ue(()=>import("./JobDetailPage-BQmTHled.js"),__vite__mapDeps([86,26,1,2,27,16,28,39,85,17,13]))),IU=v.lazy(()=>Ue(()=>import("./UserPreferencesPage-CheOH7jZ.js"),__vite__mapDeps([87,1,4]))),BU=v.lazy(()=>Ue(()=>import("./ActivityPage-DSSML9J-.js"),__vite__mapDeps([88,1,2,39])));function UU(){return g.jsxs(VN,{children:[g.jsx(nN,{children:g.jsx(v.Suspense,{fallback:g.jsx(rD,{}),children:g.jsxs(jR,{children:[g.jsx(Pe,{path:"/login",element:g.jsx(tU,{})}),g.jsx(Pe,{path:"/auth/github/callback",element:g.jsx(nU,{})}),g.jsxs(Pe,{path:"/",element:g.jsx(nD,{children:g.jsx(ZB,{})}),children:[g.jsx(Pe,{index:!0,element:g.jsx(eU,{})}),g.jsx(Pe,{path:"proposals",element:g.jsx(rU,{})}),g.jsx(Pe,{path:"proposals/new",element:g.jsx(oU,{})}),g.jsx(Pe,{path:"proposals/:id",element:g.jsx(aU,{})}),g.jsx(Pe,{path:"proposals/:id/edit",element:g.jsx(iU,{})}),g.jsx(Pe,{path:"code",element:g.jsx(cU,{})}),g.jsx(Pe,{path:"utilities",element:g.jsx(uU,{})}),g.jsx(Pe,{path:"terminal",element:g.jsx(lU,{})}),g.jsx(Pe,{path:"terminal/:proposalId",element:g.jsx(sU,{})}),g.jsx(Pe,{path:"git",element:g.jsx(PU,{})}),g.jsx(Pe,{path:"schedule",element:g.jsx(LU,{})}),g.jsx(Pe,{path:"schedule/:id",element:g.jsx(zU,{})}),g.jsx(Pe,{path:"identity",element:g.jsx(AU,{})}),g.jsx(Pe,{path:"skills",element:g.jsx(fU,{})}),g.jsx(Pe,{path:"skills/new",element:g.jsx(hU,{})}),g.jsx(Pe,{path:"skills/:id",element:g.jsx(dU,{})}),g.jsx(Pe,{path:"skills/:id/edit",element:g.jsx(pU,{})}),g.jsx(Pe,{path:"activity",element:g.jsx(BU,{})}),g.jsx(Pe,{path:"resources",element:g.jsx(mU,{})}),g.jsx(Pe,{path:"context/project",element:g.jsx(bU,{})}),g.jsx(Pe,{path:"context/project/edit",element:g.jsx(wU,{})}),g.jsx(Pe,{path:"context/architecture",element:g.jsx(SU,{})}),g.jsx(Pe,{path:"context/architecture/edit",element:g.jsx(EU,{})}),g.jsx(Pe,{path:"context/role",element:g.jsx(CU,{})}),g.jsx(Pe,{path:"context/role/edit",element:g.jsx(kU,{})}),g.jsx(Pe,{path:"context/knowledge",element:g.jsx(gU,{})}),g.jsx(Pe,{path:"context/knowledge/new",element:g.jsx(xU,{})}),g.jsx(Pe,{path:"context/knowledge/:filename",element:g.jsx(yU,{})}),g.jsx(Pe,{path:"context/knowledge/:filename/edit",element:g.jsx(vU,{})}),g.jsxs(Pe,{path:"settings",element:g.jsx(JB,{}),children:[g.jsx(Pe,{index:!0,element:g.jsx(I0,{})}),g.jsx(Pe,{path:"user",element:g.jsx(I0,{})}),g.jsx(Pe,{path:"preferences",element:g.jsx(IU,{})}),g.jsx(Pe,{path:"authentication",element:g.jsx(TU,{})}),g.jsx(Pe,{path:"api-keys",element:g.jsx(RU,{})}),g.jsx(Pe,{path:"skills",element:g.jsx(NU,{})}),g.jsx(Pe,{path:"integrations",element:g.jsx(_U,{})}),g.jsx(Pe,{path:"git",element:g.jsx(MU,{})}),g.jsx(Pe,{path:"mcp",element:g.jsx(jU,{})}),g.jsx(Pe,{path:"prompts",element:g.jsx(DU,{})}),g.jsx(Pe,{path:"rules",element:g.jsx(OU,{})})]})]})]})})}),g.jsx(tD,{})]})}zT.createRoot(document.getElementById("root")).render(g.jsx(v.StrictMode,{children:g.jsx(UU,{})}));export{VC as $,Mt as A,yt as B,J_ as C,Uc as D,fw as E,Wu as F,Vw as G,Ju as H,o1 as I,Jh as J,ZU as K,Dr as L,DM as M,FU as N,tM as O,HU as P,nj as Q,X9 as R,ql as S,oj as T,Q9 as U,sj as V,HC as W,Zi as X,FC as Y,qC as Z,$C as _,KN as a,jh as a$,YC as a0,GC as a1,cs as a2,pj as a3,QU as a4,dE as a5,u1 as a6,VM as a7,eD as a8,$B as a9,A9 as aA,gM as aB,qc as aC,hc as aD,tH as aE,eH as aF,Mm as aG,zm as aH,km as aI,Tp as aJ,O5 as aK,gL as aL,WU as aM,aL as aN,bL as aO,uL as aP,xL as aQ,wp as aR,Am as aS,bE as aT,Fl as aU,o6 as aV,K3 as aW,F5 as aX,KE as aY,JU as aZ,ML as a_,GB as aa,g2 as ab,v2 as ac,x2 as ad,y2 as ae,$U as af,Xu as ag,YM as ah,XB as ai,gj as aj,HN as ak,Ec as al,lM as am,va as an,Bn as ao,xc as ap,me as aq,Me as ar,Be as as,Lc as at,mp as au,W1 as av,kS as aw,mb as ax,h6 as ay,L9 as az,rs as b,pa as b0,Kt as b1,C0 as b2,VU as b3,PM as b4,Fi as b5,AM as b6,Sc as b7,sr as b8,vk as b9,O8 as ba,P8 as bb,Jt as bc,rM as bd,qU as be,X_ as bf,bM as bg,q_ as bh,Oe as c,as as d,ue as e,is as f,Rl as g,JP as h,lE as i,g as j,eL as k,cE as l,Xi as m,ap as n,ZM as o,Ml as p,iM as q,v as r,XM as s,Fw as t,Kl as u,Hw as v,gk as w,Nh as x,Y_ as y,In as z};
|