@loicngr/kobo 1.11.30 → 1.11.32

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.
Files changed (164) hide show
  1. package/AGENTS.md +6 -1
  2. package/CHANGELOG.md +9 -0
  3. package/dist/server/routes/workspaces.js +46 -10
  4. package/dist/server/services/forge/bitbucket/provider.js +2 -1
  5. package/dist/server/services/forge/github/provider.js +3 -2
  6. package/dist/server/services/forge/gitlab/provider.js +2 -1
  7. package/dist/server/services/forge/types.js +10 -0
  8. package/dist/server/services/git-stats-service.js +2 -0
  9. package/dist/server/utils/git-ops.js +38 -4
  10. package/package.json +1 -1
  11. package/src/client/dist/pwa/assets/{ActivityFeed-C6XSxdJ0.css → ActivityFeed-Bakgvay6.css} +1 -1
  12. package/src/client/dist/pwa/assets/ActivityFeed-C7tG4Cgq.js +8 -0
  13. package/src/client/dist/pwa/assets/ChangelogPage-DKJkFiU_.css +1 -0
  14. package/src/client/dist/pwa/assets/ChangelogPage-FYve4efm.js +1 -0
  15. package/src/client/dist/pwa/assets/ClosePopup-DLm_uRNv.js +1 -0
  16. package/src/client/dist/pwa/assets/ComparisonPanel-DRzYHcWf.js +2 -0
  17. package/src/client/dist/pwa/assets/CreatePage-CT10FMyq.js +2 -0
  18. package/src/client/dist/pwa/assets/CreatePage-DxOyY65u.css +1 -0
  19. package/src/client/dist/pwa/assets/DashboardPage-CT3XzDaz.js +1 -0
  20. package/src/client/dist/pwa/assets/DashboardPage-DsWn5cWl.css +1 -0
  21. package/src/client/dist/pwa/assets/DiffViewer-CIY7UOt6.js +8 -0
  22. package/src/client/dist/pwa/assets/DocumentsPanel-D2IlwigV.js +1 -0
  23. package/src/client/dist/pwa/assets/DrawerToggleButton-0fKZjElk.js +1 -0
  24. package/src/client/dist/pwa/assets/{GitPanel-DVs5BCU-.css → GitPanel-De5_E4NA.css} +1 -1
  25. package/src/client/dist/pwa/assets/GitPanel-DjG7-AsO.js +3 -0
  26. package/src/client/dist/pwa/assets/HealthPage-BJKRSg5I.js +1 -0
  27. package/src/client/dist/pwa/assets/HealthPage-CFZ-tdKK.css +1 -0
  28. package/src/client/dist/pwa/assets/MainLayout-BSHKEpzs.js +2 -0
  29. package/src/client/dist/pwa/assets/{MainLayout-DxYQV-Ni.css → MainLayout-BUTz2ks4.css} +1 -1
  30. package/src/client/dist/pwa/assets/QBadge-CWEaKfKi.js +1 -0
  31. package/src/client/dist/pwa/assets/QBanner-DRiFK0GP.js +1 -0
  32. package/src/client/dist/pwa/assets/QBtn-DqZryKOh.js +1 -0
  33. package/src/client/dist/pwa/assets/QBtnDropdown-Bqa7KhX7.js +1 -0
  34. package/src/client/dist/pwa/assets/QBtnGroup-BY6XqeTJ.js +1 -0
  35. package/src/client/dist/pwa/assets/QBtnToggle-CCgwqSgg.js +1 -0
  36. package/src/client/dist/pwa/assets/QChip-CJ6WmvGE.js +1 -0
  37. package/src/client/dist/pwa/assets/QDrawer-DinZbnyn.js +1 -0
  38. package/src/client/dist/pwa/assets/QItemSection-CjrpcdN_.js +1 -0
  39. package/src/client/dist/pwa/assets/QMarkupTable-MxPL53nz.js +1 -0
  40. package/src/client/dist/pwa/assets/QSpinnerDots-6v3Yl0T6.js +1 -0
  41. package/src/client/dist/pwa/assets/SchedulePanel-BDmDDRMX.js +1 -0
  42. package/src/client/dist/pwa/assets/SearchPage-BdisvUwr.js +1 -0
  43. package/src/client/dist/pwa/assets/SearchPage-CVgRa025.css +1 -0
  44. package/src/client/dist/pwa/assets/{SettingsPage-DHFMKY_1.css → SettingsPage-CDA54yPx.css} +1 -1
  45. package/src/client/dist/pwa/assets/SettingsPage-DCJgxm6J.js +9 -0
  46. package/src/client/dist/pwa/assets/TerminalPanel-DBnSOJ3B.js +16 -0
  47. package/src/client/dist/pwa/assets/TouchPan-D77wzGyc.js +1 -0
  48. package/src/client/dist/pwa/assets/TourReplayButton-DU2PItj-.js +1 -0
  49. package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-CRVNJtmB.js +1 -0
  50. package/src/client/dist/pwa/assets/{WorkspacePage-3rwxkeew.css → WorkspacePage-D3-AEaPN.css} +1 -1
  51. package/src/client/dist/pwa/assets/WorkspacePage-Dv3ED-Bt.js +4 -0
  52. package/src/client/dist/pwa/assets/{browser-Bg25_sDh.js → browser-sSy6JmeQ.js} +2 -2
  53. package/src/client/dist/pwa/assets/build-path-tree-B2-SsE87.js +1 -0
  54. package/src/client/dist/pwa/assets/de-D_OhjWJx.js +17 -0
  55. package/src/client/dist/pwa/assets/documents-D4BcPyOF.js +1 -0
  56. package/src/client/dist/pwa/assets/editor.api-NH9tSUby.js +413 -0
  57. package/src/client/dist/pwa/assets/editor.worker-CwQAd_xr.js +30 -0
  58. package/src/client/dist/pwa/assets/efforts-BdCfujEx.js +9 -0
  59. package/src/client/dist/pwa/assets/engineFeatures-6ikmzzfp.js +1 -0
  60. package/src/client/dist/pwa/assets/es-kxJ0xgkc.js +17 -0
  61. package/src/client/dist/pwa/assets/expand-template-3E9x3FGS.js +1 -0
  62. package/src/client/dist/pwa/assets/{format-DSh3Ghaw.js → format-CR20Lbwg.js} +30 -30
  63. package/src/client/dist/pwa/assets/formatters-TuKWWdWq.js +1 -0
  64. package/src/client/dist/pwa/assets/fr-BgQGh90C.js +17 -0
  65. package/src/client/dist/pwa/assets/{freemarker2-BdMCo-ui.js → freemarker2-F7dLhXbU.js} +1 -1
  66. package/src/client/dist/pwa/assets/{handlebars-CVUpmZRG.js → handlebars-hXFhj5eh.js} +1 -1
  67. package/src/client/dist/pwa/assets/{html-B9nx87id.js → html-7nsVC4pO.js} +1 -1
  68. package/src/client/dist/pwa/assets/{i18n-B_ietr0X.js → i18n-Djnp5xDA.js} +1 -1
  69. package/src/client/dist/pwa/assets/index-CUoUy6tH.css +1 -0
  70. package/src/client/dist/pwa/assets/index-DztjpQfb.js +20 -0
  71. package/src/client/dist/pwa/assets/it-BmzSIMv5.js +17 -0
  72. package/src/client/dist/pwa/assets/{javascript-B0F3ZRYP.js → javascript-59rTAWws.js} +1 -1
  73. package/src/client/dist/pwa/assets/{liquid-C2jkK9Te.js → liquid-BP6Awnwy.js} +1 -1
  74. package/src/client/dist/pwa/assets/{mdx-B9CyGsGZ.js → mdx-CiCpqnQ4.js} +1 -1
  75. package/src/client/dist/pwa/assets/monaco-contributions-DzI5nDgU.js +51 -0
  76. package/src/client/dist/pwa/assets/monaco.contribution-9uLUIE5c.js +2 -0
  77. package/src/client/dist/pwa/assets/{network-auth-CXNehcyv.js → network-auth--GlWvRqv.js} +1 -1
  78. package/src/client/dist/pwa/assets/{notify-theme-DzIPRvEu.js → notify-theme-DQ_bPMUo.js} +1 -1
  79. package/src/client/dist/pwa/assets/pending-diff-open-CK20L_pt.js +1 -0
  80. package/src/client/dist/pwa/assets/permissionModes-DORv0Hwo.js +36 -0
  81. package/src/client/dist/pwa/assets/pinia-jcytgarH.js +1 -0
  82. package/src/client/dist/pwa/assets/private.use-form-DVqJLg-9.js +1 -0
  83. package/src/client/dist/pwa/assets/{project-color-D8UVi4-G.js → project-color-DrojOIC6.js} +1 -1
  84. package/src/client/dist/pwa/assets/{python-D6494OxU.js → python-BfVlMXCp.js} +1 -1
  85. package/src/client/dist/pwa/assets/{razor-uuwEcrBe.js → razor-CxyOPnW7.js} +1 -1
  86. package/src/client/dist/pwa/assets/reactivity.esm-bundler-DEJj9cFv.js +1 -0
  87. package/src/client/dist/pwa/assets/render-chat-markdown-nZGk_TRQ.js +67 -0
  88. package/src/client/dist/pwa/assets/runtime-core.esm-bundler-CS0xkoG_.js +1 -0
  89. package/src/client/dist/pwa/assets/{typescript-umL7JrOg.js → typescript-Bke62OsW.js} +1 -1
  90. package/src/client/dist/pwa/assets/use-checkbox-DDRAnhSJ.js +1 -0
  91. package/src/client/dist/pwa/assets/use-is-mobile-ClPMtqZc.js +1 -0
  92. package/src/client/dist/pwa/assets/use-tours-BEdbVcQS.js +2 -0
  93. package/src/client/dist/pwa/assets/{workspace-templates-CkKJmfTo.js → workspace-templates-1zUtbH31.js} +1 -1
  94. package/src/client/dist/pwa/assets/{xml-Nu9IP_9Z.js → xml-Cg47p-KM.js} +1 -1
  95. package/src/client/dist/pwa/assets/{yaml-D_Py0JsF.js → yaml-Dj1MTjr-.js} +1 -1
  96. package/src/client/dist/pwa/index.html +8 -11
  97. package/src/client/dist/pwa/sw.js +1 -1
  98. package/src/client/dist/pwa/assets/ActivityFeed-Cx1rS3ci.js +0 -8
  99. package/src/client/dist/pwa/assets/ChangelogPage-2OaGEKe9.js +0 -1
  100. package/src/client/dist/pwa/assets/ChangelogPage-D_WOVByV.css +0 -1
  101. package/src/client/dist/pwa/assets/ClosePopup-CvV-0nzX.js +0 -1
  102. package/src/client/dist/pwa/assets/ComparisonPanel-BmUrmK4m.js +0 -2
  103. package/src/client/dist/pwa/assets/CreatePage-C0uUaDXT.css +0 -1
  104. package/src/client/dist/pwa/assets/CreatePage-Hp3O5al9.js +0 -2
  105. package/src/client/dist/pwa/assets/DashboardPage-BqgK4lAf.css +0 -1
  106. package/src/client/dist/pwa/assets/DashboardPage-Mgx1FG2b.js +0 -1
  107. package/src/client/dist/pwa/assets/DiffViewer-aMjhTpVF.js +0 -8
  108. package/src/client/dist/pwa/assets/DocumentsPanel-Cdr5b21_.js +0 -1
  109. package/src/client/dist/pwa/assets/DrawerToggleButton-VEVxQ39S.js +0 -1
  110. package/src/client/dist/pwa/assets/GitPanel-DUJ15ikk.js +0 -3
  111. package/src/client/dist/pwa/assets/HealthPage-BbqLoFQj.css +0 -1
  112. package/src/client/dist/pwa/assets/HealthPage-v_jKOByf.js +0 -1
  113. package/src/client/dist/pwa/assets/MainLayout-jRXQQzPm.js +0 -2
  114. package/src/client/dist/pwa/assets/QBadge-BgS0-MXB.js +0 -1
  115. package/src/client/dist/pwa/assets/QBanner-CDiXUya7.js +0 -1
  116. package/src/client/dist/pwa/assets/QBtn-B7WFdfmy.js +0 -1
  117. package/src/client/dist/pwa/assets/QBtnDropdown-pyNCwmSZ.js +0 -1
  118. package/src/client/dist/pwa/assets/QBtnGroup-BMQlX2YS.js +0 -1
  119. package/src/client/dist/pwa/assets/QBtnToggle-eMu_yinY.js +0 -1
  120. package/src/client/dist/pwa/assets/QChip-DpUYTCOJ.js +0 -1
  121. package/src/client/dist/pwa/assets/QItemSection-CEUi4Tz0.js +0 -1
  122. package/src/client/dist/pwa/assets/QMarkupTable-DcoQpjPu.js +0 -1
  123. package/src/client/dist/pwa/assets/QPage-RpDxx5ah.js +0 -1
  124. package/src/client/dist/pwa/assets/QSpace-D3PNLwa4.js +0 -1
  125. package/src/client/dist/pwa/assets/QSpinnerDots-DWOFEezR.js +0 -1
  126. package/src/client/dist/pwa/assets/SchedulePanel-DBc1j1k3.js +0 -1
  127. package/src/client/dist/pwa/assets/SearchPage-CWca6d5o.js +0 -1
  128. package/src/client/dist/pwa/assets/SearchPage-DdWM01rq.css +0 -1
  129. package/src/client/dist/pwa/assets/SettingsPage-qKa3e6W-.js +0 -10
  130. package/src/client/dist/pwa/assets/TerminalPanel-Dv_1sNtU.js +0 -18
  131. package/src/client/dist/pwa/assets/TouchPan-DPBRkGyO.js +0 -1
  132. package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-CevQAXwk.js +0 -1
  133. package/src/client/dist/pwa/assets/WorkspacePage-CEwILZ6V.js +0 -4
  134. package/src/client/dist/pwa/assets/build-path-tree-Cx5bCcQs.js +0 -1
  135. package/src/client/dist/pwa/assets/de-BUPxnXau.js +0 -17
  136. package/src/client/dist/pwa/assets/debounce-CDIE7CV6.js +0 -1
  137. package/src/client/dist/pwa/assets/documents-CN6TlZH7.js +0 -1
  138. package/src/client/dist/pwa/assets/editor.api-vup96nzB.js +0 -413
  139. package/src/client/dist/pwa/assets/editor.worker-D-m8IBMa.js +0 -30
  140. package/src/client/dist/pwa/assets/efforts-BcV6XR1p.js +0 -9
  141. package/src/client/dist/pwa/assets/engineFeatures-D9IQa3bt.js +0 -1
  142. package/src/client/dist/pwa/assets/es-DMnEKZ17.js +0 -17
  143. package/src/client/dist/pwa/assets/expand-template-Cxl3iYaV.js +0 -1
  144. package/src/client/dist/pwa/assets/formatters-CQ90Icr4.js +0 -1
  145. package/src/client/dist/pwa/assets/fr-BTolHkCj.js +0 -17
  146. package/src/client/dist/pwa/assets/index-6H3m6vH7.css +0 -1
  147. package/src/client/dist/pwa/assets/index-BePGTdV0.js +0 -18
  148. package/src/client/dist/pwa/assets/it-BPFSv6Pp.js +0 -17
  149. package/src/client/dist/pwa/assets/layout-DE4C3CX3.js +0 -1
  150. package/src/client/dist/pwa/assets/monaco-contributions-BZH2_u8S.js +0 -51
  151. package/src/client/dist/pwa/assets/monaco.contribution--NRhv52L.js +0 -2
  152. package/src/client/dist/pwa/assets/pending-diff-open-DoKaz8uO.js +0 -1
  153. package/src/client/dist/pwa/assets/permissionModes-D58HKBN0.js +0 -36
  154. package/src/client/dist/pwa/assets/pinia-ClsyLh3i.js +0 -1
  155. package/src/client/dist/pwa/assets/private.use-form-D8Yuc3aU.js +0 -1
  156. package/src/client/dist/pwa/assets/reactivity.esm-bundler-DtSZKRQB.js +0 -1
  157. package/src/client/dist/pwa/assets/render-chat-markdown-BTcSOgEc.js +0 -67
  158. package/src/client/dist/pwa/assets/rolldown-runtime-hePW80VL.js +0 -1
  159. package/src/client/dist/pwa/assets/runtime-dom.esm-bundler-DgevF6KV.js +0 -4
  160. package/src/client/dist/pwa/assets/use-checkbox-3io6bTPe.js +0 -1
  161. package/src/client/dist/pwa/assets/use-onboarding-BE2bb17E.js +0 -2
  162. package/src/client/dist/pwa/assets/use-quasar-0nZoDKhp.js +0 -1
  163. package/src/client/dist/pwa/assets/vue-i18n-DtajJy_8.js +0 -3
  164. /package/src/client/dist/pwa/assets/{use-onboarding-CTZuBZOi.css → use-tours-CTZuBZOi.css} +0 -0
@@ -1,18 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-jRXQQzPm.js","assets/rolldown-runtime-hePW80VL.js","assets/reactivity.esm-bundler-DtSZKRQB.js","assets/runtime-dom.esm-bundler-DgevF6KV.js","assets/vue-i18n-DtajJy_8.js","assets/QBtn-B7WFdfmy.js","assets/pinia-ClsyLh3i.js","assets/QItemSection-CEUi4Tz0.js","assets/permissionModes-D58HKBN0.js","assets/debounce-CDIE7CV6.js","assets/private.use-form-D8Yuc3aU.js","assets/use-quasar-0nZoDKhp.js","assets/QChip-DpUYTCOJ.js","assets/documents-CN6TlZH7.js","assets/render-chat-markdown-BTcSOgEc.js","assets/QSpace-D3PNLwa4.js","assets/QBadge-BgS0-MXB.js","assets/ClosePopup-CvV-0nzX.js","assets/layout-DE4C3CX3.js","assets/efforts-BcV6XR1p.js","assets/WorkspaceAttentionLabels-CevQAXwk.js","assets/formatters-CQ90Icr4.js","assets/WorkspaceAttentionLabels-CrLP_I5S.css","assets/use-onboarding-BE2bb17E.js","assets/TouchPan-DPBRkGyO.js","assets/use-onboarding-CTZuBZOi.css","assets/QBanner-CDiXUya7.js","assets/engineFeatures-D9IQa3bt.js","assets/project-color-D8UVi4-G.js","assets/MainLayout-DxYQV-Ni.css","assets/DashboardPage-Mgx1FG2b.js","assets/QMarkupTable-DcoQpjPu.js","assets/QPage-RpDxx5ah.js","assets/DashboardPage-BqgK4lAf.css","assets/WorkspacePage-CEwILZ6V.js","assets/QSpinnerDots-DWOFEezR.js","assets/clipboard-t9qe6lK7.js","assets/expand-template-Cxl3iYaV.js","assets/expand-template-CTUNyJrv.css","assets/WorkspacePage-3rwxkeew.css","assets/CreatePage-Hp3O5al9.js","assets/QBtnToggle-eMu_yinY.js","assets/QBtnGroup-BMQlX2YS.js","assets/DrawerToggleButton-VEVxQ39S.js","assets/workspace-templates-CkKJmfTo.js","assets/CreatePage-C0uUaDXT.css","assets/SettingsPage-qKa3e6W-.js","assets/QBtnDropdown-pyNCwmSZ.js","assets/SettingsPage-DHFMKY_1.css","assets/SearchPage-CWca6d5o.js","assets/SearchPage-DdWM01rq.css","assets/HealthPage-v_jKOByf.js","assets/HealthPage-BbqLoFQj.css","assets/ChangelogPage-2OaGEKe9.js","assets/ChangelogPage-D_WOVByV.css"])))=>i.map(i=>d[i]);
2
- import{A as e,B as t,C as n,O as r,T as i,g as a,wt as o,x as s}from"./reactivity.esm-bundler-DtSZKRQB.js";import{$ as c,A as l,At as u,B as d,Bt as f,C as p,Et as m,H as h,It as g,Kt as _,Mt as v,Ot as y,P as b,Rt as x,Tt as S,U as C,V as w,W as T,Z as E,_n as D,fn as O,i as k,kt as A,n as ee,st as j,t as te,ut as M,vt as N}from"./runtime-dom.esm-bundler-DgevF6KV.js";import{n as ne,t as re}from"./vue-i18n-DtajJy_8.js";import{$ as ie,A as ae,B as oe,D as P,G as F,N as I,O as L,R,S as z,W as se,X as ce,Y as le,Z as B,_ as ue,b as de,d as fe,et as pe,f as me,g as he,j as ge,k as _e,l as ve,m as ye,nt as be,o as xe,p as Se,q as Ce,rt as we,s as Te,t as Ee,tt as V,u as De,v as Oe,w as ke,x as Ae,z as je}from"./QBtn-B7WFdfmy.js";import{t as Me}from"./debounce-CDIE7CV6.js";import{a as Ne,i as Pe,n as Fe,t as Ie}from"./pinia-ClsyLh3i.js";import{i as Le,n as Re,r as ze}from"./private.use-form-D8Yuc3aU.js";import{a as Be,i as Ve,n as He,r as Ue,t as We}from"./use-checkbox-3io6bTPe.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ge=[`sm`,`md`,`lg`,`xl`],{passive:Ke}=se,qe=ie({width:0,height:0,name:`xs`,sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:F,setDebounce:F,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed){e.config.screen!==void 0&&(e.config.screen.bodyClasses?this.__update(!0):document.body.classList.remove(`screen--${this.name}`));return}let{visualViewport:n}=window,r=n||window,i=document.scrollingElement||document.documentElement,a=n===void 0||V.is.mobile?()=>[Math.max(window.innerWidth,i.clientWidth),Math.max(window.innerHeight,i.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-i.clientWidth,n.height*n.scale+window.innerHeight-i.clientHeight],o=e.config.screen?.bodyClasses===!0;this.__update=e=>{let[t,n]=a();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(e!==!0)return;let r=this.sizes;this.gt.xs=t>=r.sm,this.gt.sm=t>=r.md,this.gt.md=t>=r.lg,this.gt.lg=t>=r.xl,this.lt.sm=t<r.sm,this.lt.md=t<r.md,this.lt.lg=t<r.lg,this.lt.xl=t<r.xl,this.xs=this.lt.sm,this.sm=this.gt.xs&&this.lt.md,this.md=this.gt.sm&&this.lt.lg,this.lg=this.gt.md&&this.lt.xl,this.xl=this.gt.lg,r=this.xs&&`xs`||this.sm&&`sm`||this.md&&`md`||this.lg&&`lg`||`xl`,r!==this.name&&(o&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${r}`)),this.name=r)};let s,c={},l=16;this.setSizes=e=>{Ge.forEach(t=>{e[t]!==void 0&&(c[t]=e[t])})},this.setDebounce=e=>{l=e};let u=()=>{let e=getComputedStyle(document.body);e.getPropertyValue(`--q-size-sm`)&&Ge.forEach(t=>{this.sizes[t]=Number.parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=e=>{Ge.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)},this.setDebounce=e=>{s!==void 0&&r.removeEventListener(`resize`,s,Ke),s=e>0?Me(this.__update,e):this.__update,r.addEventListener(`resize`,s,Ke)},this.setDebounce(l),Object.keys(c).length===0?this.__update():(this.setSizes(c),c=void 0),o&&this.name===`xs`&&document.body.classList.add(`screen--xs`)};be.value?t.push(u):u()}}),H=ie({isActive:!1,mode:!1},{__media:void 0,set(e){H.mode=e,e===`auto`?(H.__media===void 0&&(H.__media=window.matchMedia(`(prefers-color-scheme: dark)`),H.__updateMedia=()=>{H.set(`auto`)},H.__media.addListener(H.__updateMedia)),e=H.__media.matches):H.__media!==void 0&&(H.__media.removeListener(H.__updateMedia),H.__media=void 0),H.isActive=e===!0,document.body.classList.remove(`body--${e===!0?`light`:`dark`}`),document.body.classList.add(`body--${e===!0?`dark`:`light`}`)},toggle(){H.set(!H.isActive)},install({$q:e,ssrContext:t}){let n=e.config.dark;e.dark=this,this.__installed||this.set(n!==void 0&&n)}});function Je(e,t,n=document.body){if(typeof e!=`string`)throw TypeError(`Expected a string as propName`);if(typeof t!=`string`)throw TypeError(`Expected a string as value`);if(!(n instanceof Element))throw TypeError(`Expected a DOM element`);n.style.setProperty(`--q-${e}`,t)}function Ye(e){if(e.ios)return`ios`;if(e.android)return`android`}function Xe({is:e,has:t,within:n},r){let i=[e.desktop?`desktop`:`mobile`,`${t.touch?``:`no-`}touch`];if(e.mobile){let t=Ye(e);t!==void 0&&i.push(`platform-`+t)}if(e.nativeMobile){let t=e.nativeMobileWrapper,n=r[t];i.push(t,`native-mobile`),e.ios&&(n===void 0||n.iosStatusBarPadding)?i.push(`q-ios-padding`):e.android&&(n===void 0||n.androidStatusBarPadding!==!1)&&i.push(`q-safe-area-padding`)}else e.electron?i.push(`electron`):e.bex&&i.push(`bex`);return n.iframe&&i.push(`within-iframe`),i}function Ze(){let{is:e}=V,t=document.body.className,n=new Set(t.replaceAll(/ {2}/g,` `).split(` `));if(!e.nativeMobile&&!e.electron&&!e.bex){if(e.desktop)n.delete(`mobile`),n.delete(`platform-ios`),n.delete(`platform-android`),n.add(`desktop`);else if(e.mobile){n.delete(`desktop`),n.add(`mobile`),n.delete(`platform-ios`),n.delete(`platform-android`);let t=Ye(e);t!==void 0&&n.add(`platform-${t}`)}}V.has.touch&&(n.delete(`no-touch`),n.add(`touch`)),V.within.iframe&&n.add(`within-iframe`);let r=[...n].join(` `);t!==r&&(document.body.className=r)}function Qe(e){for(let t in e)Je(t,e[t])}var $e={install(e){if(!this.__installed){if(be.value)Ze();else{let{$q:t}=e;t.config.brand!==void 0&&Qe(t.config.brand),document.body.classList.add(...Xe(V,t.config))}V.is.ios&&document.body.addEventListener(`touchstart`,F),window.addEventListener(`keydown`,je,!0)}}},et=()=>!0;function tt(e){return typeof e==`string`&&e!==``&&e!==`/`&&e!==`#/`}function nt(e){return e.startsWith(`#`)&&(e=e.slice(1)),e.startsWith(`/`)||(e=`/`+e),e.endsWith(`/`)&&(e=e.slice(0,-1)),`#`+e}function rt(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit===`*`)return et;let t=[`#/`];return Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(tt).map(nt)),()=>t.includes(window.location.hash)}var it={__history:[],add:F,remove:F,install({$q:e}){if(this.__installed)return;let{cordova:t,capacitor:n}=V.is;if(!t&&!n)return;let r=e.config[t?`cordova`:`capacitor`];if(r?.backButton===!1||n&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=e=>{e.condition===void 0&&(e.condition=et),this.__history.push(e)},this.remove=e=>{let t=this.__history.indexOf(e);t!==-1&&this.__history.splice(t,1)};let i=rt({backButtonExit:!0,...r}),a=()=>{if(this.__history.length!==0){let e=this.__history.at(-1);e.condition()&&(this.__history.pop(),e.handler())}else i()?navigator.app.exitApp():window.history.back()};t?document.addEventListener(`deviceready`,()=>{document.addEventListener(`backbutton`,a,!1)}):window.Capacitor.Plugins.App.addListener(`backButton`,a)}},at={isoName:`en-US`,nativeName:`English (US)`,label:{clear:`Clear`,ok:`OK`,cancel:`Cancel`,close:`Close`,set:`Set`,select:`Select`,reset:`Reset`,remove:`Remove`,update:`Update`,create:`Create`,search:`Search`,filter:`Filter`,refresh:`Refresh`,expand:e=>e?`Expand "${e}"`:`Expand`,collapse:e=>e?`Collapse "${e}"`:`Collapse`},date:{days:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),daysShort:`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),monthsShort:`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),firstDayOfWeek:0,format24h:!1,pluralDay:`days`,prevMonth:`Previous month`,nextMonth:`Next month`,prevYear:`Previous year`,nextYear:`Next year`,today:`Today`,prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:`No data available`,noResults:`No matching records found`,loading:`Loading...`,selectedRecords:e=>e===1?`1 record selected.`:(e===0?`No`:e)+` records selected.`,recordsPerPage:`Records per page:`,allRows:`All`,pagination:(e,t,n)=>e+`–`+t+` of `+n,columns:`Columns`},pagination:{first:`First page`,prev:`Previous page`,next:`Next page`,last:`Last page`},editor:{url:`URL`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,underline:`Underline`,unorderedList:`Unordered List`,orderedList:`Ordered List`,subscript:`Subscript`,superscript:`Superscript`,hyperlink:`Hyperlink`,toggleFullscreen:`Toggle Fullscreen`,quote:`Quote`,left:`Left align`,center:`Center align`,right:`Right align`,justify:`Justify align`,print:`Print`,outdent:`Decrease indentation`,indent:`Increase indentation`,removeFormat:`Remove formatting`,formatting:`Formatting`,fontSize:`Font Size`,align:`Align`,hr:`Insert Horizontal Rule`,undo:`Undo`,redo:`Redo`,heading1:`Heading 1`,heading2:`Heading 2`,heading3:`Heading 3`,heading4:`Heading 4`,heading5:`Heading 5`,heading6:`Heading 6`,paragraph:`Paragraph`,code:`Code`,size1:`Very small`,size2:`A bit small`,size3:`Normal`,size4:`Medium-large`,size5:`Big`,size6:`Very big`,size7:`Maximum`,defaultFont:`Default Font`,viewSource:`View Source`},tree:{noNodes:`No nodes available`,noResults:`No matching nodes found`}};function ot(){let e=Array.isArray(navigator.languages)&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e==`string`)return e.split(/[-_]/).map((e,t)=>t===0?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join(`-`)}var st=ie({__qLang:{}},{getLocale:ot,set(e=at,t){let n={...e,rtl:e.rtl===!0,getLocale:ot};if(n.set=st.set,st.__langConfig===void 0||!st.__langConfig.noHtmlAttrs){let e=document.documentElement;e.setAttribute(`dir`,n.rtl?`rtl`:`ltr`),e.setAttribute(`lang`,n.isoName)}Object.assign(st.__qLang,n)},install({$q:e,lang:t,ssrContext:n}){e.lang=st.__qLang,st.__langConfig=e.config.lang,this.__installed?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get:Reflect.get,ownKeys(e){return Reflect.ownKeys(e).filter(e=>e!==`set`&&e!==`getLocale`)}}),this.set(t||at))}}),ct={name:`material-icons`,type:{positive:`check_circle`,negative:`warning`,info:`info`,warning:`priority_high`},arrow:{up:`arrow_upward`,right:`arrow_forward`,down:`arrow_downward`,left:`arrow_back`,dropdown:`arrow_drop_down`},chevron:{left:`chevron_left`,right:`chevron_right`},colorPicker:{spectrum:`gradient`,tune:`tune`,palette:`style`},pullToRefresh:{icon:`refresh`},carousel:{left:`chevron_left`,right:`chevron_right`,up:`keyboard_arrow_up`,down:`keyboard_arrow_down`,navigationIcon:`lens`},chip:{remove:`cancel`,selected:`check`},datetime:{arrowLeft:`chevron_left`,arrowRight:`chevron_right`,now:`access_time`,today:`today`},editor:{bold:`format_bold`,italic:`format_italic`,strikethrough:`strikethrough_s`,underline:`format_underlined`,unorderedList:`format_list_bulleted`,orderedList:`format_list_numbered`,subscript:`vertical_align_bottom`,superscript:`vertical_align_top`,hyperlink:`link`,toggleFullscreen:`fullscreen`,quote:`format_quote`,left:`format_align_left`,center:`format_align_center`,right:`format_align_right`,justify:`format_align_justify`,print:`print`,outdent:`format_indent_decrease`,indent:`format_indent_increase`,removeFormat:`format_clear`,formatting:`text_format`,fontSize:`format_size`,align:`format_align_left`,hr:`remove`,undo:`undo`,redo:`redo`,heading:`format_size`,code:`code`,size:`format_size`,font:`font_download`,viewSource:`code`},expansionItem:{icon:`keyboard_arrow_down`,denseIcon:`arrow_drop_down`},fab:{icon:`add`,activeIcon:`close`},field:{clear:`cancel`,error:`error`},pagination:{first:`first_page`,prev:`keyboard_arrow_left`,next:`keyboard_arrow_right`,last:`last_page`},rating:{icon:`grade`},stepper:{done:`check`,active:`edit`,error:`warning`},tabs:{left:`chevron_left`,right:`chevron_right`,up:`keyboard_arrow_up`,down:`keyboard_arrow_down`},table:{arrowUp:`arrow_upward`,warning:`warning`,firstPage:`first_page`,prevPage:`chevron_left`,nextPage:`chevron_right`,lastPage:`last_page`},tree:{icon:`play_arrow`},uploader:{done:`done`,clear:`clear`,add:`add_box`,upload:`cloud_upload`,removeQueue:`clear_all`,removeUploaded:`done_all`}},lt=ie({iconMapFn:null,__qIconSet:{}},{set(e,t){let n={...e};n.set=lt.set,Object.assign(lt.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,we(e,`iconMapFn`,()=>this.iconMapFn,e=>{this.iconMapFn=e}),this.__installed?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get:Reflect.get,ownKeys(e){return Reflect.ownKeys(e).filter(e=>e!==`set`)}}),this.set(t||ct))}});function ut(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;let n,r;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ut(e[r],t[r]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let n=e.entries();for(r=n.next();!r.done;){if(!t.has(r.value[0]))return!1;r=n.next()}for(n=e.entries(),r=n.next();!r.done;){if(!ut(r.value[1],t.get(r.value[0])))return!1;r=n.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;let n=e.entries();for(r=n.next();!r.done;){if(!t.has(r.value[0]))return!1;r=n.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let i=Object.keys(e).filter(t=>e[t]!==void 0);if(n=i.length,n!==Object.keys(t).filter(e=>t[e]!==void 0).length)return!1;for(r=n;r--!==0;){let n=i[r];if(!ut(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function U(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function dt(e){return typeof e==`number`&&Number.isFinite(e)}var ft=[pe,$e,H,qe,it,st,lt];function pt(e,t){let n=k(e);n.config.globalProperties=t.config.globalProperties;let{reload:r,...i}=t._context;return Object.assign(n._context,i),n}function mt(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function ht(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(`_q_`,n.$q),mt(n,ft),t.components!==void 0&&Object.values(t.components).forEach(t=>{U(t)&&t.name!==void 0&&e.component(t.name,t)}),t.directives!==void 0&&Object.values(t.directives).forEach(t=>{U(t)&&t.name!==void 0&&e.directive(t.name,t)}),t.plugins!==void 0&&mt(n,Object.values(t.plugins).filter(e=>typeof e.install==`function`&&!ft.includes(e))),be.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(e=>{e()}),n.$q.onSSRHydrated=()=>{}})}var gt={name:`Quasar`,version:`2.24.0`,install:function(e,t={}){let n={version:`2.24.0`};ge?n.config=t.config||{}:(t.config!==void 0&&Object.assign(ae,t.config),n.config={...ae},_e()),ht(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},lang:st,iconSet:lt},W=B({name:`QCardSection`,props:{tag:{type:String,default:`div`},horizontal:Boolean},setup(e,{slots:t}){let n=d(()=>`q-card__section q-card__section--${e.horizontal?`horiz row no-wrap`:`vert`}`);return()=>M(e.tag,{class:n.value},z(t.default))}}),_t={xs:2,sm:4,md:6,lg:10,xl:14};function vt(e){return{transform:`scale3d(${e},1,1)`}}var yt=B({name:`QLinearProgress`,props:{...Ne,...L,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){let{proxy:n}=j(),r=Pe(e,n.$q),i=P(e,_t),a=d(()=>e.indeterminate||e.query),o=d(()=>({...i.value===null?{}:i.value,"--q-linear-progress-speed":`${e.animationSpeed}ms`})),s=d(()=>`q-linear-progress`+(e.color===void 0?``:` text-${e.color}`)+(e.reverse||e.query?` q-linear-progress--reverse`:``)+(e.rounded?` rounded-borders`:``)),c=d(()=>vt(e.buffer===void 0?1:e.buffer)),l=d(()=>`with${e.instantFeedback?`out`:``}-transition`),u=d(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${l.value} q-linear-progress__track--${r.value?`dark`:`light`}`+(e.trackColor===void 0?``:` bg-${e.trackColor}`)),f=d(()=>vt(a.value?1:e.value)),p=d(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${l.value} q-linear-progress__model--${a.value?`in`:``}determinate`),m=d(()=>({width:`${e.value*100}%`})),h=d(()=>`q-linear-progress__stripe absolute-${e.reverse?`right`:`left`} q-linear-progress__stripe--${l.value}`);return()=>{let n=[M(`div`,{class:u.value,style:c.value}),M(`div`,{class:p.value,style:f.value})];return e.stripe&&!a.value&&n.push(M(`div`,{class:h.value,style:m.value})),M(`div`,{class:s.value,style:o.value,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate?void 0:e.value},de(t.default,n))}}}),bt=B({name:`QCard`,props:{...Ne,tag:{type:String,default:`div`},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){let{proxy:{$q:n}}=j(),r=Pe(e,n),i=d(()=>`q-card`+(r.value?` q-card--dark q-dark`:``)+(e.bordered?` q-card--bordered`:``)+(e.square?` q-card--square no-border-radius`:``)+(e.flat?` q-card--flat no-shadow`:``));return()=>M(e.tag,{class:i.value},z(t.default))}});function xt(e,t,n){let r;function i(){r!==void 0&&(it.remove(r),r=void 0)}return y(()=>{e.value&&i()}),{removeFromHistory:i,addToHistory(){r={condition:()=>n.value,handler:t},it.add(r)}}}function St(){let e=null,t=j();function n(){e!==null&&(clearTimeout(e),e=null)}return u(n),y(n),{removeTimeout:n,registerTimeout(r,i){n(),Oe(t)||(e=setTimeout(()=>{e=null,r()},i))}}}function Ct(){let e,t=j();function n(){e=void 0}return u(n),y(n),{removeTick:n,registerTick(n){e=n,S(()=>{e===n&&(Oe(t)||e(),e=void 0)})}}}var wt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Tt=[`beforeShow`,`show`,`beforeHide`,`hide`];function Et({showing:e,canShow:t,hideOnRouteChange:n,handleShow:r,handleHide:i,handleRouteChange:a,processOnMount:o}){let s=j(),{props:c,emit:l,proxy:u}=s,d;function f(t){e.value?h(t):p(t)}function p(e){if(c.disable||e?.qAnchorHandled===!0||t!==void 0&&!t(e))return;let n=c[`onUpdate:modelValue`]!==void 0;n&&(l(`update:modelValue`,!0),d=e,S(()=>{d===e&&(d=void 0)})),(c.modelValue===null||!n)&&m(e)}function m(t){e.value||(e.value=!0,l(`beforeShow`,t),r===void 0?l(`show`,t):r(t))}function h(e){if(c.disable)return;let t=c[`onUpdate:modelValue`]!==void 0;t&&(l(`update:modelValue`,!1),d=e,S(()=>{d===e&&(d=void 0)})),(c.modelValue===null||!t)&&g(e)}function g(t){e.value&&(e.value=!1,l(`beforeHide`,t),i===void 0?l(`hide`,t):i(t))}function _(t){c.disable&&t?c[`onUpdate:modelValue`]!==void 0&&l(`update:modelValue`,!1):t===!0!==e.value&&(t?m:g)(d)}O(()=>c.modelValue,_),n!==void 0&&ue(s)&&O(()=>u.$route.fullPath,()=>{n.value&&e.value&&(a?.(),h())}),o&&v(()=>{_(c.modelValue)});let y={show:p,hide:h,toggle:f};return Object.assign(u,y),y}var Dt={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}};function Ot(e,t=()=>{},n=()=>{}){return{transitionProps:d(()=>{let r=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:d(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}var kt=[];function At(e){return kt.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function jt(e,t){do{if(e.$options.name===`QMenu`){if(e.hide(t),e.$props.separateClosePopup)return he(e)}else if(e.__qPortal){let n=he(e);return n?.$options.name===`QPopupProxy`?(e.hide(t),n):e}e=he(e)}while(e!=null)}function Mt(e,t,n){for(;n!==0&&e!=null;){if(e.__qPortal){if(n--,e.$options.name===`QMenu`){e=jt(e,t);continue}e.hide(t)}e=he(e)}}var Nt=[],Pt=[];function Ft(e){Pt=Pt.filter(t=>t!==e)}function It(e){Ft(e),Pt.push(e)}function Lt(e){Ft(e),Pt.length===0&&Nt.length!==0&&(Nt.at(-1)(),Nt=[])}function Rt(e){Pt.length===0?e():Nt.push(e)}function zt(e){Nt=Nt.filter(t=>t!==e)}var Bt=B({name:`QPortal`,setup(e,{slots:t}){return()=>t.default()}});function Vt(e){for(e=e.parent;e!=null;){if(e.type.name===`QGlobalDialog`)return!0;if(e.type.name===`QDialog`||e.type.name===`QMenu`)return!1;e=e.parent}return!1}function Ht(e,t,r,i){let a=n(!1),o=n(!1),s=null,c={},l=i===`dialog`&&Vt(e);function u(t){if(t){Lt(c),o.value=!0;return}o.value=!1,a.value||(!l&&s===null&&(s=Se(!1,i)),a.value=!0,kt.push(e.proxy),It(c))}function d(t){if(o.value=!1,!t)return;Lt(c),a.value=!1;let n=kt.indexOf(e.proxy);n!==-1&&kt.splice(n,1),s!==null&&(ye(s),s=null)}return g(()=>{d(!0)}),e.proxy.__qPortal=!0,we(e.proxy,`contentEl`,()=>t.value),{showPortal:u,hidePortal:d,portalIsActive:a,portalIsAccessible:o,renderPortal:()=>l?r():a.value?[M(b,{to:s},M(Bt,r))]:void 0}}var Ut=[Element,String],Wt=[null,document,document.body,document.scrollingElement,document.documentElement];function Gt(e,t){let n=me(t);if(n===void 0){if(e==null)return window;n=e.closest(`.scroll,.scroll-y,.overflow-auto`)}return Wt.includes(n)?window:n}function Kt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function qt(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Jt(e,t,n=0,r){let i=r===void 0?performance.now():r,a=Kt(e);if(n<=0){a!==t&&Xt(e,t);return}requestAnimationFrame(r=>{let o=r-i,s=a+(t-a)/Math.max(o,n)*o;Xt(e,s),s!==t&&Jt(e,t,n-o,r)})}function Yt(e,t,n=0,r){let i=r===void 0?performance.now():r,a=qt(e);if(n<=0){a!==t&&Zt(e,t);return}requestAnimationFrame(r=>{let o=r-i,s=a+(t-a)/Math.max(o,n)*o;Zt(e,s),s!==t&&Yt(e,t,n-o,r)})}function Xt(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Zt(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Qt(e,t,n){if(n){Jt(e,t,n);return}Xt(e,t)}function $t(e,t,n){if(n){Yt(e,t,n);return}Zt(e,t)}var en;function tn(){if(en!==void 0)return en;let e=document.createElement(`p`),t=document.createElement(`div`);fe(e,{width:`100%`,height:`200px`}),fe(t,{position:`absolute`,top:`0px`,left:`0px`,visibility:`hidden`,width:`200px`,height:`150px`,overflow:`hidden`}),t.append(e),document.body.append(t);let n=e.offsetWidth;t.style.overflow=`scroll`;let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),en=n-r,en}var nn=0,rn,an,on,sn=!1,cn,ln,un,dn=null;function fn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function pn(e){sn||(sn=!0,requestAnimationFrame(()=>{sn=!1;let{height:t}=e.target,{clientHeight:n,scrollTop:r}=document.scrollingElement;(on===void 0||t!==window.innerHeight)&&(on=n-t,document.scrollingElement.scrollTop=r),r>on&&(document.scrollingElement.scrollTop-=Math.ceil((r-on)/8))}))}function mn(e){let t=document.body,n=window.visualViewport!==void 0;if(e===`add`){let{overflowY:e,overflowX:r}=window.getComputedStyle(t);rn=qt(window),an=Kt(window),cn=t.style.left,ln=t.style.top,un=window.location.pathname,t.style.left=`-${rn}px`,t.style.top=`-${an}px`,r!==`hidden`&&(r===`scroll`||t.scrollWidth>window.innerWidth)&&t.classList.add(`q-body--force-scrollbar-x`),e!==`hidden`&&(e===`scroll`||t.scrollHeight>window.innerHeight)&&t.classList.add(`q-body--force-scrollbar-y`),document.documentElement.classList.add(`q-document--prevent-scroll`),document.qScrollPrevented=!0,V.is.ios&&(n?(window.scrollTo(0,0),window.visualViewport.addEventListener(`resize`,pn,se.passiveCapture),window.visualViewport.addEventListener(`scroll`,pn,se.passiveCapture),window.scrollTo(0,0)):window.addEventListener(`scroll`,fn,se.passiveCapture))}else V.is.ios&&(n?(window.visualViewport.removeEventListener(`resize`,pn,se.passiveCapture),window.visualViewport.removeEventListener(`scroll`,pn,se.passiveCapture)):window.removeEventListener(`scroll`,fn,se.passiveCapture)),document.documentElement.classList.remove(`q-document--prevent-scroll`),t.classList.remove(`q-body--force-scrollbar-x`,`q-body--force-scrollbar-y`),document.qScrollPrevented=!1,t.style.left=cn,t.style.top=ln,window.location.pathname===un&&window.scrollTo(rn,an),on=void 0}function hn(e){let t=`add`;if(e===!0){if(nn++,dn!==null){clearTimeout(dn),dn=null;return}if(nn>1)return}else{if(nn===0||(nn--,nn>0))return;if(t=`remove`,V.is.ios&&V.is.nativeMobile){dn!==null&&clearTimeout(dn),dn=setTimeout(()=>{mn(t),dn=null},100);return}}mn(t)}function gn(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t)&&(e=t,hn(t))}}}var _n=[],vn;function yn(e){e.keyCode===27&&(vn=!0)}function bn(){vn&&=!1}function xn(e){vn&&R(e,27)&&(vn=!1,_n.at(-1)(e))}function Sn(e){window[e](`keydown`,yn),window[e](`blur`,bn),window[e](`keyup`,xn),vn=!1}function Cn(e){V.is.desktop&&(_n.push(e),_n.length===1&&Sn(`addEventListener`))}function wn(e){let t=_n.indexOf(e);t!==-1&&(_n.splice(t,1),_n.length===0&&Sn(`removeEventListener`))}var Tn=[];function En(e){Tn.at(-1)(e)}function Dn(e){V.is.desktop&&(Tn.push(e),Tn.length===1&&document.body.addEventListener(`focusin`,En))}function On(e){let t=Tn.indexOf(e);t!==-1&&(Tn.splice(t,1),Tn.length===0&&document.body.removeEventListener(`focusin`,En))}var kn=new Map;function An(e){for(let[t,n]of kn)if(n.$el.contains(e)===!0)return t}function jn(e,t){if(e==null)return!1;let n=new Set;for(let r=An(t);r!==void 0&&n.has(r)===!1;r=An(r)){if(De(e,r)===!0)return!0;n.add(r)}return!1}var Mn=0,Nn={standard:`fixed-full flex-center`,top:`fixed-top justify-center`,bottom:`fixed-bottom justify-center`,right:`fixed-right items-center`,left:`fixed-left items-center`},Pn={standard:[`scale`,`scale`],top:[`slide-down`,`slide-up`],bottom:[`slide-up`,`slide-down`],right:[`slide-left`,`slide-right`],left:[`slide-right`,`slide-left`]},Fn=B({name:`QDialog`,inheritAttrs:!1,props:{...wt,...Dt,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:`standard`,validator:e=>[`standard`,`top`,`bottom`,`left`,`right`].includes(e)}},emits:[...Tt,`shake`,`click`,`escapeKey`],setup(e,{slots:t,emit:r,attrs:i}){let a=j(),o=n(null),s=n(!1),c=n(!1),l=null,u=null,f=!1,p=!1,m=d(()=>!e.persistent&&!e.noRouteDismiss&&!e.seamless),{preventBodyScroll:h}=gn(),{registerTimeout:g}=St(),{registerTick:_,removeTick:v}=Ct(),{transitionProps:b,transitionStyle:x}=Ot(e,()=>Pn[e.position][0],()=>Pn[e.position][1]),S=d(()=>x.value+(e.backdropFilter===void 0?``:`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)),{showPortal:C,hidePortal:w,portalIsAccessible:T,renderPortal:E}=Ht(a,o,B,`dialog`),{hide:D}=Et({showing:s,hideOnRouteChange:m,handleShow:ie,handleHide:ae,handleRouteChange:oe,processOnMount:!0}),{addToHistory:k,removeFromHistory:A}=xt(s,D,m),ee=d(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized?`maximized`:`minimized`} q-dialog__inner--${e.position} ${Nn[e.position]}`+(c.value?` q-dialog__inner--animating`:``)+(e.fullWidth?` q-dialog__inner--fullwidth`:``)+(e.fullHeight?` q-dialog__inner--fullheight`:``)+(e.square?` q-dialog__inner--square`:``)),N=d(()=>s.value&&!e.seamless),ne=d(()=>e.autoClose?{onClick:se}:{}),re=d(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${N.value?`modal`:`seamless`}`,i.class]);O(()=>e.maximized,e=>{s.value&&R(e)}),O(N,e=>{h(e),e?(Dn(le),Cn(I)):(On(le),wn(I))});function ie(t){k(),u=!e.noRefocus&&document.activeElement!==null?document.activeElement:null,R(e.maximized),C(),c.value=!0,e.noFocus?v():(document.activeElement?.blur(),_(P)),g(()=>{if(a.proxy.$q.platform.is.ios){if(!e.seamless&&document.activeElement){let{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,r=window.visualViewport===void 0?n:window.visualViewport.height;e>0&&t>r/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-r,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-r/2))),document.activeElement.scrollIntoView()}p=!0,o.value.click(),p=!1}C(!0),c.value=!1,r(`show`,t)},e.transitionDuration)}function ae(t){if(v(),A(),L(!0),c.value=!0,w(),u!==null){let e=(t?.type.indexOf(`key`)===0?u.closest(`[tabindex]:not([tabindex^="-"])`):void 0)||u;u=null,Rt(()=>{e.isConnected&&e.focus({preventScroll:!0})})}g(()=>{w(!0),c.value=!1,r(`hide`,t)},e.transitionDuration)}function oe(){u=null}function P(e){Rt(()=>{let t=o.value;if(t!==null){if(e!==void 0){let n=t.querySelector(e);if(n!==null){n.focus({preventScroll:!0});return}}t.contains(document.activeElement)||(t=t.querySelector(`[autofocus][tabindex], [data-autofocus][tabindex]`)||t.querySelector(`[autofocus] [tabindex], [data-autofocus] [tabindex]`)||t.querySelector(`[autofocus], [data-autofocus]`)||t,t.focus({preventScroll:!0}))}})}function F(e){e&&typeof e.focus==`function`?e.focus({preventScroll:!0}):P(),r(`shake`);let t=o.value;t!==null&&(t.classList.remove(`q-animate--scale`),t.classList.add(`q-animate--scale`),l!==null&&clearTimeout(l),l=setTimeout(()=>{l=null,o.value!==null&&(t.classList.remove(`q-animate--scale`),P())},170))}function I(){e.seamless||(e.persistent||e.noEscDismiss?!e.maximized&&!e.noShake&&F():(r(`escapeKey`),D()))}function L(t){l!==null&&(clearTimeout(l),l=null),(t||s.value)&&(R(!1),e.seamless||(h(!1),On(le),wn(I))),t||(u=null)}function R(e){e?f||=(Mn<1&&document.body.classList.add(`q-body--dialog`),Mn++,!0):f&&=(Mn<2&&document.body.classList.remove(`q-body--dialog`),Mn--,!1)}function se(e){p||(D(e),r(`click`,e))}function ce(t){!e.persistent&&!e.noBackdropDismiss?D(t):e.noShake||F()}function le(t){!e.allowFocusOutside&&T.value&&!De(o.value,t.target)&&!jn(o.value,t.target)&&P(`[tabindex]:not([tabindex="-1"])`)}Object.assign(a.proxy,{focus:P,shake:F,__updateRefocusTarget(e){u=e||null}}),y(L);function B(){return M(`div`,{role:`dialog`,"aria-modal":N.value?`true`:`false`,...i,class:re.value},[M(te,{name:`q-transition--fade`,appear:!0},()=>N.value?M(`div`,{class:`q-dialog__backdrop fixed-full`,style:S.value,"aria-hidden":`true`,onClick:ce}):null),M(te,b.value,()=>s.value?M(`div`,{ref:o,class:ee.value,style:x.value,tabindex:-1,...ne.value},z(t.default)):null)])}return E}});function In(e){"@babel/helpers - typeof";return In=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},In(e)}function Ln(e,t){if(In(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(In(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rn(e){var t=Ln(e,`string`);return In(t)==`symbol`?t:t+``}function zn(e,t,n){return(t=Rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=Fe(`migration`,()=>{let e=n({state:`idle`});async function t(){try{let t=await fetch(`/api/migration/status`);if(!t.ok)return;e.value=await t.json()}catch{}}function r(t){e.value={...t}}return{status:e,fetchInitial:t,update:r}}),Vn={class:`text-h6`},Hn={class:`text-h6`},Un={class:`text-h6 text-negative`},Wn={class:`q-mt-sm`},Gn={key:0,class:`q-mt-md text-caption`},Kn={class:`q-mt-md text-caption`},qn=c({__name:`MigrationOverlay`,setup(e){let{t:n}=ne(),r=Bn(),i=d(()=>[`backing-up`,`running`,`error`].includes(r.status.state));return v(()=>{r.fetchInitial()}),(e,a)=>(x(),h(Fn,{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,persistent:``,"no-backdrop-dismiss":``},{default:D(()=>[E(bt,{style:{"min-width":`400px`}},{default:D(()=>[t(r).status.state===`backing-up`?(x(),h(W,{key:0},{default:D(()=>[w(`div`,Vn,o(t(n)(`migration.backing_up`)),1),E(ke,{class:`q-mt-md`})]),_:1})):t(r).status.state===`running`?(x(),h(W,{key:1},{default:D(()=>[w(`div`,Hn,o(t(n)(`migration.running`,{processed:t(r).status.processed,total:t(r).status.total})),1),E(yt,{value:t(r).status.total>0?t(r).status.processed/t(r).status.total:0,class:`q-mt-md`},null,8,[`value`])]),_:1})):t(r).status.state===`error`?(x(),h(W,{key:2},{default:D(()=>[w(`div`,Un,o(t(n)(`migration.error`)),1),w(`div`,Wn,o(t(r).status.errorMessage),1),t(r).status.backupPath?(x(),T(`div`,Gn,o(t(n)(`migration.backup_location`,{path:t(r).status.backupPath})),1)):C(``,!0),w(`div`,Kn,o(t(n)(`migration.retry`)),1)]),_:1})):C(``,!0)]),_:1})]),_:1},8,[`modelValue`]))}});function Jn(){if(typeof crypto>`u`)return()=>{throw Error(`[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.`)};if(crypto.randomUUID)return()=>crypto.randomUUID();let e=Array.from({length:256},(e,t)=>(t+256).toString(16).slice(1)),t,n;return()=>{(t===void 0||n+16>4096)&&(n=0,t=new Uint8Array(4096),crypto.getRandomValues(t));let r=n;return n+=16,t[r+6]=t[r+6]&15|64,t[r+8]=t[r+8]&63|128,e[t[r]]+e[t[r+1]]+e[t[r+2]]+e[t[r+3]]+`-`+e[t[r+4]]+e[t[r+5]]+`-`+e[t[r+6]]+e[t[r+7]]+`-`+e[t[r+8]]+e[t[r+9]]+`-`+e[t[r+10]]+e[t[r+11]]+e[t[r+12]]+e[t[r+13]]+e[t[r+14]]+e[t[r+15]]}}var Yn=Jn();function Xn(e){return e??null}function Zn(e,t){return e??(t?`f_${Yn()}`:null)}function Qn({getValue:e,required:t=!0}={}){if(be.value){let r=n(e===void 0?null:Xn(e()));return t&&r.value===null&&v(()=>{r.value=`f_${Yn()}`}),e!==void 0&&O(e,e=>{r.value=Zn(e,t)}),r}return e===void 0?n(`f_${Yn()}`):d(()=>Zn(e(),t))}var $n=/^on[A-Z]/;function er(){let e=j(),{attrs:t}=e,r={listeners:n({}),attributes:n({})};function i(){let n={},i={};for(let e in t)e!==`class`&&e!==`style`&&!$n.test(e)&&(n[e]=t[e]);for(let t in e.vnode.props)$n.test(t)&&(i[t]=e.vnode.props[t]);r.attributes.value=n,r.listeners.value=i}return A(i),i(),r}function tr({validate:e,resetValidation:t,requiresQForm:n}){let r=N(I,!1);if(r!==!1){let{props:n,proxy:i}=j();Object.assign(i,{validate:e,resetValidation:t}),O(()=>n.disable,e=>{e?(typeof t==`function`&&t(),r.unbindComponent(i)):r.bindComponent(i)}),v(()=>{n.disable||r.bindComponent(i)}),y(()=>{n.disable||r.unbindComponent(i)})}else n&&console.error(`Parent QForm not found on useFormChild()!`)}var nr=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,rr=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,ir=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ar=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,or=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0(\.[\d]+)?|1(\.0+)?)\)$/,sr=/^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/,cr=/^([0-1]?\d|2[0-3]):[0-5]\d$/,lr=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,ur=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,dr=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,fr={date:e=>sr.test(e),time:e=>cr.test(e),fulltime:e=>lr.test(e),timeOrFulltime:e=>ur.test(e),email:e=>dr.test(e),hexColor:e=>nr.test(e),hexaColor:e=>rr.test(e),hexOrHexaColor:e=>ir.test(e),rgbColor:e=>ar.test(e),rgbaColor:e=>or.test(e),rgbOrRgbaColor:e=>ar.test(e)||or.test(e),hexOrRgbColor:e=>nr.test(e)||ar.test(e),hexaOrRgbaColor:e=>rr.test(e)||or.test(e),anyColor:e=>ir.test(e)||ar.test(e)||or.test(e)},pr=[!0,!1,`ondemand`],mr={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>pr.includes(e)}};function hr(e,t){let{props:r,proxy:i}=j(),a=n(!1),o=n(null),s=n(!1);tr({validate:_,resetValidation:g});let c=0,l,u=d(()=>r.rules!==void 0&&r.rules!==null&&r.rules.length!==0),f=d(()=>!r.disable&&u.value&&!t.value),p=d(()=>r.error===!0||a.value),m=d(()=>typeof r.errorMessage==`string`&&r.errorMessage.length!==0?r.errorMessage:o.value);O(()=>r.modelValue,()=>{s.value=!0,f.value&&r.lazyRules===!1&&v()});function h(){r.lazyRules!==`ondemand`&&f.value&&s.value&&v()}O(()=>r.reactiveRules,e=>{e?l===void 0&&(l=O(()=>r.rules,h,{immediate:!0,deep:!0})):l!==void 0&&(l(),l=void 0)},{immediate:!0}),O(()=>r.lazyRules,h),O(e,e=>{e?s.value=!0:f.value&&r.lazyRules!==`ondemand`&&v()});function g(){c++,t.value=!1,s.value=!1,a.value=!1,o.value=null,v.cancel()}function _(e=r.modelValue){if(r.disable||!u.value)return!0;let n=++c,i=t.value?()=>{}:()=>{s.value=!0},l=(e,n)=>{e&&i(),a.value=e,o.value=n||null,t.value=!1},d=[];for(let t=0;t<r.rules.length;t++){let n=r.rules[t],i;if(typeof n==`function`?i=n(e,fr):typeof n==`string`&&(fr[n]===void 0?(console.error(`Unknown validation pattern rule: "${n}"`),i=!1):i=fr[n](e)),i===!1||typeof i==`string`)return l(!0,i),!1;i!==!0&&i!==void 0&&d.push(i)}return d.length===0?(l(!1),!0):(t.value=!0,Promise.all(d).then(e=>{if(e===void 0||!Array.isArray(e)||e.length===0)return n===c&&l(!1),!0;let t=e.find(e=>e===!1||typeof e==`string`);return n===c&&l(t!==void 0,t),t===void 0},e=>(n===c&&(console.error(e),l(!0)),!1)))}let v=Me(_,0);return y(()=>{l?.(),v.cancel()}),Object.assign(i,{resetValidation:g,validate:_}),we(i,`hasError`,()=>p.value),{isDirtyModel:s,hasRules:u,hasError:p,errorMessage:m,validate:_,resetValidation:g}}function gr(e){return e!=null&&String(e).length!==0}var _r={...Ne,...mr,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},vr=[`update:modelValue`,`clear`,`focus`,`blur`];function yr({requiredForAttr:e=!0,tagProp:t,changeEvent:r=!1}={}){let{props:i,proxy:a}=j(),o=Pe(i,a.$q),s=Qn({required:e,getValue:()=>i.for});return{requiredForAttr:e,changeEvent:r,tag:t?d(()=>i.tag):{value:`label`},isDark:o,editable:d(()=>!i.disable&&!i.readonly),innerLoading:n(!1),focused:n(!1),hasPopupOpen:!1,splitAttrs:er(),targetUid:s,rootRef:n(null),targetRef:n(null),controlRef:n(null)}}function br(e,t){return t===null?null:M(`div`,{key:e,class:`q-field__append q-field__marginal row no-wrap items-center q-anchor--skip`},t)}function xr(e){let{props:t,emit:n,slots:r,attrs:i,proxy:a}=j(),{$q:o}=a,s=null;e.hasValue===void 0&&(e.hasValue=d(()=>gr(t.modelValue))),e.emitValue===void 0&&(e.emitValue=e=>{n(`update:modelValue`,e)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:ee,onFocusout:N}),Object.assign(e,{clearValue:ne,onControlFocusin:ee,onControlFocusout:N,focus:k}),e.computedCounter===void 0&&(e.computedCounter=d(()=>{if(t.counter){let e=typeof t.modelValue==`string`||typeof t.modelValue==`number`?String(t.modelValue).length:Array.isArray(t.modelValue)?t.modelValue.length:0,n=t.maxlength===void 0?t.maxValues:t.maxlength;return e+(n===void 0?``:` / `+n)}}));let{isDirtyModel:c,hasRules:l,hasError:f,errorMessage:p,resetValidation:h}=hr(e.focused,e.innerLoading),g=e.floatingLabel===void 0?d(()=>t.stackLabel||e.focused.value||e.hasValue.value):d(()=>t.stackLabel||e.focused.value||e.floatingLabel.value),_=d(()=>t.bottomSlots||t.hint!==void 0||l.value||t.counter||t.error!==null),b=d(()=>t.filled?`filled`:t.outlined?`outlined`:t.borderless?`borderless`:t.standout?`standout`:`standard`),x=d(()=>`q-field row no-wrap items-start q-field--${b.value}`+(e.fieldClass===void 0?``:` ${e.fieldClass.value}`)+(t.rounded?` q-field--rounded`:``)+(t.square?` q-field--square`:``)+(g.value?` q-field--float`:``)+(w.value?` q-field--labeled`:``)+(t.dense?` q-field--dense`:``)+(t.itemAligned?` q-field--item-aligned q-item-type`:``)+(e.isDark.value?` q-field--dark`:``)+(e.getControl===void 0?` q-field--auto-height`:``)+(e.focused.value?` q-field--focused`:``)+(f.value?` q-field--error`:``)+(f.value||e.focused.value?` q-field--highlighted`:``)+(!t.hideBottomSpace&&_.value?` q-field--with-bottom`:``)+(t.disable?` q-field--disabled`:t.readonly?` q-field--readonly`:``)),C=d(()=>`q-field__control relative-position row no-wrap`+(t.bgColor===void 0?``:` bg-${t.bgColor}`)+(f.value?` text-negative`:typeof t.standout==`string`&&t.standout.length!==0&&e.focused.value?` ${t.standout}`:t.color===void 0?``:` text-${t.color}`)),w=d(()=>t.labelSlot||t.label!==void 0),T=d(()=>`q-field__label no-pointer-events absolute ellipsis`+(t.labelColor!==void 0&&!f.value?` text-${t.labelColor}`:``)),E=d(()=>we({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:g.value,modelValue:t.modelValue,emitValue:e.emitValue},`field`,()=>e.rootRef.value)),D=d(()=>{let n={};return e.targetUid.value&&(n.for=e.targetUid.value),t.disable&&(n[`aria-disabled`]=`true`),n});function O(){let t=document.activeElement,n=e.targetRef?.value;n&&(t===null||t.id!==e.targetUid.value)&&(n.hasAttribute(`tabindex`)||(n=n.querySelector(`[tabindex]`)),n!==t&&n?.focus({preventScroll:!0}))}function k(){Rt(O)}function A(){zt(O);let t=document.activeElement;t!==null&&e.rootRef.value.contains(t)&&t.blur()}function ee(t){s!==null&&(clearTimeout(s),s=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,n(`focus`,t))}function N(t,r){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()&&(e.hasPopupOpen||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)))&&(e.focused.value&&(e.focused.value=!1,n(`blur`,t)),r?.())},0)}function ne(r){ce(r),o.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(e.targetRef?.value||e.rootRef.value).focus(),t.type===`file`&&(e.inputRef.value.value=null),e.onClear?.(),n(`update:modelValue`,null),e.changeEvent&&n(`change`,null),n(`clear`,t.modelValue),S(()=>{let e=c.value;h(),c.value=e})}function re(e){[13,32].includes(e.keyCode)&&ne(e)}function ie(){let n=[];return r.prepend!==void 0&&n.push(M(`div`,{class:`q-field__prepend q-field__marginal row no-wrap items-center`,key:`prepend`,onClick:Ce},r.prepend())),n.push(M(`div`,{class:`q-field__control-container col relative-position row no-wrap q-anchor--skip`},ae())),f.value&&!t.noErrorIcon&&n.push(br(`error`,[M(ve,{name:o.iconSet.field.error,color:`negative`})])),t.loading||e.innerLoading.value?n.push(br(`inner-loading-append`,r.loading===void 0?[M(ke,{color:t.color})]:r.loading())):t.clearable&&e.hasValue.value&&e.editable.value&&n.push(br(`inner-clearable-append`,[M(ve,{class:`q-field__focusable-action`,name:t.clearIcon||o.iconSet.field.clear,tabindex:0,role:`button`,"aria-hidden":`false`,"aria-label":o.lang.label.clear,onKeyup:re,onClick:ne})])),r.append!==void 0&&n.push(M(`div`,{class:`q-field__append q-field__marginal row no-wrap items-center`,key:`append`,onClick:Ce},r.append())),e.getInnerAppend!==void 0&&n.push(br(`inner-append`,e.getInnerAppend())),e.getControlChild!==void 0&&n.push(e.getControlChild()),n}function ae(){let n=[];return t.prefix!==void 0&&t.prefix!==null&&n.push(M(`div`,{class:`q-field__prefix no-pointer-events row items-center`},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value&&n.push(e.getShadowControl()),w.value&&n.push(M(`div`,{class:T.value},z(r.label,t.label))),e.getControl===void 0?r.rawControl===void 0?r.control!==void 0&&n.push(M(`div`,{ref:e.targetRef,class:`q-field__native row`,tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus||void 0},r.control(E.value))):n.push(r.rawControl()):n.push(e.getControl()),t.suffix!==void 0&&t.suffix!==null&&n.push(M(`div`,{class:`q-field__suffix no-pointer-events row items-center`},t.suffix)),n.concat(z(r.default))}function oe(){let n,i;f.value?p.value===null?(n=z(r.error),i=`q--slot-error`):(n=[M(`div`,{role:`alert`},p.value)],i=`q--slot-error-${p.value}`):(!t.hideHint||e.focused.value)&&(t.hint===void 0?(n=z(r.hint),i=`q--slot-hint`):(n=[M(`div`,t.hint)],i=`q--slot-hint-${t.hint}`));let a=t.counter||r.counter!==void 0;if(t.hideBottomSpace&&!a&&n===void 0)return;let o=M(`div`,{key:i,class:`q-field__messages col`},n);return M(`div`,{class:`q-field__bottom row items-start q-field__bottom--`+(t.hideBottomSpace?`stale`:`animated`),onClick:Ce},[t.hideBottomSpace?o:M(te,{name:`q-transition--field-message`},()=>o),a?M(`div`,{class:`q-field__counter`},r.counter===void 0?e.computedCounter.value:r.counter()):null])}let P=!1;return u(()=>{P=!0}),m(()=>{P&&t.autofocus&&a.focus()}),t.autofocus&&v(()=>{a.focus()}),y(()=>{s!==null&&clearTimeout(s)}),Object.assign(a,{focus:k,blur:A}),function(){let n=e.getControl===void 0&&r.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus||void 0,...D.value}:D.value;return M(e.tag.value,{ref:e.rootRef,class:[x.value,i.class],style:i.style,...n},[r.before===void 0?null:M(`div`,{class:`q-field__before q-field__marginal row no-wrap items-center`,onClick:Ce},r.before()),M(`div`,{class:`q-field__inner relative-position col self-stretch`},[M(`div`,{ref:e.controlRef,class:C.value,tabindex:-1,...e.controlEvents},ie()),_.value?oe():null]),r.after===void 0?null:M(`div`,{class:`q-field__after q-field__marginal row no-wrap items-center`,onClick:Ce},r.after())])}}var Sr={date:`####/##/##`,datetime:`####/##/## ##:##`,time:`##:##`,fulltime:`##:##:##`,phone:`(###) ### - ####`,card:`#### #### #### ####`},{tokenMap:Cr,tokenKeys:wr}=Tr({"#":{pattern:`[\\d]`,negate:`[^\\d]`},S:{pattern:`[a-zA-Z]`,negate:`[^a-zA-Z]`},N:{pattern:`[0-9a-zA-Z]`,negate:`[^0-9a-zA-Z]`},A:{pattern:`[a-zA-Z]`,negate:`[^a-zA-Z]`,transform:e=>e.toLocaleUpperCase()},a:{pattern:`[a-zA-Z]`,negate:`[^a-zA-Z]`,transform:e=>e.toLocaleLowerCase()},X:{pattern:`[0-9a-zA-Z]`,negate:`[^0-9a-zA-Z]`,transform:e=>e.toLocaleUpperCase()},x:{pattern:`[0-9a-zA-Z]`,negate:`[^0-9a-zA-Z]`,transform:e=>e.toLocaleLowerCase()}});function Tr(e){let t=Object.keys(e),n={};return t.forEach(t=>{let r=e[t];n[t]={...r,regex:new RegExp(r.pattern)}}),{tokenMap:n,tokenKeys:t}}function Er(e){return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join(``)+`])|(.)`,`g`)}var Dr=/[.*+?^${}()|[\]\\]/g,Or=Er(wr),G=String.fromCodePoint(1),kr={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function Ar(e,t,r,i){let a,o,s,c,l,u,f=d(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Cr,tokenRegexMask:Or};let{tokenMap:t}=Tr(e.maskTokens),n={...Cr,...t};return{tokenMap:n,tokenRegexMask:Er(Object.keys(n))}}),p=n(null),m=n(g());function h(){return e.autogrow||[`textarea`,`text`,`search`,`url`,`tel`,`password`].includes(e.type)}O(()=>e.type+e.autogrow,v),O(()=>e.mask,n=>{if(n!==void 0)y(m.value,!0);else{let n=D(m.value);v(),e.modelValue!==n&&t(`update:modelValue`,n)}}),O(()=>e.fillMask+e.reverseFillMask,()=>{p.value&&y(m.value,!0)}),O(()=>e.unmaskedValue,()=>{p.value&&y(m.value)}),O(()=>e.maskTokens,()=>{p.value&&y(m.value,!0)},{deep:!0});function g(){if(v(),p.value){let t=T(D(e.modelValue));return e.fillMask===!1?t:k(t)}return e.modelValue}function _(e){if(e<a.length)return a.slice(-e);let t=``,n=a,r=n.indexOf(G);if(r!==-1){for(let r=e-n.length;r>0;r--)t+=G;n=n.slice(0,r)+t+n.slice(r)}return n}function v(){if(p.value=e.mask!==void 0&&e.mask.length!==0&&h(),!p.value){c=void 0,a=``,o=``;return}let t=Sr[e.mask]===void 0?e.mask:Sr[e.mask],n=typeof e.fillMask==`string`&&e.fillMask.length!==0?e.fillMask.slice(0,1):`_`,r=n.replace(Dr,String.raw`\$&`),i=[],l=[],u=[],d=e.reverseFillMask,m=``,g=``;t.replace(f.value.tokenRegexMask,(e,t,n,r,a)=>{if(r!==void 0){let e=f.value.tokenMap[r];u.push(e),g=e.negate,d&&=(l.push(`(?:`+g+`+)?(`+e.pattern+`+)?(?:`+g+`+)?(`+e.pattern+`+)?`),!1),l.push(`(?:`+g+`+)?(`+e.pattern+`)?`);return}if(n!==void 0)m=`\\`+(n===`\\`?``:n),u.push(n);else{let e=t===void 0?a:t;m=e===`\\`?String.raw`\\\\`:e.replace(Dr,String.raw`\\$&`),u.push(e)}i.push(`([^`+m+`]+)?`+m+`?`)});let _=RegExp(`^`+i.join(``)+`(`+(m===``?`.`:`[^`+m+`]`)+`+)?`+(m===``?``:`[`+m+`]*`)+`$`),v=l.length-1,y=l.map((t,n)=>n===0&&e.reverseFillMask?RegExp(`^`+r+`*`+t):RegExp(n===v?`^`+t+`(`+(g===``?`.`:g)+`+)?`+(e.reverseFillMask?`$`:r+`*`):`^`+t));s=u,c=t=>{let n=_.exec(e.reverseFillMask?t:t.slice(0,u.length+1));n!==null&&(t=n.slice(1).join(``));let r=[],i=y.length;for(let e=0,n=t;e<i;e++){let t=y[e].exec(n);if(t===null)break;n=n.slice(t.shift().length),r.push(...t)}return r.length===0?t:r.join(``)},a=u.map(e=>typeof e==`string`?e:G).join(``),o=a.split(G).join(n)}function y(t,n,s){let c=i.value,u=c?.selectionEnd??0,d=c===null?0:c.value.length-u,f=D(t);n===!0&&v();let p=T(f,n),h=e.fillMask===!1?p:k(p),g=m.value!==h;c!==null&&c.value!==h&&(c.value=h),g&&(m.value=h),c!==null&&document.activeElement===c&&S(()=>{if(h===o){let t=e.reverseFillMask?o.length:0;c.setSelectionRange(t,t,`forward`);return}if(s===`insertFromPaste`&&!e.reverseFillMask){let e=c.selectionEnd,t=u-1;for(let n=l;n<=t&&n<e;n++)a[n]!==G&&t++;x.right(c,t);return}if([`deleteContentBackward`,`deleteContentForward`].includes(s)){let t=e.reverseFillMask?u===0?+(h.length>p.length):Math.max(0,h.length-(h===o?0:Math.min(p.length,d)+1))+1:u;c.setSelectionRange(t,t,`forward`);return}if(e.reverseFillMask){if(g){let e=Math.max(0,h.length-(h===o?0:Math.min(p.length,d+1)));e===1&&u===1?c.setSelectionRange(e,e,`forward`):x.rightReverse(c,e)}else{let e=h.length-d;c.setSelectionRange(e,e,`backward`)}}else if(g){let e=Math.max(0,a.indexOf(G),Math.min(p.length,u)-1);x.right(c,e)}else{let e=u-1;x.right(c,e)}});let _=e.unmaskedValue?D(h):h;String(e.modelValue)!==_&&(e.modelValue!==null||_!==``)&&r(_,!0)}function b(e,t,n){let r=T(D(e.value));t=Math.max(0,a.indexOf(G),Math.min(r.length,t)),l=t,e.setSelectionRange(t,n,`forward`)}let x={left(e,t){let n=!a.slice(t-1).includes(G),r=Math.max(0,t-1);for(;r>=0;r--)if(a[r]===G){t=r,n&&t++;break}if(r<0&&a[t]!==void 0&&a[t]!==G)return x.right(e,0);t>=0&&e.setSelectionRange(t,t,`backward`)},right(e,t){let n=e.value.length,r=Math.min(n,t+1);for(;r<=n;r++)if(a[r]===G){t=r;break}else a[r-1]===G&&(t=r);if(r>n&&a[t-1]!==void 0&&a[t-1]!==G)return x.left(e,n);e.setSelectionRange(t,t,`forward`)},leftReverse(e,t){let n=_(e.value.length),r=Math.max(0,t-1);for(;r>=0;r--)if(n[r-1]===G){t=r;break}else if(n[r]===G&&(t=r,r===0))break;if(r<0&&n[t]!==void 0&&n[t]!==G)return x.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,`backward`)},rightReverse(e,t){let n=e.value.length,r=_(n),i=!r.slice(0,t+1).includes(G),a=Math.min(n,t+1);for(;a<=n;a++)if(r[a-1]===G){t=a,t>0&&i&&t--;break}if(a>n&&r[t-1]!==void 0&&r[t-1]!==G)return x.leftReverse(e,n);e.setSelectionRange(t,t,`forward`)}};function C(e){t(`click`,e),u=void 0}function w(n){if(t(`keydown`,n),oe(n)||n.altKey)return;let r=i.value,a=r.selectionStart,o=r.selectionEnd;if(n.shiftKey||(u=void 0),n.keyCode===37||n.keyCode===39){n.shiftKey&&u===void 0&&(u=r.selectionDirection===`forward`?a:o);let t=x[(n.keyCode===39?`right`:`left`)+(e.reverseFillMask?`Reverse`:``)];if(n.preventDefault(),t(r,u===a?o:a),n.shiftKey){let e=r.selectionStart;r.setSelectionRange(Math.min(u,e),Math.max(u,e),`forward`)}}else n.keyCode===8&&!e.reverseFillMask&&a===o?(x.left(r,a),r.setSelectionRange(r.selectionStart,o,`backward`)):n.keyCode===46&&e.reverseFillMask&&a===o&&(x.rightReverse(r,o),r.setSelectionRange(a,r.selectionEnd,`forward`))}function T(t,n){if(t==null||t===``)return``;if(e.reverseFillMask)return E(t,n);let r=s,i=0,a=``;for(let e=0;e<r.length;e++){let o=t[i],s=r[e];if(typeof s==`string`)a+=s,n===!0&&o===s&&i++;else if(o!==void 0&&s.regex.test(o))a+=s.transform===void 0?o:s.transform(o),i++;else return a}return a}function E(e,t){let n=s,r=a.indexOf(G),i=e.length-1,o=``;for(let a=n.length-1;a>=0&&i!==-1;a--){let s=n[a],c=e[i];if(typeof s==`string`)o=s+o,t===!0&&c===s&&i--;else if(c!==void 0&&s.regex.test(c))do o=(s.transform===void 0?c:s.transform(c))+o,i--,c=e[i];while(r===a&&c!==void 0&&s.regex.test(c));else return o}return o}function D(e){return typeof e!=`string`||c===void 0?typeof e==`number`?c(String(e)):e:c(e)}function k(t){return o.length-t.length<=0?t:e.reverseFillMask&&t.length!==0?o.slice(0,-t.length)+t:t+o.slice(t.length)}return{innerValue:m,hasMask:p,moveCursorForPaste:b,updateMaskValue:y,onMaskedKeydown:w,onMaskedClick:C}}function jr(e,t){function n(){let t=e.modelValue;try{let e=`DataTransfer`in window?new DataTransfer:`ClipboardEvent`in window?new ClipboardEvent(``).clipboardData:void 0;return Object(t)===t&&(`length`in t?[...t]:[t]).forEach(t=>{e.items.add(t)}),{files:e.files}}catch{return{files:void 0}}}return d(t?()=>{if(e.type===`file`)return n()}:n)}var Mr=/[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/,Nr=/[\u4E00-\u9FFF\u3400-\u4DBF\u{20000}-\u{2A6DF}\u{2A700}-\u{2B73F}\u{2B740}-\u{2B81F}\u{2B820}-\u{2CEAF}\uF900-\uFAFF\u3300-\u33FF\uFE30-\uFE4F\uF900-\uFAFF\u{2F800}-\u{2FA1F}]/u,Pr=/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/,Fr=/[a-z0-9_ -]$/i;function Ir(e){return function(t){if(t.type===`compositionend`||t.type===`change`){if(!t.target.qComposing)return;t.target.qComposing=!1,e(t)}else t.type===`compositionupdate`&&!t.target.qComposing&&typeof t.data==`string`&&(V.is.firefox?!Fr.test(t.data):Mr.test(t.data)||Nr.test(t.data)||Pr.test(t.data))&&(t.target.qComposing=!0)}}var Lr=B({name:`QInput`,inheritAttrs:!1,props:{..._r,...kr,...Le,modelValue:[String,Number,FileList],modelModifiers:Object,shadowText:String,type:{type:String,default:`text`},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...vr,`paste`,`change`,`keydown`,`click`,`animationend`],setup(e,{emit:t,attrs:r}){let{proxy:i}=j(),{$q:a}=i,o={},s=NaN,c=!1,l=!1,u=null,f,p=n(null),m=ze(e),{innerValue:h,hasMask:g,moveCursorForPaste:_,updateMaskValue:b,onMaskedKeydown:x,onMaskedClick:C}=Ar(e,t,I,p),w=jr(e,!0),T=d(()=>gr(h.value)),E=Ir(P);function D(e){if(g.value&&e.type===`compositionstart`){e.target.qComposing=!0;return}E(e)}let k=yr({changeEvent:!0}),A=d(()=>e.type===`textarea`||e.autogrow),ee=d(()=>A.value||[`text`,`search`,`url`,`tel`,`password`].includes(e.type)),te=d(()=>{let t={...k.splitAttrs.listeners.value,onInput:P,onPaste:oe,onChange:se,onBlur:ce,onFocus:le};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=D,g.value&&(t.onKeydown=x,t.onClick=C),e.autogrow&&(t.onAnimationend=F),t}),N=d(()=>{let t={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type===`textarea`?6:void 0,"aria-label":e.label,name:m.value,...k.splitAttrs.attributes.value,id:k.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return A.value||(t.type=e.type),e.autogrow&&(t.rows=1),t});O(()=>e.type,()=>{p.value&&(p.value.value=e.modelValue)}),O(()=>e.modelValue,t=>{if(u!==null&&(L(),c=!1,l=!1,delete o.value),g.value){if(l&&(l=!1,String(t)===s))return;b(t)}else h.value!==t&&(h.value=t,e.type===`number`&&Object.hasOwn(o,`value`)&&(c?c=!1:delete o.value),e.modelModifiers?.trim===!0&&Object.hasOwn(o,`value`)&&(typeof o.value!=`string`||o.value.trim()!==t)&&delete o.value);e.autogrow&&S(z)}),O(()=>e.autogrow,e=>{e?S(z):p.value!==null&&r.rows>0&&(p.value.style.height=`auto`)}),O(()=>e.dense,()=>{e.autogrow&&S(z)});function ne(){let e=document.activeElement;p.value!==null&&p.value!==e&&(e===null||e.id!==k.targetUid.value)&&p.value.focus({preventScroll:!0})}function re(){Rt(ne)}function ie(){zt(ne);let e=document.activeElement;e!==null&&k.rootRef.value.contains(e)&&e.blur()}function ae(){p.value?.select()}function oe(n){if(g.value&&e.reverseFillMask!==!0){let e=n.target;_(e,e.selectionStart,e.selectionEnd)}t(`paste`,n)}function P(n){if(!n||!n.target)return;if(e.type===`file`){t(`update:modelValue`,n.target.files);return}let r=n.target.value;if(n.target.qComposing){o.value=r;return}if(g.value)b(r,!1,n.inputType);else if(e.modelModifiers?.trim===!0&&(o.value=r),I(r),ee.value&&n.target===document.activeElement){let{selectionStart:e,selectionEnd:t}=n.target;e!==void 0&&t!==void 0&&S(()=>{n.target===document.activeElement&&r.indexOf(n.target.value)===0&&n.target.setSelectionRange(e,t)})}e.autogrow&&z()}function F(e){t(`animationend`,e),z()}function I(n,r){f=()=>{u=null,e.type!==`number`&&(e.modelModifiers?.trim!==!0||g.value)&&Object.hasOwn(o,`value`)&&delete o.value,e.modelValue!==n&&s!==n&&(s=n,r===!0&&(l=!0),t(`update:modelValue`,n),S(()=>{s===n&&(s=NaN)})),f=void 0},e.type===`number`&&(c=!0,o.value=n),e.debounce===void 0?f():(u!==null&&clearTimeout(u),o.value=n,u=setTimeout(f,e.debounce))}function L(){u!==null&&(clearTimeout(u),u=null),f=void 0}function R(){L(),c=!1,l=!1,delete o.value}function z(){requestAnimationFrame(()=>{let e=p.value;if(e!==null){let t=e.parentNode.style,{scrollTop:n}=e,{overflowY:r,maxHeight:i}=a.platform.is.firefox?{}:window.getComputedStyle(e),o=r!==void 0&&r!==`scroll`;o&&(e.style.overflowY=`hidden`),t.marginBottom=e.scrollHeight-1+`px`,e.style.height=`1px`,e.style.height=e.scrollHeight+`px`,o&&(e.style.overflowY=Number.parseInt(i,10)<e.scrollHeight?`auto`:`hidden`),t.marginBottom=``,e.scrollTop=n}})}function se(e){D(e),u!==null&&(clearTimeout(u),u=null),f?.(),t(`change`,e.target.value)}function ce(t){t!==void 0&&le(t),u!==null&&(clearTimeout(u),u=null),f?.(),c=!1,l=!1,delete o.value,e.type!==`file`&&setTimeout(()=>{p.value!==null&&(p.value.value=h.value===void 0?``:h.value)},0)}function B(){return Object.hasOwn(o,`value`)?o.value:h.value===void 0?``:h.value}y(()=>{ce()}),v(()=>{e.autogrow&&z()}),Object.assign(k,{innerValue:h,fieldClass:d(()=>`q-${A.value?`textarea`:`input`}`+(e.autogrow?` q-textarea--autogrow`:``)),hasShadow:d(()=>e.type!==`file`&&typeof e.shadowText==`string`&&e.shadowText.length!==0),inputRef:p,emitValue:I,onClear:R,hasValue:T,floatingLabel:d(()=>T.value&&(e.type!==`number`||Number.isFinite(Number(h.value)))||gr(e.displayValue)),getControl:()=>M(A.value?`textarea`:`input`,{ref:p,class:[`q-field__native q-placeholder`,e.inputClass],style:e.inputStyle,...N.value,...te.value,...e.type===`file`?w.value:{value:B()}}),getShadowControl:()=>M(`div`,{class:`q-field__native q-field__shadow absolute-bottom no-pointer-events`+(A.value?``:` text-no-wrap`)},[M(`span`,{class:`invisible`},B()),M(`span`,e.shadowText)])});let ue=xr(k);return Object.assign(i,{focus:re,blur:ie,select:ae,getNativeElement:()=>p.value}),we(i,`nativeEl`,()=>p.value),ue}}),Rr=B({name:`QCardActions`,props:{...Te,vertical:Boolean},setup(e,{slots:t}){let n=xe(e),r=d(()=>`q-card__actions ${n.value} q-card__actions--${e.vertical?`vert column`:`horiz row`}`);return()=>M(`div`,{class:r.value},z(t.default))}}),zr=`kobo:network-token`;function Br(){try{return localStorage.getItem(zr)}catch{return null}}function Vr(e){try{localStorage.setItem(zr,e)}catch{}}function Hr(e){try{let t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname.startsWith(`/api/`)}catch{return typeof e==`string`&&e.startsWith(`/api/`)}}function Ur(e,t){return t?`${e}${e.includes(`?`)?`&`:`?`}token=${encodeURIComponent(t)}`:e}var Wr=n(!1);function Gr(){Wr.value=!0}function Kr(){Wr.value=!1}var qr={class:`text-h6`},Jr={class:`text-caption text-kobo-3 q-mt-sm`},Yr=c({__name:`NetworkLoginDialog`,setup(e){let{t:r}=ne(),i=d({get:()=>Wr.value,set:e=>{e||Kr()}}),a=n(``),s=n(!1),c=n(!1),l=n(``);async function u(){let e=a.value.trim();if(e){s.value=!0,c.value=!1;try{let t=await fetch(`/api/settings/network/ping`,{headers:{"X-Kobo-Token":e}});if(t.ok){Vr(e),Kr(),window.location.reload();return}l.value=t.status===401?r(`network.login.invalid`):r(`network.login.serverError`),c.value=!0}catch{l.value=r(`network.login.unreachable`),c.value=!0}finally{s.value=!1}}}return(e,n)=>(x(),h(Fn,{modelValue:i.value,"onUpdate:modelValue":n[1]||=e=>i.value=e,persistent:``},{default:D(()=>[E(bt,{style:{"min-width":`320px`,"max-width":`90vw`}},{default:D(()=>[E(W,null,{default:D(()=>[w(`div`,qr,o(t(r)(`network.login.title`)),1),w(`div`,Jr,o(t(r)(`network.login.description`)),1)]),_:1}),E(W,null,{default:D(()=>[E(Lr,{modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,label:t(r)(`network.login.tokenLabel`),placeholder:t(r)(`network.login.tokenPlaceholder`),error:c.value,"error-message":l.value,autofocus:``,dense:``,outlined:``,onKeyup:p(u,[`enter`])},null,8,[`modelValue`,`label`,`placeholder`,`error`,`error-message`])]),_:1}),E(Rr,{align:`right`},{default:D(()=>[E(Ee,{label:t(r)(`network.login.connect`),color:`primary`,loading:s.value,unelevated:``,onClick:u},null,8,[`label`,`loading`])]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}}),Xr=Fe(`templates`,{state:()=>({templates:[],defaultSlugs:[],loading:!1,loaded:!1}),getters:{isDefault:e=>t=>e.defaultSlugs.includes(t)},actions:{async fetchTemplates(){if(!this.loading){this.loading=!0;try{let e=await fetch(`/api/templates`);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();this.templates=t.templates,this.defaultSlugs=t.defaultSlugs??[],this.loaded=!0}catch(e){console.error(`[templates store] fetchTemplates failed:`,e)}finally{this.loading=!1}}},async createTemplate(e){let t=await fetch(`/api/templates`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`HTTP ${t.status}`)}let n=await t.json();return this.templates.push(n),n},async updateTemplate(e,t){let n=await fetch(`/api/templates/${encodeURIComponent(e)}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}let r=await n.json(),i=this.templates.findIndex(t=>t.slug===e);return i>=0&&(this.templates[i]=r),r},async reloadDefaults(){let e=await fetch(`/api/templates/reload-defaults`,{method:`POST`});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error??`HTTP ${e.status}`)}let t=await e.json();return t.added.length>0&&await this.fetchTemplates(),t},async deleteTemplate(e){let t=await fetch(`/api/templates/${encodeURIComponent(e)}`,{method:`DELETE`});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`HTTP ${t.status}`)}this.templates=this.templates.filter(t=>t.slug!==e)},async resetToDefault(e){let t=await fetch(`/api/templates/${encodeURIComponent(e)}/reset-default`,{method:`POST`});if(!t.ok){let e=await t.json().catch(()=>({error:`Reset failed`}));throw Error(e.error??`Reset failed`)}let{template:n}=await t.json(),r=this.templates.findIndex(t=>t.slug===e);return r>=0?this.templates[r]=n:this.templates.push(n),n}}}),Zr=B({name:`QAvatar`,props:{...L,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){let n=P(e),r=d(()=>`q-avatar`+(e.color?` bg-${e.color}`:``)+(e.textColor?` text-${e.textColor} q-chip--colored`:``)+(e.square?` q-avatar--square`:e.rounded?` rounded-borders`:``)),i=d(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{let a=e.icon===void 0?void 0:[M(ve,{name:e.icon})];return M(`div`,{class:r.value,style:n.value},[M(`div`,{class:`q-avatar__content row flex-center overflow-hidden`,style:i.value},Ae(t.default,a))])}}}),Qr=0,$r={},ei={},K={},ti={},ni=/^\s*$/,ri=[],ii=[void 0,null,!0,!1,``],ai=[`top-left`,`top-right`,`bottom-left`,`bottom-right`,`top`,`bottom`,`left`,`right`,`center`],oi=[`top-left`,`top-right`,`bottom-left`,`bottom-right`],si={positive:{icon:e=>e.iconSet.type.positive,color:`positive`},negative:{icon:e=>e.iconSet.type.negative,color:`negative`},warning:{icon:e=>e.iconSet.type.warning,color:`warning`,textColor:`dark`},info:{icon:e=>e.iconSet.type.info,color:`info`},ongoing:{group:!1,timeout:0,spinner:!0,color:`grey-8`}};function ci(e,t,n){if(!e)return di(`parameter required`);let r,i={textColor:`white`};if(e.ignoreDefaults||Object.assign(i,$r),U(e)||(i.type&&Object.assign(i,si[i.type]),e={message:e}),Object.assign(i,si[e.type||i.type],e),typeof i.icon==`function`&&(i.icon=i.icon(t)),i.spinner=i.spinner?i.spinner===!0?ke:a(i.spinner):!1,i.meta={hasMedia:!!(i.spinner||i.icon||i.avatar),hasText:ui(i.message)||ui(i.caption)},i.position){if(!ai.includes(i.position))return di(`wrong position`,e)}else i.position=`bottom`;if(ii.includes(i.timeout))i.timeout=5e3;else{let t=Number.parseFloat(i.timeout);if(!Number.isFinite(t)||t<0)return di(`wrong timeout`,e);i.timeout=t}i.timeout===0?i.progress=!1:i.progress&&(i.meta.progressClass=`q-notification__progress`+(i.progressClass?` ${i.progressClass}`:``),i.meta.progressStyle={animationDuration:`${i.timeout+1e3}ms`});let o=[...Array.isArray(e.actions)?e.actions:[],...!e.ignoreDefaults&&Array.isArray($r.actions)?$r.actions:[],...Array.isArray(si[e.type]?.actions)?si[e.type].actions:[]],{closeBtn:s}=i;if(s&&o.push({label:typeof s==`string`?s:t.lang.label.close}),i.actions=o.map(({handler:e,noDismiss:t,...n})=>({flat:!0,...n,onClick:typeof e==`function`?()=>{e(),t||c()}:()=>{c()}})),i.multiLine===void 0&&(i.multiLine=i.actions.length>1),Object.assign(i.meta,{class:`q-notification row items-stretch q-notification--${i.multiLine?`multi-line`:`standard`}`+(i.color===void 0?``:` bg-${i.color}`)+(i.textColor===void 0?``:` text-${i.textColor}`)+(i.classes===void 0?``:` ${i.classes}`),wrapperClass:`q-notification__wrapper col relative-position border-radius-inherit `+(i.multiLine?`column no-wrap justify-center`:`row items-center`),contentClass:`q-notification__content row items-center`+(i.multiLine?``:` col`),leftClass:i.meta.hasText?`additional`:`single`,attrs:{role:`alert`,...i.attrs}}),i.group===!1?(i.group=void 0,i.meta.group=void 0):((i.group===void 0||i.group===!0)&&(i.group=[i.message,i.caption,i.multiLine,...i.actions.map(e=>`${e.label}*${e.icon}`)].join(`|`)),i.meta.group=i.group+`|`+i.position),i.actions.length===0?i.actions=void 0:i.meta.actionsClass=`q-notification__actions row items-center `+(i.multiLine?`justify-end`:`col-auto`)+(i.meta.hasMedia?` q-notification__actions--with-media`:``),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),i.meta.uid=n.notif.meta.uid;let e=K[i.position].value.indexOf(n.notif);K[i.position].value[e]=i}else{let t=ei[i.meta.group];if(t===void 0){if(i.meta.uid=Qr++,i.meta.badge=1,[`left`,`right`,`center`].includes(i.position))K[i.position].value.splice(Math.floor(K[i.position].value.length/2),0,i);else{let e=i.position.includes(`top`)?`unshift`:`push`;K[i.position].value[e](i)}i.group!==void 0&&(ei[i.meta.group]=i)}else{if(t.meta.timer&&(clearTimeout(t.meta.timer),t.meta.timer=void 0),i.badgePosition!==void 0){if(!oi.includes(i.badgePosition))return di(`wrong badgePosition`,e)}else i.badgePosition=`top-${i.position.includes(`left`)?`right`:`left`}`;i.meta.uid=t.meta.uid,i.meta.badge=t.meta.badge+1,i.meta.badgeClass=`q-notification__badge q-notification__badge--${i.badgePosition}`+(i.badgeColor===void 0?``:` bg-${i.badgeColor}`)+(i.badgeTextColor===void 0?``:` text-${i.badgeTextColor}`)+(i.badgeClass?` ${i.badgeClass}`:``);let n=K[i.position].value.indexOf(t);K[i.position].value[n]=ei[i.meta.group]=i}}let c=()=>{li(i),r=void 0};if(i.timeout>0&&(i.meta.timer=setTimeout(()=>{i.meta.timer=void 0,c()},i.timeout+1e3)),i.group!==void 0)return t=>{t===void 0?c():di(`trying to update a grouped one which is forbidden`,e)};if(r={dismiss:c,config:e,notif:i},n!==void 0){Object.assign(n,r);return}return e=>{r!==void 0&&(e===void 0?r.dismiss():ci({...r.config,...e,group:!1,position:i.position},t,r))}}function li(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);let t=K[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete ei[e.meta.group];let n=ri[String(e.meta.uid)];if(n){let{width:e,height:t}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=e,n.style.height=t}K[e.position].value.splice(t,1),typeof e.onDismiss==`function`&&e.onDismiss()}}function ui(e){return e!=null&&!ni.test(e)}function di(e,t){return console.error(`Notify: ${e}`,t),!1}function fi(){return B({name:`QNotifications`,devtools:{hide:!0},setup(){return()=>M(`div`,{class:`q-notifications`},ai.map(e=>M(ee,{key:e,class:ti[e],tag:`div`,name:`q-notification--${e}`},()=>K[e].value.map(e=>{let t=e.meta,n=[];if(t.hasMedia&&(e.spinner?n.push(M(e.spinner,{class:`q-notification__spinner q-notification__spinner--`+t.leftClass,color:e.spinnerColor,size:e.spinnerSize})):e.icon?n.push(M(ve,{class:`q-notification__icon q-notification__icon--`+t.leftClass,name:e.icon,color:e.iconColor,size:e.iconSize,role:`img`})):e.avatar&&n.push(M(Zr,{class:`q-notification__avatar q-notification__avatar--`+t.leftClass},()=>M(`img`,{src:e.avatar,"aria-hidden":`true`})))),t.hasText){let t,r={class:`q-notification__message col`};if(e.html)r.innerHTML=e.caption?`<div>${e.message}</div><div class="q-notification__caption">${e.caption}</div>`:e.message;else{let n=[e.message];t=e.caption?[M(`div`,n),M(`div`,{class:`q-notification__caption`},[e.caption])]:n}n.push(M(`div`,r,t))}let r=[M(`div`,{class:t.contentClass},n)];return e.progress&&r.push(M(`div`,{key:`${t.uid}|p|${t.badge}`,class:t.progressClass,style:t.progressStyle})),e.actions&&r.push(M(`div`,{class:t.actionsClass},e.actions.map(e=>M(Ee,e)))),t.badge>1&&r.push(M(`div`,{key:`${t.uid}|${t.badge}`,class:e.meta.badgeClass,style:e.badgeStyle},[t.badge])),M(`div`,{ref:e=>{ri[String(t.uid)]=e},key:t.uid,class:t.class,...t.attrs},[M(`div`,{class:t.wrapperClass},r)])}))))}})}var q={setDefaults(e){U(e)&&Object.assign($r,e)},registerType(e,t){U(t)&&(si[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=t=>ci(t,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),!this.__installed){ai.forEach(e=>{K[e]=n([]);let t=e===`left`||e===`center`||e===`right`?`center`:e.includes(`top`)?`top`:`bottom`,r=e.includes(`left`)?`start`:e.includes(`right`)?`end`:`center`;ti[e]=`q-notifications__list q-notifications__list--${t} fixed column no-wrap ${e===`left`||e===`right`?`items-${e===`left`?`start`:`end`} justify-center`:e===`center`?`flex-center`:`items-${r}`}`});let e=Se(`q-notify`);pt(fi(),t).mount(e)}}},pi={"model.tooltip":`Model used by the agent for this workspace`,"reasoning.tooltip":`Reasoning level used by the agent for this workspace`,"thinking.label":`Thinking`,"thinking.noDetails":`The agent is thinking…`,"common.save":`Save`,"common.duplicate":`Duplicate`,"common.confirm":`Confirm`,"common.cancel":`Cancel`,"common.open":`Open`,"common.retry":`Retry`,"common.delete":`Delete`,"common.close":`Close`,"workspace.deleteTitle":`Delete workspace`,"workspace.deleteTypeName":`Type {name} to confirm. This removes the worktree and the whole conversation.`,"workspace.deleteFailed":`Could not delete the workspace.`,"workspace.archiveFailed":`Could not archive the workspace.`,"tasks.updateFailed":`Could not update the task.`,"dashboard.tooltip":`Dashboard`,"dashboard.title":`Dashboard`,"dashboard.count":`{n} workspace | {n} workspaces`,"dashboard.empty":`No active workspace.`,"dashboard.workspace":`Workspace`,"dashboard.status":`Status`,"dashboard.attention":`Attention`,"dashboard.pr":`PR`,"dashboard.diff":`Diff`,"dashboard.activity":`Activity`,"dashboard.prOpen":`open`,"reliability.title":`Model reliability`,"reliability.subtitle":`How each engine and model actually ended on this machine.`,"reliability.empty":`No session has ended yet.`,"reliability.loadFailed":`Could not load the reliability figures.`,"reliability.engine":`Engine`,"reliability.model":`Model`,"reliability.sessions":`Sessions`,"reliability.completed":`Completed`,"reliability.watchdog":`Watchdog`,"reliability.killed":`Stopped`,"reliability.errors":`Errors`,"reliability.unknown":`Unknown`,"reliability.median":`Median`,"reliability.durationSeconds":`{s}s`,"reliability.durationMinutes":`{m}m {s}s`,"reliability.durationHours":`{h}h {m}m`,"update.available":`A newer Kōbō is available: {version}`,"update.how":`How to update`,"common.dismiss":`Dismiss`,"common.details":`Details`,"common.ok":`OK`,"whatsNew.title":`What's new`,"common.loading":`Loading...`,"common.search":`Search...`,"common.refresh":`Refresh`,"common.copy":`Copy`,"common.copied":`Copied to clipboard`,"common.copyFailed":`Copy failed`,"common.add":`Add`,"folderPicker.title":`Choose a folder`,"folderPicker.parent":`Parent folder`,"folderPicker.empty":`No subfolders`,"folderPicker.select":`Select this folder`,"common.start":`Start`,"common.stop":`Stop`,"common.archive":`Archive`,"common.unarchive":`Unarchive`,"common.selectWorkspace":`Select a workspace`,"common.noResults":`No results for "{query}"`,"common.send":`send`,"common.newLine":`new line`,"common.history":`history`,"common.justNow":`just now`,"common.minutesAgo":`{count}m ago`,"common.hoursAgo":`{count}h ago`,"common.daysAgo":`{count}d ago`,"model.auto":`Auto`,"model.fable51":`Fable 5.1`,"model.mythos5":`Mythos 5 (Glasswing)`,"model.fable51Description":`Most capable model - replaces Fable 5, 1M context, adaptive thinking`,"model.mythos5Description":`Fable 5.1 without safety classifiers — limited access (Project Glasswing)`,"model.opus":`Opus 4.6`,"model.sonnet":`Sonnet 4.6`,"model.opus5":`Opus 5`,"model.opus48":`Opus 4.8`,"model.opus47Classic":`Opus 4.7 (Classic)`,"model.opus471m":`Opus 4.7 (1M)`,"model.opusClassic":`Opus 4.6 (Classic)`,"model.opus1m":`Opus 4.6 (1M)`,"model.sonnet5":`Sonnet 5`,"model.sonnetClassic":`Sonnet 4.6 (Classic)`,"model.sonnet1m":`Sonnet 4.6 (1M)`,"model.haiku":`Haiku 4.5`,"model.autoDescription":`Claude picks the optimal model`,"model.opus5Description":`For complex agentic coding and enterprise work, 1M context`,"model.opus48Description":`Most capable Opus — long-horizon agentic coding, 1M context by default, high effort default`,"model.opus47ClassicDescription":`Latest Opus, most capable`,"model.opus471mDescription":`Latest Opus, 1M context`,"model.opusClassicDescription":`Most powerful`,"model.opus1mDescription":`Most powerful, 1M context`,"model.sonnet5Description":`Best mix of speed and intelligence, 1M context`,"model.sonnetClassicDescription":`Balanced`,"model.sonnet1mDescription":`Balanced, 1M context`,"model.haikuDescription":`Fastest`,"model.gpt6astra":`GPT-6 Astra`,"model.gpt6astraDescription":`Most capable frontier model, 1M context (requires ChatGPT auth)`,"model.gpt56sol":`GPT-5.6 Sol`,"model.gpt56solDescription":`Latest frontier agentic coding model (requires ChatGPT auth)`,"model.gpt56terra":`GPT-5.6 Terra`,"model.gpt56terraDescription":`Balanced agentic coding model for everyday work (requires ChatGPT auth)`,"model.gpt56luna":`GPT-5.6 Luna`,"model.gpt56lunaDescription":`Fast and affordable agentic coding model (requires ChatGPT auth)`,"model.gpt55":`GPT-5.5`,"model.gpt55Description":`Recommended for complex coding (requires ChatGPT auth)`,"model.gpt54":`GPT-5.4`,"model.gpt54Description":`Default fallback — strong reasoning, works with API key auth`,"model.gpt54mini":`GPT-5.4 mini`,"model.gpt54miniDescription":`Fast and efficient — best for responsive tasks and subagents`,"model.gpt52":`GPT-5.2`,"model.gpt52Description":`Optimized for professional work and long-running agents`,"model.gpt53codex":`GPT-5.3 Codex`,"model.gpt53codexDescription":`Coding-specialized model for complex software engineering`,"reasoning.auto":`auto`,"reasoning.minimal":`minimal`,"reasoning.none":`none`,"reasoning.low":`low`,"reasoning.medium":`medium`,"reasoning.high":`high`,"reasoning.xhigh":`xhigh`,"reasoning.max":`max`,"reasoning.autoDescription":`Let the engine pick the default`,"reasoning.minimalDescription":`Fastest, shallowest reasoning`,"reasoning.noneDescription":`No additional reasoning`,"reasoning.lowDescription":`Faster, less depth`,"reasoning.mediumDescription":`Balanced`,"reasoning.highDescription":`More depth`,"reasoning.xhighDescription":`Extended depth, long-horizon tasks`,"reasoning.maxDescription":`Maximum depth`,"agentPermissionMode.label":`Permission mode`,"agentPermissionMode.plan":`Plan`,"agentPermissionMode.bypass":`Bypass`,"agentPermissionMode.strict":`Accept edits`,"agentPermissionMode.interactive":`Interactive`,"agentPermissionMode.tooltip":`How the agent handles tool permissions. Plan: read-only, no writes. Bypass: skip every prompt. Strict: auto-accept file edits, respect allow/deny lists for the rest. Interactive: ask the user before each tool via the permission panel.`,"agentPermissionMode.autoLoopOverride":`Auto-loop forces a non-plan mode — Plan blocks the MCP tools and edits the loop relies on. Pick Bypass, Strict, or Interactive instead.`,"agentPermissionMode.autoLoopLocked":`Locked to Bypass while auto-loop is on — any other mode would stall the loop on permission prompts. AskUserQuestion still works.`,"workspaceList.title":`Workspaces`,"workspaceList.a11y.groupToggle":`{group} group, {count} workspaces`,"workspaceList.a11y.list":`Workspaces`,"workspaceList.a11y.card":`{name}, {status}`,"workspaceList.needsAttention":`Needs Attention`,"workspaceList.running":`Running`,"workspaceList.idle":`Idle`,"workspaceList.archived":`Archived`,"workspaceList.archivedToast":`“{name}” archived`,"workspaceList.archivedUndo":`Undo`,"workspaceList.unarchiveFailed":`Could not unarchive this workspace`,"workspaceList.noWorkspaces":`No workspaces yet`,"workspaceList.loadFailed":`Could not load your workspaces`,"workspaceList.loadFailedHint":`This is a connection failure, not an empty account.`,"workspaceList.footer":`{count} workspace | {count} workspaces`,"workspaceList.footerRunning":`{count} running`,"workspaceList.deleteDialog.title":`Delete workspace?`,"workspaceList.deleteDialog.deleteLocal":`Delete local branch`,"workspaceList.deleteDialog.deleteRemote":`Delete remote branch`,"workspaceList.deleteDialog.warning":`Warning: this action is irreversible on the remote.`,"workspaceList.deleteArchivedDialog.tooltip":`Delete all archived workspaces`,"workspaceList.deleteArchivedDialog.title":`Delete all archived workspaces?`,"workspaceList.deleteArchivedDialog.message":`This will permanently delete the {count} archived workspaces. This action cannot be undone.`,"workspaceList.deleteArchivedDialog.typeCount":`Type {count} to confirm`,"workspacePage.selectWorkspace":`Select a workspace to begin`,"workspacePage.commandPalettePlaceholder":`Search commands…`,"workspacePage.commandPaletteEmpty":`No matching command`,"workspacePage.commandFocusChat":`Focus chat input`,"workspacePage.commandSearchHistory":`Search workspace history`,"workspacePage.commandTogglePanel":`Show or hide side panel`,"workspacePage.commandStartAgent":`Start agent`,"workspacePage.commandStopAgent":`Stop agent`,"workspacePage.commandOpenSettings":`Open settings`,"workspacePage.commandOpenCreate":`Create a workspace`,"workspacePage.commandOpenSearch":`Global search`,"workspacePage.commandOpenHealth":`Health page`,"workspacePage.commandOpenChangelog":`Changelog`,"workspacePage.commandGroupWorkspaces":`Switch to a workspace`,"workspacePage.commandPaletteHint":`Command palette`,"workspacePage.session":`Session #{n}`,"workspacePage.newSession":`+ New session`,"workspacePage.renameSession":`Rename`,"workspacePage.renameSessionTitle":`Rename session`,"workspacePage.sessionNameLabel":`Session name`,"workspacePage.sessionEndedNotice":`This session has ended. Create a new session to continue.`,"workspacePage.renameFailed":`Rename failed`,"workspacePage.copySessionId":`Copy session ID`,"workspacePage.deleteSession":`Delete session`,"workspacePage.deleteSessionTitle":`Delete session?`,"workspacePage.deleteSessionConfirm":`This permanently deletes this session and its conversation history.`,"workspacePage.deleteSessionFailed":`Failed to delete session`,"workspacePage.noEngineSessionId":`No engine session ID yet — the agent hasn't started this session`,"workspacePage.createSessionFailed":`Failed to create session`,"workspacePage.startFailed":`Start failed`,"workspacePage.stopFailed":`Stop failed`,"workspacePage.interrupt":`Interrupt`,"workspacePage.interrupted":`Agent interrupted — waiting for your next message`,"workspacePage.lastAgentEvent":`Last event {when}`,"workspacePage.agentStopping":`Stopping…`,"workspacePage.agentNotRunning":`No agent process — status is stale`,"workspacePage.archivedBanner":`Archived workspace — read-only`,"workspacePage.worktreePurgedBanner":`Worktree deleted — history kept, no restore available in this version`,"workspacePage.worktreePurgedTooltip":"The worktree folder was deleted from disk to reclaim space. Chat history, sessions and PR metadata remain queryable here, but the working directory no longer exists locally. A future Kōbō version will rebuild the worktree from the merged PR — for now you would need to recreate it manually via `gh pr checkout` or `git worktree add`.","workspacePage.pendingInitialPromptBanner":`An initial prompt is pending — the agent never received it (setup script crashed or the workspace was never started). Click Start to send it now.`,"workspacePage.unarchived":`Workspace unarchived`,"workspacePage.unarchiveFailed":`Unarchive failed`,"workspacePage.interruptFailed":`Interrupt failed`,"workspacePage.interruptHint":`Interrupt the current turn without ending the session.`,"workspacePage.interruptTooltip":`Soft interrupt (like Escape) — stops the current tool but keeps the session alive`,"workspacePage.pendingNextRun":`Applied on next start`,"workspacePage.activeSessionModel":`Active: {model}`,"workspacePage.activeSessionModelTooltip":`Model currently used by the selected session`,"workspacePage.switchEngine":`Switch engine`,"workspacePage.switchEngineHint":`Continue this workspace with another agent engine`,"workspacePage.moreActions":`More actions`,"workspacePage.switchEngineTitle":`Switch agent engine`,"workspacePage.switchEngineWarning":`The current agent will be stopped and a fresh session will start in the same worktree.`,"workspacePage.engineLabel":`Engine`,"workspacePage.engineClaude":`Claude Code`,"workspacePage.engineCodex":`Codex`,"workspacePage.engineHandoff":`Handoff for the new engine`,"workspacePage.engineHandoffHint":`Review or edit the context that will be sent to the new agent.`,"workspacePage.confirmSwitchEngine":`Switch engine`,"workspacePage.switchEngineFailed":`Failed to switch engine`,"whip.dispatchFailed":`Unable to send the whip message`,"whip.phrase1":`Move faster, tocard!`,"whip.phrase2":`Pick up the pace, tocard!`,"whip.phrase3":`Back to work, tocard!`,"whip.phrase4":`Show me some speed, tocard!`,"whip.phrase5":`Less thinking, more doing, tocard!`,"search.title":`Search`,"search.tooltip":`Search across agent history`,"search.placeholder":`Search across all agent messages…`,"search.includeArchived":`Include archived workspaces`,"search.loading":`Searching…`,"search.noResults":`No matches`,"search.error":`Search failed: {message}`,"search.resultCount":`{n} result(s)`,"search.eventType.userMessage":`You`,"search.eventType.agentOutput":`Agent`,"activityFeed.empty":`No activity yet`,"activityFeed.emptyHint":`Start a workspace to see agent output here`,"activityFeed.initialPrompt":`Initial Prompt`,"activityFeed.you":`You`,"activityFeed.agent":`Agent`,"activityFeed.question":`Question`,"activityFeed.goToPrevious":`Go to previous message`,"activityFeed.scrollToBottom":`Scroll to bottom`,"activityFeed.sendAnswers":`Send answers`,"agentBusy.banner":`Agent is busy`,"agentBusy.subagentsRunning":`1 sub-agent running | {n} sub-agents running`,"agentBusy.viewSubagents":`View sub-agents`,"agentBusy.pendingMessage":`Waiting — agent is busy`,"terminal.title":`Terminal`,"terminal.open":`Open terminal`,"terminal.close":`Close terminal`,"terminal.noWorkspace":`Select a workspace`,"terminal.noWorktree":`Worktree not created yet`,"terminal.error":`Terminal error`,"terminal.exited":`Terminal exited`,"terminal.disconnected":`Connection lost`,"terminal.reconnecting":`Reconnecting… (attempt {attempt} of {max})`,"terminal.reconnect":`Reconnect`,"chatInput.placeholder":`Message... (/ for skills)`,"chatInput.fileSearchHint":`search a file`,"chatInput.skills":`Skills`,"chatInput.attachImage":`Attach image`,"chatInput.queueBanner":`Message queued — will be sent when the agent finishes`,"chatInput.forceQueue":`Force send`,"chatInput.searchHistory":`search`,"chatInput.commandPalette":`commands`,"chatInput.shortcuts":`Keyboard shortcuts`,"chatInput.cancelQueue":`Cancel Queue`,"chatInput.autoLoopBanner":`Auto-loop is running — stop it to send a message`,"chatInput.awaitingUserBanner":`The agent is waiting for your answer above — reply via the question panel`,"chatInput.autoLoopStop":`Stop`,"koboCommand.checkProgressDesc":`Verify progress on tasks and acceptance criteria`,"chatInput.uploading":`Uploading...`,"voice.title":`Voice transcription`,"voice.enabled":`Enable local voice transcription`,"voice.pttKey":`Push-to-talk key`,"voice.pttAlt":`Alt`,"voice.pttCtrlSpace":`Ctrl+Space`,"voice.language":`Language (auto or code)`,"voice.model":`Active model`,"voice.commandPath":`Whisper binary path (optional)`,"voice.ffmpegPath":`ffmpeg binary path (optional)`,"voice.temperature":`Temperature`,"voice.temperatureHint":`Lower is more deterministic; higher can be more flexible but less stable.`,"voice.initialPrompt":`Initial prompt (optional)`,"voice.initialPromptHint":`Optional context to help Whisper with names, jargon, or domain vocabulary.`,"voice.translateToEnglish":`Translate to English`,"voice.translateToEnglishHint":`When enabled, non-English speech is translated to English instead of transcribed as-is.`,"voice.suppressNst":`Suppress non-speech tokens`,"voice.suppressNstHint":`Attempts to reduce non-speech artifacts in the transcript.`,"voice.installLink":`Install whisper.cpp`,"voice.installGuideTitle":`Installation guide`,"voice.installGuideIntro":`Install whisper.cpp and ffmpeg, then set the binary paths below if needed.`,"voice.installGuideUbuntuTitle":`Ubuntu / Debian`,"voice.installGuideWindowsTitle":`Windows`,"voice.installGuideBinaryPathHint":`After CMake build, the Whisper binary is usually at: whisper.cpp/build/bin/whisper-cli`,"voice.installGuideSettingsHint":`Then set "Whisper binary path" and "ffmpeg binary path" in this section (or leave empty if they are in PATH).`,"voice.noneModel":`No active model`,"voice.notInstalled":`not installed`,"voice.download":`Download`,"voice.delete":`Delete`,"voice.holdToTalk":`Hold to talk`,"voice.recording":`Recording...`,"voice.transcribing":`Transcribing...`,"voice.notSupported":`Voice recording is not supported in this browser`,"voice.errorMicPermission":`Microphone permission denied`,"voice.errorTranscription":`Voice transcription failed`,"voice.downloadFailed":`Model download failed`,"voice.deleteFailed":`Model deletion failed`,"voice.errorDisabled":`Voice transcription is disabled in settings`,"voice.errorModelMissing":`No active voice model is configured`,"voice.errorModelNotInstalled":`The active voice model is not installed`,"voice.errorAudioInvalid":`Audio capture is invalid or empty`,"voice.errorLanguageInvalid":`Voice language configuration is invalid`,"voice.errorRuntimeMissing":`Whisper runtime is not installed or not in PATH`,"voice.maxDurationReached":`Maximum recording duration reached`,"voice.runtimeReady":`Runtime ready: {command}`,"voice.runtimeMissing":`Runtime missing: {command}`,"voice.ffmpegReady":`ffmpeg ready`,"voice.ffmpegMissing":`ffmpeg missing`,"voice.sectionRuntime":`Runtime status`,"voice.sectionActivation":`Activation`,"voice.sectionModels":`Whisper models`,"voice.sectionAdvanced":`Advanced options`,"voice.sectionBehavior":`Transcription behavior`,"voice.sectionBinaries":`Binary paths`,"voice.downloadModels":`Download a model`,"voice.cancelFailed":`Failed to cancel the download`,"createPage.title":`Create a workspace`,"createPage.fromTemplate":`From a template`,"createPage.fromTemplateNone":`None`,"createPage.saveAsTemplate":`Save as template`,"createPage.saveTemplateTitle":`Save this form as a template`,"createPage.saveTemplateName":`Template name`,"createPage.saveTemplateOverwrite":`A template named “{name}” exists. Overwrite it?`,"createPage.templateSaved":`Template “{name}” saved`,"createPage.templateApplied":`Template “{name}” applied`,"createPage.duplicatedFrom":`Duplicated from “{name}”`,"createPage.duplicateLoadFailed":`Could not load the workspace to duplicate.`,"createPage.templateSaveFailed":`Could not save the template.`,"createPage.presetProjectUnknown":`This template targets a project that is no longer configured; the current project was kept.`,"createPage.copySuffix":`(copy)`,"createPage.subtitle":`Describe the mission, choose a project, then configure the agent.`,"createPage.sectionMission":`Mission`,"createPage.sectionMissionHint":`Give the agent a clear objective and the context needed to complete it.`,"createPage.workspaceNameLabel":`Workspace name`,"createPage.descriptionLabel":`Mission description`,"createPage.sources":`Optional sources`,"createPage.sectionGit":`Git project`,"createPage.sectionGitHint":`Choose the repository, source branch and worktree mode.`,"createPage.worktreeMode":`Worktree mode`,"createPage.worktreeNew":`New isolated worktree`,"createPage.worktreeExisting":`Reuse an existing worktree`,"createPage.projectLabel":`Project`,"createPage.sourceBranch":`Source branch`,"createPage.workingBranchPreview":`Working branch preview`,"createPage.branchNamePending":`workspace-name`,"createPage.sectionAgent":`Agent`,"createPage.sectionAgentHint":`Review the execution defaults or enable automation.`,"createPage.configureAgent":`Configure the agent`,"createPage.advancedOptions":`Advanced options`,"createPage.keyboardHint":`Press Ctrl/Cmd + Enter to create the workspace.`,"createPage.createWorkspace":`Create workspace`,"createPage.compareEngines":`Compare two engines`,"createPage.engineA":`Engine A`,"createPage.engineB":`Engine B`,"createPage.compareBrainstormLocked":`Comparison mode: each engine brainstorms on the model and effort set in its own block above.`,"createPage.compareEnginesHint":`Creates two workspaces from this task, one per engine, in sibling worktrees. Their diffs can then be compared side by side.`,"createPage.compareNeedsNewWorktree":`Comparing two engines needs two new worktrees. Turn off “use an existing worktree” first.`,"createPage.compareNeedsSecondEngine":`Pick a second engine, different from the first, to compare against.`,"comparison.title":`Engine comparison`,"comparison.hint":`The same task, run by each engine in its own worktree.`,"comparison.engine":`Engine`,"comparison.status":`Status`,"comparison.tasks":`Tasks`,"comparison.commits":`Commits`,"comparison.files":`Files`,"comparison.diff":`Diff`,"comparison.messages":`Messages`,"comparison.messagesTitle":`Agent messages / your messages`,"comparison.questions":`Questions`,"comparison.tools":`Tools`,"comparison.errors":`Errors`,"comparison.tokens":`Tokens`,"comparison.tokensTitle":`Input / output tokens`,"comparison.sessions":`Sessions`,"comparison.duration":`Time`,"comparison.exportCsv":`Export as CSV`,"comparison.open":`Open`,"comparison.current":`This one`,"comparison.archived":`archived`,"comparison.incomplete":`Only one workspace of this comparison exists. The other was never created, or has been deleted.`,"createPage.comparisonPartial":`Only {count} of {total} workspaces were created. The one that exists is usable on its own; delete it if you would rather start over.`,"createPage.notionEnabled":`Notion enabled`,"createPage.importNotion":`Import from Notion`,"createPage.notionPlaceholder":`https://www.notion.so/workspace/Page-title-abc123...`,"createPage.notionValidation":`URL must start with https://www.notion.so/ or https://app.notion.com/`,"createPage.notionAutoExtract":`Subtasks and acceptance criteria will be extracted automatically.`,"createPage.notionPanelChoiceLabel":`This URL points to a sub-page (?p=). Which one do you want to work on?`,"createPage.notionPanelOption":`Sub-page (panel)`,"createPage.notionPanelOptionDesc":`The page you were viewing — recommended`,"createPage.notionParentOption":`Parent page`,"createPage.notionParentOptionDesc":`The epic / database it belongs to`,"createPage.importSentry":`Import Sentry`,"createPage.sentryEnabled":`Sentry enabled`,"createPage.sentryPlaceholder":`https://your-org.sentry.io/issues/123456`,"createPage.sentryValidation":`URL must point to a Sentry issue (/issues/<id>)`,"createPage.sentryAutoExtract":`Sentry issue will be imported automatically`,"createPage.sentryExtractHint":`Kobo will extract the issue and write it to .ai/thoughts/`,"createPage.importPr":`Import from a PR`,"createPage.importPrRequiresProject":`Choose a project first`,"createPage.importPrNotSupported":`This project's forge does not support listing pull requests`,"createPage.lockedToPr":`Locked to PR #{number}`,"createPage.prReadyToCreate":`PR #{number} imported — ready to create the workspace.`,"createPage.unlockPrCheckout":`Unlock`,"createPage.workspaceName":`Workspace name (defaults to Notion page title)`,"createPage.workspaceNamePlaceholder":`Workspace name...`,"createPage.instructions":`Additional instructions (optional)...`,"createPage.instructionsPlaceholder":`Describe the task...`,"createPage.tasks":`Tasks ({count})`,"createPage.addTask":`Add a task...`,"createPage.acceptanceCriteria":`Acceptance Criteria ({count})`,"createPage.addCriterion":`Add a criterion...`,"createPage.projectPath":`Enter the project path`,"createPage.branchType":`Branch type`,"createPage.branch":`Branch`,"createPage.noBranches":`No branches found`,"createPage.enterPath":`Enter a project path`,"createPage.skipSetupScript":`Skip setup script`,"createPage.worktreePickerLabel":`Existing worktree`,"createPage.noOrphanWorktrees":`No orphan worktrees in this project`,"createPage.pickWorktreeRequired":`Please pick a worktree to attach`,"createPage.notionExtractHint":`Subtasks and acceptance criteria will be extracted from the Notion page.`,"createPage.errorCreating":`Error creating workspace.`,"createPage.branchAdjusted":"Branch already existed — created `{branch}` instead. The matching worktree folder uses the same suffix.","createPage.localSourceFallback":`Workspace created from the local branch (origin unreachable) — the base may be stale.`,"createPage.validationNotionUrl":`Please paste a valid Notion URL (https://www.notion.so/... or https://app.notion.com/...).`,"createPage.validationDescription":`Please describe the task.`,"createPage.validationName":`Please provide a workspace name.`,"createPage.validationPath":`Please enter the project path.`,"createPage.validationBranch":`Please select a branch.`,"createPage.validationFocusHint":`The field to fix is highlighted below.`,"createPage.progress.validate":`Validating the request…`,"createPage.progress.fetch-source-branch":`Fetching the source branch from origin…`,"createPage.progress.inspect-worktree":`Inspecting the existing worktree…`,"createPage.progress.extract-notion":`Extracting the Notion page…`,"createPage.progress.extract-sentry":`Extracting the Sentry issue…`,"createPage.progress.create-record":`Creating the workspace…`,"createPage.progress.create-tasks":`Creating tasks and acceptance criteria…`,"createPage.progress.create-worktree":`Creating the git worktree…`,"createPage.progress.write-conventions":`Writing git conventions…`,"createPage.progress.write-context-files":`Writing context files…`,"createPage.progress.build-prompt":`Building the initial prompt…`,"createPage.progress.setup-script":`Running your setup script…`,"createPage.progress.start-agent":`Starting the agent…`,"createPage.progress.rollback":`Undoing the failed creation…`,"createPage.progress.done":`Done`,"createPage.progress.step":`Step {index} of {total}`,"createPage.errorAtStep":`Creation failed at step "{step}": {message}`,"createPage.override.title":`Two of your choices were overridden`,"createPage.override.setup-script-forced":`Setup script skipped: re-running it on a worktree you already prepared could destroy its contents.`,"createPage.override.permission-mode-downgraded":`Permission mode moved from Plan to Bypass: an auto-loop cannot run in Plan, which blocks tools and edits.`,"settings.title":`Settings`,"settings.language":`Language`,"settings.projectColor":`Color`,"settings.projectColorClear":`Clear`,"settings.projectColorDefault":`Default (grey)`,"settings.workspaceListSection":`Workspace list`,"settings.flattenWorkspaceList":`Flatten workspace list`,"settings.flattenWorkspaceListHint":`Show all workspaces in a single flat list with a project badge, instead of grouping by project.`,"settings.skillSuite.section":`Skill suite`,"settings.skillSuite.superpowers":`Superpowers`,"settings.skillSuite.gstack":`gstack`,"settings.skillSuite.custom":`Custom`,"settings.skillSuite.superpowersHint":`Opinionated TDD / brainstorm / plan workflow (github.com/obra/superpowers).`,"settings.skillSuite.gstackHint":`Garry Tan's stack — /review, /ship, /qa, /office-hours, etc. (github.com/garrytan/gstack).`,"settings.skillSuite.superpowersGstack":`Superpowers + gstack`,"settings.skillSuite.superpowersGstackHint":`Both suites stack — superpowers for process discipline (brainstorm / TDD / plans / principles-level review), gstack for concrete workflows (/review, /qa, /browse, /design-review, /investigate).`,"settings.skillSuite.ecc":`ECC`,"settings.skillSuite.eccHint":`affaan-m's agent-harness framework — agents, skills, rules and hooks for planning, testing, implementing, reviewing and memorizing (github.com/affaan-m/ECC).`,"settings.skillSuite.allThree":`Superpowers + gstack + ECC`,"settings.skillSuite.allThreeHint":`All three stack — superpowers for process discipline, gstack for concrete workflows, ECC for structured multi-agent review/implementation passes.`,"settings.skillSuite.customHint":`Compose the five prompts below from any templates you choose, then edit them freely.`,"settings.skillSuite.reloadDefaults":`Reload defaults`,"settings.skillSuite.reloadDefaultsConfirm":`Replace the five custom prompts with the agnostic defaults?`,"settings.skillSuite.customPrompts":`Custom prompts`,"settings.skillSuite.agnostic":`Agnostic baseline`,"settings.skillSuite.importPrompt":`Import a template`,"settings.skillSuite.imported":`Template imported. You can now edit it.`,"settings.skillSuite.importFailed":`Unable to import the template`,"settings.skillSuite.reviewTemplate":`Review template`,"settings.skillSuite.autoLoopReviewGate":`Auto-loop review gate`,"settings.skillSuite.autoLoopGroomingIntro":`Auto-loop grooming intro`,"settings.skillSuite.qaTemplate":`QA template`,"settings.skillSuite.brainstormingInstruction":`Brainstorming-phase instruction`,"settings.global":`Global`,"settings.projects":`Projects`,"settings.globalSettings":`Global Settings`,"settings.defaultModel":`Default model`,"settings.defaultModelClaude":`Default model (Claude Code)`,"settings.defaultModelCodex":`Default model (OpenAI Codex)`,"settings.agentPermissions":`Agent permissions`,"settings.skipPermissions":`Skip permission prompts (--dangerously-skip-permissions)`,"settings.skipPermissionsWarning":`Warning: disabling this will cause all tool permissions (Write, Edit, Bash...) to be auto-denied in headless mode. The agent will only be able to read.`,"settings.notifications":`Notifications`,"settings.browserNotifications":`Browser notifications when agent finishes`,"settings.audioNotifications":`Sound notification when agent finishes`,"settings.enableBrowserNotifications":`Enable browser notifications`,"settings.testBrowserNotification":`Test notification`,"settings.browserNotificationGranted":`Browser notifications allowed`,"settings.browserNotificationDenied":`Browser notifications blocked`,"settings.browserNotificationAsk":`Browser permission required`,"settings.browserNotificationUnsupported":`Browser notifications unavailable`,"settings.browserNotificationPermissionNeeded":`Allow browser notifications to send a test.`,"settings.browserNotificationTestTitle":`Kōbō notification test`,"settings.browserNotificationTestBody":`Browser notifications are working.`,"settings.enableAudio":`Enable audio`,"settings.notificationSound":`Notification sound`,"settings.notificationSoundHint":`Played when the agent finishes or requests permission.`,"settings.questionSound":`Question sound`,"settings.questionSoundHint":`Played only when the agent asks you a question.`,"settings.workspaceCreatedSound":`Workspace creation sound`,"settings.workspaceCreatedSoundHint":`Played after a workspace is created.`,"settings.notificationSoundPreview":`Preview`,"settings.notificationVolume":`Volume`,"settings.notificationSoundHey":`Hey`,"settings.agentErrorSound":`Agent errors`,"settings.agentErrorSoundHint":`Played for quota, rate-limit, and agent errors.`,"settings.notificationSoundBasic":`Basic notification`,"settings.notificationSoundWorkspaceCreated":`Warcraft III — Work`,"settings.notificationSoundTravailTermine":`Work done`,"settings.notificationSoundFaaah":`Faaah`,"settings.notificationSoundCaVaPeter":`It's gonna blow`,"settings.notificationSoundDryFart":`Dry fart`,"settings.notificationSoundForShure":`For shure`,"settings.prSoundSection":`PR / MR and CI`,"settings.soundGeneral":`General sound`,"settings.soundNone":`No sound`,"settings.prCiFailedSound":`CI failed`,"settings.prCiRecoveredSound":`CI recovered`,"settings.prChangesRequestedSound":`Changes requested`,"settings.prApprovedSound":`PR approved`,"settings.prMergeConflictSound":`Merge conflict`,"settings.prReadyToMergeSound":`Ready to merge`,"settings.prMergedSound":`PR merged`,"settings.prCiFailedSoundHint":`Played when CI changes to a failed state.`,"settings.prCiRecoveredSoundHint":`Played when CI recovers from a failure.`,"settings.prChangesRequestedSoundHint":`Played when a review requests changes.`,"settings.prApprovedSoundHint":`Played when the pull request is approved.`,"settings.prMergeConflictSoundHint":`Played when a merge conflict is detected.`,"settings.prReadyToMergeSoundHint":`Played when the pull request becomes ready to merge.`,"settings.prMergedSoundHint":`Played when the pull request is merged.`,"settings.notificationSoundSeptiemeCompagnie03":`7ème compagnie 03`,"settings.notificationSoundAllerFtg":`Aller FTG`,"settings.notificationSoundArreteDeMentir":`Arrête de mentir`,"settings.notificationSoundArretezLesMessages":`Arrêtez d'envoyer les messages`,"settings.notificationSoundBahAlorsOnEstNul":`Bah alors, on est nul`,"settings.notificationSoundGtaVDeath":`GTA V — Death`,"settings.notificationSoundNanTuDegages":`Nan, tu dégages`,"settings.notificationSoundNanWallahPardon":`Nan, wallah, pardon`,"settings.notificationSoundOuaisCestGreg":`Ouais, c'est Greg`,"settings.notificationSoundPasCaZinedine":`Pas ça, Zinedine`,"settings.notificationSoundTaGueule":`Ta gueule`,"settings.notificationSoundTuVasLaFermer":`Tu vas la fermer`,"settings.notificationSoundYaaa":`Yaaa`,"settings.notificationSoundMaisLaisseMoiDormirZebi":`Mais laisse-moi dormir zebi`,"settings.defaultPermissionMode":`Default permission mode`,"settings.defaultPermissionModeClaude":`Default permission mode (Claude Code)`,"settings.defaultPermissionModeCodex":`Default permission mode (OpenAI Codex)`,"settings.defaultPermissionModeHint":`Mode applied when creating a new workspace. Plan = read-only first, Bypass = skip prompts, Strict = auto-accept edits with allow-list, Interactive = ask before each tool.`,"settings.activityFeed":`Activity feed`,"settings.verboseMessages":`Show verbose system messages (task_progress, task_started)`,"settings.showThinkingBlocks":`Show agent thinking blocks`,"settings.whipSettings":`Whip`,"settings.whipSettingsHint":`Configure the optional whip shortcut and volume.`,"settings.whipEnabled":`Enable whip`,"settings.whipEnabledHint":`Shows the interactive whip control in eligible running workspaces.`,"settings.whipVolume":`Whip volume`,"settings.whipVolumeMasterAudioDisabled":`Master audio is off. Enable audio notifications to adjust the whip volume; your saved value is preserved.`,"whip.overlayLabel":`Interactive whip`,"whip.overlayInstructions":`Move the pointer to control the whip. Press Enter or Space to crack it. Press Escape to close.`,"settings.whipShortcut":`Whip shortcut`,"settings.whipShortcutHint":`Click, then press the shortcut to use.`,"settings.whipShortcutRecording":`Press a shortcut…`,"settings.whipShortcutButtonLabel":`Whip shortcut: {shortcut}`,"settings.whipShortcutRecordingLabel":`Recording whip shortcut. Press a shortcut…`,"settings.whipShortcutReset":`Reset shortcut`,"settings.whipShortcutReserved":`This shortcut is reserved by the browser.`,"settings.testIntegration":`Test connection`,"pwa.offline":`You are offline. Chat and agents require the Kōbō server.`,"pwa.reconnecting":`Reconnecting to the Kōbō server…`,"pwa.installReady":`Install Kōbō as an app.`,"pwa.install":`Install`,"pwa.ignore":`Ignore`,"pwa.updateReady":`A Kōbō update is available.`,"pwa.reload":`Reload`,"chat.searchWorkspaceHistory":`Search workspace history`,"chat.historySearch.user":`You`,"chat.historySearch.agent":`Agent`,"chat.openInGitDiff":`Open in Git diff`,"timeline.title":`Session timeline`,"timeline.export":`Export diagnostic`,"timeline.unnamed":`Agent session`,"timeline.tools":`{count} tools`,"timeline.errors":`{count} errors`,"settings.availableVariables":`Available template variables`,"settings.prPromptTemplate":`PR prompt template`,"settings.prPromptPlaceholder":`Instructions for the agent when creating GitHub PRs...`,"settings.prPromptHint":`Use the template variables listed above (double curly brace syntax).`,"settings.reviewPromptTemplate":`Review prompt template`,"settings.reviewPromptPlaceholder":`Instructions for the agent when reviewing branch changes...`,"settings.ciFixPromptTemplate":`CI fix prompt template`,"settings.ciFixPromptHint":`Sent to the agent when a workspace has failing CI. Variables (double-brace syntax): pr_url, pr_number, pr_title, branch_name, source_branch, workspace_name, workspace_id, project_name, failed_jobs, ci_run_url.`,"settings.ciFixPromptPlaceholder":`Ask the agent to diagnose and fix the failing CI jobs...`,"settings.finalizationPromptTemplate":`Auto-loop finalization prompt`,"settings.finalizationPromptHint":`Default prompt for the final auto-loop iteration (last quality checks). Used when a project leaves its own finalization prompt empty.`,"settings.finalizationPromptPlaceholder":`Run final quality checks before closing the workspace...`,"settings.notionInitialPrompt":`Notion initial prompt`,"settings.notionInitialPrompt.help":`Appended to the workspace creation prompt when the workspace has a Notion ticket. Variables: {variables}.`,"settings.notionInitialPrompt.project":`Notion initial prompt (override)`,"settings.sentryInitialPrompt":`Sentry initial prompt`,"settings.sentryInitialPrompt.help":`Appended to the workspace creation prompt when the workspace has a Sentry issue. Variables: {variables}.`,"settings.sentryInitialPrompt.project":`Sentry initial prompt (override)`,"settings.initialPrompt.inheritHint":`Leave blank to inherit. Type any whitespace character to disable injection at this level.`,"settings.resetToDefault":`Reset to default`,"settings.resetFailed":`Failed to load default value`,"settings.sentryIntegration":`Sentry integration`,"settings.var.prNumber":`PR number (e.g., 42)`,"settings.var.prUrl":`Full URL of the created PR`,"settings.var.branchName":`Working branch name`,"settings.var.sourceBranch":`Source branch the PR targets`,"settings.var.workspaceName":`Workspace name`,"settings.var.projectName":`Last segment of the project path`,"settings.var.notionUrl":`Notion URL if set, empty otherwise`,"settings.var.commits":`Bulleted commit list between source and head`,"settings.var.diffStats":`Git shortstat summary (files, insertions, deletions)`,"settings.var.tasks":`Regular tasks as a checkbox list`,"settings.var.acceptanceCriteria":`Acceptance criteria as a checkbox list`,"settings.gitConventions":`Git conventions (global)`,"settings.gitConventionsPlaceholder":`# Git conventions...`,"settings.gitConventionsHint":`These conventions are written to .ai/.git-conventions.md in each new workspace and must be followed by the agent before any git operation. Overridden by per-project conventions if defined.`,"settings.setupScript":`Setup script`,"settings.cleanupScript":`Cleanup script`,"settings.archiveScript":`Archive script`,"settings.archiveScriptHint":`Shell script run server-side in the worktree when a workspace is archived. Leave empty to disable.`,"settings.archiveScriptPlaceholder":`e.g. clean up containers, free disk space…`,"settings.hook.sessionEndedTitle":`Hook: session ended`,"settings.hook.sessionEndedHint":`Runs when an agent session ends, whatever the reason. Reads KOBO_SESSION_END_REASON (completed / error / killed / watchdog), KOBO_SESSION_STOP_CAUSE, KOBO_AUTOLOOP_ACTIVE, KOBO_SESSION_ID and KOBO_SESSION_EXIT_CODE. Empty = disabled.`,"settings.hook.sessionEndedPlaceholder":`e.g. npm test, or notify a chat channel…`,"settings.hook.prMergedTitle":`Hook: PR merged`,"settings.hook.prMergedHint":`Runs when a PR is detected as merged, before the workspace is archived or purged — the worktree is still on disk. Reads KOBO_PR_NUMBER and KOBO_PR_URL. Empty = disabled.`,"settings.hook.prMergedPlaceholder":`e.g. trigger a deployment, tag a release…`,"settings.hook.autoLoopDisabledTitle":`Hook: auto-loop stopped`,"settings.hook.autoLoopDisabledHint":`Runs whenever auto-loop is disabled, by Kōbō or by you. Reads KOBO_AUTOLOOP_REASON (completed / stall / error / user-action / awaiting-clarification) and KOBO_TASKS_PENDING. Empty = disabled.`,"settings.hook.autoLoopDisabledPlaceholder":`e.g. send a notification when the loop stalls…`,"settings.changeSourceBranchScript":`Change-source-branch script`,"settings.changeSourceBranchScript.help":`Replaces the built-in cherry-pick when non-empty. The script owns git, PR base, force-push and conflicts; Kōbō still refuses while the agent is running and updates the source-branch metadata on exit 0.`,"settings.changeSourceBranchScript.envHelp":`KOBO_NEW_BASE — new source branch chosen in the dialog
3
- KOBO_OLD_BASE — workspace’s previous source branch
4
- KOBO_WORKING_BRANCH — workspace’s working branch
5
- KOBO_WORKTREE_PATH — absolute path of the worktree (also cwd)
6
- KOBO_PROJECT_PATH — absolute path of the main project repo
7
- KOBO_PROJECT_NAME — project directory name (basename of KOBO_PROJECT_PATH)
8
- KOBO_WORKSPACE_ID — Kōbō workspace id (stable across renames)
9
- KOBO_WORKSPACE_NAME — workspace display name
10
- KOBO_FORGE — resolved forge: github / gitlab / none
11
- KOBO_PR_NUMBER — PR/MR number on the resolved forge (empty if none open)`,"settings.changeSourceBranchScript.placeholder":`#!/usr/bin/env bash
12
- # your script — use $KOBO_NEW_BASE / $KOBO_OLD_BASE / $KOBO_WORKING_BRANCH …`,"settings.changeSourceBranchScript.resetDefault":`Reset to Kōbō default`,"settings.changeSourceBranchScript.replaceConfirmTitle":`Reset the script?`,"settings.changeSourceBranchScript.replaceConfirm":`Your edits will be replaced by the Kōbō default script. Continue?`,"settings.cleanupScriptHint":`Shell script run in the worktree after the agent finishes a session. In auto-loop mode it runs only once every task is done. Leave empty to disable.`,"settings.cleanupScriptPlaceholder":`e.g. remove temp files, stop containers…`,"settings.cleanupScriptMode":`When to run`,"settings.cleanupScriptMode.idle":`After every session — even if tasks remain`,"settings.cleanupScriptMode.noTasks":`Only when no Kōbō task remains`,"settings.cleanupScriptOnlyOnChanges":`Run only if files were modified, added or deleted`,"settings.cleanupScriptMode.inherit":`Inherit global setting`,"settings.taskPromptTemplate":`Task prompt`,"settings.taskPromptTemplatePlaceholder":`Prompt automatically inserted into the task description…`,"settings.taskPromptTemplateHint":`Automatically injected into the task description on the creation page when this project is selected. Left untouched, it is replaced when you switch projects; once you edit it, your text is kept.`,"settings.setupScriptPlaceholder":`npm install`,"settings.setupScriptHint":`Executed with bash in the worktree after creation, before the agent starts. No shebang needed. If it fails, the workspace is set to error. Timeout: 5 minutes.`,"settings.e2e.title":`E2E tests`,"settings.e2e.framework":`Framework`,"settings.e2e.frameworkNone":`None`,"settings.e2e.frameworkOther":`Other`,"settings.e2e.skill":`Skill (optional)`,"settings.e2e.skillPlaceholder":`e.g. cypress-tester`,"settings.e2e.prompt":`Custom guidance (optional)`,"settings.e2e.promptPlaceholder":`e.g. use page-object pattern, target data-testid attributes`,"settings.e2e.helpText":`When configured, the auto-loop grooming agent inserts E2E sub-tasks for user-visible features.`,"settings.finalization.title":`Auto-loop finalization`,"settings.finalization.helpText":`Optional: a prompt the agent runs as the very last auto-loop iteration. Typically used for final quality checks (lint, typecheck, tests). The grooming step will create a [FINAL]-prefixed task that uses this prompt.`,"settings.finalization.prompt":`Finalization prompt`,"settings.finalization.promptPlaceholder":`e.g. Run npm run lint and npm test, then mark this task done.`,"settings.editorCommand":`Editor command`,"settings.editorCommandPlaceholder":`code, phpstorm, subl, vim...`,"settings.editorCommandHint":`Command used to open the worktree in your editor. The worktree path is passed as argument.`,"settings.fileManagerCommand":`File manager command`,"settings.fileManagerCommandPlaceholder":`xdg-open, open, nautilus, dolphin, explorer...`,"settings.fileManagerCommandHint":`Command used to open the worktree in your file manager. The worktree path is passed as argument. Leave empty to hide the button.`,"settings.terminalCommand":`Terminal command`,"settings.terminalCommandHint":`Command to launch your terminal in the worktree. Optional {path} placeholder for the directory.`,"settings.terminalCommandPlaceholder":`kitty · alacritty · gnome-terminal --working-directory={path}`,"settings.mcpSelection":`Claude MCP selection`,"settings.mcpAutoSelect":`Auto (first matching active MCP)`,"settings.notionMcp":`Notion MCP key`,"settings.sentryMcp":`Sentry MCP key`,"settings.mcpSelectionHint":`Active entries are read from ~/.claude.json. Leave Auto to use default matching behavior.`,"settings.configuredProjects":`Configured projects`,"settings.noProjects":`No projects configured`,"settings.addProject":`Add project`,"settings.copyFrom":`Copy settings from`,"settings.copyFromPlaceholder":`(none — start from defaults)`,"settings.copyFromHint":`Copies all settings except path, display name, and source branch.`,"settings.copyFromConfirmTitle":`Overwrite current values?`,"settings.copyFromConfirm":`This will overwrite the current form values with settings from "{project}". Continue?`,"settings.newProject":`New project`,"settings.editProject":`Edit project`,"settings.onboardingTitle":`Guided tour`,"settings.onboardingHint":`Replay the walkthrough of the main interface elements.`,"settings.onboardingReplay":`Replay the guided tour`,"onboarding.list.title":`Workspaces`,"onboarding.list.description":`Each mission lives in its own space — a dedicated git worktree, branch, and agent session. They all appear here.`,"onboarding.create.title":`Create a workspace`,"onboarding.create.description":`Click + to start a new mission — from a Notion ticket, a Sentry issue, or from scratch.`,"onboarding.search.title":`Search`,"onboarding.search.description":`Filter your workspaces by name, or search across agent conversation history.`,"onboarding.health.title":`Health`,"onboarding.health.description":`Check Kōbō's status: database, active agents, integrations, backups.`,"onboarding.changelog.title":`What's new`,"onboarding.changelog.description":`Browse Kōbō's latest releases: new features, fixes, behaviour changes. A badge appears when an unread release is available.`,"onboarding.settings.title":`Settings`,"onboarding.settings.description":`Models, lifecycle scripts, integrations, voice — all of Kōbō’s configuration lives here. Click Next for a tour of each section.`,"onboarding.settings-general.title":`General`,"onboarding.settings-general.description":`Interface language, default project, and global behaviour applied to every new workspace.`,"onboarding.settings-agents.title":`Agents & models`,"onboarding.settings-agents.description":`Pick the default engine — Claude Code or Codex — the model, and the permission mode agents run with.`,"onboarding.settings-skills.title":`Skills`,"onboarding.settings-skills.description":`Choose the skill suite agents load: the recommended preset or your own custom selection.`,"onboarding.settings-prompts.title":`Prompts`,"onboarding.settings-prompts.description":`PR description template and other reusable prompt text used by agents.`,"onboarding.settings-scripts.title":`Scripts`,"onboarding.settings-scripts.description":`Lifecycle scripts run on cleanup, archive, and workspace setup — set globally or per project.`,"onboarding.settings-notion.title":`Notion`,"onboarding.settings-notion.description":`Connect your Notion integration token to import tickets as workspace missions.`,"onboarding.settings-sentry.title":`Sentry`,"onboarding.settings-sentry.description":`Import an issue from Sentry as the source of truth for a workspace.`,"onboarding.settings-forge.title":`Forge`,"onboarding.settings-forge.description":`Choose GitHub, GitLab or none per project. Kōbō drives your own gh / glab CLI — it ships no credentials.`,"onboarding.settings-voice.title":`Voice`,"onboarding.settings-voice.description":`Voice dictation: enable it, pick the Whisper model, and manage the local speech runtime.`,"onboarding.settings-notifications.title":`Notifications`,"onboarding.settings-notifications.description":`Sound and browser notifications for agent events and status changes.`,"onboarding.settings-worktrees.title":`Worktrees`,"onboarding.settings-worktrees.description":`Git branch prefixes and the folder where workspace worktrees are created.`,"onboarding.settings-worktrees-purge.title":`Free disk space automatically`,"onboarding.settings-worktrees-purge.description":"Enable this toggle so Kōbō removes the worktree folder (often hundreds of MB of node_modules / vendor) as soon as a PR is merged. Chat history and PR metadata are kept. You can recreate the worktree later with `gh pr checkout <pr>` — Kōbō auto-detects the restoration within 30 seconds and reactivates the workspace.","onboarding.settings-projects.title":`Projects`,"onboarding.settings-projects.description":`Register the repositories you work on. Click “Add a project” to point Kōbō at a local codebase — every workspace targets one of these.`,"onboarding.settings-templates.title":`Templates`,"onboarding.settings-templates.description":`Your library of reusable prompt templates — pick one to pre-fill the brief when creating a workspace.`,"onboarding.settings-export.title":`Import / Export`,"onboarding.settings-export.description":`Back up or share your Kōbō configuration, and export workspace data to a file.`,"onboarding.firstWorkspace.title":`Create your first workspace`,"onboarding.firstWorkspace.description":`That is the whole point: one mission, one worktree, one agent. Open the creation page to get started.`,"onboarding.next":`Next`,"onboarding.prev":`Back`,"onboarding.done":`Done`,"onboarding.exitConfirm":`Exit the guided tour? You can replay it anytime from Settings.`,"settings.projectGroup.identity":`Identity`,"settings.projectGroup.defaults":`Defaults`,"settings.projectGroup.prompts":`Prompts`,"settings.projectGroup.scripts":`Scripts`,"settings.projectPath":`Project path`,"settings.projectPathPlaceholder":`/path/to/project`,"settings.displayName":`Display name`,"settings.displayNamePlaceholder":`My project`,"settings.defaultSourceBranch":`Default source branch`,"settings.defaultModel.project":`Default model`,"settings.skipPermissions.project":`Skip permission prompts`,"settings.prPromptTemplate.project":`PR prompt template`,"settings.prPromptPlaceholder.project":`Project-specific instructions for PR creation...`,"settings.reviewPromptTemplate.project":`Review prompt template`,"settings.ciFixPromptTemplate.project":`CI fix prompt template`,"settings.gitConventions.project":`Git conventions (project override)`,"settings.gitConventionsEmpty":`Leave empty to use the global conventions.`,"settings.notionStatus":`Notion ticket status`,"settings.notionStatusProperty":`Property name`,"settings.notionStatusPropertyPlaceholder":`État, Status...`,"settings.notionInProgressStatus":`Value to set`,"settings.notionInProgressStatusPlaceholder":`In progress, En cours...`,"settings.notionStatusHint":`When a workspace is created with a Notion ticket, the specified property is set to this value. Both fields are required. Leave empty to disable.`,"settings.notionAssignee":`Notion assignment`,"settings.notionAssigneeHint":`When a workspace is created with a Notion ticket, the user authenticated with the Notion MCP is added to this People property — only if it doesn't already have an assignee. Leave empty to disable.`,"settings.notionAssigneeProperty":`Property name`,"settings.notionAssigneePropertyPlaceholder":`Developers, Assignees...`,"settings.notionUserId":`Your Notion UUID`,"settings.notionUserIdPlaceholder":`135d872b-594c-8126-9604-00024ad6e5b5`,"settings.notionUserIdHint":`Pick your account from the list. Notion rejects bot assignment in People properties — this field is required to enable auto-assignment.`,"settings.notionUsersRefresh":`Refresh`,"settings.notionUsersLoading":`Loading Notion users…`,"settings.notionUsersLoadFailed":`Failed to load list: {error}`,"settings.notionUsersManualFallback":`List unavailable — paste your Notion UUID manually.`,"settings.devServer":`Dev server`,"settings.devServerStart":`Script start`,"settings.devServerStartPlaceholder":`npm run dev`,"settings.devServerStop":`Script stop`,"settings.devServerStopPlaceholder":`Optional — the process will be killed automatically if empty`,"settings.selectProject":`Select a project or add a new one`,"settings.projectPathRequired":`Project path is required.`,"settings.useGlobal":`Use global`,"settings.saved":`Global settings saved.`,"settings.unsavedChanges":`Unsaved changes`,"settings.nav.general":`General`,"settings.nav.agents":`Agents`,"settings.nav.skills":`Skills`,"settings.nav.prompts":`Prompts`,"settings.nav.scripts":`Scripts`,"settings.nav.workspaceTemplates":`Workspace templates`,"workspaceTemplates.title":`Workspace templates`,"workspaceTemplates.hint":`Saved presets of the create form. Pick one on the create page; to change one, load it there, adjust, and save it again under the same name.`,"workspaceTemplates.empty":`No template yet. Fill the create form and use “Save as template”.`,"workspaceTemplates.anyProject":`Any project`,"workspaceTemplates.rename":`Rename`,"workspaceTemplates.renameTitle":`Rename the template`,"workspaceTemplates.deleteConfirm":`Delete the template “{name}”?`,"workspaceTemplates.deleted":`Template “{name}” deleted`,"settings.nav.notion":`Notion`,"settings.nav.forge":`Forge`,"settings.bitbucketCommunity":`Bitbucket Community`,"settings.bitbucketCommunityHint":`Credentials are kept locally and used only by bkt.`,"settings.bitbucketUsername":`Atlassian email`,"settings.bitbucketToken":`Bitbucket API token`,"settings.nav.sentry":`Sentry`,"settings.nav.voice":`Voice`,"settings.nav.notifications":`Notifications`,"settings.nav.worktrees":`Worktrees`,"settings.nav.export":`Export`,"settings.openNav":`Open navigation`,"settings.saveError":`Error saving settings.`,"settings.projectSaved":`Project saved.`,"settings.projectSaveError":`Error saving project.`,"settings.projectDeleted":`Project deleted.`,"settings.deleteProjectConfirmTitle":`Delete project?`,"settings.deleteProjectConfirmMessage":`Remove "{name}" from your projects? This only deletes its Kōbō settings — your code and worktrees are left untouched.`,"settings.projectDeleteError":`Error deleting project.`,"templates.title":`Templates`,"templates.newTemplate":`New template`,"templates.editTemplate":`Edit template`,"templates.deleteTemplate":`Delete template`,"templates.deleteConfirm":`Delete template '/{slug}'?`,"templates.deleteConfirmMessage":`This cannot be undone.`,"templates.slug":`Slug`,"templates.slugHint":`Lowercase letters, digits, hyphens. Max 64 chars.`,"templates.slugInvalid":`Slug must contain only lowercase letters, digits, and hyphens`,"templates.slugDuplicate":`A template with this slug already exists`,"templates.description":`Description`,"templates.descriptionHint":`Short label shown in the dropdown.`,"templates.descriptionRequired":`Description is required`,"templates.contentRequired":`Content is required`,"templates.content":`Content`,"templates.contentHint":`Template content. Use {variable_name} for substitutions.`,"templates.availableVars":`Available variables`,"templates.filePath":`File: {path}`,"templates.empty":`No templates yet.`,"templates.createFailed":`Failed to create template`,"templates.updateFailed":`Failed to update template`,"templates.deleteFailed":`Failed to delete template`,"templates.save":`Save`,"templates.create":`Create`,"templates.reloadDefaults":`Reload default templates`,"templates.reloadDefaultsHint":`Only adds default templates that are missing. Existing templates (modified or not) are never overwritten.`,"templates.reloadDefaultsConfirmMessage":`This action will add any missing default templates back to the list. Existing templates — including ones you've customized — will not be touched. If you want to restore a default template you've modified, delete it first, then run this action.`,"templates.reloadDefaultsSuccess":`{added} added, {kept} kept`,"templates.reloadDefaultsFailed":`Failed to reload default templates`,"templates.resetToDefault":`Reset to default`,"templates.resetConfirmTitle":`Reset template to default?`,"templates.resetConfirmMessage":`This overwrites your local changes to /{slug} with the built-in default. This cannot be undone.`,"templates.resetSuccess":`Template /{slug} reset to default`,"templates.resetFailed":`Failed to reset template`,"chatInput.dropdownSkills":`Claude skills`,"chatInput.dropdownKobo":`Kōbō commands`,"chatInput.dropdownTemplates":`Templates`,"documents.title":`Documents`,"documents.empty":`No documents found`,"documents.refresh":`Refresh`,"documents.back":`Back`,"documents.loadFailed":`Failed to load document`,"git.title":`Git`,"git.outputDialogTitle":`Git reported an error`,"git.statsFailed":`Git status could not be read`,"git.section.repository":`Repository`,"git.section.changes":`Changes`,"git.section.pullRequest":`Pull request`,"git.section.actions":`Actions`,"git.actions.more":`More`,"git.localOnly":`local only`,"git.pushed":`pushed`,"git.unpushed":`{count} unpushed`,"git.commits":`{count} commit | {count} commits`,"git.commits.loading":`Loading commits…`,"git.commits.empty":`No commits on this branch`,"git.commits.pushed":`Pushed`,"git.commits.unpushed":`Not pushed`,"git.commits.clickToAppend":`click to append SHA to chat`,"git.commits.diffThisCommit":`Diff this commit (vs parent)`,"git.compareCommits":`Compare commits…`,"git.files":`{count} file | {count} files`,"git.staged":`{count} staged`,"git.modified":`{count} modified`,"git.untracked":`{count} untracked`,"git.workingTreeEmpty":`No uncommitted changes`,"git.fileStaged":`Staged`,"git.fileModified":`Modified`,"git.fileUntracked":`Untracked`,"git.push":`Push`,"git.forcePush":`Force push`,"git.forcePushToggle":`Force push (--force-with-lease)`,"git.forcePushHint":`Safer than plain --force: the push is rejected if the remote has commits you haven’t seen. Use after rebasing or amending already-pushed commits.`,"git.branchForcePushed":`Branch force-pushed`,"git.pull":`Pull`,"git.pullNoUpstream":`No upstream set for this branch — push it first to enable pull.`,"git.sync":`Sync`,"git.createPrNoRemote":`Push the branch first`,"git.viewRequest":`View {request}`,"git.createRequest":`Create {request}`,"git.changeRequestBase":`Change {request} base branch`,"git.forgeCliMissing":`{cli} is not installed — install it to use {request} features`,"git.forgeNotAuthenticated":`Not authenticated — run {cli} auth login`,"settings.forge":`Forge`,"settings.forge.auto":`Auto-detect`,"settings.forge.github":`GitHub`,"settings.forge.gitlab":`GitLab`,"settings.forge.bitbucketCommunity":`Bitbucket Community (bkt)`,"settings.forge.none":`None`,"git.pullConfirmTitle":`Pull branch?`,"git.pullConfirmMessage":`Pull {branch} from remote (fast-forward only).`,"git.branchPulled":`Branch pulled`,"git.pullFailed":`Pull failed`,"git.renameBranch":`Rename branch`,"git.renameBranchPrompt":"Rename `{branch}` to:","git.renameBranchSuccess":"Branch renamed to `{branch}`","git.renameBranchFailed":`Failed to rename branch`,"git.renameBranchExists":"Branch `{branch}` already exists locally or on origin","git.diff":`Diff`,"git.diffReview":`Diff`,"git.diffReviewTooltip":`Open the diff viewer in Review mode — inline comments + batch submit to the agent`,"pr.baseChanged":`PR base changed: {oldBase} → {newBase}`,"pr.openPr":`Open PR`,"pr.openWorkspace":`Open workspace`,"pr.dismiss":`Dismiss`,"git.rebase":`Rebase`,"git.rebaseConfirmTitle":`Rebase branch?`,"git.rebaseConfirmMessage":`Rebase onto {branch}. This may cause conflicts.`,"git.rebaseSuccess":`Rebase completed`,"git.rebaseFailed":`Rebase failed`,"git.merge":`Merge`,"git.fetch":`Fetch`,"git.fetchSuccess":`Repository fetched`,"git.fetchFailed":`Fetch failed: {error}`,"git.mergeConfirmTitle":`Merge branch?`,"git.mergeConfirmMessage":`Merge {branch} into this branch. This may cause conflicts.`,"git.mergeSuccess":`Merge completed`,"git.mergeFailed":`Merge failed`,"git.commitFailed":`Commit failed`,"git.commitChanges":`Commit changes`,"git.commitDialogTitle":`Commit uncommitted changes`,"git.commitDialogDescription":`Enter your own message or ask the agent to inspect and create the commit.`,"git.commitMessage":`Commit message`,"git.commitManual":`Commit`,"git.commitWithAgent":`Ask agent`,"git.commitAgentSuccess":`Commit request sent to the agent`,"git.discardFailed":`Discard failed`,"git.conflictTitleMerge":`Merge conflicts detected`,"git.conflictTitleRebase":`Rebase conflicts detected`,"git.operationPausedTitle":`Git operation ready to continue`,"git.operationPausedSubtitle":`No files are in conflict. Git is simply waiting for you to continue the operation.`,"git.conflictSubtitle":`{count} file(s) have conflicts. Choose how to continue.`,"git.conflictAbortConfirmTitle":`Discard the conflict resolution?`,"git.conflictAbortConfirmMessage":`Everything you resolved in this {op} is thrown away and the worktree goes back to its pre-{op} state. This cannot be undone.`,"git.conflictAbort":`Abort`,"git.conflictContinue":`Continue`,"git.conflictContinued":`Git operation continued`,"git.conflictResolveWithAgent":`Ask agent to resolve`,"git.conflictAborted":`Operation aborted`,"git.conflictHandoffSuccess":`Agent is resolving the conflicts`,"git.dirtyTitleRebase":`Uncommitted changes block the rebase`,"git.dirtyTitleMerge":`Uncommitted changes block the merge`,"git.dirtyTitlePull":`Uncommitted changes block the pull`,"git.dirtySubtitle":`{modified} modified, {staged} staged, {untracked} untracked. Choose how to proceed.`,"git.dirtyStash":`Stash & retry`,"git.dirtyCommit":`Commit first`,"git.dirtyCommitPlaceholder":`Commit message`,"git.dirtyCommitConfirm":`Commit & retry`,"git.dirtyDiscard":`Discard changes`,"git.dirtyDiscardConfirmTitle":`Discard all uncommitted changes?`,"git.dirtyDiscardConfirmMessage":`Tracked changes will be lost (git reset --hard). Untracked files are kept. This cannot be undone.`,"git.pushConfirmTitle":`Push branch?`,"git.pushConfirmMessage":`Push {branch} to remote.`,"git.pushConfirmMessagePrefix":`Push branch`,"git.pushConfirmMessageSuffix":`to remote.`,"git.changePrBaseTitle":`Change base branch`,"git.changePrBaseMessage":`Enter the new target branch for the {request}.`,"git.changePrBaseSuccess":`{request} base branch updated`,"git.changePrBaseFailed":`Failed to change {request} base branch`,"git.mergeRequest":`Merge {request}`,"git.mergeRequestConfirmTitle":`Merge {request}?`,"git.mergeRequestConfirmMessage":`This merges the open {request} into its target branch.`,"git.mergeRequestSuccess":`{request} merged`,"git.mergeRequestFailed":`Failed to merge {request}`,"git.deleteRemoteBranch":`Delete remote branch`,"git.deleteRemoteBranchTitle":`Delete remote branch?`,"git.deleteRemoteBranchMessage":`The request was merged. Delete the remote branch {branch}?`,"git.deleteRemoteBranchSuccess":`Remote branch {branch} deleted`,"git.deleteRemoteBranchFailed":`Failed to delete remote branch`,"git.changeSourceBranch":`Change source branch`,"git.changeSourceBranchTitle":`Change source branch`,"git.changeSourceBranchMessage":`Pick the new source branch. The working branch will be rebuilt on top of it.`,"git.changeSourceBranchDone":`Source branch changed to {branch}`,"git.changeSourceBranchAligned":`Source branch changed to {branch} (branch had no own commits)`,"git.changeSourceBranchTooMany":`The branch has too many own commits ({n}) — rebase it manually`,"git.changeSourceBranchDirty":`Commit or stash your changes before changing the source branch`,"git.changeSourceBranchAgentRunning":`Stop the agent before changing the source branch`,"git.changeSourceBranchErrorTitle":`Source branch change failed`,"git.changeSourceBranchErrorOngoing":`A {op} operation is still in progress on the worktree. Abort it to return to a clean state.`,"git.changeSourceBranchErrorAbort":`Abort the operation`,"git.changeSourceBranchLoading":`Changing source branch…`,"git.changeSourceForcePushTitle":`Force-push the rewritten branch?`,"git.changeSourceForcePushMessage":`The branch history was rewritten. Force-push it to the remote with --force-with-lease?`,"git.changeSourceForcePushDone":`Branch force-pushed`,"git.openEditor":`Open in editor`,"git.openEditorFailed":`Failed to open editor`,"git.branchPushed":`Branch pushed`,"git.pushFirst":`Branch is not on remote. Click Push first.`,"git.unpushedCommits":`Local commits are not pushed. Click Push first.`,"git.from":`from`,"git.aheadBehindTooltip":`{ahead} commits ahead, {behind} behind {source}`,"git.divergence.title":`Branch divergence`,"git.divergence.subtitle":`vs {source}`,"git.divergence.ahead":`↑ {count} ahead`,"git.divergence.behind":`↓ {count} behind`,"git.divergence.empty.ahead":`No commits ahead.`,"git.divergence.empty.behind":`No commits behind.`,"git.divergence.close":`Close`,"git.divergence.loading":`Loading commits…`,"git.divergence.failed":`Failed to load divergence`,"git.divergence.retry":`Retry`,"git.prCreated":`{request} #{n} created`,"git.pr.author":`Author`,"git.pr.reviewers":`Reviewers`,"git.pr.assignees":`Assignees`,"git.pr.labels":`Labels`,"git.pr.changesRequestedBadge":`Changes requested`,"git.pr.approvedBadge":`Approved`,"git.pr.ci.passed":`CI passed`,"git.pr.ci.failed":`CI failed`,"git.pr.ci.pending":`CI running`,"git.pr.ci.failedCount":`{n} failed`,"git.pr.ci.pendingCount":`{n} pending`,"git.pr.ci.passedCount":`{n} passed`,"git.pr.ci.skippedCount":`{n} skipped`,"git.pr.ci.showPassed":`Show {n} passing jobs`,"git.pr.ci.hidePassed":`Hide passing jobs`,"toast.prChangesRequested":`PR #{n} has changes requested`,"toast.prApproved":`PR #{n} has been approved`,"toast.prReadyToMerge":`PR #{n} is ready to merge`,"toast.prCiFailed":`CI failed for PR #{n}`,"toast.prCiRecovered":`CI recovered for PR #{n}`,"toast.prMergeConflict":`PR #{n} has merge conflicts`,"toast.prMerged":`PR #{n} has been merged`,"devServer.title":`Dev Server`,"devServer.noWorkspace":`No workspace selected`,"devServer.notConfigured":`Not configured —`,"devServer.goToSettings":`Settings`,"devServer.logs":`Logs`,"devServer.running":`Running`,"devServer.starting":`Starting`,"devServer.stopping":`Stopping`,"devServer.error":`Error`,"devServer.stopped":`Stopped`,"devServer.unknown":`Unknown`,"devServer.containers":`{count} container | {count} containers`,"devServer.logDialog.title":`Logs Dev Server`,"devServer.logDialog.empty":`No logs available`,"notion.title":`Notion`,"tasks.title":`Tasks`,"notion.addTask":`Add task`,"notion.noUrl":`No Notion URL`,"notion.subtasks":`{done}/{total} subtasks`,"notion.noTasks":`No tasks`,"notion.newTask":`New task... (Enter to add, Esc to cancel)`,"acceptance.title":`Acceptance Criteria`,"acceptance.addCriterion":`Add criterion`,"acceptance.newCriterion":`New criterion... (Enter to add, Esc to cancel)`,"acceptance.empty":`No acceptance criteria`,"tasks.askProgress":`Ask agent to review progress`,"agentTodos.title":`Agent Todos`,"agentTodos.empty":`No agent todos`,"subagents.title":`Sub-agents`,"subagents.empty":`No sub-agent activity yet`,"subagents.tools":`{count} tools`,"subagents.running":`Running: `,"stats.resetsAt":`Resets {value}`,"stats.usageBucket":`Usage bucket {n}`,"quotaFooter.lastUpdated":`Last update: {time}`,"quotaFooter.empty":`Loading…`,"quotaFooter.popover.title":`Claude Code usage`,"quotaFooter.popover.refreshNow":`Refresh now`,"quotaFooter.popover.resetsIn":`Resets at {value}`,"quotaFooter.popover.unauthenticated":`Auth required`,"quotaFooter.popover.unauthenticatedHint":`Run "claude" once to authenticate.`,"quotaFooter.popover.error":`Error`,"quotaFooter.bucket.fiveHour":`5-hour`,"quotaFooter.bucket.sevenDay":`7-day`,"agent.error.spawn_failed":`Failed to launch the agent`,"agent.error.parse_error":`Unable to parse an agent message`,"agent.error.rate_limit":`Rate limit hit`,"agent.error.resume_failed":`Session not found — starting fresh`,"agent.error.other":`Agent error`,"quotaBackoff.banner.title":`Auto-resume at {time}`,"quotaBackoff.banner.transientTitle":`Auto-resume after interruption at {time}`,"quotaBackoff.resumeNow":`Resume now`,"quotaBackoff.banner.tooltip":`Claude quota exhausted. Auto-loop will resume automatically when the quota resets at {resets_at}.`,"quotaBackoff.banner.cancel":`Cancel resume`,"quotaBackoff.cancelled":`Auto-resume cancelled — you can re-engage manually anytime`,"rateLimitType.fiveHour":`5h session`,"rateLimitType.sevenDay":`Weekly`,"tooltip.addTask":`Add task`,"tooltip.removeTask":`Remove task`,"tooltip.addCriterion":`Add criterion`,"tooltip.removeCriterion":`Remove criterion`,"tooltip.startDevServer":`Start dev server`,"tooltip.stopDevServer":`Stop dev server`,"tooltip.closeDiffViewer":`Close diff viewer`,"tooltip.refreshLogs":`Refresh logs`,"tooltip.closeDialog":`Close`,"tooltip.refreshGitStats":`Refresh Git stats`,"tooltip.removeImage":`Remove image`,"tooltip.sendMessage":`Send message`,"tools.title":`Tools`,"tools.runSetupScript":`Re-run setup script`,"tools.runSetupScriptTooltip":`Execute the project setup script in the worktree`,"tools.runSetupScriptConfirm":`Re-run the setup script in this workspace? Existing artifacts may be overwritten.`,"tools.runSetupScriptBusy":`Cannot re-run setup while the agent is working.`,"tools.noSetupScript":`No setup script configured —`,"tools.setupScriptSuccess":`Setup script completed successfully.`,"tools.setupScriptFailed":`Setup script failed.`,"tools.openNotion":`Open in Notion`,"tools.openSentry":`Open in Sentry`,"tools.review":`Review changes`,"tools.reviewTooltip":`Ask the agent to review the changes on this branch`,"tools.reviewBusy":`Agent is busy — wait until it's idle`,"tools.fixCi":`Fix CI`,"tools.fixCiTooltip":`Ask the agent to diagnose and fix the failing CI jobs`,"tools.fixCiLaunched":`Fix-CI action dispatched to the agent`,"tools.fixCiFailed":`Failed to launch the Fix-CI action`,"tools.openFileManager":`Open in file manager`,"tools.openFileManagerTooltip":`Open the worktree folder in your configured file manager`,"tools.openFileManagerFailed":`Failed to open the file manager`,"tools.openTerminal":`Open in terminal`,"tools.openTerminalTooltip":`Open the worktree in your configured terminal`,"tools.openTerminalFailed":`Failed to open terminal`,"review.title":`Start review`,"review.subtitle":`Ask the agent to review your changes and provide feedback.`,"review.additionalInstructions":`Additional instructions (optional)`,"review.additionalInstructionsPlaceholder":`Add any specific instructions for the review…`,"review.newSession":`New session`,"review.newSessionHint":`Start a fresh agent session instead of continuing the current one.`,"review.start":`Start Review`,"review.cancel":`Cancel`,"review.launched":`Review started`,"review.failed":`Failed to start review`,"diff.title":`Diff`,"diff.side":`Side`,"diff.inline":`Inline`,"diff.hideUnchanged":`Hide unchanged code`,"diff.showUnchanged":`Show unchanged code`,"diff.showUntracked":`Show untracked files`,"diff.hideUntracked":`Hide untracked files`,"diff.rollbackToRemote":`Rollback to remote`,"diff.rollbackConfirm":`Reset {path} to its remote (origin) version? Local edits to this file will be lost.`,"diff.rollbackConfirmOk":`Rollback`,"diff.rollbackDone":`File reset to remote version`,"diff.rollbackDoneRemote":`File reset to remote version`,"diff.rollbackDoneHead":`Local edits discarded (file reset to last commit)`,"diff.rollbackDoneDeleted":`Untracked file deleted`,"diff.deleteUntracked":`Delete untracked file`,"diff.deleteUntrackedConfirm":`Permanently delete {path}? This file is not tracked — its content will be lost.`,"diff.deleteUntrackedConfirmOk":`Delete`,"diff.rollbackFailed":`Rollback failed`,"diff.rollbackFailedDetail":`Rollback failed: {error}`,"diff.modeInspect":`Edit`,"diff.modeReview":`Review`,"diff.addComment":`Add comment`,"diff.replyComment":`Reply`,"diff.editComment":`Edit`,"diff.deleteComment":`Delete`,"diff.deleteCommentConfirm":`Delete this comment?`,"diff.commentPlaceholder":`Write a review comment… (Markdown supported)`,"diff.reviewDraft":`Review draft`,"diff.reviewEmpty":`No comments yet — hover a line in the diff and click + to add one.`,"diff.reviewGlobalPlaceholder":`Add an overall review message (optional)`,"diff.submitReview":`Submit review ({n})`,"diff.reviewSubmitted":`Review submitted to agent`,"diff.reviewSubmitFailed":`Failed to submit review: {error}`,"diff.scopeBranch":`Branch`,"diff.scopeUnpushed":`Unpushed`,"diff.noChanges":`No changes`,"diff.searchFiles":`Search files…`,"diff.noFileMatch":`No file matches`,"diff.selectFile":`Select a file to view diff`,"diff.fileLoadFailed":`This diff could not be loaded`,"diff.fileLoadFailedHint":`The file is unchanged on disk — only its diff failed to load.`,"diff.fileListLoadFailed":`The file list could not be loaded`,"diff.fileListLoadFailedHint":`This is a failed request, not a branch without changes.`,"diff.addToChat":`Add to chat`,"diff.compareTitle":`Compare commits`,"diff.compareFrom":`From`,"diff.compareTo":`To`,"diff.compareSubmit":`Compare`,"diff.compareSourceBase":`{branch} (branch base)`,"diff.commitsReadOnly":`read-only`,"diffViewer.save":`Save`,"diffViewer.savedAt":`Saved`,"diffViewer.saveFailed":`Save failed`,"diffViewer.saveFailedDetail":`Save failed: {error}`,"diffViewer.unsavedChanges.title":`Unsaved changes`,"diffViewer.unsavedChanges.message":`You have unsaved edits. What do you want to do?`,"diffViewer.unsavedChanges.save":`Save`,"diffViewer.unsavedChanges.cancel":`Cancel`,"diffViewer.conflict.title":`File changed on disk`,"diffViewer.conflict.message":`The file was modified outside Kōbō since you opened it.`,"diffViewer.conflict.reload":`Reload (discard local)`,"diffViewer.conflict.keep":`Keep mine`,"diffViewer.conflict.overwrite":`Overwrite anyway`,"diffViewer.conflict.overwriteHint":`Replaces the file on disk with your version. The other change is lost.`,"diffViewer.conflict.keepHint":`Keeps your edits in the editor and accepts the new on-disk signature, so the next save works.`,"diffViewer.saveBlocked":`The agent is running — stop it to save your edits.`,"diffViewer.unsavedBanner":`Unsaved edits. Stop the agent to save them.`,"diffViewer.closeConfirm.title":`Unsaved changes`,"diffViewer.closeConfirm.message":`This file has edits that were never saved. Closing the diff viewer discards them.`,"diffViewer.closeConfirm.discard":`Close without saving`,"diffViewer.criteriaRail":`Review checklist`,"diffViewer.criteriaRailShow":`Show the review checklist`,"diffViewer.criteriaRailHide":`Hide the review checklist`,"diffViewer.fileTreeShow":`Show the file tree`,"diffViewer.fileTreeHide":`Hide the file tree`,"diffViewer.closeConfirm.saveAndClose":`Save and close`,"diffViewer.agentRunning":`Agent runs — stop it to edit`,"diffViewer.fileDeleted":`File deleted`,"notification.agentFinished":`{name} — Agent finished`,"notification.agentQuestion":`{name} — Agent is asking a question`,"notification.awaitingReminder":`{name} - still waiting for you ({minutes} min)`,"notification.agentPermissionRequest":`{name} — Agent is requesting a permission`,"notification.autoLoopCompleted":`{name} — Auto-loop completed`,"notification.autoLoopWaitingForSlot":`{name} - Auto-loop is waiting for a free agent slot ({running}/{limit} running)`,"notification.autoLoopStalled":`{name} — Auto-loop stalled (no progress)`,"notification.autoLoopError":`{name} — Auto-loop stopped on error`,"notification.autoLoopAwaitingClarification":`{name} — Auto-loop paused, waiting for your clarification`,"notification.autoLoopPermissionOverridden":`{name} — Auto-loop promoted plan mode to bypass`,"notification.agentError":`{name} — Agent error`,"contextMenu.rename":`Rename`,"contextMenu.editDescription":`Edit description`,"contextMenu.copyPath":`Copy worktree path`,"contextMenu.openEditor":`Open in editor`,"contextMenu.openFileManager":`Open in file manager`,"contextMenu.unarchiveDisabledPurged":"The worktree was removed from disk. Recreate it manually (`gh pr checkout` or `git worktree add`) — Kōbō auto-detects the restoration within 30s and reactivates the workspace.","workspaceList.unarchiveBlockedPurged":"Can't unarchive: the worktree no longer exists on disk. Recreate it manually (`gh pr checkout` or `git worktree add`) — Kōbō detects it within 30s and reactivates the workspace.","contextMenu.purgeWorktree":`Free disk space (delete worktree)`,"contextMenu.purgeWorktreeTooltip":`Deletes the worktree from disk to reclaim space — chat / session history is preserved. Auto-archives the workspace.`,"contextMenu.purgeWorktreeDialogTitle":`Free disk space?`,"contextMenu.purgeWorktreeDialogMessage":`The worktree folder for «{name}» will be deleted from disk. Chat and session history are kept. The workspace is auto-archived. This cannot be undone in the current version.`,"contextMenu.purgeWorktreeDialogConfirm":`Delete the worktree`,"contextMenu.purgeWorktreeSuccess":`Worktree deleted — disk space reclaimed.`,"settings.autoPurgeOnPrMerged":`Auto-purge worktree on PR merged`,"settings.autoPurgeOnPrMergedHint":`When ON, the worktree is deleted from disk as soon as the PR is merged (in addition to the auto-archive). Chat history is kept.`,"settings.autoLoopMaxRetries":`Maximum automatic retries`,"settings.awaitingUserReminder":`Unanswered question reminder`,"settings.awaitingUserReminderHint":`Minutes a workspace may wait for your answer before Kōbō reminds you, then again at each further interval. 0 disables it.`,"settings.localeLoadFailed":`Could not load that language; staying in the current one.`,"settings.autoLoopMaxRetriesHint":`Stops the auto-loop after this many quota or temporary server failures.`,"settings.retentionTitle":`Conversation history retention (off by default)`,"settings.retentionWarning":`Turning this on permanently deletes agent conversation history from the database, starting with everything already older than the window. Deleted events cannot be recovered.`,"settings.retentionHint":`Runs once at server start-up. Workspaces, tasks, sessions, branches and worktrees are never touched — only the recorded agent output.`,"settings.retentionDaysLabel":`Delete events older than (days)`,"settings.retentionDaysHint":`0 — the default — keeps every event for ever. Set a value to enable retention.`,"settings.retentionKeepLabel":`Events always kept per workspace`,"settings.retentionKeepHint":`The most recent events of each workspace survive whatever their age, so an old but still-open workspace keeps a readable history. Suggested: 5000.`,"settings.retentionDisabledHint":`Retention is disabled: nothing will ever be deleted.`,"settings.retentionConfirmTitle":`Permanently delete conversation history?`,"settings.retentionConfirmMessage":`Keeping only {days} day(s) of history will permanently delete {count} of the {total} recorded agent events at the next server start-up, including everything already older than that. This cannot be undone. Continue?`,"settings.retentionConfirmMessageUnknown":`Keeping only {days} day(s) of history will permanently delete every older agent event at the next server start-up, including everything already accumulated. The exact volume could not be counted. This cannot be undone. Continue?`,"settings.purgeDocsTitle":`How purge works — restore & permissions`,"settings.purgeDocsRestoreTitle":`Restoring a purged worktree (auto-detected)`,"settings.purgeDocsRestoreIntro":`A purged workspace keeps its chat history and PR metadata but the worktree folder is gone. Rebuild it manually with one of these commands — Kōbō detects the folder reappearing within 30 seconds and automatically reactivates the workspace (unarchive + clear purge flag):`,"settings.purgeDocsRestoreCommands":`# GitHub (using gh CLI):
13
- gh pr checkout [pr-number] --recurse-submodules
14
-
15
- # Or directly via git (works on GitHub even after branch deletion):
16
- git fetch origin pull/[pr-number]/head:[branch-name]
17
- git worktree add [path] [branch-name]`,"settings.purgeDocsRestoreFootnote":`GitHub keeps the PR head ref accessible long after the source branch is deleted (months / years). Auto-detection runs in the 30s watcher — no UI action needed once the folder is back.`,"settings.purgeDocsPermissionsTitle":`Avoiding permission errors during purge`,"settings.purgeDocsPermissionsIntro":`Docker often leaves root-owned files in node_modules / vendor inside the worktree. When Kōbō tries to remove them, you hit EACCES / EPERM and the purge fails. Two ways to prevent it:`,"settings.purgeDocsPermissionsDocker":'Configure your container to run as your host user — USER directive in the Dockerfile, or `user: "${UID}:${GID}"` in docker-compose (with UID/GID exported in your shell).',"settings.purgeDocsPermissionsAcl":`Pre-seed the worktrees root with a default ACL — safety net that works in MOST cases (ext4/btrfs/xfs + standard Docker bind mount). Each new file then inherits an access entry for your user, on top of the nominal owner:`,"settings.purgeDocsPermissionsAclCommand":` setfacl -d -m u:$(whoami):rwX [worktrees-root]`,"settings.purgeDocsPermissionsFootnote":"ACL limitations: do NOT work on named Docker volumes (use a bind mount), filesystems without ACL support (NTFS, exFAT, tmpfs), strict SELinux with `:Z`, or when Docker `userns-remap` is enabled. The most reliable solution remains configuring the user inside the container (option 1). Tip: `rwX` (capital X) only adds the executable bit on directories and already-executable files — cleaner than `rwx` which would make every text file executable.","settings.purgeDocsPermissionsRecoverTitle":`Unblock an already-broken worktree (existing root-owned files)`,"settings.purgeDocsPermissionsRecoverIntro":`If you end up with a worktree already full of root-owned files (Docker has run, vendor / node_modules are stuck), the preventive ACL above is not enough — you need to fix EXISTING files. Two approaches, both run from inside the worktree folder:`,"settings.purgeDocsPermissionsRecoverAclIntro":`Option A — Recursive ACL (preserves root ownership for audit, just adds access for your user alongside):`,"settings.purgeDocsPermissionsRecoverAclCommand":`# set default ACL for future files AND grant access to everything existing
18
- sudo setfacl -Rd -m u:$(whoami):rwX . && sudo setfacl -R -m u:$(whoami):rwX .`,"settings.purgeDocsPermissionsRecoverChownIntro":`Option B — Take ownership (simpler, loses the "created by root in container" trace but rarely matters):`,"settings.purgeDocsPermissionsRecoverChownCommand":` sudo chown -R $(whoami):$(whoami) .`,"settings.purgeDocsPermissionsRecoverFootnote":"Tip: you can run these commands directly on the worktrees root (e.g. `~/.worktrees/`) to cover all existing AND future workspaces at once. Once done, Kōbō purge will work without permission errors.","contextMenu.runSetup":`Run setup script`,"contextMenu.exportEvents":`Export events (CSV)`,"contextMenu.dismissChangesRequested":`Mark 'Changes requested' as seen`,"contextMenu.dismissCiFailure":`Mark 'CI failure' as seen`,"contextMenu.restoreChangesRequested":`Mark 'Changes requested' as unseen`,"contextMenu.restoreCiFailure":`Mark 'CI failure' as unseen`,"contextMenu.exportingEvents":`Preparing export…`,"contextMenu.exportEventsError":`Event export failed`,"contextMenu.openNotion":`Open in Notion`,"contextMenu.openSentry":`Open in Sentry`,"contextMenu.openPr":`Open PR`,"contextMenu.ignorePrWatch":`Ignore PR checks`,"contextMenu.resumePrWatch":`Resume PR checks`,"contextMenu.prWatchToggleFailed":`Failed to update PR checks setting`,"workspace.favorite":`Mark as favorite`,"workspace.unfavorite":`Remove from favorites`,"workspace.showFavoritesOnly":`Show favorites only`,"workspace.searchArchivedToggle":`Also search archived workspaces`,"workspace.descriptionPlaceholder":`Add a short description`,"workspace.descriptionDialogHint":`Plain text, 200 characters max. Leave empty to clear.`,"workspace.descriptionTooLong":`Description must be 200 characters or fewer.`,"workspace.descriptionSaveFailed":`Failed to save description.`,"workspace.agentDescriptionTooltip":`Live status maintained by the agent`,"mcp.tool.setWorkspaceDescription":`Set the workspace short description (≤ 200 chars).`,"tags.manage":`Manage tags`,"tags.manageTitle":`Manage workspace tags`,"tags.noTagsDefined":`No tags defined. Add some in Settings > Global > Tags.`,"tags.orphanedHint":`{count} tag(s) are no longer in the global catalog. Uncheck to remove them.`,"settings.tagsTitle":`Workspace tags`,"settings.tagsHint":`Define the tags you can assign to workspaces. Type to add, click the cross to remove.`,"settings.tagsLabel":`Available tags`,"settings.branchPrefixesTitle":`Branch prefixes`,"settings.branchPrefixesHint":`Manage the git branch prefixes available on the workspace creation page. The first one is pre-selected by default.`,"settings.branchPrefixesEmpty":`No branch prefix defined. Add at least one below.`,"settings.branchPrefixesAddLabel":`New prefix`,"settings.branchPrefixesEditHint":`Click to rename`,"settings.branchPrefixesMoveUp":`Move up`,"settings.branchPrefixesMoveDown":`Move down`,"settings.worktreesTitle":`Git worktrees`,"settings.worktreesHint":`Choose where new workspace worktrees are created. Relative paths are project-relative; Linux/macOS and Windows absolute paths, $HOME, ~, and %USERPROFILE% are supported.`,"settings.worktreesPathLabel":`Worktrees path`,"settings.worktreesPathRequired":`Worktrees path is required.`,"settings.worktreesPrefixByProject":`Prefix worktrees by project name`,"settings.worktreesPrefixByProjectHint":`Place each worktree under a sub-directory named after the project, to avoid collisions when multiple projects share the same worktrees root.`,"settings.shareTitle":`Share configuration`,"settings.shareHint":`Export your settings, templates and tags as a JSON bundle. MCP API keys are stripped from exports for security.`,"settings.exportConfig":`Export`,"settings.importConfig":`Import`,"settings.exportSuccess":`Configuration exported`,"settings.importSuccess":`Configuration imported`,"settings.importConfirmTitle":`Import configuration`,"settings.importConfirmMessage":`This will replace your current settings, templates and tags. Your MCP keys are preserved. Continue?`,"settings.network.title":`Network access`,"settings.network.hint":`Control Kōbō from another device on your trusted LAN. Off = localhost only. On = reachable on your network, protected by a token. Restart Kōbō after toggling.`,"settings.network.enable":`Enable network access`,"settings.network.behindProxy":`Behind a reverse proxy`,"settings.network.behindProxyHint":`Kōbō can no longer tell your own machine apart from a proxied request — even localhost will need the token from now on. Enable this only if a reverse proxy (Traefik, nginx, Caddy…) sits in front of Kōbō.`,"settings.network.restartRequired":`Restart Kōbō to apply the new bind address.`,"settings.network.token":`Access token`,"settings.network.copy":`Copy`,"settings.network.copied":`Copied`,"settings.network.regenerate":`Regenerate`,"settings.network.regenerateConfirm":`Regenerate the token? Connected devices will need the new token.`,"settings.network.urls":`LAN URLs`,"settings.network.scan":`Scan to connect`,"settings.network.noUrls":`No LAN address detected.`,"settings.network.loadFailed":`Failed to load network access settings.`,"settings.network.updateFailed":`Failed to update network access settings.`,"settings.unsavedChanges.title":`Unsaved changes`,"settings.unsavedChanges.message":`This project has unsaved changes. Switching projects will discard them.`,"settings.unsavedChanges.discard":`Discard and switch`,"settings.unsavedChanges.cancel":`Cancel`,"settings.loadFailed":`Settings could not be loaded`,"settings.loadFailedHint":`Saving is disabled: the form is showing default values, and writing them would overwrite your real configuration.`,"health.title":`Health`,"health.tooltip":`System health`,"changelog.title":`Changelog`,"changelog.tooltip":`What's new in Kōbō`,"changelog.empty":`No changelog available.`,"changelog.current":`current`,"changelog.currentVersion":`Current version: v{version}`,"health.envTitle":`Environment`,"health.version":`Version`,"health.koboHome":`Kōbō home`,"health.dbTitle":`Database`,"health.dbPath":`Path`,"health.dbSize":`Size`,"health.schemaVersion":`Schema version`,"health.settingsSchemaVersion":`Settings schema`,"health.runtimesTitle":`Agent runtimes`,"health.claudeCliTitle":`Claude Code`,"health.claudeCliMissing":`claude not on PATH`,"health.codexCliTitle":`OpenAI Codex`,"health.codexCliMissing":`codex binary not resolvable`,"health.forgeCliTitle":`Forge CLI (gh / glab)`,"health.forgeCliMissing":`Neither gh nor glab found — pull requests and CI watching are unavailable`,"health.workspacesTitle":`Workspaces`,"health.workspacesCount":`{total} total, {archived} archived`,"health.worktreesMissing":`{count} worktree(s) missing on disk`,"health.sessionsTitle":`Agent sessions`,"health.sessionsOrphaned":`{n} orphaned running session(s)`,"health.integrationsTitle":`Integrations`,"health.integrationConfigured":`configured`,"health.integrationMissing":`not configured`,"health.integrationDisabled":`disabled`,"settings.integrationEnabled":`Enable integration`,"health.activeTitle":`Active state`,"health.activeQuotaBackoffs":`Pending quota backoffs`,"health.activeWakeups":`Scheduled wakeups`,"health.activeAutoLoop":`Auto-loop running`,"health.activeAgentSessions":`Live agent sessions`,"health.activeDevServers":`Running dev servers`,"health.noneActive":`None.`,"health.quotaResumeAt":`resumes at {time}`,"health.wakeupAt":`wakes at {time}`,"health.startedAgo":`started {time} ago`,"health.autoLoopReady":`ready, iterating`,"health.autoLoopGrooming":`grooming in progress`,"session.started":`Session started`,"session.ended":`Session ended`,"session.compacted":`Context compacted`,"session.endedCompleted":`Turn finished — send a message to continue`,"session.endedKilled":`Session stopped`,"session.endedError":`Session ended on an error`,"session.endedWatchdog":`Session force-closed after a period of inactivity`,"tool.running":`Running...`,"activity.raw_lines":`Raw output lines ({n})`,"activity.loading_older":`Loading older messages…`,"activity.compacting":`Compacting context…`,"activity.prev_user_message":`Previous user message`,"activity.scroll_to_bottom":`Scroll to bottom`,"activity.empty":`Nothing yet`,"activity.emptyHint":`The agent output will show up here as soon as a session starts.`,"activity.a11y.region":`Agent activity announcements`,"activity.a11y.agentSaid":`Agent: {text}`,"activity.a11y.toolStarted":`Tool {name} started`,"activity.a11y.toolFinished":`Tool {name} finished`,"activity.a11y.toolFailed":`Tool {name} failed`,"chat.systemPrompt":`System prompt`,"chat.agent":`Agent`,"chat.cleanupScript":`Cleanup script`,"chat.archiveScript":`Archive script`,"chat.setupScript":`Setup script`,"chat.hookScript":`Hook {event}`,"chat.scriptDone":`Done`,"chat.scriptComplete":`[{phase}] Complete`,"chat.scriptError":`[{phase}] Error: {message}`,"chat.unknownError":`unknown`,"chat.you":`You`,"chat.session":`Session`,"chat.nActions":`{n} action | {n} actions`,"chat.lastUpdatedAt":`Last updated at {time}`,"chat.scrollToTurnTop":`Scroll to top of this message`,"migration.backing_up":`Backing up the database…`,"migration.running":`Migrating agent data — {processed}/{total}`,"migration.error":`Migration failed`,"migration.backup_location":`A backup was saved at {path}. Restart Kōbō to retry.`,"migration.retry":`Restart Kōbō to retry.`,"engine.select":`Engine`,"engine.model":`Model`,"engine.effort":`Reasoning effort`,"wakeup.scheduledIn":`Next wakeup in {n}s`,"wakeup.scheduledAt":`Next wakeup at {time}`,"wakeup.firing":`Waking up...`,"wakeup.reason":`Reason: {reason}`,"wakeup.cancel":`Cancel this wakeup`,"wakeup.pendingIndicator":`Wakeup scheduled`,"cron.pendingIndicator":`{n} cron(s) scheduled`,"schedule.tabLabel":`Schedule`,"schedule.panelTitle":`Automation`,"schedule.panelDescription":`Wake this workspace later or run instructions on a schedule.`,"schedule.activeTitle":`Active schedules`,"schedule.emptyTitle":`Nothing scheduled`,"schedule.emptyDescription":`Create a wakeup or recurring task below.`,"schedule.cancelWakeup":`Cancel this wakeup`,"schedule.cancelCron":`Delete this recurring task`,"schedule.createTitle":`Create a schedule`,"schedule.createDescription":`Choose when and how the agent should run.`,"schedule.typeWakeup":`One-time wakeup`,"schedule.typeRecurring":`Recurring task`,"schedule.wakeupDescription":`Run the prompt once after a delay.`,"schedule.cronDescription":`Run the prompt repeatedly on a fixed schedule.`,"schedule.promptHint":`Instructions that will be sent to the agent`,"schedule.frequencyTitle":`Frequency`,"schedule.advancedDescription":`Use a raw cron expression`,"schedule.cronExpressionLabel":`Cron expression`,"schedule.sessionModeTitle":`Execution session`,"schedule.modeResume":`Resume session`,"schedule.oneShotHint":`Remove this schedule after its first run.`,"schedule.wakeupTitle":`Wakeup pending`,"schedule.cronsTitle":`Recurring schedules`,"schedule.noWakeup":`No wakeup scheduled`,"schedule.noCrons":`No cron scheduled`,"schedule.nextFireAt":`next at {time}`,"schedule.lastFiredAt":`last fired {time} ago`,"schedule.addCronTitle":`Add a recurring task`,"schedule.addWakeupTitle":`Schedule a wakeup`,"schedule.every":`Every`,"schedule.unitMinutes":`minutes`,"schedule.unitHours":`hours`,"schedule.unitDays":`days`,"schedule.daysDriftWarning":`The interval may shrink to 1 day at the end of the month (cron limitation).`,"schedule.advancedExpression":`Advanced expression (optional)`,"schedule.advancedHint":`Raw cron (e.g. */15 * * * *) or {'@'}hourly/{'@'}daily — overrides the picker when set.`,"schedule.promptLabel":`Prompt`,"schedule.labelOptional":`Label (optional)`,"schedule.delayMinutes":`Delay (minutes)`,"schedule.modeFresh":`New session`,"schedule.oneShot":`Run only once`,"schedule.addCronBtn":`Add cron`,"schedule.addWakeupBtn":`Schedule wakeup`,"schedule.cronCreated":`Recurring task added`,"schedule.wakeupCreated":`Wakeup scheduled`,"askUserQuestion.title":`The agent is asking a question`,"askUserQuestion.submit":`Submit answer`,"askUserQuestion.multiSelectHint":`Select one or more options`,"askUserQuestion.otherOption":`Other`,"askUserQuestion.otherOptionHint":`specify in your next chat message`,"askUserQuestion.freeFormLabel":`Specify your answer`,"askUserQuestion.freeFormHint":`This answer will be sent directly to the agent.`,"askUserQuestion.noPending":`No pending question`,"askUserQuestion.next":`Next`,"askUserQuestion.previous":`Previous`,"askUserQuestion.cancel":`Cancel`,"askUserQuestion.cancelTooltip":`Skip this question — the agent will proceed without an answer`,"askUserQuestion.collapse":`Collapse the question panel`,"askUserQuestion.expand":`Expand the question panel`,"permissionRequest.title":`The agent wants to use a tool`,"permissionRequest.allow":`Allow`,"permissionRequest.allowOnce":`Allow once`,"permissionRequest.allowTurn":`Allow this turn`,"permissionRequest.allowOperation":`Always this operation`,"permissionRequest.allowTool":`Always this tool`,"permissionRequest.deny":`Deny`,"permissionRequest.tool":`Tool`,"permissionRequest.input":`Input`,"permissionRequest.rawInput":`Technical details`,"permissionRequest.collapse":`Collapse the permission panel`,"permissionRequest.expand":`Expand the permission panel`,"permissionRequest.denied":`denied by user`,"workspaceStatus.created":`created`,"workspaceStatus.extracting":`extracting`,"workspaceStatus.brainstorming":`brainstorming`,"workspaceStatus.executing":`running`,"workspaceStatus.awaitingUser":`awaiting your answer`,"workspaceStatus.completed":`completed`,"workspaceStatus.idle":`idle`,"workspaceStatus.error":`error`,"workspaceStatus.quota":`quota reached`,"workspaceStatus.retrying":`auto-resuming`,"workspaceList.prOpen":`#{n} — Pull request open`,"workspaceList.prWatchDisabledIndicator":`PR checks ignored for this workspace`,"workspaceList.prChangesRequested":`#{n} — Changes requested`,"workspaceList.attentionCiFailed":`CI failed`,"workspaceList.attentionChangesRequested":`Changes requested`,"workspaceList.attentionReadyToMerge":`Ready to merge`,"autoLoop.toggle":`Auto-loop`,"autoLoop.start":`Start auto-loop`,"autoLoop.prepare":`Prepare for auto-loop`,"autoLoop.reprepare":`Re-prepare for auto-loop`,"autoLoop.reprepareTooltip":`Re-run the grooming pass to add or refresh tasks before resuming the loop`,"autoLoop.prepareBusy":`Wait for the agent to finish before preparing`,"autoLoop.forceReady":`I know what I'm doing — skip grooming`,"autoLoop.forceReadyConfirm":`Skip grooming and mark auto-loop ready? This may cause the loop to stall if tasks aren't atomic.`,"autoLoop.stop":`Stop auto-loop`,"autoLoop.notReady":`Run 'Prepare for auto-loop' first`,"autoLoop.noTasks":`Add tasks first`,"autoLoop.progress":`Auto-loop · {done}/{total} tasks`,"autoLoop.preparing":`Auto-loop · preparing`,"autoLoop.preparingTooltip":`Grooming in progress — the agent is creating / reviewing tasks. The loop will start running once it calls mark_auto_loop_ready.`,"autoLoop.running":`Auto-loop running`,"autoLoop.startInMode":`Start in auto-loop mode`,"autoLoop.brainstormModelPrefix":`Brainstorm:`,"autoLoop.brainstormModelTooltip":`Model used only for the initial brainstorming session — every task after that uses the model picked above`,"autoLoop.brainstormReasoningPrefix":`Brainstorm:`,"autoLoop.brainstormReasoningTooltip":`Reasoning level used only for the initial brainstorming session`,"autoLoop.executionModelPrefix":`Loop:`,"autoLoop.executionModelTooltip":`Model used for every auto-loop task after the initial brainstorming session`,"autoLoop.sessionMode.perTask":`New session per task`,"autoLoop.sessionMode.label":`Session:`,"autoLoop.sessionMode.perTaskTooltip":`Each task starts a fresh Claude Code session with no memory of prior tasks`,"autoLoop.sessionMode.continuous":`Continuous session`,"autoLoop.sessionMode.continuousTooltip":`All tasks run in the same session — the agent keeps full context, but the session grows longer over time`,"koboCommand.prepAutoloopDesc":`Prepare tasks for auto-loop mode (groom for atomicity)`,"staleSessionBanner.title":`Auto-loop running`,"staleSessionBanner.message":`You're viewing an older session — the agent is currently working in the latest one.`,"staleSessionBanner.staleTitle":`Older session`,"staleSessionBanner.staleMessage":`You're viewing an older session — messages you send go to this session, not the latest one.`,"staleSessionBanner.switchToCurrent":`Switch to current`,"network.login.title":`Network access`,"network.login.description":`This Kōbō requires a token to be controlled from the network. Paste the token shown in Settings on the host machine.`,"network.login.tokenLabel":`Token`,"network.login.tokenPlaceholder":`Paste your token`,"network.login.connect":`Connect`,"network.login.invalid":`Invalid token`,"network.login.serverError":`Server error — try again.`,"network.login.unreachable":`Kōbō is unreachable — check your connection.`,"layout.toggleWorkspaces":`Toggle workspaces panel`,"layout.togglePanel":`Toggle side panel`,"unsaved.title":`Leave without saving?`,"unsaved.message":`You have unsaved changes. Leaving this page discards them.`,"unsaved.leave":`Leave`,"unsaved.stay":`Stay`,"prCheckout.staleRetriesExhausted":`The repository state kept changing while we tried to apply your choices. Close this dialog and try again from the pull request picker.`,"prPicker.title":`Import from a pull request`,"prPicker.filterAll":`All`,"prPicker.filterMine":`Mine`,"prPicker.filterReviewRequested":`Review requested`,"prPicker.searchPlaceholder":`Search pull requests…`,"prPicker.loadMore":`Load more`,"prPicker.empty":`No open pull request matches.`,"prPicker.forkNotSupported":`This PR comes from a fork; Kōbō cannot check it out.`,"prPicker.loadFailed":`Failed to load pull requests.`,"prPicker.badge.workspaceExists":`Already open in Kōbō`,"prPicker.badge.worktreePresent":`Worktree present`,"prPicker.badge.localBranch":`Local branch`,"prPicker.badge.new":`New`,"prPicker.badge.draft":`Draft`,"prCheckout.title":`Prepare the worktree`,"prCheckout.apply":`Apply`,"prCheckout.cancel":`Cancel`,"prCheckout.retry":`Retry`,"prCheckout.diagnoseFailed":`Failed to diagnose the pull request.`,"prCheckout.resolveFailed":`Failed to resolve the pull request checkout.`,"prCheckout.path.required":`Enter a worktree path that does not already exist.`,"prCheckout.workspace.restoreNotAvailable":"Restoring a purged workspace isn't available yet from here. Recreate its worktree folder on disk (e.g. `git worktree add`) and Kōbō will reattach it automatically within about 30 seconds.","prCheckout.staleReloaded":`The repository changed; the diagnosis has been refreshed.`,"prCheckout.step.blocked":`Cannot continue`,"prCheckout.step.path":`Worktree location`,"prCheckout.step.workspace":`Existing workspace`,"prCheckout.step.worktree":`Existing worktree`,"prCheckout.step.operation":`Git operation in progress`,"prCheckout.step.changes":`Uncommitted changes`,"prCheckout.step.divergence":`Local branch vs origin`,"prCheckout.workspace.activeHint":`A workspace named "{name}" already tracks this branch.`,"prCheckout.workspace.open":`Open that workspace`,"prCheckout.workspace.continue":`Continue on another path`,"prCheckout.workspace.unarchive":`Unarchive and open it`,"prCheckout.workspace.restore":`Recreate its worktree`,"prCheckout.worktree.orphanHint":`A worktree already sits on this branch at {path}.`,"prCheckout.worktree.attach":`Attach it`,"prCheckout.worktree.createElsewhere":`Create another one elsewhere`,"prCheckout.operation.hint":`A {operation} is in progress in that worktree.`,"prCheckout.operation.abort":`Abort it`,"prCheckout.operation.cancel":`Leave it alone and stop here`,"prCheckout.changes.hint":`{modified} modified, {staged} staged, {untracked} untracked.`,"prCheckout.changes.stash":`Stash them`,"prCheckout.changes.commit":`Commit them`,"prCheckout.changes.discard":`Discard them (kept as a labelled stash)`,"prCheckout.changes.keep":`Keep them as they are`,"prCheckout.divergence.behindHint":`Your branch is {behind} commit(s) behind origin.`,"prCheckout.divergence.aheadHint":`Your branch has {ahead} unpushed commit(s).`,"prCheckout.divergence.divergedHint":`{ahead} ahead, {behind} behind origin.`,"prCheckout.divergence.fastForward":`Fast-forward to origin`,"prCheckout.divergence.rebase":`Rebase onto origin`,"prCheckout.divergence.resetHard":`Reset to origin (a backup branch is created first)`,"prCheckout.divergence.keep":`Keep the local state`,"prCheckout.blocked.forgeUnavailable":`The forge CLI is missing or not authenticated.`,"prCheckout.blocked.forkPr":`This PR comes from a fork; Kōbō cannot check it out.`,"prCheckout.blocked.headBranchDeleted":`The branch no longer exists on the remote.`,"prCheckout.blocked.indexLock":`Another git process is running (index.lock is present).`,"prCheckout.blocked.pathOccupied":`{path} already exists and is not a worktree.`,"prCheckout.blocked.worktreeOtherBranch":`{path} is a worktree on another branch ({branch}).`,"prCheckout.blocked.noCommonAncestor":`A local branch named {branch} exists with unrelated history.`},mi=`modulepreload`,hi=function(e){return`/`+e},gi={},J=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=hi(t,n),t=s(t),t in gi)return;gi[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:mi,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},_i=`kobo:locale`,vi=[`en`,`fr`,`de`,`es`,`it`];function yi(e){return vi.includes(e)}function bi(){let e=localStorage.getItem(_i);if(e&&yi(e))return e;let t=navigator.language.split(`-`)[0];return t&&yi(t)?(localStorage.setItem(_i,t),t):(localStorage.setItem(_i,`en`),`en`)}var xi=bi(),Si=re({legacy:!1,locale:xi,fallbackLocale:`en`,messages:{en:pi}}),Ci=new Set([`en`]),wi={fr:()=>J(()=>import(`./fr-BTolHkCj.js`),[]),de:()=>J(()=>import(`./de-BUPxnXau.js`),[]),es:()=>J(()=>import(`./es-DMnEKZ17.js`),[]),it:()=>J(()=>import(`./it-BPFSv6Pp.js`),[])},Ti=0;async function Ei(e){let t=++Ti;if(!Ci.has(e)&&e!==`en`){let t=await wi[e]();Si.global.setLocaleMessage(e,t.default),Ci.add(e)}t===Ti&&(Si.global.locale.value=e,Di(e))}function Di(e){typeof document>`u`||(document.documentElement.lang=e)}Di(xi);var Oi=new Map,ki=n(0);function Ai(){ki.value++}function ji(e){e.reconnectTimer&&=(clearTimeout(e.reconnectTimer),void 0)}function Mi(e){let t=Oi.get(e);t&&(ji(t),t.ws&&(t.ws.onclose=null,t.ws.readyState===WebSocket.OPEN&&t.ws.close()),t.onDataDisposable?.dispose(),t.terminal.dispose(),Oi.delete(e),Ai())}var Ni=5e3,Pi=Fe(`agent-stream`,()=>{let e=r(new Map),t=r(new Map),i=r(new Map),a=r(new Map),o=r(new Map),s=r(new Map),c=r(new Map),l=r(new Map),u=n(new Map);function d(e){u.value.get(e)}function f(e){u.value.set(e,(u.value.get(e)??0)+1)}function p(e){return u.value.get(e)??0}function m(e){let t=l.value.get(e);return t||(t=new Set,l.value.set(e,t)),t}function h(e){return d(e),c.value.get(e)??!1}function g(e,t){(c.value.get(e)??!1)!==t&&(c.value.set(e,t),f(e))}function _(t){return d(t),e.value.get(t)??[]}function v(e){return d(e),t.value.get(e)??[]}function y(e){return d(e),i.value.get(e)??[]}function b(e){return d(e),a.value.get(e)??[]}function x(e){return d(e),o.value.get(e)}function S(e){return d(e),s.value.get(e)??!0}function C(n,r,s,c,l){let u=e.value.get(n)??[],d=t.value.get(n)??[],p=i.value.get(n)??[],h=a.value.get(n)??[],g=m(n);if(c&&g.has(c))return;let _=u.length===0;u.push(r),d.push(s??new Date().toISOString()),p.push(l??null),h.push(c??null),c&&g.add(c),e.value.set(n,u),t.value.set(n,d),i.value.set(n,p),a.value.set(n,h),_&&c&&o.value.set(n,c),w(n,u,d,p,h),f(n)}function w(e,t,n,r,i){let a=t.length-Ni;if(a<=0)return;let c=i.slice(0,a),l=m(e);for(let e of c)e&&l.delete(e);t.splice(0,a),n.splice(0,a),r.splice(0,a),i.splice(0,a);let u=i.find(e=>typeof e==`string`);u?o.value.set(e,u):o.value.delete(e),s.value.set(e,!0)}function T(n,r,s,c){let l=e.value.get(n)??[],u=t.value.get(n)??[],d=i.value.get(n)??[],p=a.value.get(n)??[],h=m(n),g=[];for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let n=c.eventIds[e]??null;n&&h.has(n)||(l.push(t),u.push(s[e]??new Date().toISOString()),d.push(c.sessionIds[e]??null),p.push(n),n&&h.add(n),g.push(e))}if(g.length===0)return g;if(e.value.set(n,l),t.value.set(n,u),i.value.set(n,d),a.value.set(n,p),!o.value.has(n)){let e=p.find(e=>typeof e==`string`);e&&o.value.set(n,e)}return w(n,l,u,d,p),f(n),g}function E(n,r,c,l){let u=[...r],d=c?[...c]:r.map(()=>new Date().toISOString()),p=l?.sessionIds?[...l.sessionIds]:r.map(()=>null),h=l?.eventIds?[...l.eventIds]:r.map(()=>null);e.value.set(n,u),t.value.set(n,d),i.value.set(n,p),a.value.set(n,h);let g=m(n);g.clear();for(let e of h)e&&g.add(e);l?.oldestId?o.value.set(n,l.oldestId):o.value.delete(n),l&&typeof l.hasMoreOlder==`boolean`?s.value.set(n,l.hasMoreOlder):s.value.delete(n),w(n,u,d,p,h),f(n)}function D(n,r,c,l){if(r.length===0){s.value.set(n,l.hasMoreOlder),f(n);return}let u=e.value.get(n)??[],d=t.value.get(n)??[],p=i.value.get(n)??[],h=a.value.get(n)??[],g=l.sessionIds??r.map(()=>null),_=l.eventIds??r.map(()=>null);e.value.set(n,[...r,...u]),t.value.set(n,[...c,...d]),i.value.set(n,[...g,...p]),a.value.set(n,[..._,...h]);let v=m(n);for(let e of _)e&&v.add(e);l.oldestId&&o.value.set(n,l.oldestId),s.value.set(n,l.hasMoreOlder),f(n)}function O(n,r){let o=e.value.get(n),s=a.value.get(n);if(!o||!s)return;let c=s.indexOf(r);if(c===-1)return;let l=t.value.get(n),u=i.value.get(n);o.splice(c,1),s.splice(c,1),l&&l.splice(c,1),u&&u.splice(c,1),m(n).delete(r),f(n)}function k(n){e.value.delete(n),t.value.delete(n),i.value.delete(n),a.value.delete(n),o.value.delete(n),s.value.delete(n),c.value.delete(n),l.value.delete(n),f(n)}return{events:e,timestamps:t,sessionIds:i,eventIds:a,versions:u,versionFor:p,eventsFor:_,timestampsFor:v,sessionIdsFor:y,eventIdsFor:b,oldestIdFor:x,hasMoreOlderFor:S,isCompacting:h,setCompacting:g,append:C,merge:T,reset:E,prepend:D,removeByEventId:O,clear:k}}),Fi=class extends Error{constructor(e,t,n,r){super(e),zn(this,`status`,void 0),zn(this,`code`,void 0),zn(this,`body`,void 0),this.name=`ApiError`,this.status=t,this.code=n,this.body=r}},Ii=class extends Error{constructor(e){super(`Request timed out after ${e} ms`),zn(this,`timeoutMs`,void 0),this.name=`ApiTimeoutError`,this.timeoutMs=e}},Li=3e4;function Ri(e,t){let n=e.trim();if(n.length===0)return{message:`HTTP ${t}`,code:void 0};try{let e=JSON.parse(n),r=typeof e.code==`string`?e.code:void 0;return typeof e.error==`string`&&e.error.length>0?{message:e.error,code:r}:typeof e.message==`string`&&e.message.length>0?{message:e.message,code:r}:{message:`HTTP ${t}`,code:r}}catch{return{message:n.slice(0,500),code:void 0}}}async function Y(e,t={}){let{body:n,timeoutMs:r=Li,signal:i,headers:a,...o}=t,s=new AbortController,c=!1,l=r>0?setTimeout(()=>{c=!0,s.abort()},r):null,u=()=>s.abort();i?.addEventListener(`abort`,u);let d={...o,signal:s.signal};n===void 0?a&&(d.headers=a):typeof n==`string`||n instanceof FormData||n instanceof Blob?(d.body=n,a&&(d.headers=a)):(d.body=JSON.stringify(n),d.headers={"Content-Type":`application/json`,...a??{}});let f;try{f=await fetch(e,d)}catch(e){throw c?new Ii(r):e}finally{l!==null&&clearTimeout(l),i?.removeEventListener(`abort`,u)}if(!f.ok){let e=await f.text().catch(()=>``),{message:t,code:n}=Ri(e,f.status);throw new Fi(t,f.status,n,e)}if(f.status===204)return;let p=await f.text();if(p.length!==0)try{return JSON.parse(p)}catch(e){throw new Fi(`Server returned a non-JSON body for a successful response: ${e instanceof Error?e.message:String(e)}`,f.status,void 0,p)}}var zi=`/sounds`,Bi=[{id:`basic-notification.mp3`,labelKey:`settings.notificationSoundBasic`},{id:`hey.mp3`,labelKey:`settings.notificationSoundHey`},{id:`warcraft-3-humain-travail.mp3`,labelKey:`settings.notificationSoundWorkspaceCreated`},{id:`travail_termine.mp3`,labelKey:`settings.notificationSoundTravailTermine`},{id:`faaah.mp3`,labelKey:`settings.notificationSoundFaaah`},{id:`ca_va_peter.mp3`,labelKey:`settings.notificationSoundCaVaPeter`},{id:`dry-fart.mp3`,labelKey:`settings.notificationSoundDryFart`},{id:`for-shure.mp3`,labelKey:`settings.notificationSoundForShure`},{id:`7eme-compagnie-03.mp3`,labelKey:`settings.notificationSoundSeptiemeCompagnie03`},{id:`aller-ftg.mp3`,labelKey:`settings.notificationSoundAllerFtg`},{id:`arrete-de-mentir.mp3`,labelKey:`settings.notificationSoundArreteDeMentir`},{id:`arretez-les-messages.mp3`,labelKey:`settings.notificationSoundArretezLesMessages`},{id:`bah-alors-on-est-nul.mp3`,labelKey:`settings.notificationSoundBahAlorsOnEstNul`},{id:`gta-v-death.mp3`,labelKey:`settings.notificationSoundGtaVDeath`},{id:`nan-tu-degages.mp3`,labelKey:`settings.notificationSoundNanTuDegages`},{id:`nan-wallah-pardon.mp3`,labelKey:`settings.notificationSoundNanWallahPardon`},{id:`ouais-cest-greg.mp3`,labelKey:`settings.notificationSoundOuaisCestGreg`},{id:`pas-ca-zinedine.mp3`,labelKey:`settings.notificationSoundPasCaZinedine`},{id:`ta-gueule.mp3`,labelKey:`settings.notificationSoundTaGueule`},{id:`tu-vas-la-fermer.mp3`,labelKey:`settings.notificationSoundTuVasLaFermer`},{id:`yaaa.mp3`,labelKey:`settings.notificationSoundYaaa`},{id:`mais-laisse-moi-dormir-zebi.mp3`,labelKey:`settings.notificationSoundMaisLaisseMoiDormirZebi`}],Vi=`hey.mp3`,Hi=`inherit`,Ui=`none`,Wi=[`audioPrCiFailedSound`,`audioPrCiRecoveredSound`,`audioPrChangesRequestedSound`,`audioPrApprovedSound`,`audioPrMergeConflictSound`,`audioPrReadyToMergeSound`,`audioPrMergedSound`],Gi=[`audioPrCiFailedEnabled`,`audioPrCiFailedVolume`,`audioPrCiRecoveredEnabled`,`audioPrCiRecoveredVolume`,`audioPrChangesRequestedEnabled`,`audioPrChangesRequestedVolume`,`audioPrApprovedEnabled`,`audioPrApprovedVolume`,`audioPrMergeConflictEnabled`,`audioPrMergeConflictVolume`,`audioPrReadyToMergeEnabled`,`audioPrReadyToMergeVolume`,`audioPrMergedEnabled`,`audioPrMergedVolume`],Ki={audioPrCiFailedSound:Hi,audioPrCiRecoveredSound:Hi,audioPrChangesRequestedSound:Hi,audioPrApprovedSound:Hi,audioPrMergeConflictSound:Hi,audioPrReadyToMergeSound:Hi,audioPrMergedSound:Hi,audioPrCiFailedEnabled:!1,audioPrCiFailedVolume:1,audioPrCiRecoveredEnabled:!1,audioPrCiRecoveredVolume:1,audioPrChangesRequestedEnabled:!1,audioPrChangesRequestedVolume:1,audioPrApprovedEnabled:!1,audioPrApprovedVolume:1,audioPrMergeConflictEnabled:!1,audioPrMergeConflictVolume:1,audioPrReadyToMergeEnabled:!1,audioPrReadyToMergeVolume:1,audioPrMergedEnabled:!1,audioPrMergedVolume:1};function qi(e){return Bi.some(t=>t.id===e)}function Ji(e){return e&&qi(e)?e:Vi}function Yi(e){if(e===`none`)return null;if(e!==`inherit`)return typeof e==`string`&&qi(e)?e:void 0}function Xi(e){let t=Yi(e);return t===null?Ui:t??`inherit`}function Zi(e){return`${zi}/${Ji(e)}`}var Qi=`mod+shift+x`,$i=[`mod`,`ctrl`,`meta`,`alt`,`shift`],ea=new Set([`mod+w`,`mod+shift+w`,`ctrl+w`,`ctrl+shift+w`,`meta+w`,`meta+shift+w`]),ta=new Set([`control`,...$i]);function na(e){return ea.has(e)}function ra(e){if(typeof e!=`string`||e.length===0||e!==e.toLowerCase()||na(e))return null;let t=e.split(`+`);if(t.some(e=>e.length===0))return null;let n=t.at(-1);if(!n||!/^[a-z0-9][a-z0-9_-]*$/.test(n)||ta.has(n))return null;let r=t.slice(0,-1),i=new Set,a=-1;for(let e of r){let t=$i.indexOf(e);if(t<=a)return null;a=t,i.add(e)}return{modifiers:i,key:n}}var ia=new Set([`control`,`meta`,`alt`,`shift`]),aa={" ":`space`,"+":`plus`,"-":`minus`,"=":`equal`,",":`comma`,".":`period`,"/":`slash`,"\\":`backslash`,";":`semicolon`,"'":`quote`,"[":`bracketleft`,"]":`bracketright`,"`":`backquote`};function oa(e){let t=aa[e]??e.toLowerCase();return/^[a-z0-9][a-z0-9_-]*$/.test(t)?t:null}function sa(e=globalThis.navigator?.platform??``){return/mac|iphone|ipad|ipod/i.test(e)?`mac`:`other`}function ca(e,t){if(e.key===`Escape`)return{status:`cancelled`};if(ia.has(e.key.toLowerCase()))return{status:`pending`};let n=oa(e.key);if(!n)return{status:`pending`};let r=new Set;(t===`mac`?e.metaKey:e.ctrlKey)&&r.add(`mod`),t===`mac`&&e.ctrlKey&&r.add(`ctrl`),t===`other`&&e.metaKey&&r.add(`meta`),e.altKey&&r.add(`alt`),e.shiftKey&&r.add(`shift`);let i=[...$i.filter(e=>r.has(e)),n].join(`+`);return na(i)?{status:`reserved`}:{status:`accepted`,shortcut:i}}function la(e,t,n){let r=ra(t),i=oa(e.key);if(!r||!i||i!==r.key)return!1;let a=r.modifiers.has(`ctrl`)||n===`other`&&r.modifiers.has(`mod`),o=r.modifiers.has(`meta`)||n===`mac`&&r.modifiers.has(`mod`);return e.ctrlKey===a&&e.metaKey===o&&e.altKey===r.modifiers.has(`alt`)&&e.shiftKey===r.modifiers.has(`shift`)}function ua(e){return{space:`Space`,arrowup:`↑`,arrowdown:`↓`,arrowleft:`←`,arrowright:`→`}[e]??e.toUpperCase()}function da(e,t){let n=ra(e);return n?t===`mac`?`${[n.modifiers.has(`mod`)||n.modifiers.has(`meta`)?`⌘`:``,n.modifiers.has(`ctrl`)?`⌃`:``,n.modifiers.has(`alt`)?`⌥`:``,n.modifiers.has(`shift`)?`⇧`:``].join(``)}${ua(n.key)}`:[n.modifiers.has(`mod`)||n.modifiers.has(`ctrl`)?`Ctrl`:``,n.modifiers.has(`meta`)?`Meta`:``,n.modifiers.has(`alt`)?`Alt`:``,n.modifiers.has(`shift`)?`Shift`:``,ua(n.key)].filter(Boolean).join(`+`):e}var fa=`.worktrees`;function pa(e){return btoa(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}var ma=Fe(`settings`,{state:()=>({global:{defaultModelByEngine:{"claude-code":`auto`,codex:`auto`},dangerouslySkipPermissions:!0,prPromptTemplate:``,reviewPromptTemplate:``,ciFixPromptTemplate:``,finalizationPrompt:``,notionInitialPromptTemplate:``,sentryInitialPromptTemplate:``,gitConventions:``,editorCommand:``,fileManagerCommand:``,terminalCommand:``,autoPurgeOnPrMerged:!1,autoLoopMaxRetries:5,awaitingUserReminderMinutes:0,wsEventsRetentionDays:0,wsEventsKeepPerWorkspace:0,browserNotifications:!0,audioNotifications:!0,audioQuestionNotifications:!1,audioWorkspaceCreatedNotifications:!1,audioAgentErrorNotifications:!1,audioNotificationSound:`hey.mp3`,audioQuestionSound:`inherit`,audioWorkspaceCreatedSound:`inherit`,audioAgentErrorSound:`inherit`,...Ki,audioNotificationVolume:1,audioQuestionVolume:1,audioWorkspaceCreatedVolume:1,audioAgentErrorVolume:1,notionStatusProperty:``,notionInProgressStatus:``,notionAssigneeProperty:``,notionUserId:``,defaultPermissionModeByEngine:{"claude-code":`plan`,codex:`plan`},notionMcpKey:``,sentryMcpKey:``,bitbucketToken:``,bitbucketUsername:``,notionEnabled:!0,sentryEnabled:!0,showThinkingBlocks:!0,whipEnabled:!1,whipShortcut:Qi,whipVolume:1,tags:[],branchPrefixes:[],setupScript:``,cleanupScript:``,cleanupScriptMode:`no-tasks`,cleanupScriptOnlyOnChanges:!1,archiveScript:``,changeSourceBranchScript:``,sessionEndedScript:``,prMergedScript:``,autoLoopDisabledScript:``,worktreesPath:fa,worktreesPrefixByProject:!1,voiceEnabled:!1,voicePttKey:`alt`,voiceLanguage:`auto`,voiceModel:null,voiceCommandPath:``,voiceFfmpegPath:``,voiceTemperature:0,voicePrompt:``,voiceTranslateToEnglish:!1,voiceSuppressNonSpeechTokens:!0,flattenWorkspaceList:!1,skillSuite:`superpowers`,customReviewTemplate:``,customAutoLoopReviewGate:``,customAutoLoopGroomingIntro:``,customQaPromptTemplate:``,customBrainstormingInstruction:``},voiceModels:[],voiceModelsLoading:!1,voiceModelsDir:``,voiceRuntime:null,activeMcpServers:[],projects:[],loading:!1,loaded:!1,loadError:null,showVerboseSystemMessages:localStorage.getItem(`kobo:showVerboseSystemMessages`)===`true`}),getters:{getProjectByPath:e=>t=>e.projects.find(e=>e.path===t)??null,projectPaths:e=>e.projects.map(e=>e.path)},actions:{_assertLoaded(){if(!this.loaded)throw Error(`Settings were never loaded successfully — refusing to overwrite the stored configuration`)},async fetchSettings(){this.loading=!0;try{let e=await Y(`/api/settings`);this.global=e.global,this.projects=e.projects,this.loadError=null,this.loaded=!0}catch(e){this.loadError=e instanceof Error?e.message:String(e),this.loaded=!1,console.error(`[settings store] fetchSettings failed:`,e)}finally{this.loading=!1}},async fetchActiveMcpServers(){try{this.activeMcpServers=await Y(`/api/settings/mcp-servers`)}catch(e){console.error(`[settings store] fetchActiveMcpServers failed:`,e),this.activeMcpServers=[]}},async fetchGlobalDefaults(){return Y(`/api/settings/defaults`)},async previewRetention(e,t){return Y(`/api/settings/ws-events-retention-preview?days=${e}&keep=${t}`)},async updateGlobal(e){this._assertLoaded(),this.global=await Y(`/api/settings/global`,{method:`PUT`,body:e})},async upsertProject(e,t){this._assertLoaded();let n=await Y(`/api/settings/projects/${pa(e)}`,{method:`PUT`,body:t}),r=this.projects.findIndex(t=>t.path===e);r>=0?this.projects[r]=n:this.projects.push(n)},toggleVerboseSystemMessages(){this.setVerboseSystemMessages(!this.showVerboseSystemMessages)},setVerboseSystemMessages(e){this.showVerboseSystemMessages=e,localStorage.setItem(`kobo:showVerboseSystemMessages`,String(e))},async deleteProject(e){this._assertLoaded(),await Y(`/api/settings/projects/${pa(e)}`,{method:`DELETE`}),this.projects=this.projects.filter(t=>t.path!==e)},async fetchVoiceModels(){this.voiceModelsLoading=!0;try{let e=await Y(`/api/voice/models`);this.voiceModels=e.available,this.voiceModelsDir=e.modelsDir,this.global.voiceModel=e.activeModel}catch(e){console.error(`[settings store] fetchVoiceModels failed:`,e)}finally{this.voiceModelsLoading=!1}},async cancelVoiceModelDownload(e){try{await Y(`/api/voice/models/${encodeURIComponent(e)}/download`,{method:`DELETE`})}catch(e){if(!(e instanceof Fi)||e.status!==404)throw e}await this.fetchVoiceModels()},async fetchVoiceRuntime(){try{this.voiceRuntime=await Y(`/api/voice/runtime`)}catch(e){console.error(`[settings store] fetchVoiceRuntime failed:`,e)}},async downloadVoiceModel(e){await Y(`/api/voice/models/${encodeURIComponent(e)}/download`,{method:`POST`}),await this.fetchVoiceModels()},async deleteVoiceModel(e){await Y(`/api/voice/models/${encodeURIComponent(e)}`,{method:`DELETE`}),await this.fetchVoiceModels()}}}),ha=new Set([`output`,`complete`,`error`]);function ga(e){if(!e.startsWith(`hook:`))return null;let t=e.slice(5),n=t.lastIndexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=t.slice(n+1);return ha.has(i)?{event:r,kind:i}:null}function _a(e){return`hook:${e}`}function va(e){return e.startsWith(`hook:`)}var ya=6e3,ba=new Map,xa=[],Sa=!1;function Ca(e){let t=ba.get(e);return t||(t=new Audio(Zi(e)),ba.set(e,t)),t}function wa(e,t){let n=new Audio(Zi(Ji(e)));n.preload=`auto`,n.volume=t,n.play().catch(()=>{})}function Ta(){`Notification`in window&&Notification.permission==="default"&&Notification.requestPermission()}function Ea(e){return typeof e!=`number`||!Number.isFinite(e)?1:Math.max(0,Math.min(1,e))}function Da(){let e=xa.shift();if(!e){Sa=!1;return}Sa=!0;let t=Ca(Ji(e.soundId));t.volume=e.volume,t.currentTime=0;let n=!1,r=()=>{n||(n=!0,t.removeEventListener(`ended`,r),t.removeEventListener(`error`,r),Da())};t.addEventListener(`ended`,r,{once:!0}),t.addEventListener(`error`,r,{once:!0}),t.play().catch(r)}function Oa(e,t){let n={soundId:Ji(e),volume:Ea(t)};if(document.visibilityState===`hidden`){wa(n.soundId,n.volume);return}xa.push(n),Sa||Da()}function ka(e,t){let n=Ca(Ji(e));n.volume=Ea(t),n.currentTime=0,n.play().catch(()=>{})}function Aa(e,t,n,r,i,a){let o=ma();if(!document.hasFocus()&&o.global.browserNotifications&&`Notification`in window&&Notification.permission===`granted`){let r=new Notification(e,{body:t,icon:`/favicon.ico`});n&&(r.onclick=()=>{window.focus(),window.location.hash=`#/workspace/${n}`,r.close()})}(a??o.global.audioNotifications)&&r!==null&&Oa(r&&r.length>0?r:o.global.audioNotificationSound??`hey.mp3`,i??o.global.audioNotificationVolume)}function ja(e,t){let n=[{label:t.retryLabel,color:`white`,handler:t.onRetry}];t.detailsLabel&&t.onDetails&&n.push({label:t.detailsLabel,color:`white`,handler:t.onDetails}),n.push({label:t.dismissLabel,color:`grey-5`}),q.create({type:`negative`,position:`top`,multiLine:!0,message:e,timeout:t.timeout??0,actions:n})}var Ma=Fe(`devServer`,{state:()=>({statuses:{},logs:{}}),getters:{getStatus:e=>t=>e.statuses[t]??null},actions:{async fetchStatus(e){try{let t=await fetch(`/api/dev-server/${e}/status`);if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();this.statuses[e]=n}catch(e){console.error(`[dev-server store] fetchStatus failed:`,e)}},async startDevServer(e){try{let t=await fetch(`/api/dev-server/${e}/start`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();this.statuses[e]=n}catch(e){throw console.error(`[dev-server store] startDevServer failed:`,e),e}},async stopDevServer(e){try{let t=await fetch(`/api/dev-server/${e}/stop`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();this.statuses[e]=n}catch(e){throw console.error(`[dev-server store] stopDevServer failed:`,e),e}},async fetchLogs(e,t=200){try{let n=await fetch(`/api/dev-server/${e}/logs?tail=${t}`);if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();return this.logs[e]=r.logs,r.logs}catch(e){return console.error(`[dev-server store] fetchLogs failed:`,e),``}},updateFromWsEvent(e,t){this.statuses[e]=t}}});function Na(e){return e.state===`OPEN`&&e.reviewDecision===`CHANGES_REQUESTED`&&e.reviewers.some(e=>e.state===`CHANGES_REQUESTED`)}function Pa(e){return e.state===`OPEN`&&e.ci.rollup===`FAILURE`}function Fa(e){return e?Pa(e)||Na(e):!1}var Ia=[`executing`,`extracting`,`brainstorming`];function La(e){return!!e&&Ia.includes(e)}function Ra(e,t){return La(e)&&!t}function za(e,t,n){return Ra(e,!t||n)}var Ba={created:`workspaceStatus.created`,extracting:`workspaceStatus.extracting`,brainstorming:`workspaceStatus.brainstorming`,executing:`workspaceStatus.executing`,"awaiting-user":`workspaceStatus.awaitingUser`,completed:`workspaceStatus.completed`,idle:`workspaceStatus.idle`,error:`workspaceStatus.error`,quota:`workspaceStatus.quota`};function Va(e){return e?Ba[e]??null:null}var Ha=class extends Error{constructor(e,t){super(e),zn(this,`code`,void 0),this.name=`WorkspaceActionError`,this.code=t}};function Ua(e){return e===`running`?`in_progress`:e}var Wa=5e3,Ga=500,Ka=null,qa=0,Ja=0,Ya=new Map,Xa=new Map,Za=new Map,Qa=new Map;function $a(e){Xa.set(e,(Xa.get(e)??0)+1)}function eo(e,t,n){let r={...e},i=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of i){let i=t[a],o=e[a],s=(Xa.get(a)??0)!==(n.get(a)??0),c=i?Date.parse(i.updatedAt):NaN,l=o?Date.parse(o.updatedAt):NaN;(s||Number.isFinite(c)&&c>l)&&(i?r[a]=i:delete r[a])}return r}function to(e){return e===`claude-code`?`claude-code`:null}var X=Fe(`workspace`,{state:()=>({workspaces:[],selectedWorkspaceId:null,tasks:[],activityFeeds:{},activityFeedIds:{},activityCounts:{},subagents:{},agentTodos:{},sessions:[],selectedSessionId:null,archivedWorkspaces:[],archivedLoaded:!1,loading:!1,listLoadError:null,listPollFailureStreak:0,activeListLoadFailed:!1,loadingOlderEvents:!1,hasMoreEvents:{},providerUsage:{},chatDraft:``,queuedMessages:{},activeAgentSessionIds:{},settledAgentSessionIds:{},gitRefreshTrigger:0,gitStatsCache:{},pendingWakeups:{},pendingQuotaBackoffs:{},pendingDeferred:{},pendingQueue:{},prSnapshots:{},autoLoopStates:{},crons:{},creationProgress:null,agentLiveness:{},agentLivenessLoaded:{}}),getters:{selectedWorkspace:e=>e.workspaces.find(t=>t.id===e.selectedWorkspaceId)??e.archivedWorkspaces.find(t=>t.id===e.selectedWorkspaceId)??null,needsAttention(e){return e.workspaces.filter(t=>[`error`,`quota`,`awaiting-user`].includes(t.status)||Fa(e.prSnapshots[t.id])||!La(t.status)&&!!e.prSnapshots[t.id]?.readyToMerge)},running(e){return e.workspaces.filter(t=>La(t.status)&&!Fa(e.prSnapshots[t.id]))},idle(e){return e.workspaces.filter(t=>[`completed`,`idle`,`created`].includes(t.status)&&!Fa(e.prSnapshots[t.id])&&!e.prSnapshots[t.id]?.readyToMerge)},favorites(e){return e.workspaces.filter(e=>e.favoritedAt!==null)},currentAgentTodos:e=>e.selectedWorkspaceId?e.agentTodos[e.selectedWorkspaceId]??[]:[],currentSubagents:e=>{if(!e.selectedWorkspaceId)return[];let t=e.subagents[e.selectedWorkspaceId]??{};return Object.values(t).sort((e,t)=>e.startedAt.localeCompare(t.startedAt))},activityFeed:e=>{if(!e.selectedWorkspaceId)return[];let t=e.activityFeeds[e.selectedWorkspaceId]??[];if(!e.selectedSessionId)return e.sessions.length===0?t:[];let n=e.sessions.find(t=>t.id===e.selectedSessionId)?.engineSessionId??null,r=e.sessions.length>0?e.sessions[e.sessions.length-1].id:null,i=e.selectedSessionId===r;return t.filter(t=>t.sessionId?t.sessionId===e.selectedSessionId||n!==null&&t.sessionId===n:i)},acceptanceCriteria:e=>e.tasks.filter(e=>e.isAcceptanceCriterion),archived:e=>e.archivedWorkspaces,currentProviderUsage(e){let t=e.workspaces.find(t=>t.id===e.selectedWorkspaceId);if(!t)return null;let n=to(t.engine);return n?e.providerUsage[n]??null:null}},actions:{clearWorkspaceLocalState(e){delete this.activityFeeds[e],delete this.activityFeedIds[e],delete this.activityCounts[e],delete this.subagents[e],delete this.agentTodos[e],delete this.hasMoreEvents[e],delete this.gitStatsCache[e],delete this.pendingWakeups[e],delete this.pendingQuotaBackoffs[e],delete this.pendingDeferred[e],delete this.pendingQueue[e],delete this.prSnapshots[e],delete this.autoLoopStates[e],delete this.crons[e],delete this.activeAgentSessionIds[e];for(let t of Object.keys(this.queuedMessages))t.startsWith(`${e}:`)&&delete this.queuedMessages[t];Ya.delete(e),Xa.delete(e),Za.delete(e),Qa.delete(e),Pi().clear(e),localStorage.removeItem(`kobo:session:${e}`)},setCreationProgress(e){this.creationProgress=e},clearCreationProgress(){this.creationProgress=null},async toggleFavorite(e){let t=this.workspaces.find(t=>t.id===e);if(!t)return;let n=t.favoritedAt,r=n===null,i=r?new Date().toISOString():null;this.workspaces=this.workspaces.map(t=>t.id===e?{...t,favoritedAt:i}:t);try{let t=await fetch(`/api/workspaces/${e}/favorite`,{method:r?`POST`:`DELETE`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();this.workspaces=this.workspaces.map(t=>t.id===e?n:t)}catch(t){throw this.workspaces=this.workspaces.map(t=>t.id===e?{...t,favoritedAt:n}:t),t}},async togglePrWatch(e){let t=this.workspaces.find(t=>t.id===e);if(!t)return;let n=t.prWatchDisabledAt===null,r=n?new Date().toISOString():null;this.workspaces=this.workspaces.map(t=>t.id===e?{...t,prWatchDisabledAt:r}:t);try{let t=await fetch(`/api/workspaces/${e}/pr-watch-disabled`,{method:n?`POST`:`DELETE`});if(!t.ok)throw Error(`HTTP ${t.status}`);if(n){let n=await t.json();this.workspaces=this.workspaces.map(t=>t.id===e?n:t),delete this.prSnapshots[e],$a(e)}else{let{workspace:n,prSnapshot:r}=await t.json();this.workspaces=this.workspaces.map(t=>t.id===e?n:t),r?this.prSnapshots[e]=r:delete this.prSnapshots[e],$a(e)}}catch(n){throw this.workspaces=this.workspaces.map(n=>n.id===e?{...n,prWatchDisabledAt:t.prWatchDisabledAt}:n),n}},async setWorkspaceTags(e,t){let n=this.workspaces.find(t=>t.id===e);if(!n)return;let r=n.tags,i=[...t];this.workspaces=this.workspaces.map(t=>t.id===e?{...t,tags:i}:t);try{let n=await fetch(`/api/workspaces/${e}/tags`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({tags:t})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();this.workspaces=this.workspaces.map(t=>t.id===e?r:t)}catch(t){throw this.workspaces=this.workspaces.map(t=>t.id===e?{...t,tags:r}:t),t}},async fetchOrphanWorktrees(e){return Y(`/api/git/orphan-worktrees?projectPath=${encodeURIComponent(e)}`,{cache:`no-store`})},async fetchWorkspaces(){this.loading=!0;try{let e=await Y(`/api/workspaces`);this.workspaces=Array.isArray(e)?e:e.workspaces??[],this.listLoadError=null,this.activeListLoadFailed=!1,this.listPollFailureStreak=0;for(let e of this.workspaces)[`completed`,`idle`,`error`,`quota`].includes(e.status)&&this.finalizeRunningSubagents(e.id)}catch(e){this.listLoadError=e instanceof Error?e.message:String(e),this.activeListLoadFailed=!0,console.error(`[workspace store] fetchWorkspaces failed:`,e)}finally{this.loading=!1}},async retryLoadWorkspaces(){await this.fetchWorkspaces(),this.archivedLoaded&&await this.fetchArchivedWorkspaces()},async fetchArchivedWorkspaces(){try{this.archivedWorkspaces=await Y(`/api/workspaces/archived`),this.archivedLoaded=!0,this.activeListLoadFailed||(this.listLoadError=null)}catch(e){this.listLoadError=e instanceof Error?e.message:String(e),console.error(`[workspace store] fetchArchivedWorkspaces failed:`,e)}},async fetchWorkspaceDetails(e){let t=(Qa.get(e)??0)+1;Qa.set(e,t);let n=Ya.get(e)??0;try{let r=await Y(`/api/workspaces/${e}`);if(this.selectedWorkspaceId!==e||Qa.get(e)!==t)return;let i=(Ya.get(e)??0)!==n,a=r.workspace??r,o=i?{...a}:a;i&&delete o.status;let s=this.workspaces.findIndex(t=>t.id===e);if(s>=0)this.workspaces[s]={...this.workspaces[s],...o};else{let t=this.archivedWorkspaces.findIndex(t=>t.id===e);t>=0?this.archivedWorkspaces[t]={...this.archivedWorkspaces[t],...o}:o?.archivedAt&&this.archivedWorkspaces.unshift(o)}r.tasks&&(this.tasks=r.tasks),`agentLiveness`in r&&this.applyAgentLiveness(e,r.agentLiveness)}catch(e){console.error(`[workspace store] fetchWorkspaceDetails failed:`,e)}},applyAgentLiveness(e,t){if(this.agentLivenessLoaded={...this.agentLivenessLoaded,[e]:!0},t){this.agentLiveness={...this.agentLiveness,[e]:t};return}if(e in this.agentLiveness){let t={...this.agentLiveness};delete t[e],this.agentLiveness=t}},async createWorkspace(e){try{let t=await fetch(`/api/workspaces`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>({}));throw new Ha(typeof e.error==`string`?e.error:`HTTP ${t.status}`,typeof e.step==`string`?e.step:void 0)}let n=t.headers.get(`X-Kobo-Branch-Adjusted`)===`1`,r=t.headers.get(`X-Kobo-Source-Fallback`)===`local`,i=await t.json(),a=i.workspace??i,o=this.workspaces.findIndex(e=>e.id===a.id);return o>=0?this.workspaces[o]=a:this.workspaces.push(a),e.autoLoop&&this.fetchAutoLoopStates(),a._branchAdjusted=n,a._sourceFallback=r,a}catch(e){throw console.error(`[workspace store] createWorkspace failed:`,e),e}},async startWorkspace(e,t,n,r){try{await Y(`/api/workspaces/${e}/start`,{method:`POST`,body:{prompt:t,agentSessionId:n,resume:r}}),await this.fetchWorkspaces()}catch(e){throw console.error(`[workspace store] startWorkspace failed:`,e),e}},async previewEngineHandoff(e,t){let n=await fetch(`/api/workspaces/${e}/engine-handoff-preview`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({engine:t})}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.error??`HTTP ${n.status}`);return r.handoff},async switchEngine(e,t){let n=await fetch(`/api/workspaces/${e}/switch-engine`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.error??`HTTP ${n.status}`);let i=r.workspace,a=this.workspaces.findIndex(t=>t.id===e);return a>=0&&(this.workspaces[a]=i),await this.fetchSessions(e,r.sessionId),{sessionId:r.sessionId}},async stopWorkspace(e){try{let t=await fetch(`/api/workspaces/${e}/stop`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);await this.fetchWorkspaces()}catch(e){throw console.error(`[workspace store] stopWorkspace failed:`,e),e}},async interruptAgent(e,t={}){try{let n=await fetch(`/api/workspaces/${e}/interrupt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>void 0),t=typeof e==`object`&&e&&!Array.isArray(e)?e:void 0,r=typeof t?.error==`string`?t.error:`HTTP ${n.status}`,i=t?.code;throw new Ha(r,n.status===409&&(i===`no_agent_running`||i===`session_not_active`)||n.status===500&&i===`interrupt_failed`?i:void 0)}}catch(e){throw console.error(`[workspace store] interruptAgent failed:`,e),e}},async deleteWorkspace(e,t){try{let n=await fetch(`/api/workspaces/${e}`,{method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t??{})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=[];if(n.status===200){let e=await n.json().catch(()=>({}));r=Array.isArray(e.warnings)?e.warnings:[]}return this.workspaces=this.workspaces.filter(t=>t.id!==e),this.archivedWorkspaces=this.archivedWorkspaces.filter(t=>t.id!==e),this.clearWorkspaceLocalState(e),Mi(e),this.selectedWorkspaceId===e&&(this.selectedWorkspaceId=null,this.tasks=[]),{warnings:r}}catch(e){throw console.error(`[workspace store] deleteWorkspace failed:`,e),e}},async deleteAllArchived(e){try{let t=this.archivedWorkspaces.map(e=>e.id),n=await fetch(`/api/workspaces/archived`,{method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e??{})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json().catch(()=>({})),i=typeof r.deleted==`number`?r.deleted:0,a=Array.isArray(r.warnings)?r.warnings:[];this.archivedWorkspaces=[];for(let e of t)this.clearWorkspaceLocalState(e),Mi(e),this.selectedWorkspaceId===e&&(this.selectedWorkspaceId=null,this.tasks=[]);return{deleted:i,warnings:a,ids:t}}catch(e){throw console.error(`[workspace store] deleteAllArchived failed:`,e),e}},async updateModel(e,t){try{let n=await fetch(`/api/workspaces/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({model:t})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json(),i=this.workspaces.findIndex(t=>t.id===e);i>=0&&(this.workspaces[i]=r)}catch(e){throw console.error(`[workspace store] updateModel failed:`,e),e}},async updateWorkspaceDescription(e,t){let n=this.workspaces.findIndex(t=>t.id===e);if(n<0)throw Error(`Workspace '${e}' not found in store`);let r=this.workspaces[n].description;this.workspaces[n]={...this.workspaces[n],description:t};try{let n=await fetch(`/api/workspaces/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({description:t})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}let r=await n.json();this.workspaces=this.workspaces.map(t=>t.id===e?{...t,...r}:t)}catch(n){let i=this.workspaces.findIndex(t=>t.id===e);throw i>=0&&this.workspaces[i].description===t&&(this.workspaces[i]={...this.workspaces[i],description:r}),n}},async updateReasoningEffort(e,t){try{let n=await fetch(`/api/workspaces/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({reasoningEffort:t})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json(),i=this.workspaces.findIndex(t=>t.id===e);i>=0&&(this.workspaces[i]=r)}catch(e){throw console.error(`[workspace store] updateReasoningEffort failed:`,e),e}},async renameWorkspaceBranch(e,t){let n=await fetch(`/api/workspaces/${e}/rename-branch`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({newName:t})}),r=await n.json().catch(()=>null);if(!n.ok)throw new Ha(r?.error??`Rename failed`,r?.code);let i=r,a=this.workspaces.findIndex(t=>t.id===e);return a>=0&&(this.workspaces[a]=i),i},async resyncWorkspaceBranch(e){let t=await fetch(`/api/workspaces/${e}/resync-branch`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(n.changed){let t=this.workspaces.findIndex(t=>t.id===e);t>=0&&(this.workspaces[t]={...this.workspaces[t],workingBranch:n.workingBranch})}return n},async updateAgentPermissionMode(e,t){try{let n=await fetch(`/api/workspaces/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({agentPermissionMode:t})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json(),i=this.workspaces.findIndex(t=>t.id===e);i>=0&&(this.workspaces[i]=r)}catch(e){throw console.error(`[workspace store] updateAgentPermissionMode failed:`,e),e}},async pushBranch(e,t={}){let n=await fetch(`/api/workspaces/${e}/push`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({force:t.force===!0})});if(!n.ok){let e=await n.json().catch(()=>({error:`Push failed`}));throw new Ha(e.error??`Push failed`,e.code)}},async fetchGitStats(e,t={}){let n=await Y(`/api/workspaces/${e}/git-stats${t.freshFetch?`?freshFetch=1`:``}`,{signal:t.signal,timeoutMs:6e4});return this.gitStatsCache[e]=n,n},async fetchBranchDivergence(e,t={}){let n=`/api/workspaces/${e}/branch-divergence?limit=${t.limit??50}`,r=await fetch(n,{signal:t.signal});if(!r.ok)throw Error(`HTTP ${r.status}`);return await r.json()},async openPullRequest(e){let t=await fetch(`/api/workspaces/${e}/open-pr`,{method:`POST`}),n=await t.json().catch(()=>null);if(!t.ok)throw new Ha(n?.error??`Open PR failed`,n?.code);return n},async archiveWorkspace(e){try{let t=await fetch(`/api/workspaces/${e}/archive`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();return this.workspaces=this.workspaces.filter(t=>t.id!==e),this.archivedLoaded&&this.archivedWorkspaces.unshift(n),this.selectedWorkspaceId===e&&(this.selectedWorkspaceId=null,this.tasks=[]),n}catch(e){throw console.error(`[workspace store] archiveWorkspace failed:`,e),e}},async unarchiveWorkspace(e){try{let t=await fetch(`/api/workspaces/${e}/unarchive`,{method:`POST`});if(!t.ok){if(t.status===409){let e=await t.json().catch(()=>({})),n=Error(e.error??`worktree-purged`);throw n.code=`worktree-purged`,n}throw Error(`HTTP ${t.status}`)}let n=await t.json();return this.archivedWorkspaces=this.archivedWorkspaces.filter(t=>t.id!==e),this.workspaces.unshift(n),n}catch(e){throw console.error(`[workspace store] unarchiveWorkspace failed:`,e),e}},async createTask(e,t,n){try{let r=await fetch(`/api/workspaces/${e}/tasks`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({title:t,isAcceptanceCriterion:n})});if(!r.ok)throw Error(`HTTP ${r.status}`);await this.fetchWorkspaceDetails(e)}catch(e){throw console.error(`[workspace store] createTask failed:`,e),e}},async updateTaskTitle(e,t,n){try{let r=await fetch(`/api/workspaces/${e}/tasks/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({title:n})});if(!r.ok)throw Error(`HTTP ${r.status}`);await this.fetchWorkspaceDetails(e)}catch(e){throw console.error(`[workspace store] updateTaskTitle failed:`,e),e}},async deleteTask(e,t){try{let n=await fetch(`/api/workspaces/${e}/tasks/${t}`,{method:`DELETE`});if(!n.ok)throw Error(`HTTP ${n.status}`);await this.fetchWorkspaceDetails(e)}catch(e){throw console.error(`[workspace store] deleteTask failed:`,e),e}},selectWorkspace(e){this.selectedWorkspaceId=e,this.selectedSessionId=null,this.sessions=[],this.tasks=[],this.markRead(e),this.fetchWorkspaceDetails(e),this.fetchSessions(e),this.fetchPendingQuotaBackoff(e),this.fetchGitStats(e).catch(()=>{}),this.activityFeeds[e]?.length||go().subscribe(e)},async fetchSessions(e,t){let n=(Za.get(e)??0)+1;Za.set(e,n);try{let r=await fetch(`/api/workspaces/${e}/sessions`);if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.json();if(this.selectedWorkspaceId!==e||Za.get(e)!==n)return;if(this.sessions=i,t&&this.sessions.some(e=>e.id===t)){this.selectSession(t);return}let a=this.selectedSessionId&&this.sessions.some(e=>e.id===this.selectedSessionId);if(this.sessions.length>0&&!a){let t=localStorage.getItem(`kobo:session:${e}`),n=t?this.sessions.find(e=>e.id===t):null;this.selectSession(n?n.id:this.sessions[0].id)}}catch(e){console.error(`[workspace store] fetchSessions failed:`,e)}},async fetchOlderEvents(e){if(this.loadingOlderEvents||this.hasMoreEvents[e]===!1)return!1;let t=this.activityFeeds[e];if(!t?.length)return!1;let n=t[0].id;this.loadingOlderEvents=!0;try{let t=await fetch(`/api/workspaces/${e}/events?before=${encodeURIComponent(n)}&limit=100`);if(!t.ok)throw Error(`HTTP ${t.status}`);let r=await t.json();if(this.hasMoreEvents[e]=r.hasMore,r.events.length>0){let e=go();for(let t of r.events)e._routeMessage(t)}return r.events.length>0}catch(e){return console.error(`[workspace store] fetchOlderEvents failed:`,e),!1}finally{this.loadingOlderEvents=!1}},selectSession(e){this.selectedSessionId=e,this.selectedWorkspaceId&&localStorage.setItem(`kobo:session:${this.selectedWorkspaceId}`,e)},async createSession(e){try{let t=await fetch(`/api/workspaces/${e}/sessions`,{method:`POST`});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`HTTP ${t.status}`)}let n=await t.json();return this.sessions.unshift(n),this.selectSession(n.id),n}catch(e){throw console.error(`[workspace store] createSession failed:`,e),e}},async renameWorkspace(e,t){let n=await fetch(`/api/workspaces/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({name:t})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}let r=await n.json(),i=this.workspaces.findIndex(t=>t.id===e);i>=0&&(this.workspaces[i]={...this.workspaces[i],...r});let a=this.archivedWorkspaces.findIndex(t=>t.id===e);a>=0&&(this.archivedWorkspaces[a]={...this.archivedWorkspaces[a],...r})},async renameSession(e,t,n){let r=await fetch(`/api/workspaces/${e}/sessions/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({name:n})});if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.error??`HTTP ${r.status}`)}let i=await r.json().catch(()=>null),a=this.sessions.find(e=>e.id===t);a&&(a.name=i?.name??n)},async deleteSession(e,t){let n=await fetch(`/api/workspaces/${e}/sessions/${t}`,{method:`DELETE`}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.error??`HTTP ${n.status}`);let i=this.selectedSessionId===t,a=r.workspace;if(a){let t=this.workspaces.findIndex(t=>t.id===e);t>=0&&(this.workspaces[t]=a)}await this.fetchSessions(e),i&&this.selectedWorkspaceId===e&&this.selectSession(this.sessions[0]?.id??null)},addActivityItem(e,t){if(this.activityFeeds[e]||(this.activityFeeds[e]=[]),this.activityFeedIds[e]||(this.activityFeedIds[e]=new Set),this.activityCounts[e]||(this.activityCounts[e]={toolUses:0,agentMessages:0,userMessages:0,errors:0}),t.meta?.sender!==`user`&&t.meta?.sender!==`system-prompt`)for(let t of this.activityFeeds[e])t.meta?.pending&&(t.meta.pending=!1);if(!this.activityFeedIds[e].has(t.id)){this.activityFeedIds[e].add(t.id),this.activityFeeds[e].push(t);let n=this.activityCounts[e];t.type===`tool_use`?n.toolUses++:t.type===`error`&&n.errors++,t.meta?.sender===`user`?n.userMessages++:t.type===`text`&&t.meta?.sender!==`system-prompt`&&n.agentMessages++}let n=this.activityFeeds[e];if(n.length>Wa){let t=n.splice(0,n.length-Wa),r=this.activityFeedIds[e];for(let e of t)r.delete(e.id)}},removeActivityItem(e,t){let n=this.activityFeeds[e],r=this.activityFeedIds[e];if(!n||!r)return;let i=n.findIndex(e=>e.id===t);if(i<0)return;let[a]=n.splice(i,1);r.delete(t);let o=this.activityCounts[e];o&&a&&(a.type===`tool_use`?o.toolUses=Math.max(0,o.toolUses-1):a.type===`error`&&(o.errors=Math.max(0,o.errors-1)),a.meta?.sender===`user`?o.userMessages=Math.max(0,o.userMessages-1):a.type===`text`&&a.meta?.sender!==`system-prompt`&&(o.agentMessages=Math.max(0,o.agentMessages-1)))},clearActivityFeed(e){e?(delete this.activityFeeds[e],delete this.activityFeedIds[e],delete this.activityCounts[e]):(this.activityFeeds={},this.activityFeedIds={},this.activityCounts={})},applyUsageSnapshot(e){this.providerUsage[e.providerId]=e.snapshot},async requestUsageRefresh(e){try{await fetch(`/api/usage/${e}/refresh`,{method:`POST`})}catch(e){console.error(`[workspace store] requestUsageRefresh failed:`,e)}},triggerGitRefresh(){this.gitRefreshTrigger++,this.schedulePrSnapshotsRefresh()},schedulePrSnapshotsRefresh(){Ka!==null&&clearTimeout(Ka),Ka=setTimeout(()=>{Ka=null,this.fetchPrSnapshots()},Ga)},async fetchPrSnapshots(){let e=++Ja,t=new Map(Xa);try{let n=await fetch(`/api/workspaces/pr-states`,{cache:`no-store`});if(!n.ok)return;let r=await n.json();if(e!==Ja)return;this.prSnapshots=eo(r,this.prSnapshots,t)}catch(e){console.error(`[workspace-store] fetchPrSnapshots failed:`,e)}},async fetchWorkspacesInfo(){let e=++qa,t=new Map(Ya),n=new Map(Xa);try{let r=await Y(`/api/workspaces/info`,{cache:`no-store`});if(this.listPollFailureStreak=0,this.activeListLoadFailed=!1,this.listLoadError=null,e!==qa)return;this.agentLiveness=r.agentLiveness??{};let i={...this.agentLivenessLoaded};for(let e of r.workspaces)i[e.id]=!0;this.agentLivenessLoaded=i;let a=new Map(this.workspaces.map(e=>[e.id,e]));this.workspaces=r.workspaces.map(e=>{let n=a.get(e.id),r=(Ya.get(e.id)??0)!==(t.get(e.id)??0);return n&&r?{...e,...n}:e});for(let e of this.workspaces)[`completed`,`idle`,`error`,`quota`].includes(e.status)&&this.finalizeRunningSubagents(e.id);this.prSnapshots=eo(r.prSnapshots,this.prSnapshots,n);let o={...this.gitStatsCache};for(let[e,t]of Object.entries(r.gitStats)){let n=o[e];(!n||(t.computedAt??0)>=(n.computedAt??0))&&(o[e]=t)}this.gitStatsCache=o}catch(e){console.error(`[workspace-store] fetchWorkspacesInfo failed:`,e),this.listPollFailureStreak+=1,this.listPollFailureStreak>=2&&(this.activeListLoadFailed=!0,this.listLoadError=e instanceof Error?e.message:String(e))}},async refreshPrSnapshot(e){try{let t=await fetch(`/api/workspaces/pr-snapshot/refresh/${e}`,{method:`POST`});if(t.status===404){let t={...this.prSnapshots};return delete t[e],this.prSnapshots=t,$a(e),null}if(!t.ok)return console.error(`[workspace-store] refreshPrSnapshot non-OK:`,t.status),null;let n=await t.json();return this.prSnapshots={...this.prSnapshots,[e]:n.snapshot},$a(e),n.snapshot}catch(e){return console.error(`[workspace-store] refreshPrSnapshot failed:`,e),null}},async fetchAutoLoopStates(){try{let e=await fetch(`/api/workspaces/auto-loop-states`,{cache:`no-store`});if(!e.ok)return;let t=await e.json();this.autoLoopStates=t}catch(e){console.error(`[workspace-store] fetchAutoLoopStates failed:`,e)}},async enableAutoLoop(e){let t=this.workspaces.find(t=>t.id===e);if(t&&t.agentPermissionMode===`plan`)try{await this.updateAgentPermissionMode(e,`bypass`)}catch{}let n=await fetch(`/api/workspaces/${e}/auto-loop`,{method:`POST`});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}await this.fetchAutoLoopStates()},async disableAutoLoop(e){let t=await fetch(`/api/workspaces/${e}/auto-loop`,{method:`DELETE`});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`HTTP ${t.status}`)}await this.fetchAutoLoopStates()},async forceAutoLoopReady(e){let t=await fetch(`/api/workspaces/${e}/auto-loop-ready`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);await this.fetchAutoLoopStates()},setAutoLoopState(e,t){this.autoLoopStates[e]=t},clearAutoLoopState(e){delete this.autoLoopStates[e]},async fetchCrons(e){try{let t=await fetch(`/api/workspaces/${e}/crons`);if(!t.ok)return;let n=await t.json();this.crons[e]=n.crons}catch(e){console.error(`[workspace-store] fetchCrons failed:`,e)}},async cancelCron(e,t){let n=this.crons[e]??[];this.crons[e]=n.filter(e=>e.id!==t);try{let n=await fetch(`/api/workspaces/${e}/crons/${t}`,{method:`DELETE`});if(!n.ok)throw Error(`HTTP ${n.status}`)}catch(t){throw this.crons[e]=n,t}},async createCron(e,t){let n=await fetch(`/api/workspaces/${e}/crons`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}await this.fetchCrons(e)},async scheduleManualWakeup(e,t){let n=await fetch(`/api/workspaces/${e}/pending-wakeup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}let r=await n.json();r.pending&&(this.pendingWakeups[e]=r.pending)},async fetchPendingWakeup(e){try{let t=await fetch(`/api/workspaces/${e}/pending-wakeup`,{cache:`no-store`});if(!t.ok)return;let n=await t.json();n?this.pendingWakeups[e]=n:delete this.pendingWakeups[e]}catch(e){console.error(`[workspace-store] fetchPendingWakeup failed:`,e)}},setPendingWakeup(e,t){this.pendingWakeups[e]=t},clearPendingWakeup(e){delete this.pendingWakeups[e]},async cancelPendingWakeup(e){let t=this.pendingWakeups[e]!==void 0;delete this.pendingWakeups[e];try{let t=await fetch(`/api/workspaces/${e}/pending-wakeup`,{method:`DELETE`});if(!t.ok)throw Error(`HTTP ${t.status}`)}catch(n){console.error(`[workspace-store] cancelPendingWakeup failed:`,n),t&&await this.fetchPendingWakeup(e)}},async fetchPendingQuotaBackoff(e){try{let t=await fetch(`/api/workspaces/${e}/quota-backoff`,{cache:`no-store`});if(!t.ok)return;let n=await t.json();n?this.pendingQuotaBackoffs[e]={...n,reason:n.reason===`transient`?`transient`:`quota`}:delete this.pendingQuotaBackoffs[e]}catch(e){console.error(`[workspace-store] fetchPendingQuotaBackoff failed:`,e)}},setPendingQuotaBackoff(e,t){this.pendingQuotaBackoffs[e]=t},clearPendingQuotaBackoff(e){delete this.pendingQuotaBackoffs[e]},async cancelQuotaBackoff(e){let t=this.pendingQuotaBackoffs[e]!==void 0;delete this.pendingQuotaBackoffs[e];try{let t=await fetch(`/api/workspaces/${e}/quota-backoff`,{method:`DELETE`});if(!t.ok)throw Error(`HTTP ${t.status}`)}catch(n){console.error(`[workspace-store] cancelQuotaBackoff failed:`,n),t&&await this.fetchPendingQuotaBackoff(e)}},async resumeQuotaBackoffNow(e){await this.fetchSessions(e);let t=this.sessions[0];t&&(t.status===`completed`||t.status===`error`)?await this.startWorkspace(e,void 0,t.id,!0):await this.startWorkspace(e)},enqueuePending(e,t){let n=this.pendingQueue[e]??[];n.some(e=>e.toolCallId===t.toolCallId)||(n.push(t),this.pendingQueue[e]=n,t.kind===`question`&&(this.pendingDeferred[e]={toolCallId:t.toolCallId,toolName:t.toolName,input:t.input,agentSessionId:t.agentSessionId}))},peekPending(e){return this.pendingQueue[e]?.[0]},dequeuePending(e){let t=this.pendingQueue[e];if(!t||t.length===0)return;let n=t.shift();t.length===0&&delete this.pendingQueue[e];let r=this.pendingQueue[e]?.[0];return r&&r.kind===`question`?this.pendingDeferred[e]={toolCallId:r.toolCallId,toolName:r.toolName,input:r.input,agentSessionId:r.agentSessionId}:delete this.pendingDeferred[e],n},clearPendingForSession(e,t){if(t===null)return;let n=this.pendingQueue[e];if(!n)return;let r=n.filter(e=>e.agentSessionId!==t);r.length===0?delete this.pendingQueue[e]:this.pendingQueue[e]=r;let i=this.pendingDeferred[e];i&&i.agentSessionId===t&&delete this.pendingDeferred[e]},clearAllPending(e){delete this.pendingQueue[e],delete this.pendingDeferred[e]},setPendingDeferred(e,t){this.enqueuePending(e,{kind:`question`,agentSessionId:t.agentSessionId,toolCallId:t.toolCallId,toolName:t.toolName,input:t.input})},clearPendingDeferred(e,t=null){if(t===null){this.clearAllPending(e);return}this.clearPendingForSession(e,t)},getPendingDeferred(e){let t=this.peekPending(e);if(t?.kind===`question`)return{toolCallId:t.toolCallId,toolName:t.toolName,input:t.input,agentSessionId:t.agentSessionId}},async submitDeferredAnswer(e,t,n,r,i){let a=await fetch(`/api/workspaces/${e}/deferred-tool-use/answer`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({answers:t,toolCallId:n,awaitingFreeForm:r,response:i})});if(!a.ok){let t=(await a.json().catch(()=>({}))).error??`HTTP ${a.status}`;if(/no deferred tool use pending|no agent running|no active engine process|no pending callback/i.test(t)){console.warn(`[workspace] submitDeferredAnswer: deferred callback expired — clearing zombie panel locally`),this.dequeuePending(e),this.fetchWorkspaces();return}throw Error(t)}this.dequeuePending(e),this.fetchWorkspaces()},async cancelDeferredAnswer(e,t,n){let r=await fetch(`/api/workspaces/${e}/deferred-tool-use/cancel`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({reason:t,toolCallId:n})});if(!r.ok){let t=(await r.json().catch(()=>({}))).error??`HTTP ${r.status}`;if(/no deferred tool use pending/i.test(t)){console.warn(`[workspace] cancelDeferredAnswer: backend has no pending — clearing zombie panel locally`),this.dequeuePending(e),this.fetchWorkspaces();return}throw Error(t)}this.dequeuePending(e),this.fetchWorkspaces()},async submitDeferredPermission(e,t,n,r,i=`once`){let a=await fetch(`/api/workspaces/${e}/deferred-permission/decision`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({toolCallId:t,decision:n,reason:r,scope:i})});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(e.error??`HTTP ${a.status}`)}this.dequeuePending(e),this.fetchWorkspaces()},updateAgentTodos(e,t){this.agentTodos[e]=t},agentTaskCreate(e,t,n){let r=this.agentTodos[e]?[...this.agentTodos[e]]:[];r.some(e=>e.id===t)||(r.push({id:t,content:n.subject||n.description||``,status:`pending`,activeForm:n.activeForm}),this.agentTodos[e]=r)},agentTaskSetNumber(e,t,n){let r=this.agentTodos[e];r&&(this.agentTodos[e]=r.map(e=>e.id===t?{...e,taskNumber:n}:e))},agentTaskUpdate(e,t,n){let r=this.agentTodos[e];if(r){if(n.status===`deleted`){this.agentTodos[e]=r.filter(e=>e.taskNumber!==t);return}this.agentTodos[e]=r.map(e=>e.taskNumber===t?{...e,status:n.status?Ua(n.status):e.status,content:n.content??e.content,activeForm:n.activeForm??e.activeForm}:e)}},finalizeRunningSubagents(e){let t=this.subagents[e];if(!t)return;let n=new Date().toISOString();for(let e of Object.keys(t)){let r=t[e];r.status===`running`&&(t[e]={...r,status:`done`,updatedAt:n})}},upsertSubagent(e,t){this.subagents[e]||(this.subagents[e]={});let n=this.subagents[e][t.toolUseId],r=new Date().toISOString(),i=n?.status===`done`?`done`:t.status??n?.status??`running`;this.subagents[e][t.toolUseId]={toolUseId:t.toolUseId,description:t.description??n?.description??``,taskType:t.taskType??n?.taskType,status:i,lastToolName:t.lastToolName??n?.lastToolName,lastDescription:t.lastDescription??n?.lastDescription,totalTokens:t.totalTokens??n?.totalTokens,toolUses:t.toolUses??n?.toolUses,durationMs:t.durationMs??n?.durationMs,startedAt:n?.startedAt??r,updatedAt:r}},async markRead(e){try{let t=await fetch(`/api/workspaces/${e}/mark-read`,{method:`POST`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=this.workspaces.findIndex(t=>t.id===e);n>=0&&(this.workspaces[n]={...this.workspaces[n],hasUnread:!1})}catch(e){console.error(`[workspace store] markRead failed:`,e)}},async purgeWorktree(e){try{let t=await fetch(`/api/workspaces/${e}/purge-worktree`,{method:`POST`}),n=await t.json();if(!t.ok)return{ok:!1,error:n.error??`HTTP ${t.status}`};let r=n.workspace;return r&&(this.updateWorkspaceFromEvent(e,{archivedAt:r.archivedAt,worktreePurgedAt:r.worktreePurgedAt,worktreePurgeRestoreData:r.worktreePurgeRestoreData}),r.archivedAt&&this.archivedLoaded&&(this.archivedWorkspaces.some(t=>t.id===e)||this.archivedWorkspaces.unshift(r),this.workspaces=this.workspaces.filter(t=>t.id!==e),this.selectedWorkspaceId===e&&(this.selectedWorkspaceId=null,this.tasks=[]))),{ok:!0,warnings:n.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}},async dismissPrAttention(e,t){let n=this.prSnapshots[e];if(n)try{let r=await fetch(`/api/workspaces/${e}/dismiss-pr-attention`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:t,prUpdatedAt:n.updatedAt})});if(!r.ok)throw Error(`HTTP ${r.status}`);let i=t===`changes-requested`?{prChangesDismissedAt:n.updatedAt}:{prCiFailureDismissedAt:n.updatedAt};this.updateWorkspaceFromEvent(e,i)}catch(e){console.error(`[workspace store] dismissPrAttention failed:`,e)}},async restorePrAttention(e,t){try{let n=await fetch(`/api/workspaces/${e}/restore-pr-attention`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:t})});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=t===`changes-requested`?{prChangesDismissedAt:null}:{prCiFailureDismissedAt:null};this.updateWorkspaceFromEvent(e,r)}catch(e){console.error(`[workspace store] restorePrAttention failed:`,e)}},queuedMessageKey(e,t){return`${e}:${t}`},getQueuedMessage(e,t){return t?this.queuedMessages[this.queuedMessageKey(e,t)]:void 0},queueMessage(e,t,n){this.queuedMessages[this.queuedMessageKey(e,n)]={content:t,sessionId:n}},cancelQueuedMessage(e,t){t&&delete this.queuedMessages[this.queuedMessageKey(e,t)]},flushQueuedMessage(e,t){let n=this.getQueuedMessage(e,t);n&&(this.cancelQueuedMessage(e,t),go().sendChatMessage(e,n.content,t))},setActiveAgentSession(e,t){this.activeAgentSessionIds[e]=t,delete this.settledAgentSessionIds[e]},markAgentTurnSettled(e,t){this.activeAgentSessionIds[e]===t&&(this.settledAgentSessionIds[e]=t)},isAgentTurnSettled(e){let t=this.activeAgentSessionIds[e];return t!==void 0&&this.settledAgentSessionIds[e]===t},clearActiveAgentSession(e,t){this.activeAgentSessionIds[e]===t&&(delete this.activeAgentSessionIds[e],delete this.settledAgentSessionIds[e])},clearActiveAgentSessionOwner(e){delete this.activeAgentSessionIds[e],delete this.settledAgentSessionIds[e]},updateWorkspaceFromEvent(e,t){Ya.set(e,(Ya.get(e)??0)+1);let n=this.workspaces.findIndex(t=>t.id===e);if(n>=0&&(this.workspaces[n]={...this.workspaces[n],...t}),t.status!==void 0){if(e in this.agentLivenessLoaded){let t={...this.agentLivenessLoaded};delete t[e],this.agentLivenessLoaded=t}e===this.selectedWorkspaceId&&this.fetchWorkspaceDetails(e)}if(t.status&&[`completed`,`idle`,`error`,`quota`].includes(t.status)){let t=this.activityFeeds[e];if(t)for(let e of t)e.meta?.pending&&(e.meta.pending=!1);let n=this.subagents[e];if(n)for(let[e,t]of Object.entries(n))t.status===`running`&&(n[e]={...t,status:`done`})}}}}),Z=Si.global.t,no={"pr:ci-failed":{soundKey:`audioPrCiFailedSound`,enabledKey:`audioPrCiFailedEnabled`,volumeKey:`audioPrCiFailedVolume`},"pr:ci-recovered":{soundKey:`audioPrCiRecoveredSound`,enabledKey:`audioPrCiRecoveredEnabled`,volumeKey:`audioPrCiRecoveredVolume`},"pr:changes-requested":{soundKey:`audioPrChangesRequestedSound`,enabledKey:`audioPrChangesRequestedEnabled`,volumeKey:`audioPrChangesRequestedVolume`},"pr:approved":{soundKey:`audioPrApprovedSound`,enabledKey:`audioPrApprovedEnabled`,volumeKey:`audioPrApprovedVolume`},"pr:merge-conflict":{soundKey:`audioPrMergeConflictSound`,enabledKey:`audioPrMergeConflictEnabled`,volumeKey:`audioPrMergeConflictVolume`},"pr:ready-to-merge":{soundKey:`audioPrReadyToMergeSound`,enabledKey:`audioPrReadyToMergeEnabled`,volumeKey:`audioPrReadyToMergeVolume`},"pr:merged":{soundKey:`audioPrMergedSound`,enabledKey:`audioPrMergedEnabled`,volumeKey:`audioPrMergedVolume`}};function ro(e,t,n){let r=ma().global,i=no[n];Aa(e,void 0,t,Yi(r[i.soundKey]),Number(r[i.volumeKey]),!!r[i.enabledKey])}function io(e,t){let n=[];return t&&n.push({label:Z(`pr.openPr`),color:`white`,noDismiss:!0,handler:()=>window.open(t,`_blank`)}),n.push({label:Z(`pr.openWorkspace`),color:`white`,noDismiss:!0,handler:()=>{window.location.hash=`#/workspace/${e}`}}),n.push({label:Z(`pr.dismiss`),color:`white`}),n}var ao=null,oo=null,so=0,co=!1,lo=!1,uo=!1;function fo(e){uo=e}function po(e,t,n){if(t.kind!==`session:started`)return;let r=X();if(n){r.setActiveAgentSession(e,n);let t=r.peekPending(e);t&&t.agentSessionId===n&&r.dequeuePending(e)}let i=r.workspaces.find(t=>t.id===e);i&&(i.status===`completed`||i.status===`idle`||i.status===`error`||i.status===`quota`)&&r.updateWorkspaceFromEvent(e,{status:`executing`}),!uo&&n&&r.selectedWorkspaceId===e&&r.selectedSessionId!==n&&r.fetchSessions(e,n).catch(e=>{console.error(`[websocket] fetchSessions on session:started failed:`,e)})}function mo(e,t){let n=X();if(t.kind===`tool:call`&&t.name===`TodoWrite`){let r=t.input?.todos;return Array.isArray(r)&&n.updateAgentTodos(e,r.map(e=>({content:typeof e.content==`string`?e.content:``,status:typeof e.status==`string`?e.status:`pending`,activeForm:typeof e.activeForm==`string`?e.activeForm:void 0}))),!0}if(t.kind===`tool:call`&&t.name===`TaskCreate`){let r=t.input??{};return n.agentTaskCreate(e,t.toolCallId,{subject:typeof r.subject==`string`?r.subject:void 0,description:typeof r.description==`string`?r.description:void 0,activeForm:typeof r.activeForm==`string`?r.activeForm:void 0}),!0}if(t.kind===`tool:result`&&typeof t.output==`string`){let r=t.output.match(/^Task #(\d+) created successfully/);if(r)return n.agentTaskSetNumber(e,t.toolCallId,Number(r[1])),!0}if(t.kind===`tool:call`&&t.name===`TaskUpdate`){let r=t.input??{},i=r.task_id??r.taskId??r.id,a=typeof i==`number`?i:typeof i==`string`?Number(i):NaN;return Number.isFinite(a)&&n.agentTaskUpdate(e,a,{status:typeof r.status==`string`?r.status:void 0,content:typeof r.subject==`string`?r.subject:void 0,activeForm:typeof r.activeForm==`string`?r.activeForm:void 0}),!0}return!1}function ho(e,t,n,r,i){let a=Pi();if(t.kind===`session:compacting`){a.setCompacting(e,t.active);return}a.append(e,t,n,r,i),(t.kind===`session:compacted`||t.kind===`message:text`||t.kind===`tool:call`)&&a.setCompacting(e,!1),po(e,t,i??void 0);let o=X();if(t.kind===`session:user-input-requested`){if(t.requestKind===`question`?o.enqueuePending(e,{kind:`question`,agentSessionId:i??null,toolCallId:t.toolCallId,toolName:t.toolName,input:t.payload}):o.enqueuePending(e,{kind:`permission`,agentSessionId:i??null,toolCallId:t.toolCallId,toolName:t.toolName,toolInput:t.payload}),o.updateWorkspaceFromEvent(e,{status:`awaiting-user`}),!uo){let n=o.workspaces.find(t=>t.id===e)?.name??``,r=t.requestKind===`question`?Z(`notification.agentQuestion`,{name:n}):Z(`notification.agentPermissionRequest`,{name:n}),i=ma().global;Aa(r,void 0,e,t.requestKind===`question`?i.audioQuestionSound:void 0,t.requestKind===`question`?i.audioQuestionVolume:void 0,i.audioQuestionNotifications)}return}if(t.kind===`subagent:progress`){o.upsertSubagent(e,{toolUseId:t.toolCallId,status:t.status,description:t.description,taskType:t.taskType,lastToolName:t.lastToolName,totalTokens:t.totalTokens,toolUses:t.toolUses,durationMs:t.durationMs});return}if(!mo(e,t)){if(t.kind===`tool:call`&&t.name===`Bash`){let n=t.input,r=`${n?.command??``} ${n?.description??``}`;/\bgit\b|commit|push|pull|merge|rebase|checkout|branch/i.test(r)&&o.triggerGitRefresh(),/\bgit\s+branch\s+-m\b/i.test(r)&&setTimeout(()=>{o.resyncWorkspaceBranch(e).catch(e=>{console.error(`[websocket] Branch resync failed:`,e)})},2500),/\bgh\s+pr\s+create\b/i.test(r)&&setTimeout(()=>o.triggerGitRefresh(),3e3)}if(t.kind===`tool:call`&&t.name===`ExitPlanMode`&&o.workspaces.find(t=>t.id===e)?.agentPermissionMode===`plan`&&(o.updateWorkspaceFromEvent(e,{agentPermissionMode:`bypass`}),o.updateAgentPermissionMode(e,`bypass`).catch(e=>{console.error(`[websocket] failed to persist ExitPlanMode flip:`,e)})),t.kind!==`session:started`){if(t.kind===`turn:completed`){i&&o.markAgentTurnSettled(e,i);return}if(t.kind===`session:ended`){i&&o.clearPendingForSession(e,i);let n=o.activeAgentSessionIds[e];if(t.superseded===!0||typeof i==`string`&&i.length>0&&n!==void 0&&i!==n){o.cancelQueuedMessage(e,i),i&&o.clearActiveAgentSession(e,i);return}a.setCompacting(e,!1),i?o.clearActiveAgentSession(e,i):o.clearActiveAgentSessionOwner(e);let r=o.workspaces.find(t=>t.id===e)?.status===`quota`?`quota`:t.reason===`completed`?`completed`:t.reason===`error`?`error`:`idle`;o.updateWorkspaceFromEvent(e,{status:r}),i&&t.reason===`completed`&&o.flushQueuedMessage(e,i),o.finalizeRunningSubagents(e),o.fetchWorkspaces(),!uo&&t.reason!==`killed`&&t.reason!==`error`&&o.autoLoopStates[e]?.auto_loop!==!0&&Aa(Z(`notification.agentFinished`,{name:o.workspaces.find(t=>t.id===e)?.name??``}),void 0,e);return}if(t.kind===`error`&&(t.category===`quota`&&(o.updateWorkspaceFromEvent(e,{status:`quota`}),o.fetchWorkspaces()),!uo)){let t=ma().global;Aa(Z(`notification.agentError`,{name:o.workspaces.find(t=>t.id===e)?.name??``}),void 0,e,t.audioAgentErrorSound,t.audioAgentErrorVolume,t.audioAgentErrorNotifications)}}}}var go=Fe(`websocket`,{state:()=>({connected:!1,reconnecting:!1,reconnectAttempt:0,lastEventId:null,_replaying:!1,_drainInProgress:!1,_workspacesToRefreshAfterDrain:new Set}),actions:{connect(){if(ao)return;if(co=!0,lo||(lo=!0,window.addEventListener(`online`,()=>{co&&this.connect()}),window.addEventListener(`offline`,()=>{this.connected=!1,this.reconnecting=co,oo&&=(clearTimeout(oo),null)})),!navigator.onLine){this.connected=!1,this.reconnecting=!0;return}let e=Ur(`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}/ws`,Br()),t=new WebSocket(e);ao=t,t.addEventListener(`open`,()=>{this.connected=!0,this.reconnecting=!1,so=0,this.reconnectAttempt=0;let e=X().workspaces.map(e=>e.id);for(let t of e)this._send({type:`subscribe`,payload:{workspaceId:t}});this.lastEventId&&this._send({type:`sync:request`,payload:{lastEventId:this.lastEventId,workspaceIds:e}})}),t.addEventListener(`message`,e=>{try{let t=JSON.parse(e.data);this._routeMessage(t)}catch{}}),t.addEventListener(`close`,()=>{this.connected=!1,ao=null,co&&this._scheduleReconnect()}),t.addEventListener(`error`,()=>{})},disconnect(){co=!1,oo&&=(clearTimeout(oo),null),ao&&=(ao.close(),null),this.connected=!1,this.reconnecting=!1,this.reconnectAttempt=0},subscribe(e){this._drainInProgress&&this._workspacesToRefreshAfterDrain.add(e),this._send({type:`subscribe`,payload:{workspaceId:e}}),this._send({type:`sync:request`,payload:{workspaceIds:[e]}})},unsubscribe(e){this._send({type:`unsubscribe`,payload:{workspaceId:e}})},subscribeChannel(e){this._send({type:`subscribe`,payload:{workspaceId:e}})},sendChatMessage(e,t,n,r,i=!1){let a=this._send({type:`chat:message`,payload:{workspaceId:e,content:t,sessionId:n,agentPermissionModeOverride:r,force:i}});if(/^\/compact(\s|$)/.test(t.trim())&&Pi().setCompacting(e,!0),!a)return!1;let o=X(),s=o.workspaces.find(t=>t.id===e);return s&&(s.status===`completed`||s.status===`idle`||s.status===`error`||s.status===`quota`)&&o.updateWorkspaceFromEvent(e,{status:`executing`}),!0},_send(e){return ao&&ao.readyState===WebSocket.OPEN?(ao.send(JSON.stringify(e)),!0):!1},isConnected(){return ao!==null&&ao.readyState===WebSocket.OPEN},_scheduleReconnect(){if(oo)return;if(!co||!navigator.onLine){this.reconnecting=co;return}let e=Math.min(1e3*2**so,3e4),t=Math.round(e*(.8+Math.random()*.4));so++,this.reconnecting=!0,this.reconnectAttempt=so,so===4&&Br()&&Gr(),oo=setTimeout(()=>{oo=null,this.connect()},t)},_routeMessage(e){let t=X();e.replayable!==!1&&e.id?this.lastEventId=e.id:e.replayable!==!1&&e.eventId&&(this.lastEventId=e.eventId);let n=e.payload??{},r=e.workspaceId??n.workspaceId??``,i=ga(e.type);if(i){let n=_a(i.event),a=e.createdAt??new Date().toISOString(),o=Z(`chat.hookScript`,{event:i.event}),s=i.kind===`output`?e.payload?.text??``:i.kind===`complete`?e.payload?.hadOutput===!1?Z(`chat.scriptDone`):Z(`chat.scriptComplete`,{phase:o}):Z(`chat.scriptError`,{phase:o,message:e.payload?.message??Z(`chat.unknownError`)});t.addActivityItem(r,{id:e.id??`${n}-${i.kind}-${Date.now()}`,type:`text`,content:s,timestamp:a,meta:{sender:n}});return}switch(e.type){case`chat:accepted`:{let e=typeof n.sessionId==`string`?n.sessionId:void 0;r&&e&&t.cancelQueuedMessage(r,e);break}case`chat:rejected`:{let e=typeof n.sessionId==`string`?n.sessionId:void 0,i=typeof n.content==`string`?n.content:void 0,a=typeof n.message==`string`?n.message:Z(`network.login.unreachable`);if(r&&i){let n=(t.activityFeeds[r]??[]).find(e=>e.meta?.sender===`user`&&e.meta?.pending&&e.content===i);n&&t.removeActivityItem(r,n.id),e&&t.queueMessage(r,i,e)}q.create({type:`negative`,message:a,position:`top`,timeout:6e3});break}case`agent:event`:{if(!r)break;let t=e.createdAt;ho(r,n,t,e.id??e.eventId,e.sessionId??null);break}case`agent:progress`:n.tasks&&Array.isArray(n.tasks)&&(t.tasks=n.tasks);break;case`user:message`:if(r&&n.content){let i=n.content,a=n.sender??`user`,o=e.sessionId,s=e.id??e.eventId??`user-${Date.now()}`,c=typeof e.createdAt==`string`?e.createdAt:void 0,l=c??new Date().toISOString(),u=t.activityFeeds[r]??[];if(a===`user`&&u.some(e=>e.meta?.sender===`user`&&e.content===i&&e.meta?.pending)){let e=u.findIndex(e=>e.meta?.sender===`user`&&e.content===i&&e.meta?.pending);e>=0&&(u[e]={...u[e],id:s,sessionId:o,...c?{timestamp:c}:{}})}else t.addActivityItem(r,{id:s,type:`text`,content:i,timestamp:l,sessionId:o,meta:{sender:a}})}break;case`sync:response`:this._replaying=!0,fo(!0);try{let e=n.events??[],r=n.mode===`delta`?`delta`:`snapshot`,i=new Map;for(let t of e)if(t.type!==`sync:response`){if(t.type===`agent:event`&&t.workspaceId){let e=i.get(t.workspaceId)??{events:[],timestamps:[],sessionIds:[],eventIds:[],oldestId:void 0};e.events.push(t.payload),e.timestamps.push(t.createdAt),e.sessionIds.push(t.sessionId??null),e.eventIds.push(t.id??null),e.oldestId||=t.id,i.set(t.workspaceId,e);continue}this._routeMessage(t)}if(i.size>0){let e=Pi();for(let[t,{events:n,timestamps:a,sessionIds:o,eventIds:s,oldestId:c}]of i){let i=r===`delta`?e.merge(t,n,a,{sessionIds:o,eventIds:s}):n.map((e,t)=>t);r===`snapshot`&&e.reset(t,n,a,{oldestId:c,hasMoreOlder:!0,sessionIds:o,eventIds:s}),r===`snapshot`&&X().updateAgentTodos(t,[]);for(let e of i){let r=n[e];if(!r)continue;let i=o[e]??null;if(r.kind===`session:user-input-requested`){r.requestKind===`question`?X().enqueuePending(t,{kind:`question`,agentSessionId:i,toolCallId:r.toolCallId,toolName:r.toolName,input:r.payload}):X().enqueuePending(t,{kind:`permission`,agentSessionId:i,toolCallId:r.toolCallId,toolName:r.toolName,toolInput:r.payload});continue}if(r.kind===`session:started`){if(i){let e=X();e.setActiveAgentSession(t,i);let n=e.peekPending(t);n&&n.agentSessionId===i&&e.dequeuePending(t)}continue}if(r.kind===`session:ended`){let e=X();i?(e.clearPendingForSession(t,i),e.cancelQueuedMessage(t,i),e.clearActiveAgentSession(t,i)):r.superseded!==!0&&e.clearActiveAgentSessionOwner(t);continue}if(r.kind===`subagent:progress`){X().upsertSubagent(t,{toolUseId:r.toolCallId,status:r.status,description:r.description,taskType:r.taskType,lastToolName:r.lastToolName,totalTokens:r.totalTokens,toolUses:r.toolUses,durationMs:r.durationMs});continue}mo(t,r)}}}let a=this.lastEventId,o=e.findLast(e=>e.replayable!==!1&&typeof e.id==`string`);if(o&&(this.lastEventId=o.id),n.truncated===!0&&o&&this.lastEventId!==a)this._drainInProgress=!0,this._send({type:`sync:request`,payload:{lastEventId:this.lastEventId,workspaceIds:t.workspaces.map(e=>e.id)}});else if(this._drainInProgress&&(this._drainInProgress=!1,this._workspacesToRefreshAfterDrain.size>0)){let e=[...this._workspacesToRefreshAfterDrain];this._workspacesToRefreshAfterDrain.clear(),this._send({type:`sync:request`,payload:{lastEventId:this.lastEventId,workspaceIds:e}})}}finally{this._replaying=!1,fo(!1)}break;case`usage:snapshot`:{let e=n;e.providerId&&e.snapshot&&t.applyUsageSnapshot({providerId:e.providerId,snapshot:e.snapshot});break}case`devserver:status`:{let e=Ma();r&&e.updateFromWsEvent(r,n);break}case`task:updated`:r&&t.fetchWorkspaceDetails(r);break;case`setup:output`:t.addActivityItem(r,{id:e.id??`setup-${Date.now()}`,type:`text`,content:e.payload?.text??``,timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`setup`}});break;case`setup:complete`:t.addActivityItem(r,{id:e.id??`setup-complete-${Date.now()}`,type:`text`,content:e.payload?.hadOutput===!1?Z(`chat.scriptDone`):Z(`chat.scriptComplete`,{phase:`setup`}),timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`setup`}});break;case`setup:error`:t.addActivityItem(r,{id:e.id??`setup-error-${Date.now()}`,type:`text`,content:Z(`chat.scriptError`,{phase:`setup`,message:e.payload?.message??Z(`chat.unknownError`)}),timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`setup`}});break;case`cleanup:output`:t.addActivityItem(r,{id:e.id??`cleanup-${Date.now()}`,type:`text`,content:e.payload?.text??``,timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`cleanup`}});break;case`cleanup:complete`:t.addActivityItem(r,{id:e.id??`cleanup-complete-${Date.now()}`,type:`text`,content:e.payload?.hadOutput===!1?Z(`chat.scriptDone`):Z(`chat.scriptComplete`,{phase:`cleanup`}),timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`cleanup`}});break;case`cleanup:error`:t.addActivityItem(r,{id:e.id??`cleanup-error-${Date.now()}`,type:`text`,content:Z(`chat.scriptError`,{phase:`cleanup`,message:e.payload?.message??Z(`chat.unknownError`)}),timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`cleanup`}});break;case`archive:output`:t.addActivityItem(r,{id:e.id??`archive-${Date.now()}`,type:`text`,content:e.payload?.text??``,timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`archive`}});break;case`archive:complete`:t.addActivityItem(r,{id:e.id??`archive-complete-${Date.now()}`,type:`text`,content:e.payload?.hadOutput===!1?Z(`chat.scriptDone`):Z(`chat.scriptComplete`,{phase:`archive`}),timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`archive`}});break;case`archive:error`:t.addActivityItem(r,{id:e.id??`archive-error-${Date.now()}`,type:`text`,content:Z(`chat.scriptError`,{phase:`archive`,message:e.payload?.message??Z(`chat.unknownError`)}),timestamp:e.createdAt??new Date().toISOString(),meta:{sender:`archive`}});break;case`workspace:unread`:if(r){let e=n.hasUnread??!1;t.updateWorkspaceFromEvent(r,{hasUnread:e})}break;case`workspace:awaiting-reminder`:{let e=n;if(!e.workspaceId)break;let t=ma().global,r=Z(`notification.awaitingReminder`,{name:e.workspaceName??``,minutes:e.waitingMinutes??0});if(Aa(r,void 0,e.workspaceId,t.audioQuestionSound,t.audioQuestionVolume,t.audioQuestionNotifications),document.hasFocus()){let t=e.workspaceId;q.create({type:`info`,position:`top`,timeout:1e4,message:r,actions:[{label:Z(`common.open`),color:`white`,handler:()=>{window.location.hash=`#/workspace/${t}`}}]})}break}case`workspace:pr-attention-dismissed`:if(r){let e=n.kind,i=n.prUpdatedAt;e&&i&&t.updateWorkspaceFromEvent(r,e===`changes-requested`?{prChangesDismissedAt:i}:{prCiFailureDismissedAt:i})}break;case`workspace:description-updated`:{if(!r)break;let e=n.description??null;t.updateWorkspaceFromEvent(r,{description:e});break}case`workspace:agent-description-updated`:{if(!r)break;let e=n.agentDescription??null;t.updateWorkspaceFromEvent(r,{agentDescription:e});break}case`cron:created`:{if(!r)break;let e=n.cron;if(!e)break;let i=t.crons[r]??[];i.some(t=>t.id===e.id)||(t.crons[r]=[...i,e]);let a=t.autoLoopStates[r];a&&(a.crons_count=t.crons[r].length);break}case`cron:fired`:{if(!r)break;let e=n,i=t.crons[r]??[];t.crons[r]=i.map(t=>t.id===e.id?{...t,nextFireAt:e.nextFireAt??t.nextFireAt,lastFiredAt:e.lastFiredAt??new Date().toISOString()}:t);break}case`cron:cancelled`:{if(!r)break;let e=n.id;if(!e)break;t.crons[r]=(t.crons[r]??[]).filter(t=>t.id!==e);let i=t.autoLoopStates[r];i&&(i.crons_count=t.crons[r].length);break}case`cron:updated`:{if(!r)break;let e=n.crons;if(Array.isArray(e)){t.crons[r]=e;let n=t.autoLoopStates[r];n&&(n.crons_count=e.length)}break}case`workspace:archived`:case`workspace:unarchived`:case`workspace:worktree-restored`:case`workspace:worktree-purged`:(e.type===`workspace:archived`||e.type===`workspace:worktree-purged`)&&r&&Mi(r),e.type===`workspace:archived`&&r&&t.selectedWorkspaceId===r&&(t.selectedWorkspaceId=null),t.fetchWorkspaces(),t.archivedLoaded&&t.fetchArchivedWorkspaces();break;case`workspace:deleted`:r&&Mi(r),r&&t.selectedWorkspaceId===r&&(t.selectedWorkspaceId=null),t.fetchWorkspaces(),t.archivedLoaded&&t.fetchArchivedWorkspaces();break;case`pr:base-changed`:{if(!r)break;let e=n,i=e.oldBase??``,a=e.newBase??``;t.updateWorkspaceFromEvent(r,{sourceBranch:a}),q.create({type:`info`,position:`top`,timeout:ya,message:Z(`pr.baseChanged`,{oldBase:i,newBase:a}),actions:io(r,e.prUrl)}),Aa(Z(`pr.baseChanged`,{oldBase:i,newBase:a}),void 0,r);break}case`pr:ci-failed`:case`pr:ci-recovered`:case`pr:merge-conflict`:case`pr:merged`:{if(!r)break;let i=e.type,a=n,o=a.prNumber??0,s={"pr:ci-failed":{key:`toast.prCiFailed`,type:`negative`,timeout:4e3},"pr:ci-recovered":{key:`toast.prCiRecovered`,type:`positive`,timeout:5e3},"pr:merge-conflict":{key:`toast.prMergeConflict`,type:`warning`,timeout:ya},"pr:merged":{key:`toast.prMerged`,type:`positive`,timeout:5e3}}[i],c=Z(s.key,{n:o});q.create({type:s.type,position:`top`,timeout:s.timeout,message:c,actions:io(r,a.prUrl)}),ro(c,r,i),i!==`pr:merged`&&t.refreshPrSnapshot(r);break}case`pr:changes-requested`:{if(!r)break;let e=n,i=Z(`toast.prChangesRequested`,{n:e.prNumber??0});q.create({type:`warning`,position:`top`,timeout:ya,message:i,actions:io(r,e.prUrl)}),ro(i,r,`pr:changes-requested`),t.refreshPrSnapshot(r);break}case`pr:approved`:{if(!r)break;let e=n,i=Z(`toast.prApproved`,{n:e.prNumber??0});q.create({type:`positive`,position:`top`,timeout:5e3,message:i,actions:io(r,e.prUrl)}),ro(i,r,`pr:approved`),t.refreshPrSnapshot(r);break}case`pr:ready-to-merge`:{if(!r)break;let e=n,i=Z(`toast.prReadyToMerge`,{n:e.prNumber??0});q.create({type:`positive`,position:`top`,timeout:5e3,message:i,actions:io(r,e.prUrl)}),ro(i,r,`pr:ready-to-merge`),t.refreshPrSnapshot(r);break}case`wakeup:scheduled`:if(r){let e=n;typeof e.targetAt==`string`&&t.setPendingWakeup(r,{targetAt:e.targetAt,reason:e.reason})}break;case`wakeup:cancelled`:case`wakeup:fired`:case`wakeup:skipped`:r&&t.clearPendingWakeup(r);break;case`agent:quota-backoff`:{if(!r)break;let e=n;typeof e.targetAt==`string`&&typeof e.source==`string`&&t.setPendingQuotaBackoff(r,{targetAt:e.targetAt,resetsAt:e.resetsAt??null,source:e.source,reason:e.reason===`transient`?`transient`:`quota`});break}case`agent:quota-backoff-cancelled`:r&&t.clearPendingQuotaBackoff(r);break;case`autoloop:enabled`:case`autoloop:iteration-started`:case`autoloop:ready-flipped`:t.fetchAutoLoopStates();break;case`autoloop:permission-overridden`:r&&Aa(Z(`notification.autoLoopPermissionOverridden`,{name:t.workspaces.find(e=>e.id===r)?.name??``}),void 0,r);break;case`autoloop:waiting-for-slot`:{if(!r)break;let e=n,i=t.workspaces.find(e=>e.id===r)?.name??``;q.create({type:`info`,position:`top`,timeout:6e3,message:Z(`notification.autoLoopWaitingForSlot`,{name:i,running:e.running??0,limit:e.limit??0})});break}case`autoloop:disabled`:if(t.fetchAutoLoopStates(),r){let e=n?.reason,i=t.workspaces.find(e=>e.id===r)?.name??``,a=e===`error`?`notification.autoLoopError`:e===`stall`?`notification.autoLoopStalled`:e===`completed`?`notification.autoLoopCompleted`:e===`awaiting-clarification`?`notification.autoLoopAwaitingClarification`:null;a&&Aa(Z(a,{name:i}),void 0,r)}break;case`workspace:create-progress`:{let e=typeof n.step==`string`?n.step:``,r=typeof n.creationId==`string`?n.creationId:``;r&&e&&t.setCreationProgress({creationId:r,step:e,index:typeof n.index==`number`?n.index:0,total:typeof n.total==`number`?n.total:0});break}case`workspace:create-failed`:{let e=typeof n.creationId==`string`?n.creationId:``,r=typeof n.step==`string`?n.step:``;e&&r&&t.setCreationProgress({creationId:e,step:r,index:-1,total:0});break}case`migration:progress`:case`migration:error`:Bn().update(n)}}}}),_o=c({__name:`App`,setup(e){let t=go(),n=Xr();return v(()=>{t.connect(),n.fetchTemplates(),Ta()}),g(()=>{t.disconnect()}),(e,t)=>{let n=_(`router-view`);return x(),T(l,null,[E(n),E(qn),E(Yr)],64)}}}),vo=e=>e,yo=vo,bo=vo,xo=vo(()=>Ie()),So={true:`inset`,item:`item-inset`,"item-thumbnail":`item-thumbnail-inset`},Co={xs:2,sm:4,md:8,lg:16,xl:24},wo=B({name:`QSeparator`,props:{...Ne,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){let t=j(),n=Pe(e,t.proxy.$q),r=d(()=>e.vertical?`vertical`:`horizontal`),i=d(()=>` q-separator--${r.value}`),a=d(()=>e.inset?`${i.value}-${So[e.inset]}`:``),o=d(()=>`q-separator${i.value}${a.value}`+(e.color===void 0?``:` bg-${e.color}`)+(n.value?` q-separator--dark`:``)),s=d(()=>{let t={};if(e.size!==void 0&&(t[e.vertical?`width`:`height`]=e.size),e.spaced){let n=e.spaced===!0?`${Co.md}px`:e.spaced in Co?`${Co[e.spaced]}px`:e.spaced,r=e.vertical?[`Left`,`Right`]:[`Top`,`Bottom`];t[`margin${r[0]}`]=t[`margin${r[1]}`]=n}return t});return()=>M(`hr`,{class:o.value,style:s.value,"aria-orientation":r.value})}}),To=()=>M(`svg`,{key:`svg`,class:`q-radio__bg absolute non-selectable`,viewBox:`0 0 24 24`},[M(`path`,{d:`M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12`}),M(`path`,{class:`q-radio__check`,d:`M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6`})]);function Eo(e){(e.keyCode===13||e.keyCode===32)&&ce(e)}var Do=B({name:`QRadio`,props:{...Ne,...L,...Le,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:[`update:modelValue`],setup(t,{slots:r,emit:i}){let{proxy:a}=j(),o=Pe(t,a.$q),s=P(t,Ve),c=n(null),{refocusTargetEl:l,refocusTarget:u}=Be(t,c),f=d(()=>e(t.modelValue)===e(t.val)),p=d(()=>`q-radio cursor-pointer no-outline row inline no-wrap items-center`+(t.disable?` disabled`:``)+(o.value?` q-radio--dark`:``)+(t.dense?` q-radio--dense`:``)+(t.leftLabel?` reverse`:``)),m=d(()=>{let e=t.color!==void 0&&(t.keepColor||f.value)?` text-${t.color}`:``;return`q-radio__inner relative-position q-radio__inner--${f.value?`truthy`:`falsy`}${e}`}),h=d(()=>(f.value?t.checkedIcon:t.uncheckedIcon)||null),g=d(()=>t.disable?-1:t.tabindex||0),_=d(()=>{let e={type:`radio`};return t.name!==void 0&&Object.assign(e,{".checked":f.value,"^checked":f.value?`checked`:void 0,name:t.name,value:t.val}),e}),v=Re(_);function y(e){e!==void 0&&(ce(e),u(e)),!t.disable&&!f.value&&i(`update:modelValue`,t.val,e)}function b(e){(e.keyCode===13||e.keyCode===32)&&y(e)}Object.assign(a,{set:y});let x=To();return()=>{let e=h.value===null?[x]:[M(`div`,{key:`icon`,class:`q-radio__icon-container absolute-full flex flex-center no-wrap`},[M(ve,{class:`q-radio__icon`,name:h.value})])];t.disable||v(e,`unshift`,` q-radio__native q-ma-none q-pa-none`);let n=[M(`div`,{class:m.value,style:s.value,"aria-hidden":`true`},e)];l.value!==null&&n.push(l.value);let i=t.label===void 0?z(r.default):de(r.default,[t.label]);return i!==void 0&&n.push(M(`div`,{class:`q-radio__label q-anchor--skip`},i)),M(`div`,{ref:c,class:p.value,tabindex:g.value,role:`radio`,"aria-label":t.label,"aria-checked":f.value?`true`:`false`,"aria-disabled":t.disable?`true`:void 0,onClick:y,onKeydown:Eo,onKeyup:b},n)}}}),Oo=()=>M(`div`,{key:`svg`,class:`q-checkbox__bg absolute`},[M(`svg`,{class:`q-checkbox__svg fit absolute-full`,viewBox:`0 0 24 24`},[M(`path`,{class:`q-checkbox__truthy`,fill:`none`,d:`M1.73,12.91 8.1,19.28 22.79,4.59`}),M(`path`,{class:`q-checkbox__indet`,d:`M4,14H20V10H4`})])]),ko=B({name:`QCheckbox`,props:Ue,emits:He,setup(e){let t=Oo();function n(n,r){let i=d(()=>(n.value?e.checkedIcon:r.value?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value===null?[t]:[M(`div`,{key:`icon`,class:`q-checkbox__icon-container absolute-full flex flex-center no-wrap`},[M(ve,{class:`q-checkbox__icon`,name:i.value})])]}return We(`checkbox`,n)}}),Ao=B({name:`QToggle`,props:{...Ue,icon:String,iconColor:String},emits:He,setup(e){function t(t,n){let r=d(()=>(t.value?e.checkedIcon:n.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon),i=d(()=>t.value?e.iconColor:null);return()=>[M(`div`,{class:`q-toggle__track`}),M(`div`,{class:`q-toggle__thumb absolute flex flex-center no-wrap`},r.value===void 0?void 0:[M(ve,{name:r.value,color:i.value})])]}return We(`toggle`,t)}}),jo={radio:Do,checkbox:ko,toggle:Ao},Mo=Object.keys(jo);function No(e,t){if(typeof e==`function`)return e;let n=e===void 0?t:e;return e=>e[n]}var Po=B({name:`QOptionGroup`,props:{...Ne,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(U),default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],name:String,type:{type:String,default:`radio`,validator:e=>Mo.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:[`update:modelValue`],setup(e,{emit:t,slots:n}){let{proxy:{$q:r}}=j(),i=Array.isArray(e.modelValue);e.type===`radio`?i&&console.error(`q-option-group: model should not be array`):i||console.error(`q-option-group: model should be array in your case`);let a=Pe(e,r),o=d(()=>jo[e.type]),s=d(()=>No(e.optionValue,`value`)),c=d(()=>No(e.optionLabel,`label`)),l=d(()=>No(e.optionDisable,`disable`)),u=d(()=>e.options.map(t=>({val:s.value(t),name:t.name===void 0?e.name:t.name,disable:e.disable||l.value(t),leftLabel:t.leftLabel===void 0?e.leftLabel:t.leftLabel,color:t.color===void 0?e.color:t.color,checkedIcon:t.checkedIcon,uncheckedIcon:t.uncheckedIcon,dark:t.dark===void 0?a.value:t.dark,size:t.size===void 0?e.size:t.size,dense:e.dense,keepColor:t.keepColor===void 0?e.keepColor:t.keepColor}))),f=d(()=>`q-option-group q-gutter-x-sm`+(e.inline?` q-option-group--inline`:``)),p=d(()=>{let t={role:`group`};return e.type===`radio`&&(t.role=`radiogroup`,e.disable&&(t[`aria-disabled`]=`true`)),t});function m(e){t(`update:modelValue`,e)}return()=>M(`div`,{class:f.value,...p.value},e.options.map((t,r)=>{let i=n[`label-`+r]===void 0?n.label===void 0?void 0:()=>n.label(t):()=>n[`label-`+r](t);return M(`div`,[M(o.value,{label:i===void 0?c.value(t):null,modelValue:e.modelValue,"onUpdate:modelValue":m,...u.value[r]},i)])}))}}),Fo=B({name:`DialogPluginComponent`,props:{...Ne,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:`ok`,validator:e=>[`ok`,`cancel`,`none`].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:[`ok`,`hide`],setup(t,{emit:r}){let{proxy:i}=j(),{$q:a}=i,o=Pe(t,a),s=n(null),c=n(t.prompt===void 0?t.options===void 0?void 0:t.options.model:t.prompt.model),l=d(()=>`q-dialog-plugin`+(o.value?` q-dialog-plugin--dark q-dark`:``)+(t.progress===!1?``:` q-dialog-plugin--progress`)),u=d(()=>t.color||(o.value?`amber`:`primary`)),f=d(()=>t.progress===!1?null:U(t.progress)?{component:t.progress.spinner||ke,props:{color:t.progress.color||u.value}}:{component:ke,props:{color:u.value}}),p=d(()=>t.prompt!==void 0||t.options!==void 0),m=d(()=>{if(!p.value)return{};let{model:e,isValid:n,items:r,...i}=t.prompt===void 0?t.options:t.prompt;return i}),h=d(()=>U(t.ok)||t.ok===!0?a.lang.label.ok:t.ok),g=d(()=>U(t.cancel)||t.cancel===!0?a.lang.label.cancel:t.cancel),_=d(()=>t.prompt===void 0?t.options!==void 0&&t.options.isValid!==void 0&&!t.options.isValid(c.value):t.prompt.isValid!==void 0&&!t.prompt.isValid(c.value)),v=d(()=>({color:u.value,label:h.value,ripple:!1,disable:_.value,...U(t.ok)?t.ok:{flat:!0},"data-autofocus":t.focus===`ok`&&!p.value||void 0,onClick:S})),y=d(()=>({color:u.value,label:g.value,ripple:!1,...U(t.cancel)?t.cancel:{flat:!0},"data-autofocus":t.focus===`cancel`&&!p.value||void 0,onClick:C}));O(()=>t.prompt&&t.prompt.model,T),O(()=>t.options&&t.options.model,T);function b(){s.value.show()}function x(){s.value.hide()}function S(){r(`ok`,e(c.value)),x()}function C(){x()}function w(){r(`hide`)}function T(e){c.value=e}function E(e){!_.value&&t.prompt.type!==`textarea`&&R(e,13)&&S()}function D(e,n){return t.html?M(W,{class:e,innerHTML:n}):M(W,{class:e},()=>n)}function k(){return[M(Lr,{color:u.value,dense:!0,autofocus:!0,dark:o.value,...m.value,modelValue:c.value,"onUpdate:modelValue":T,onKeyup:E})]}function A(){return[M(Po,{color:u.value,options:t.options.items,dark:o.value,...m.value,modelValue:c.value,"onUpdate:modelValue":T})]}function ee(){let e=[];return t.cancel&&e.push(M(Ee,y.value)),t.ok&&e.push(M(Ee,v.value)),M(Rr,{class:t.stackButtons?`items-end`:``,vertical:t.stackButtons,align:`right`},()=>e)}function te(){let e=[];return t.title&&e.push(D(`q-dialog__title`,t.title)),t.progress!==!1&&e.push(M(W,{class:`q-dialog__progress`},()=>M(f.value.component,f.value.props))),t.message&&e.push(D(`q-dialog__message`,t.message)),t.prompt===void 0?t.options!==void 0&&e.push(M(wo,{dark:o.value}),M(W,{class:`scroll q-dialog-plugin__form`},A),M(wo,{dark:o.value})):e.push(M(W,{class:`scroll q-dialog-plugin__form`},k)),(t.ok||t.cancel)&&e.push(ee()),e}function N(){return[M(bt,{class:[l.value,t.cardClass],style:t.cardStyle,dark:o.value},te)]}return Object.assign(i,{show:b,hide:x}),()=>M(Fn,{ref:s,onHide:w},N)}});function Io(e,t){for(let n in t)n!==`spinner`&&Object(t[n])===t[n]&&!Array.isArray(t[n])?(e[n]=Object(e[n])===e[n]?{...e[n]}:{},Io(e[n],t[n])):e[n]=t[n]}function Lo(e,t,r){return i=>{let a,o,s=t&&i.component!==void 0;if(s){let{component:e,componentProps:t}=i;a=typeof e==`string`?r.component(e):e,o=t||{}}else{let{class:t,style:n,...r}=i;a=e,o=r,t!==void 0&&(r.cardClass=t),n!==void 0&&(r.cardStyle=n)}let c,l=!1,u=n(null),d=Se(!1,`dialog`),f=e=>{if(u.value?.[e]!==void 0){u.value[e]();return}let t=c.$.subTree;if(t?.component){if(t.component.proxy&&t.component.proxy[e]){t.component.proxy[e]();return}if(t.component.subTree&&t.component.subTree.component&&t.component.subTree.component.proxy&&t.component.subTree.component.proxy[e]){t.component.subTree.component.proxy[e]();return}}console.error(`[Quasar] Incorrectly defined Dialog component`)},p=[],m=[],h={onOk(e){return p.push(e),h},onCancel(e){return m.push(e),h},onDismiss(e){return p.push(e),m.push(e),h},hide(){return f(`hide`),h},update(e){if(c!==null){if(s)Object.assign(o,e);else{let{class:t,style:n,...r}=e;t!==void 0&&(r.cardClass=t),n!==void 0&&(r.cardStyle=n),Io(o,r)}c.$forceUpdate()}return h}},g=e=>{l=!0,p.forEach(t=>{t(e)})},_=()=>{v.unmount(d),ye(d),v=null,c=null,l||m.forEach(e=>{e()})},v=pt({name:`QGlobalDialog`,setup:()=>()=>M(a,{...o,ref:u,onOk:g,onHide:_,onVnodeMounted(...e){typeof o.onVnodeMounted==`function`&&o.onVnodeMounted(...e),S(()=>f(`show`))}})},r);return c=v.mount(d),h}}var Ro={install({$q:e,parentApp:t}){e.dialog=this.create=Lo(Fo,!0,t)}},zo=new Map;function Bo(e,t){zo.set(e,t)}function Vo(e){zo.delete(e)}function Ho(){let e=[];for(let[t,n]of zo)try{n()&&e.push(t)}catch{}return e}function Uo(){return Ho().length>0}function Wo(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Go(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Wo(e.default)}var Q=Object.assign;function Ko(e,t){let n={};for(let r in t){let i=t[r];n[r]=$(i)?i.map(e):e(i)}return n}var qo=()=>{},$=Array.isArray;function Jo(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Yo=Symbol(``);function Xo(e,t){return Q(Error(),{type:e,[Yo]:!0},t)}function Zo(e,t){return e instanceof Error&&Yo in e&&(t==null||!!(e.type&t))}var Qo=Symbol(``),$o=Symbol(``),es=Symbol(``),ts=Symbol(``),ns=Symbol(``);function rs(){return N(es)}function is(e){return N(ts)}var as=typeof document<`u`,os=/#/g,ss=/&/g,cs=/\//g,ls=/=/g,us=/\?/g,ds=/\+/g,fs=/%5B/g,ps=/%5D/g,ms=/%5E/g,hs=/%60/g,gs=/%7B/g,_s=/%7C/g,vs=/%7D/g,ys=/%20/g;function bs(e){return e==null?``:encodeURI(``+e).replace(_s,`|`).replace(fs,`[`).replace(ps,`]`)}function xs(e){return bs(e).replace(gs,`{`).replace(vs,`}`).replace(ms,`^`)}function Ss(e){return bs(e).replace(ds,`%2B`).replace(ys,`+`).replace(os,`%23`).replace(ss,`%26`).replace(hs,"`").replace(gs,`{`).replace(vs,`}`).replace(ms,`^`)}function Cs(e){return Ss(e).replace(ls,`%3D`)}function ws(e){return bs(e).replace(os,`%23`).replace(us,`%3F`)}function Ts(e){return ws(e).replace(cs,`%2F`)}function Es(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ds=/\/$/,Os=e=>e.replace(Ds,``);function ks(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ls(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Es(o)}}function As(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function js(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Ms(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ns(t.matched[r],n.matched[i])&&Ps(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ns(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ps(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fs(e[n],t[n]))return!1;return!0}function Fs(e,t){return $(e)?Is(e,t):$(t)?Is(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Is(e,t){return $(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ls(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Rs={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function zs(e){if(!e){if(as){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Os(e)}var Bs=/^[^#]+#/;function Vs(e,t){return e.replace(Bs,`#`)+t}function Hs(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Us=()=>({left:window.scrollX,top:window.scrollY});function Ws(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Hs(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Gs(e,t){return(history.state?history.state.position-t:-1)+e}var Ks=new Map;function qs(e,t){Ks.set(e,t)}function Js(e){let t=Ks.get(e);return Ks.delete(e),t}function Ys(e){return typeof e==`string`||e&&typeof e==`object`}function Xs(e){return typeof e==`string`||typeof e==`symbol`}function Zs(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(ds,` `),i=r.indexOf(`=`),a=Es(i<0?r:r.slice(0,i)),o=i<0?null:Es(r.slice(i+1));if(a in t){let e=t[a];$(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Qs(e){let t=``;for(let n in e){let r=e[n];if(n=Cs(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}($(r)?r.map(e=>e&&Ss(e)):[r&&Ss(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function $s(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=$(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function ec(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function tc(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Xo(4,{from:n,to:t})):e instanceof Error?c(e):Ys(e)?c(Xo(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function nc(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(Wo(s)){let c=(s.__vccOpts||s)[t];c&&a.push(tc(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Go(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&tc(c,n,r,o,e,i)()}))}}}return a}function rc(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Ns(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ns(e,s))||i.push(s))}return[n,r,i]}var ic=()=>location.protocol+`//`+location.host;function ac(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),js(n,``)}return js(n,e)+r+i}function oc(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=ac(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(Q({},e.state,{scroll:Us()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function sc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Us():null}}function cc(e){let{history:t,location:n}=window,r={value:ac(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ic()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,Q({},t.state,sc(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=Q({},i.value,t.state,{forward:e,scroll:Us()});a(o.current,o,!0),a(e,Q({},sc(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function lc(e){e=zs(e);let t=cc(e),n=oc(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=Q({location:``,base:e,go:r,createHref:Vs.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function uc(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),lc(e)}var dc={type:0,value:``},fc=/[a-zA-Z0-9_]/;function pc(e){if(!e)return[[]];if(e===`/`)return[[dc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:fc.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var mc=`[^/]+?`,hc={sensitive:!1,strict:!1,start:!0,end:!0},gc=/[.+*?^${}()[\]/\\]/g;function _c(e,t){let n=Q({},hc,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(gc,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||mc;if(u!==mc){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if($(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=$(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function vc(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function yc(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=vc(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(bc(r))return 1;if(bc(i))return-1}return i.length-r.length}function bc(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var xc={strict:!1,end:!0,sensitive:!1};function Sc(e,t,n){let r=Q(_c(pc(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Cc(e,t){let n=[],r=new Map;t=Jo(xc,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Tc(e);s.aliasOf=r&&r.record;let l=Jo(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Tc(Q({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Sc(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Dc(d)&&o(e.name)),jc(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:qo}function o(e){if(Xs(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=kc(e,n);n.splice(t,0,e),e.record.name&&!Dc(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Xo(1,{location:e});s=i.record.name,a=Q(wc(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&wc(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Xo(1,{location:e,currentLocation:t});s=i.record.name,a=Q({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Oc(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function wc(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Tc(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ec(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ec(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Dc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Oc(e){return e.reduce((e,t)=>Q(e,t.meta),{})}function kc(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;yc(e,t[i])<0?r=i:n=i+1}let i=Ac(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ac(e){let t=e;for(;t=t.parent;)if(jc(t)&&yc(e,t)===0)return t}function jc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mc(e){let n=N(es),r=N(ts),i=d(()=>{let r=t(e.to);return n.resolve(r)}),a=d(()=>{let{matched:e}=i.value,{length:t}=e,n=e[t-1],a=r.matched;if(!n||!a.length)return-1;let o=a.findIndex(Ns.bind(null,n));if(o>-1)return o;let s=Lc(e[t-2]);return t>1&&Lc(n)===s&&a[a.length-1].path!==s?a.findIndex(Ns.bind(null,e[t-2])):o}),o=d(()=>a.value>-1&&Ic(r.params,i.value.params)),s=d(()=>a.value>-1&&a.value===r.matched.length-1&&Ps(r.params,i.value.params));function c(r={}){if(Fc(r)){let r=n[t(e.replace)?`replace`:`push`](t(e.to)).catch(qo);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>r),r}return Promise.resolve()}return{route:i,href:d(()=>i.value.href),isActive:o,isExactActive:s,navigate:c}}function Nc(e){return e.length===1?e[0]:e}var Pc=c({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Mc,setup(e,{slots:t}){let n=s(Mc(e)),{options:r}=N(es),i=d(()=>({[Rc(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Rc(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Nc(t.default(n));return e.custom?r:M(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Fc(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ic(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!$(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Lc(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Rc=(e,t,n)=>e??t??n,zc=c({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:r,slots:i}){let a=N(ns),o=d(()=>e.route||a.value),s=N($o,0),c=d(()=>{let e=t(s),{matched:n}=o.value,r;for(;(r=n[e])&&!r.components;)e++;return e}),l=d(()=>o.value.matched[c.value]);f($o,d(()=>c.value+1)),f(Qo,l),f(ns,o);let u=n();return O(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ns(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=o.value,n=e.name,a=l.value,s=a&&a.components[n];if(!s)return Bc(i.default,{Component:s,route:t});let c=a.props[n],d=c?c===!0?t.params:typeof c==`function`?c(t):c:null,f=M(s,Q({},d,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[n]=null)},ref:u}));return Bc(i.default,{Component:f,route:t})||f}}});function Bc(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Vc=zc;function Hc(e){let n=Cc(e.routes,e),a=e.parseQuery||Zs,o=e.stringifyQuery||Qs,s=e.history,c=ec(),l=ec(),u=ec(),d=r(Rs),f=Rs;as&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let p=Ko.bind(null,e=>``+e),m=Ko.bind(null,Ts),h=Ko.bind(null,Es);function g(e,t){let r,i;return Xs(e)?(r=n.getRecordMatcher(e),i=t):i=e,n.addRoute(i,r)}function _(e){let t=n.getRecordMatcher(e);t&&n.removeRoute(t)}function v(){return n.getRoutes().map(e=>e.record)}function y(e){return!!n.getRecordMatcher(e)}function b(e,t){if(t=Q({},t||d.value),typeof e==`string`){let r=ks(a,e,t.path),i=n.resolve({path:r.path},t),o=s.createHref(r.fullPath);return Q(r,i,{params:h(i.params),redirectedFrom:void 0,href:o})}let r;if(e.path!=null)r=Q({},e,{path:ks(a,e.path,t.path).path});else{let n=Q({},e.params);for(let e in n)n[e]??delete n[e];r=Q({},e,{params:m(n)}),t.params=m(t.params)}let i=n.resolve(r,t),c=e.hash||``;i.params=p(h(i.params));let l=As(o,Q({},e,{hash:xs(c),path:i.path})),u=s.createHref(l);return Q({fullPath:l,hash:c,query:o===Qs?$s(e.query):e.query||{}},i,{redirectedFrom:void 0,href:u})}function x(e){return typeof e==`string`?ks(a,e,d.value.path):Q({},e)}function C(e,t){if(f!==e)return Xo(8,{from:t,to:e})}function w(e){return D(e)}function T(e){return w(Q(x(e),{replace:!0}))}function E(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),Q({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function D(e,t){let n=f=b(e),r=d.value,i=e.state,a=e.force,s=e.replace===!0,c=E(n,r);if(c)return D(Q(x(c),{state:typeof c==`object`?Q({},i,c.state):i,force:a,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!a&&Ms(o,r,n)&&(u=Xo(16,{to:l,from:r}),P(r,r,!0,!1)),(u?Promise.resolve(u):A(l,r)).catch(e=>Zo(e)?Zo(e,2)?e:oe(e):ie(e,l,r)).then(e=>{if(e){if(Zo(e,2))return D(Q({replace:s},x(e.to),{state:typeof e.to==`object`?Q({},i,e.to.state):i,force:a}),t||l)}else e=j(l,r,!0,s,i);return ee(l,r,e),e})}function O(e,t){let n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=L.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function A(e,t){let n,[r,i,a]=rc(e,t);n=nc(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(tc(r,e,t))});let o=O.bind(null,e,t);return n.push(o),z(n).then(()=>{n=[];for(let r of c.list())n.push(tc(r,e,t));return n.push(o),z(n)}).then(()=>{n=nc(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(tc(r,e,t))});return n.push(o),z(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if($(r.beforeEnter))for(let i of r.beforeEnter)n.push(tc(i,e,t));else n.push(tc(r.beforeEnter,e,t))}return n.push(o),z(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=nc(a,`beforeRouteEnter`,e,t,k),n.push(o),z(n))).then(()=>{n=[];for(let r of l.list())n.push(tc(r,e,t));return n.push(o),z(n)}).catch(e=>Zo(e,8)?e:Promise.reject(e))}function ee(e,t,n){u.list().forEach(r=>k(()=>r(e,t,n)))}function j(e,t,n,r,i){let a=C(e,t);if(a)return a;let o=t===Rs,c=as?history.state:{};n&&(r||o?s.replace(e.fullPath,Q({scroll:o&&c&&c.scroll},i)):s.push(e.fullPath,i)),d.value=e,P(e,t,n,o),oe()}let te;function M(){te||=s.listen((e,t,n)=>{if(!R.listening)return;let r=b(e),i=E(r,R.currentRoute.value);if(i){D(Q(i,{replace:!0,force:!0}),r).catch(qo);return}f=r;let a=d.value;as&&qs(Gs(a.fullPath,n.delta),Us()),A(r,a).catch(e=>Zo(e,12)?e:Zo(e,2)?(D(Q(x(e.to),{force:!0}),r).then(e=>{Zo(e,20)&&!n.delta&&n.type===`pop`&&s.go(-1,!1)}).catch(qo),Promise.reject()):(n.delta&&s.go(-n.delta,!1),ie(e,r,a))).then(e=>{e||=j(r,a,!1),e&&(n.delta&&!Zo(e,8)?s.go(-n.delta,!1):n.type===`pop`&&Zo(e,20)&&s.go(-1,!1)),ee(r,a,e)}).catch(qo)})}let N=ec(),ne=ec(),re;function ie(e,t,n){oe(e);let r=ne.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return re&&d.value!==Rs?Promise.resolve():new Promise((e,t)=>{N.add([e,t])})}function oe(e){return re||(re=!e,M(),N.list().forEach(([t,n])=>e?n(e):t()),N.reset()),e}function P(t,n,r,i){let{scrollBehavior:a}=e;if(!as||!a)return Promise.resolve();let o=!r&&Js(Gs(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return S().then(()=>a(t,n,o)).then(e=>t===d.value&&e&&Ws(e)).catch(e=>t===d.value&&ie(e,t,n))}let F=e=>s.go(e),I,L=new Set,R={currentRoute:d,listening:!0,addRoute:g,removeRoute:_,clearRoutes:n.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:w,replace:T,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:c.add,beforeResolve:l.add,afterEach:u.add,onError:ne.add,isReady:ae,install(e){e.component(`RouterLink`,Pc),e.component(`RouterView`,Vc),e.config.globalProperties.$router=R,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>t(d)}),as&&!I&&d.value===Rs&&(I=!0,w(s.location).catch(e=>{}));let n={};for(let e in Rs)Object.defineProperty(n,e,{get:()=>d.value[e],enumerable:!0});e.provide(es,R),e.provide(ts,i(n)),e.provide(ns,d);let r=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(f=Rs,te&&te(),te=null,d.value=Rs,I=!1,re=!1),r()}}};function z(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return R}var Uc=[{path:`/`,component:()=>J(()=>import(`./MainLayout-jRXQQzPm.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])),children:[{path:``,redirect:{name:`workspace`}},{path:`dashboard`,name:`dashboard`,component:()=>J(()=>import(`./DashboardPage-Mgx1FG2b.js`),__vite__mapDeps([30,2,3,4,1,5,6,31,11,15,20,21,22,26,32,33]))},{path:`workspace/:id?`,name:`workspace`,component:()=>J(()=>import(`./WorkspacePage-CEwILZ6V.js`).then(e=>e.t),__vite__mapDeps([34,1,2,3,4,5,35,7,6,8,9,10,11,12,14,15,16,17,18,19,36,26,27,21,32,37,38,39]))},{path:`create`,name:`create`,component:()=>J(()=>import(`./CreatePage-Hp3O5al9.js`),__vite__mapDeps([40,2,3,4,1,5,35,7,6,8,9,10,11,12,16,41,42,19,26,28,32,43,18,37,38,44,45]))},{path:`settings`,name:`settings`,component:()=>J(()=>import(`./SettingsPage-qKa3e6W-.js`),__vite__mapDeps([46,1,2,3,4,5,6,10,7,8,9,11,12,24,15,17,18,47,42,23,25,26,28,32,43,44,48]))},{path:`search`,name:`search`,component:()=>J(()=>import(`./SearchPage-CWca6d5o.js`),__vite__mapDeps([49,2,3,4,1,5,6,11,15,16,21,32,43,18,50]))},{path:`health`,name:`health`,component:()=>J(()=>import(`./HealthPage-v_jKOByf.js`),__vite__mapDeps([51,2,3,5,7,6,11,15,16,32,43,18,52]))},{path:`changelog`,name:`changelog`,component:()=>J(()=>import(`./ChangelogPage-2OaGEKe9.js`),__vite__mapDeps([53,2,3,5,11,14,15,12,6,32,43,18,54]))}]},{path:`/:catchAll(.*)*`,redirect:`/`}],Wc=bo(()=>{let e=Hc({scrollBehavior:()=>({left:0,top:0}),routes:Uc,history:uc()});return e.beforeEach((e,t)=>{if(e.fullPath===t.fullPath||!Uo())return!0;let n=Si.global.t;return new Promise(e=>{Ro.create({title:n(`unsaved.title`),message:n(`unsaved.message`),dark:!0,cancel:{flat:!0,label:n(`unsaved.stay`),color:`grey-5`},ok:{flat:!0,label:n(`unsaved.leave`),color:`negative`}}).onOk(()=>e(!0)).onCancel(()=>e(!1))})}),window.addEventListener(`beforeunload`,e=>{Uo()&&(e.preventDefault(),e.returnValue=``)}),e});async function Gc(e,t){let n=e(_o);n.use(gt,t);let r=typeof xo==`function`?await xo({}):xo;n.use(r);let i=a(typeof Wc==`function`?await Wc({store:r}):Wc);return r.use(({store:e})=>{e.router=i}),{app:n,store:r,router:i}}var Kc={config:{dark:!0,brand:{primary:`#6c63ff`,secondary:`#26a69a`,accent:`#9c27b0`,dark:`#1a1a2e`,"dark-page":`#1a1a2e`,positive:`#21ba45`,negative:`#c10015`,info:`#31ccec`,warning:`#f2c037`}},plugins:{Notify:q,Dialog:Ro}},qc=function(){return!!(window.location.hostname===`localhost`||window.location.hostname===`[::1]`||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},Jc;typeof window<`u`&&(Jc=typeof Promise<`u`?new Promise(function(e){return window.addEventListener(`load`,e)}):{then:function(e){return window.addEventListener(`load`,e)}});function Yc(e,t){t===void 0&&(t={});var n=t.registrationOptions;n===void 0&&(n={}),delete t.registrationOptions;var r=function(e){for(var n=[],r=arguments.length-1;r-->0;)n[r]=arguments[r+1];t&&t[e]&&t[e].apply(t,n)};`serviceWorker`in navigator&&Jc.then(function(){qc()?(Qc(e,r,n),navigator.serviceWorker.ready.then(function(e){r(`ready`,e)}).catch(function(e){return Xc(r,e)})):(Zc(e,r,n),navigator.serviceWorker.ready.then(function(e){r(`ready`,e)}).catch(function(e){return Xc(r,e)}))})}function Xc(e,t){navigator.onLine||e(`offline`),e(`error`,t)}function Zc(e,t,n){navigator.serviceWorker.register(e,n).then(function(e){if(t(`registered`,e),e.waiting){t(`updated`,e);return}e.onupdatefound=function(){t(`updatefound`,e);var n=e.installing;n.onstatechange=function(){n.state===`installed`&&(navigator.serviceWorker.controller?t(`updated`,e):t(`cached`,e))}}}).catch(function(e){return Xc(t,e)})}function Qc(e,t,n){fetch(e).then(function(r){r.status===404?(t(`error`,Error(`Service worker not found at `+e)),$c()):r.headers.get(`content-type`).indexOf(`javascript`)===-1?(t(`error`,Error(`Expected `+e+` to have javascript content-type, but received `+r.headers.get(`content-type`))),$c()):Zc(e,t,n)}).catch(function(e){return Xc(t,e)})}function $c(){`serviceWorker`in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()}).catch(function(e){return Xc(emit,e)})}Yc(`/sw.js`);var el=`/`;async function tl({app:e,router:t,store:n},r){let i=!1,a=e=>{try{return t.resolve(e).href}catch{}return Object(e)===e?null:e},o=e=>{if(i=!0,typeof e==`string`&&/^https?:\/\//.test(e)){window.location.href=e;return}let t=a(e);t!==null&&(window.location.href=t,window.location.reload())},s=window.location.href.replace(window.location.origin,``);for(let a=0;i===!1&&a<r.length;a++)try{await r[a]({app:e,router:t,store:n,ssrContext:null,redirect:o,urlPath:s,publicPath:el})}catch(e){i||console.error(`[Quasar] boot error:`,e);return}i||(e.use(t),e.mount(`#q-app`))}Gc(k,Kc).then(e=>{let[t,n]=Promise.allSettled===void 0?[`all`,e=>e.map(e=>e.default)]:[`allSettled`,e=>e.map(e=>{if(e.status===`rejected`){console.error(`[Quasar] boot error:`,e.reason);return}return e.value.default})];return Promise[t]([J(()=>import(`./i18n-B_ietr0X.js`),[]),J(()=>import(`./network-auth-CXNehcyv.js`),[]),J(()=>import(`./notify-theme-DzIPRvEu.js`),[])]).then(t=>{tl(e,n(t).filter(e=>typeof e==`function`))})});export{q as $,Qi as A,$t as At,Fi as B,Et as Bt,va as C,wn as Ct,sa as D,tn as Dt,ca as E,Gt as Et,Gi as F,Mt as Ft,Mi as G,xt as Gt,Pi as H,wt as Ht,Wi as I,At as It,Di as J,W as Jt,Oi as K,bt as Kt,Xi as L,kt as Lt,Ki as M,Ht as Mt,Hi as N,Rt as Nt,da as O,Kt as Ot,Bi as P,jt as Pt,J as Q,Yi as R,Ot as Rt,ya as S,Cn as St,fa as T,qt as Tt,Ai as U,Ct as Ut,Y as V,Tt as Vt,ji as W,St as Wt,xi as X,dt as Xt,Si as Y,ut as Yt,Ei as Z,U as Zt,Na as _,zn as _t,Po as a,Vr as at,ja as b,Dn as bt,Do as c,Lr as ct,go as d,xr as dt,Zr as et,Ha as f,vr as ft,Va as g,Yn as gt,za as h,Qn as ht,Vo as i,Br as it,Vi as j,Qt as jt,la as k,Ut as kt,wo as l,Ir as lt,La as m,yr as mt,rs as n,Gr as nt,Ao as o,Hr as ot,X as p,_r as pt,ki as q,yt as qt,Bo as r,Ur as rt,ko as s,Rr as st,is as t,Xr as tt,yo as u,gr as ut,Pa as v,Fn as vt,ma as w,gn as wt,ka as x,On as xt,Ma as y,jn as yt,Ji as z,Dt as zt};