wherdr 2.5.0 → 2.6.0

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 (262) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{CXbAL3Yu.js → 2fsYF-LK.js} +41 -42
  3. package/.output/public/_nuxt/2fsYF-LK.js.br +0 -0
  4. package/.output/public/_nuxt/2fsYF-LK.js.gz +0 -0
  5. package/.output/public/_nuxt/{qODuBH5E.js → 3bE7s96N.js} +1 -1
  6. package/.output/public/_nuxt/6YTlf8ot.js +1 -0
  7. package/.output/public/_nuxt/6YTlf8ot.js.br +0 -0
  8. package/.output/public/_nuxt/6YTlf8ot.js.gz +0 -0
  9. package/.output/public/_nuxt/{BYZVrreW.js → 7KozZy5Y.js} +1 -1
  10. package/.output/public/_nuxt/{AgentView.B6zltno1.css → AgentView.BwyQIUef.css} +1 -1
  11. package/.output/public/_nuxt/AgentView.BwyQIUef.css.br +0 -0
  12. package/.output/public/_nuxt/AgentView.BwyQIUef.css.gz +0 -0
  13. package/.output/public/_nuxt/{BdJIc1Xf.js → B40shTLf.js} +1 -1
  14. package/.output/public/_nuxt/{BdJIc1Xf.js.br → B40shTLf.js.br} +0 -0
  15. package/.output/public/_nuxt/B40shTLf.js.gz +0 -0
  16. package/.output/public/_nuxt/B5cSia3P.js +62 -0
  17. package/.output/public/_nuxt/B5cSia3P.js.br +0 -0
  18. package/.output/public/_nuxt/B5cSia3P.js.gz +0 -0
  19. package/.output/public/_nuxt/BK1_9FXg.js +1 -0
  20. package/.output/public/_nuxt/BK1_9FXg.js.br +0 -0
  21. package/.output/public/_nuxt/BK1_9FXg.js.gz +0 -0
  22. package/.output/public/_nuxt/{CgUSTIM1.js → Bqz3nVVB.js} +1 -1
  23. package/.output/public/_nuxt/{CgUSTIM1.js.br → Bqz3nVVB.js.br} +0 -0
  24. package/.output/public/_nuxt/Bqz3nVVB.js.gz +0 -0
  25. package/.output/public/_nuxt/{DOVT2Tt8.js → ByLPJEo6.js} +1 -1
  26. package/.output/public/_nuxt/ByLPJEo6.js.br +0 -0
  27. package/.output/public/_nuxt/ByLPJEo6.js.gz +0 -0
  28. package/.output/public/_nuxt/C8tHIeGN.js +3 -0
  29. package/.output/public/_nuxt/C8tHIeGN.js.br +0 -0
  30. package/.output/public/_nuxt/C8tHIeGN.js.gz +0 -0
  31. package/.output/public/_nuxt/CAkH_IfS.js +9 -0
  32. package/.output/public/_nuxt/CAkH_IfS.js.br +0 -0
  33. package/.output/public/_nuxt/CAkH_IfS.js.gz +0 -0
  34. package/.output/public/_nuxt/COWXF9OU.js +123 -0
  35. package/.output/public/_nuxt/COWXF9OU.js.br +0 -0
  36. package/.output/public/_nuxt/COWXF9OU.js.gz +0 -0
  37. package/.output/public/_nuxt/{DMzjoyW_.js → CiG2Lovu.js} +1 -1
  38. package/.output/public/_nuxt/CiG2Lovu.js.br +0 -0
  39. package/.output/public/_nuxt/CiG2Lovu.js.gz +0 -0
  40. package/.output/public/_nuxt/CnjxEm0H.js +27 -0
  41. package/.output/public/_nuxt/CnjxEm0H.js.br +0 -0
  42. package/.output/public/_nuxt/CnjxEm0H.js.gz +0 -0
  43. package/.output/public/_nuxt/{PjGJWal8.js → DNs2cMBZ.js} +15 -15
  44. package/.output/public/_nuxt/DNs2cMBZ.js.br +0 -0
  45. package/.output/public/_nuxt/DNs2cMBZ.js.gz +0 -0
  46. package/.output/public/_nuxt/D_x7Rysx.js +31 -0
  47. package/.output/public/_nuxt/D_x7Rysx.js.br +0 -0
  48. package/.output/public/_nuxt/D_x7Rysx.js.gz +0 -0
  49. package/.output/public/_nuxt/{Bd0Z2zzq.js → T-qXNaMY.js} +1 -1
  50. package/.output/public/_nuxt/builds/latest.json +1 -1
  51. package/.output/public/_nuxt/builds/meta/e2ee8d99-6a6a-4754-934f-8b7dbecfcdcb.json +1 -0
  52. package/.output/public/_nuxt/entry.C_hImCpq.css +2 -0
  53. package/.output/public/_nuxt/entry.C_hImCpq.css.br +0 -0
  54. package/.output/public/_nuxt/entry.C_hImCpq.css.gz +0 -0
  55. package/.output/public/_nuxt/useViewport.D9mmYA6A.css +1 -0
  56. package/.output/public/_nuxt/useWorktrees.BWpb3OO0.css +1 -0
  57. package/.output/public/_nuxt/useWorktrees.BWpb3OO0.css.br +0 -0
  58. package/.output/public/_nuxt/useWorktrees.BWpb3OO0.css.gz +0 -0
  59. package/.output/public/sw.js +6 -2
  60. package/.output/server/chunks/_/branding.mjs +1 -1
  61. package/.output/server/chunks/_/fileDownload.mjs +1 -1
  62. package/.output/server/chunks/_/files.mjs +26 -3
  63. package/.output/server/chunks/_/machineOrder.mjs +1 -1
  64. package/.output/server/chunks/_/onboarding.mjs +1 -1
  65. package/.output/server/chunks/_/package.mjs +1 -1
  66. package/.output/server/chunks/_/plugins.mjs +1 -1
  67. package/.output/server/chunks/_/restart.mjs +1 -1
  68. package/.output/server/chunks/_/revoke.mjs +22 -0
  69. package/.output/server/chunks/_/selfupdate.mjs +2 -1
  70. package/.output/server/chunks/_/splitShell.mjs +1 -1
  71. package/.output/server/chunks/_/updates.mjs +18 -4
  72. package/.output/server/chunks/_/uploadHashes.mjs +46 -0
  73. package/.output/server/chunks/_/worktrees.mjs +1 -1
  74. package/.output/server/chunks/_/ws.mjs +3 -3
  75. package/.output/server/chunks/nitro/nitro.mjs +15525 -15000
  76. package/.output/server/chunks/raw/herdr-plugin.mjs +1 -1
  77. package/.output/server/chunks/routes/api/_..._.mjs +2 -2
  78. package/.output/server/chunks/routes/api/agents.post.mjs +2 -2
  79. package/.output/server/chunks/routes/api/ask-tab.post.mjs +2 -2
  80. package/.output/server/chunks/routes/api/attach.post.mjs +2 -2
  81. package/.output/server/chunks/routes/api/auth/disable.post.mjs +11 -4
  82. package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +9 -3
  83. package/.output/server/chunks/routes/api/auth/lock.post.mjs +2 -2
  84. package/.output/server/chunks/routes/api/auth/login/options.post.mjs +4 -4
  85. package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +2 -2
  86. package/.output/server/chunks/routes/api/auth/max-session.post.mjs +2 -2
  87. package/.output/server/chunks/routes/api/auth/register/options.post.mjs +2 -2
  88. package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +2 -2
  89. package/.output/server/chunks/routes/api/auth/status.get.mjs +7 -7
  90. package/.output/server/chunks/routes/api/changes.get.mjs +3 -3
  91. package/.output/server/chunks/routes/api/chat/image.get.mjs +3 -3
  92. package/.output/server/chunks/routes/api/chat.get.mjs +17 -46
  93. package/.output/server/chunks/routes/api/choose.post.mjs +3 -3
  94. package/.output/server/chunks/routes/api/claude-setup.post.mjs +3 -3
  95. package/.output/server/chunks/routes/api/claude-statusline.post.mjs +3 -3
  96. package/.output/server/chunks/routes/api/clear-queued-input.post.mjs +3 -3
  97. package/.output/server/chunks/routes/api/close/status.get.mjs +3 -3
  98. package/.output/server/chunks/routes/api/close-preview.get.mjs +2 -2
  99. package/.output/server/chunks/routes/api/close.post.mjs +2 -2
  100. package/.output/server/chunks/routes/api/codex-update.post.mjs +3 -3
  101. package/.output/server/chunks/routes/api/commands.get.mjs +3 -3
  102. package/.output/server/chunks/routes/api/config.get.mjs +3 -3
  103. package/.output/server/chunks/routes/api/dirs.get.mjs +3 -3
  104. package/.output/server/chunks/routes/api/dismiss-stopped.post.mjs +3 -3
  105. package/.output/server/chunks/routes/api/dismiss.post.mjs +3 -3
  106. package/.output/server/chunks/routes/api/effort.post.mjs +3 -3
  107. package/.output/server/chunks/routes/api/efforts.get.mjs +3 -3
  108. package/.output/server/chunks/routes/api/file.post.mjs +3 -3
  109. package/.output/server/chunks/routes/api/files/download.get.mjs +2 -2
  110. package/.output/server/chunks/routes/api/files/download.head.mjs +2 -2
  111. package/.output/server/chunks/routes/api/files/read.get.mjs +3 -3
  112. package/.output/server/chunks/routes/api/files.get.mjs +3 -3
  113. package/.output/server/chunks/routes/api/health.get.mjs +2 -2
  114. package/.output/server/chunks/routes/api/input.post.mjs +3 -3
  115. package/.output/server/chunks/routes/api/interrupt.post.mjs +3 -3
  116. package/.output/server/chunks/routes/api/isgit.get.mjs +3 -3
  117. package/.output/server/chunks/routes/api/machine/awake.get.mjs +3 -3
  118. package/.output/server/chunks/routes/api/machine/awake.post.mjs +3 -3
  119. package/.output/server/chunks/routes/api/machine/order.get.mjs +2 -2
  120. package/.output/server/chunks/routes/api/machine/order.post.mjs +2 -2
  121. package/.output/server/chunks/routes/api/machine/reconnect.post.mjs +3 -3
  122. package/.output/server/chunks/routes/api/machine/rename.post.mjs +3 -3
  123. package/.output/server/chunks/routes/api/machine/status.post.mjs +3 -3
  124. package/.output/server/chunks/routes/api/menu-left.post.mjs +3 -3
  125. package/.output/server/chunks/routes/api/menu.post.mjs +3 -3
  126. package/.output/server/chunks/routes/api/model.post.mjs +3 -3
  127. package/.output/server/chunks/routes/api/models.get.mjs +3 -3
  128. package/.output/server/chunks/routes/api/nav.post.mjs +3 -3
  129. package/.output/server/chunks/routes/api/onboarding.get.mjs +2 -2
  130. package/.output/server/chunks/routes/api/onboarding.post.mjs +2 -2
  131. package/.output/server/chunks/routes/api/phone.get.mjs +3 -3
  132. package/.output/server/chunks/routes/api/phone.post.mjs +3 -3
  133. package/.output/server/chunks/routes/api/plugins/actions.get.mjs +2 -2
  134. package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +2 -2
  135. package/.output/server/chunks/routes/api/plugins/projects.get.mjs +3 -3
  136. package/.output/server/chunks/routes/api/plugins/projects.post.mjs +3 -3
  137. package/.output/server/chunks/routes/api/prompt.post.mjs +3 -3
  138. package/.output/server/chunks/routes/api/push/devices.post.mjs +3 -3
  139. package/.output/server/chunks/routes/api/push/quiet.post.mjs +3 -3
  140. package/.output/server/chunks/routes/api/push/subscribe.post.mjs +5 -4
  141. package/.output/server/chunks/routes/api/push/test.post.mjs +3 -3
  142. package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +3 -3
  143. package/.output/server/chunks/routes/api/quotas.get.mjs +3 -3
  144. package/.output/server/chunks/routes/api/rename.post.mjs +2 -2
  145. package/.output/server/chunks/routes/api/requeue.post.mjs +3 -3
  146. package/.output/server/chunks/routes/api/restart.get.mjs +2 -2
  147. package/.output/server/chunks/routes/api/restart.post.mjs +2 -2
  148. package/.output/server/chunks/routes/api/reveal.post.mjs +3 -3
  149. package/.output/server/chunks/routes/api/screen-key.post.mjs +3 -3
  150. package/.output/server/chunks/routes/api/screen.get.mjs +3 -3
  151. package/.output/server/chunks/routes/api/search.get.mjs +3 -3
  152. package/.output/server/chunks/routes/api/seen.post.mjs +3 -3
  153. package/.output/server/chunks/routes/api/send-now.post.mjs +3 -3
  154. package/.output/server/chunks/routes/api/sessions.get.mjs +3 -3
  155. package/.output/server/chunks/routes/api/sessions.post.mjs +3 -3
  156. package/.output/server/chunks/routes/api/settings-tab.post.mjs +3 -3
  157. package/.output/server/chunks/routes/api/settings.get.mjs +3 -3
  158. package/.output/server/chunks/routes/api/settings.post.mjs +3 -3
  159. package/.output/server/chunks/routes/api/space.post.mjs +3 -3
  160. package/.output/server/chunks/routes/api/split-command.post.mjs +3 -3
  161. package/.output/server/chunks/routes/api/state.get.mjs +3 -3
  162. package/.output/server/chunks/routes/api/tasks/action.post.mjs +3 -3
  163. package/.output/server/chunks/routes/api/tasks/add.post.mjs +3 -3
  164. package/.output/server/chunks/routes/api/tasks/after.post.mjs +3 -3
  165. package/.output/server/chunks/routes/api/tasks/approve.post.mjs +3 -3
  166. package/.output/server/chunks/routes/api/tasks/archive-done.post.mjs +3 -3
  167. package/.output/server/chunks/routes/api/tasks/archived.get.mjs +3 -3
  168. package/.output/server/chunks/routes/api/tasks/autopilot.get.mjs +3 -3
  169. package/.output/server/chunks/routes/api/tasks/autopilot.post.mjs +3 -3
  170. package/.output/server/chunks/routes/api/tasks/board-settings.get.mjs +3 -3
  171. package/.output/server/chunks/routes/api/tasks/board-settings.post.mjs +3 -3
  172. package/.output/server/chunks/routes/api/tasks/coordinator.get.mjs +3 -3
  173. package/.output/server/chunks/routes/api/tasks/coordinator.post.mjs +3 -3
  174. package/.output/server/chunks/routes/api/tasks/describe.post.mjs +3 -3
  175. package/.output/server/chunks/routes/api/tasks/details.get.mjs +3 -3
  176. package/.output/server/chunks/routes/api/tasks/limit.post.mjs +3 -3
  177. package/.output/server/chunks/routes/api/tasks/links.get.mjs +4 -4
  178. package/.output/server/chunks/routes/api/tasks/models.get.mjs +3 -3
  179. package/.output/server/chunks/routes/api/tasks/pick.post.mjs +3 -3
  180. package/.output/server/chunks/routes/api/tasks/project.get.mjs +3 -3
  181. package/.output/server/chunks/routes/api/tasks/project.post.mjs +3 -3
  182. package/.output/server/chunks/routes/api/tasks/question.post.mjs +3 -3
  183. package/.output/server/chunks/routes/api/tasks/scheduled.get.mjs +3 -3
  184. package/.output/server/chunks/routes/api/tasks/settings.get.mjs +3 -3
  185. package/.output/server/chunks/routes/api/tasks/start.get.mjs +3 -3
  186. package/.output/server/chunks/routes/api/tasks/tell.post.mjs +3 -3
  187. package/.output/server/chunks/routes/api/tasks/transcript-image.get.mjs +47 -0
  188. package/.output/server/chunks/routes/api/tasks/transcript.get.mjs +48 -0
  189. package/.output/server/chunks/routes/api/tasks.get.mjs +3 -3
  190. package/.output/server/chunks/routes/api/unqueue.post.mjs +3 -3
  191. package/.output/server/chunks/routes/api/update/status.get.mjs +2 -2
  192. package/.output/server/chunks/routes/api/update.get.mjs +2 -2
  193. package/.output/server/chunks/routes/api/update.post.mjs +2 -2
  194. package/.output/server/chunks/routes/api/upload.post.mjs +3 -3
  195. package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +2 -2
  196. package/.output/server/chunks/routes/api/worktrees.get.mjs +2 -2
  197. package/.output/server/chunks/routes/favicon.ico.get.mjs +2 -2
  198. package/.output/server/chunks/routes/icons/_name_.get.mjs +3 -3
  199. package/.output/server/chunks/routes/renderer.mjs +4 -4
  200. package/.output/server/chunks/routes/uploads/_...name_.get.mjs +3 -3
  201. package/.output/server/chunks/routes/ws/_..._.mjs +3 -3
  202. package/.output/server/chunks/routes/ws/events.mjs +3 -3
  203. package/.output/server/chunks/routes/ws/term.mjs +3 -3
  204. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  205. package/.output/server/index.mjs +3 -3
  206. package/.output/server/package.json +1 -1
  207. package/README.md +1 -1
  208. package/bin/lib/tailnet.d.mts +7 -4
  209. package/bin/lib/tailnet.mjs +76 -18
  210. package/bin/lib/updater.mjs +6 -0
  211. package/docs/README.md +2 -0
  212. package/docs/conversation.md +9 -0
  213. package/docs/home.md +29 -0
  214. package/docs/installation.md +14 -5
  215. package/docs/networks.md +9 -4
  216. package/docs/plugins.md +1 -1
  217. package/docs/quick-start.md +7 -6
  218. package/docs/quotas.md +6 -3
  219. package/docs/release-notes-2.6.0.md +29 -0
  220. package/docs/security.md +54 -11
  221. package/docs/troubleshooting.md +4 -0
  222. package/package.json +1 -1
  223. package/.output/public/_nuxt/1gzTzt3j.js +0 -9
  224. package/.output/public/_nuxt/1gzTzt3j.js.br +0 -0
  225. package/.output/public/_nuxt/1gzTzt3j.js.gz +0 -0
  226. package/.output/public/_nuxt/AgentView.B6zltno1.css.br +0 -0
  227. package/.output/public/_nuxt/AgentView.B6zltno1.css.gz +0 -0
  228. package/.output/public/_nuxt/BdJIc1Xf.js.gz +0 -0
  229. package/.output/public/_nuxt/BrxmYJEM.js +0 -1
  230. package/.output/public/_nuxt/BrxmYJEM.js.br +0 -0
  231. package/.output/public/_nuxt/BrxmYJEM.js.gz +0 -0
  232. package/.output/public/_nuxt/C6fXOTRV.js +0 -3
  233. package/.output/public/_nuxt/C6fXOTRV.js.br +0 -0
  234. package/.output/public/_nuxt/C6fXOTRV.js.gz +0 -0
  235. package/.output/public/_nuxt/CXbAL3Yu.js.br +0 -0
  236. package/.output/public/_nuxt/CXbAL3Yu.js.gz +0 -0
  237. package/.output/public/_nuxt/Cf1C5Vkb.js +0 -27
  238. package/.output/public/_nuxt/Cf1C5Vkb.js.br +0 -0
  239. package/.output/public/_nuxt/Cf1C5Vkb.js.gz +0 -0
  240. package/.output/public/_nuxt/CgUSTIM1.js.gz +0 -0
  241. package/.output/public/_nuxt/CmTpxyM2.js +0 -62
  242. package/.output/public/_nuxt/CmTpxyM2.js.br +0 -0
  243. package/.output/public/_nuxt/CmTpxyM2.js.gz +0 -0
  244. package/.output/public/_nuxt/DMzjoyW_.js.br +0 -0
  245. package/.output/public/_nuxt/DMzjoyW_.js.gz +0 -0
  246. package/.output/public/_nuxt/DOVT2Tt8.js.br +0 -0
  247. package/.output/public/_nuxt/DOVT2Tt8.js.gz +0 -0
  248. package/.output/public/_nuxt/PjGJWal8.js.br +0 -0
  249. package/.output/public/_nuxt/PjGJWal8.js.gz +0 -0
  250. package/.output/public/_nuxt/WPcHpWhL.js +0 -31
  251. package/.output/public/_nuxt/WPcHpWhL.js.br +0 -0
  252. package/.output/public/_nuxt/WPcHpWhL.js.gz +0 -0
  253. package/.output/public/_nuxt/builds/meta/d4aab09d-c1c4-4743-b8aa-35541006e853.json +0 -1
  254. package/.output/public/_nuxt/entry.DosS87kQ.css +0 -2
  255. package/.output/public/_nuxt/entry.DosS87kQ.css.br +0 -0
  256. package/.output/public/_nuxt/entry.DosS87kQ.css.gz +0 -0
  257. package/.output/public/_nuxt/nfsDZG4P.js +0 -123
  258. package/.output/public/_nuxt/nfsDZG4P.js.br +0 -0
  259. package/.output/public/_nuxt/nfsDZG4P.js.gz +0 -0
  260. package/.output/public/_nuxt/tYQOxjM1.js +0 -1
  261. package/.output/public/_nuxt/tYQOxjM1.js.br +0 -0
  262. package/.output/public/_nuxt/tYQOxjM1.js.gz +0 -0
@@ -1,27 +0,0 @@
1
- import{A as e,B as t,Et as n,Ft as r,Hn as i,Jt as a,M as o,Mn as s,N as c,Ot as l,P as u,Pt as d,Rt as f,St as p,U as m,V as h,Zt as g,b as _,fr as v,gr as y,hr as b,ht as x,j as S,ln as C,mt as w,nn as T,sn as E,vt as D,wn as O,zn as k}from"./C25ROUa9.js";import{_t as A,gt as j,ht as M,vt as N}from"./CDWjMk9C.js";import{$n as P,A as ee,B as F,Dr as te,Dt as ne,Ft as re,G as I,I as L,Ir as ie,It as ae,K as R,L as z,Lt as oe,Mt as B,Ot as se,Qn as V,R as ce,St as le,Tt as ue,W as de,Xn as fe,Y as pe,Z as me,Zn as he,_r as ge,ar as _e,at as ve,b as ye,br as be,dr as xe,er as Se,f as H,fr as Ce,gr as we,gt as Te,h as Ee,hr as De,k as Oe,kt as ke,ln as Ae,lr as je,m as Me,mr as Ne,nr as Pe,or as Fe,pr as Ie,r as Le,rr as Re,s as ze,sr as Be,tr as U,ur as W,ut as Ve,vr as He,wt as Ue,x as We,y as Ge,yr as Ke}from"./PjGJWal8.js";import{f as qe,p as Je,u as Ye}from"./CXJnLmWv.js";import{t as Xe}from"./Bpoxvzh6.js";import{c as Ze,r as Qe}from"./DOVT2Tt8.js";import{$ as G,Ai as $e,At as et,B as tt,Br as nt,C as rt,Ct as it,D as K,Dt as at,Hr as ot,Ir as st,Kr as ct,L as lt,Lr as ut,M as dt,Mt as ft,O as pt,Ot as mt,S as ht,T as gt,Tt as q,Ur as _t,V as vt,Vr as yt,W as bt,Wr as xt,Xr as St,_ as Ct,_t as wt,a as Tt,at as Et,b as Dt,ei as J,et as Ot,f as kt,g as At,gt as jt,h as Mt,hi as Y,i as Nt,it as Pt,j as Ft,jt as It,k as Lt,kt as Rt,mi as X,mr as zt,mt as Bt,n as Vt,o as Ht,oi as Ut,ot as Wt,ri as Gt,tt as Kt,v as qt,wt as Jt,x as Z,yt as Yt,zr as Xt}from"./nfsDZG4P.js";import{E as Zt,T as Qt,_ as Q,a as $t,c as en,d as tn,g as nn,i as rn,l as an,n as on,o as sn,p as cn,r as ln,s as un,t as dn,u as fn,x as pn}from"./tYQOxjM1.js";import{t as mn}from"./BDNMzG2s.js";import{A as hn,M as gn,a as _n,c as vn,f as yn,i as bn,j as xn,k as Sn,l as Cn,n as wn,o as Tn,r as En,s as Dn,u as On}from"#entry";import{a as kn,d as An,g as jn,i as Mn,l as Nn,n as Pn,o as Fn,r as In,s as Ln,t as Rn,u as $}from"./CmTpxyM2.js";import{a as zn,c as Bn,i as Vn,l as Hn,n as Un,o as Wn,r as Gn,s as Kn,t as qn}from"./DMzjoyW_.js";var Jn=m({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(t){let a=t,s=ee(),c=R(),u=e(()=>a.tabStopId||c),d=e(()=>s.currentTabStopId.value===u.value),{getItems:f,CollectionItem:m}=F();p(()=>{a.focusable&&s.onFocusableItemAdd()}),n(()=>{a.focusable&&s.onFocusableItemRemove()}),T(()=>a.focusable,(e,t)=>{e!==t&&(e?s.onFocusableItemAdd():s.onFocusableItemRemove())});function g(e){if(e.key===`Tab`&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=z(e,s.orientation.value,s.dir.value);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!a.allowShiftKey&&e.shiftKey)return;e.preventDefault();let n=[...f().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=s.loop.value?ce(n,r+1):n.slice(r+1)}x(()=>L(n))}}return(e,t)=>(l(),o(i(m),null,{default:E(()=>[h(i(de),{tabindex:d.value?0:-1,"data-orientation":i(s).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?i(s).onItemFocus(u.value):t.preventDefault()},onFocus:t[1]||=e=>i(s).onItemFocus(u.value),onKeydown:g},{default:E(()=>[r(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),Yn=`radio.select`;function Xn(e,t,n){le(Yn,n,{originalEvent:e,value:t})}var Zn=m({inheritAttrs:!1,__name:`Radio`,props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},checked:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:checked`,`select`],setup(t,{emit:n}){let a=t,s=n,d=Ve(a,`checked`,s,{passive:a.checked===void 0}),{value:f}=k(a),{forwardRef:p,currentElement:m}=pe(),g=sn(m),v=$t(),y=e(()=>a.id&&m.value?document.querySelector(`[for="${a.id}"]`)?.innerText:void 0);function b(e){a.disabled||Xn(e,a.value,e=>{s(`select`,e),!e?.defaultPrevented&&(d.value=!0,g.value&&e.stopPropagation())})}return(e,t)=>(l(),u(_,null,[h(i(de),w({id:e.id,ref:i(p),role:`radio`,type:e.as===`button`?`button`:void 0,as:e.as,"aria-checked":i(d)??!1,"aria-label":y.value,"as-child":e.asChild,disabled:e.disabled?``:void 0,"data-state":i(d)?`checked`:`unchecked`,"data-disabled":e.disabled?``:void 0,value:i(f),required:e.required,name:e.name},{...i(v),...e.$attrs},{onClick:N(b,[`stop`])}),{default:E(()=>[r(e.$slots,`default`,{checked:i(d)})]),_:3},16,[`id`,`type`,`as`,`aria-checked`,`aria-label`,`as-child`,`disabled`,`data-state`,`data-disabled`,`value`,`required`,`name`]),i(g)&&e.name?(l(),o(i(rn),w({key:0,type:`radio`,tabindex:`-1`,value:i(f),checked:!!i(d),name:e.name,disabled:e.disabled,required:e.required},i(v)),null,16,[`value`,`checked`,`name`,`disabled`,`required`])):c(`v-if`,!0)],64))}}),[Qn,$n]=Ue(`RadioGroupRoot`),er=m({__name:`RadioGroupRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,a=t,{forwardRef:s,currentElement:u}=pe(),d=Ve(n,`modelValue`,a,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:f,loop:p,orientation:m,name:g,required:_,dir:v}=k(n),y=me(v),b=sn(u);return $n({modelValue:d,changeModelValue:e=>{d.value=e},disabled:f,loop:p,orientation:m,name:g?.value,required:_}),(e,t)=>(l(),o(i(Oe),{"as-child":``,orientation:i(m),dir:i(y),loop:i(p)},{default:E(()=>[h(i(de),{ref:i(s),role:`radiogroup`,"data-disabled":i(f)?``:void 0,"as-child":e.asChild,as:e.as,"aria-orientation":i(m),"aria-required":i(_),dir:i(y)},{default:E(()=>[r(e.$slots,`default`,{modelValue:i(d)}),i(b)&&i(g)?(l(),o(i(rn),{key:0,required:i(_),disabled:i(f),value:i(d),name:i(g)},null,8,[`required`,`disabled`,`value`,`name`])):c(`v-if`,!0)]),_:3},8,[`data-disabled`,`as-child`,`as`,`aria-orientation`,`aria-required`,`dir`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),[tr,nr]=Ue(`RadioGroupItem`),rr=m({inheritAttrs:!1,__name:`RadioGroupItem`,props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`select`],setup(t,{emit:n}){let a=t,c=n,{forwardRef:u,currentElement:d}=pe(),f=Qn(),p=e(()=>f.disabled.value||a.disabled),m=e(()=>f.required.value||a.required),g=e(()=>Qe(f.modelValue?.value,a.value));nr({disabled:p,checked:g});let _=s(!1),v=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`];ve(`keydown`,e=>{v.includes(e.key)&&(_.value=!0)}),ve(`keyup`,()=>{_.value=!1});function y(){setTimeout(()=>{_.value&&d.value?.click()},0)}let b=$t();return(e,t)=>(l(),o(i(Jn),{checked:g.value,disabled:p.value,"as-child":``,focusable:!p.value,active:g.value},{default:E(()=>[h(Zn,w({...i(b),...e.$attrs,...a},{ref:i(u),checked:g.value,required:m.value,disabled:p.value,"onUpdate:checked":t[0]||=t=>i(f).changeModelValue(e.value),onSelect:t[1]||=e=>c(`select`,e),onKeydown:t[2]||=A(N(()=>{},[`prevent`]),[`enter`]),onFocus:y}),{default:E(()=>[r(e.$slots,`default`,{checked:g.value,required:m.value,disabled:p.value})]),_:3},16,[`checked`,`required`,`disabled`])]),_:3},8,[`checked`,`disabled`,`focusable`,`active`]))}}),ir=m({__name:`RadioGroupIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=pe(),n=tr();return(e,a)=>(l(),o(i(I),{present:e.forceMount||i(n).checked.value},{default:E(()=>[h(i(de),w({ref:i(t),"data-state":i(n).checked.value?`checked`:`unchecked`,"data-disabled":i(n).disabled.value?``:void 0,"as-child":e.asChild,as:e.as},e.$attrs),{default:E(()=>[r(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),ar={slots:{root:`relative`,fieldset:`flex gap-x-2`,legend:`mb-1 block font-medium text-default`,item:`flex items-start`,container:`flex items-center`,base:`rounded-full ring ring-inset ring-accented overflow-hidden focus-visible:outline-none`,indicator:`flex items-center justify-center size-full after:bg-default after:rounded-full`,wrapper:`w-full`,label:`block font-medium text-default`,icon:`shrink-0`,description:`text-muted`},variants:{color:{primary:{indicator:`bg-primary`},neutral:{indicator:`bg-inverted`},success:{indicator:`bg-success`},warning:{indicator:`bg-warning`},error:{indicator:`bg-error`},info:{indicator:`bg-info`}},variant:{list:{fieldset:`flex-wrap`,item:``},card:{fieldset:`flex-wrap`,item:[`border border-default rounded-lg hover:not-has-disabled:not-has-focus-visible:not-has-data-[state=checked]:bg-elevated/50`,`transition-colors`]},table:{item:[`border border-default hover:not-has-disabled:not-has-focus-visible:not-has-data-[state=checked]:bg-elevated/50`,`transition-colors`]}},orientation:{horizontal:{fieldset:`flex-row`},vertical:{fieldset:`flex-col`}},indicator:{start:{item:`flex-row`,wrapper:`ms-2`},end:{item:`flex-row-reverse`,wrapper:`me-2`},hidden:{base:`sr-only`,wrapper:`flex flex-col items-center gap-1 text-center`}},size:{xs:{fieldset:`gap-y-0.5`,legend:`text-xs`,base:`size-3`,item:`text-xs`,container:`h-4`,indicator:`after:size-1`},sm:{fieldset:`gap-y-0.5`,legend:`text-xs`,base:`size-3.5`,item:`text-xs`,container:`h-4`,indicator:`after:size-1`},md:{fieldset:`gap-y-1`,legend:`text-sm`,base:`size-4`,item:`text-sm`,container:`h-5`,indicator:`after:size-1.5`},lg:{fieldset:`gap-y-1`,legend:`text-sm`,base:`size-4.5`,item:`text-sm`,container:`h-5`,indicator:`after:size-1.5`},xl:{fieldset:`gap-y-1.5`,legend:`text-base`,base:`size-5`,item:`text-base`,container:`h-6`,indicator:`after:size-2`}},highlight:{true:``,false:``},disabled:{true:{item:`opacity-75`,base:`cursor-not-allowed`,label:`cursor-not-allowed`,description:`cursor-not-allowed`}},required:{true:{legend:`after:content-['*'] after:ms-0.5 after:text-error`}}},compoundVariants:[{indicator:`hidden`,class:{container:`h-auto`}},{variant:[`card`,`table`],highlight:!1,class:{item:`hover:not-has-disabled:not-has-focus-visible:not-has-data-[state=checked]:border-accented`}},{size:`xs`,indicator:`hidden`,class:{icon:`size-3`}},{size:`sm`,indicator:`hidden`,class:{icon:`size-3.5`}},{size:`md`,indicator:`hidden`,class:{icon:`size-4`}},{size:`lg`,indicator:`hidden`,class:{icon:`size-4.5`}},{size:`xl`,indicator:`hidden`,class:{icon:`size-5`}},{size:`xs`,variant:[`card`,`table`],class:{item:`p-2.5`}},{size:`sm`,variant:[`card`,`table`],class:{item:`p-3`}},{size:`md`,variant:[`card`,`table`],class:{item:`p-3.5`}},{size:`lg`,variant:[`card`,`table`],class:{item:`p-4`}},{size:`xl`,variant:[`card`,`table`],class:{item:`p-4.5`}},{orientation:`horizontal`,variant:`table`,class:{item:`first-of-type:rounded-s-lg last-of-type:rounded-e-lg`,fieldset:`gap-0 -space-x-px`}},{orientation:`vertical`,variant:`table`,class:{item:`first-of-type:rounded-t-lg last-of-type:rounded-b-lg`,fieldset:`gap-0 -space-y-px`}},{color:`primary`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-primary/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-primary`}},{color:`neutral`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-neutral/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-neutral`}},{color:`success`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-success/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-success`}},{color:`warning`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-warning/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-warning`}},{color:`error`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-error/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-error`}},{color:`info`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-info/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-info`}},{color:`neutral`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-inverted/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-inverted`}},{color:`primary`,variant:[`card`,`table`],class:{item:`outline-primary/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-primary has-focus-visible:z-[1]`}},{color:`neutral`,variant:[`card`,`table`],class:{item:`outline-neutral/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-neutral has-focus-visible:z-[1]`}},{color:`success`,variant:[`card`,`table`],class:{item:`outline-success/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-success has-focus-visible:z-[1]`}},{color:`warning`,variant:[`card`,`table`],class:{item:`outline-warning/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-warning has-focus-visible:z-[1]`}},{color:`error`,variant:[`card`,`table`],class:{item:`outline-error/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-error has-focus-visible:z-[1]`}},{color:`info`,variant:[`card`,`table`],class:{item:`outline-info/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-info has-focus-visible:z-[1]`}},{color:`neutral`,variant:[`card`,`table`],class:{item:`outline-inverted/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-inverted has-focus-visible:z-[1]`}},{color:`primary`,variant:`list`,indicator:`hidden`,class:{item:`outline-primary/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-primary has-focus-visible:z-[1]`}},{color:`neutral`,variant:`list`,indicator:`hidden`,class:{item:`outline-neutral/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-neutral has-focus-visible:z-[1]`}},{color:`success`,variant:`list`,indicator:`hidden`,class:{item:`outline-success/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-success has-focus-visible:z-[1]`}},{color:`warning`,variant:`list`,indicator:`hidden`,class:{item:`outline-warning/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-warning has-focus-visible:z-[1]`}},{color:`error`,variant:`list`,indicator:`hidden`,class:{item:`outline-error/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-error has-focus-visible:z-[1]`}},{color:`info`,variant:`list`,indicator:`hidden`,class:{item:`outline-info/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-info has-focus-visible:z-[1]`}},{color:`neutral`,variant:`list`,indicator:`hidden`,class:{item:`outline-inverted/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-inverted has-focus-visible:z-[1]`}},{color:`primary`,variant:`card`,class:{item:`has-data-[state=checked]:border-primary/50 has-data-[state=checked]:bg-primary/10`}},{color:`neutral`,variant:`card`,class:{item:`has-data-[state=checked]:border-neutral/50 has-data-[state=checked]:bg-neutral/10`}},{color:`success`,variant:`card`,class:{item:`has-data-[state=checked]:border-success/50 has-data-[state=checked]:bg-success/10`}},{color:`warning`,variant:`card`,class:{item:`has-data-[state=checked]:border-warning/50 has-data-[state=checked]:bg-warning/10`}},{color:`error`,variant:`card`,class:{item:`has-data-[state=checked]:border-error/50 has-data-[state=checked]:bg-error/10`}},{color:`info`,variant:`card`,class:{item:`has-data-[state=checked]:border-info/50 has-data-[state=checked]:bg-info/10`}},{color:`neutral`,variant:`card`,class:{item:`has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:bg-elevated`}},{color:`primary`,variant:`table`,class:{item:`has-data-[state=checked]:bg-primary/10 has-data-[state=checked]:border-primary/50 has-data-[state=checked]:z-[1]`}},{color:`neutral`,variant:`table`,class:{item:`has-data-[state=checked]:bg-neutral/10 has-data-[state=checked]:border-neutral/50 has-data-[state=checked]:z-[1]`}},{color:`success`,variant:`table`,class:{item:`has-data-[state=checked]:bg-success/10 has-data-[state=checked]:border-success/50 has-data-[state=checked]:z-[1]`}},{color:`warning`,variant:`table`,class:{item:`has-data-[state=checked]:bg-warning/10 has-data-[state=checked]:border-warning/50 has-data-[state=checked]:z-[1]`}},{color:`error`,variant:`table`,class:{item:`has-data-[state=checked]:bg-error/10 has-data-[state=checked]:border-error/50 has-data-[state=checked]:z-[1]`}},{color:`info`,variant:`table`,class:{item:`has-data-[state=checked]:bg-info/10 has-data-[state=checked]:border-info/50 has-data-[state=checked]:z-[1]`}},{color:`neutral`,variant:`table`,class:{item:`has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]`}},{variant:[`card`,`table`],disabled:!0,class:{item:`cursor-not-allowed`}},{color:`primary`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-primary not-has-disabled:has-data-[state=checked]:border-primary`}},{color:`neutral`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-neutral not-has-disabled:has-data-[state=checked]:border-neutral`}},{color:`success`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-success not-has-disabled:has-data-[state=checked]:border-success`}},{color:`warning`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-warning not-has-disabled:has-data-[state=checked]:border-warning`}},{color:`error`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-error not-has-disabled:has-data-[state=checked]:border-error`}},{color:`info`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-info not-has-disabled:has-data-[state=checked]:border-info`}},{color:`neutral`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-inverted not-has-disabled:has-data-[state=checked]:border-inverted`}},{color:`primary`,highlight:!0,class:{base:`ring-primary`}},{color:`neutral`,highlight:!0,class:{base:`ring-neutral`}},{color:`success`,highlight:!0,class:{base:`ring-success`}},{color:`warning`,highlight:!0,class:{base:`ring-warning`}},{color:`error`,highlight:!0,class:{base:`ring-error`}},{color:`info`,highlight:!0,class:{base:`ring-info`}},{color:`neutral`,highlight:!0,class:{base:`ring-inverted`}}],defaultVariants:{highlight:!1,size:`md`,color:`primary`,variant:`list`,indicator:`start`}},or={__name:`URadioGroup`,props:{as:{type:null,required:!1},legend:{type:String,required:!1},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},size:{type:null,required:!1},variant:{type:null,required:!1},color:{type:null,required:!1},highlight:{type:Boolean,required:!1},orientation:{type:null,required:!1,default:`vertical`},indicator:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},disabled:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`change`,`update:modelValue`],setup(n,{emit:s}){let p=n,m=s,b=g(),x=ye(`radioGroup`,p),C=Ze(),T=Ge(Te(x,`as`,`loop`,`required`),m),{emitFormChange:D,emitFormInput:O,color:k,name:A,size:j,highlight:M,id:N,disabled:P,ariaAttrs:ee}=Ee(p,{bind:!1}),F=N.value??a(),te=e(()=>k.value??x.color),ne=e(()=>M.value??x.highlight),re=e(()=>j.value??x.size),I=e(()=>P.value??x.disabled),L=e(()=>Me({extend:ar,...C.ui?.radioGroup||{}})({size:re.value,color:te.value,highlight:ne.value,disabled:I.value,required:x.required,orientation:x.orientation,variant:x.variant,indicator:x.indicator}));function ie(e){if(e===null)return{id:`${F}:null`,value:void 0,label:void 0};if(typeof e==`string`||typeof e==`number`||typeof e==`bigint`)return{id:`${F}:${e}`,value:String(e),label:String(e)};let t=We(e,x.valueKey),n=We(e,x.labelKey),r=We(e,x.descriptionKey);return{...e,value:t,label:n,description:r,id:`${F}:${t}`}}let ae=e(()=>x.items?x.items.map(ie):[]);function R(e){return x.indicator===`hidden`?e.icon:void 0}function z(e){let t=new Event(`change`,{target:{value:e}});m(`change`,t),D(),O()}return(e,n)=>(l(),o(i(er),w({id:i(F)},i(T),{"model-value":i(x).modelValue,"default-value":i(x).defaultValue,orientation:i(x).orientation,name:i(A),disabled:I.value,"data-slot":`root`,class:L.value.root({class:[i(x).ui?.root,i(x).class]}),"onUpdate:modelValue":z}),{default:E(()=>[S(`fieldset`,w({"data-slot":`fieldset`,class:L.value.fieldset({class:i(x).ui?.fieldset})},i(ee)),[i(x).legend||b.legend?(l(),u(`legend`,{key:0,"data-slot":`legend`,class:v(L.value.legend({class:i(x).ui?.legend}))},[r(e.$slots,`legend`,{},()=>[t(y(i(x).legend),1)])],2)):c(``,!0),(l(!0),u(_,null,d(ae.value,n=>(l(),o(f(!i(x).variant||i(x).variant===`list`?`div`:i(ln)),{key:n.value,"data-slot":`item`,class:v(L.value.item({class:[i(x).ui?.item,n.ui?.item,n.class],disabled:n.disabled||I.value}))},{default:E(()=>[S(`div`,{"data-slot":`container`,class:v(L.value.container({class:[i(x).ui?.container,n.ui?.container]}))},[h(i(rr),{id:n.id,value:n.value,disabled:n.disabled||I.value,"data-slot":`base`,class:v(L.value.base({class:[i(x).ui?.base,n.ui?.base],disabled:n.disabled||I.value}))},{default:E(()=>[h(i(ir),{"data-slot":`indicator`,class:v(L.value.indicator({class:[i(x).ui?.indicator,n.ui?.indicator]}))},null,8,[`class`])]),_:2},1032,[`id`,`value`,`disabled`,`class`])],2),R(n)||n.label||b.label||n.description||b.description?(l(),u(`div`,{key:0,"data-slot":`wrapper`,class:v(L.value.wrapper({class:[i(x).ui?.wrapper,n.ui?.wrapper]}))},[R(n)?(l(),o(H,{key:0,name:R(n),"data-slot":`icon`,class:v(L.value.icon({class:[i(x).ui?.icon,n.ui?.icon]}))},null,8,[`name`,`class`])):c(``,!0),n.label||b.label?(l(),o(f(!i(x).variant||i(x).variant===`list`?i(ln):`p`),{key:1,for:n.id,"data-slot":`label`,class:v(L.value.label({class:[i(x).ui?.label,n.ui?.label],disabled:n.disabled||I.value}))},{default:E(()=>[r(e.$slots,`label`,{item:n,modelValue:i(x).modelValue},()=>[t(y(n.label),1)])]),_:2},1032,[`for`,`class`])):c(``,!0),n.description||b.description?(l(),u(`p`,{key:2,"data-slot":`description`,class:v(L.value.description({class:[i(x).ui?.description,n.ui?.description],disabled:n.disabled||I.value}))},[r(e.$slots,`description`,{item:n,modelValue:i(x).modelValue},()=>[t(y(n.description),1)])],2)):c(``,!0)],2)):c(``,!0)]),_:2},1032,[`class`]))),128))],16)]),_:3},16,[`id`,`model-value`,`default-value`,`orientation`,`name`,`disabled`,`class`]))}},sr={class:`theme-section-title bar-pref-title`},cr={key:0,class:`settings-toggle`},lr={class:`bar-pref-head`},ur={class:`machine-group-list`},dr=[`onClick`],fr={class:`machine-group-summary`},pr={class:`machine-group-name`},mr={class:`muted settings-hint`},hr={key:2,class:`bar-pref-head`},gr=[`data-bar-id`],_r=[`aria-label`,`title`,`onPointerdown`,`onKeydown`],vr={class:`bar-pref-label`},yr=[`checked`,`onChange`],br=[`title`],xr={key:2},Sr={key:4,class:`machine-group-actions`},Cr={class:`muted settings-hint`},wr=Object.assign(m({__name:`MachineBarSettings`,setup(n){p(un);let r=fn,a=s(null),f=s([]),m=e=>vt(bt.value.find(t=>(t.baseKey??t.key)===e)?.key??e)||e||Ft.value||`herdr`;function g(e){a.value=e?{...e,machines:[...e.machines]}:{id:`*group:${crypto.randomUUID()}`,name:``,machines:[]},f.value=[...new Set([...a.value.machines,...nn.value.length?nn.value:[``]])]}let w=qe(),k=s(null);T(()=>[w.query.group,Q.value.length],([e])=>{let t=typeof e==`string`?Q.value.find(t=>t.id===e):void 0;if(!t)return;g(t);let{group:n,...r}=w.query;Ye({path:w.path,query:r},{replace:!0}),x(()=>k.value?.scrollIntoView?.({block:`start`}))},{immediate:!0});function A(){let e=a.value;if(!e?.name.trim())return;let t={...e,name:e.name.trim(),machines:f.value.filter(t=>e.machines.includes(t))};Q.value=Q.value.some(e=>e.id===t.id)?Q.value.map(e=>e.id===t.id?t:e):[...Q.value,t],a.value=null}function j(){let e=a.value.id;Q.value=Q.value.filter(t=>t.id!==e),tn.value=tn.value.filter(t=>t!==e),en.value=en.value.filter(t=>t!==e),cn.value===e&&(cn.value=`*`),a.value=null}let N=s(null),P=s(null),ee={online:`online`,connecting:`reconnecting…`,offline:`offline`};function F(e){let t=bt.value.filter(t=>(t.baseKey??t.key)===e);return t.length?t.some(e=>e.status===`online`)?`online`:t.some(e=>e.status===`connecting`)?`connecting`:`offline`:e===``&&K.value.ok?`online`:`offline`}let te=e(()=>a.value?f.value.map(e=>({id:e,label:m(e),shown:a.value.machines.includes(e),status:F(e)})):an.value.map(e=>({...e,label:e.id===`*`?X(`All`):Q.value.find(t=>t.id===e.id)?.name||m(e.id),status:e.id===`*`||Q.value.some(t=>t.id===e.id)?null:F(e.id)}))),ne=()=>te.value.map(e=>e.id),re=e(()=>!tn.value.length&&!en.value.length);function I(e,t){if(a.value){a.value.machines=t?[...a.value.machines,e]:a.value.machines.filter(t=>t!==e);return}en.value=Zt(en.value,e,t)}function L(e,t){let n=Qt(ne(),e,t);a.value?f.value=n:n.join(`
2
- `)!==ne().join(`
3
- `)&&(tn.value=n)}function ie(e,t){let n=ne().indexOf(e);if(t.key===`ArrowUp`&&n>0)L(e,n-1);else if(t.key===`ArrowDown`&&n<ne().length-1)L(e,n+2);else return;t.preventDefault(),J(),x(()=>N.value?.querySelector(`[data-bar-id="${CSS.escape(e)}"] .bar-pref-grip`)?.focus())}function ae(e){let t=P.value;if(t){if(e===t.from)return`translateY(${t.dy}px)`;if(t.from<e&&e<=t.to)return`translateY(${-t.h}px)`;if(t.to<=e&&e<t.from)return`translateY(${t.h}px)`}}function R(e){P.value&&e.preventDefault()}let z=null;D(()=>z?.());function oe(e,t){if(P.value||!t.isPrimary||t.pointerType===`mouse`&&t.button!==0)return;t.preventDefault();let n=[...N.value?.querySelectorAll(`[data-bar-id]`)||[]],r=n.findIndex(t=>t.dataset.barId===e);if(r<0)return;let i=n.map(e=>{let t=e.getBoundingClientRect();return t.top+t.height/2}),a=n[r].getBoundingClientRect().height,o=t.clientY;P.value={id:e,from:r,dy:0,to:r,h:a},J();let s=e=>{if(e.pointerId!==t.pointerId||!P.value)return;let n=e.clientY-o,a=i[r]+n,s=i.filter((e,t)=>t!==r&&e<a).length;s!==P.value.to&&J(),P.value={...P.value,dy:n,to:s}},c=n=>r=>{if(r.pointerId!==t.pointerId)return;let i=P.value;z?.(),n&&i&&i.to!==i.from&&L(e,i.to>i.from?i.to+1:i.to)};z=()=>{z=null,P.value=null,window.removeEventListener(`pointermove`,s),window.removeEventListener(`pointerup`,l),window.removeEventListener(`pointercancel`,u),document.removeEventListener(`touchmove`,R)};let l=c(!0),u=c(!1);window.addEventListener(`pointermove`,s),window.addEventListener(`pointerup`,l),window.addEventListener(`pointercancel`,u),document.addEventListener(`touchmove`,R,{passive:!1})}return(e,n)=>{let s=dn,f=H,p=ze;return l(),u(`div`,{ref_key:`root`,ref:k,class:`machine-bar-settings`},[S(`h4`,sr,y((`tl`in e?e.tl:i(Y))(`Machine bar`,`Barre des machines`)),1),i(a)?c(``,!0):(l(),u(`label`,cr,[S(`span`,null,[S(`b`,null,y((`tl`in e?e.tl:i(Y))(`Show the machine bar`,`Afficher la barre des machines`)),1),S(`small`,null,y((`tl`in e?e.tl:i(Y))(`At the top of the home screen: “All”, then each machine. A tap shows that machine only.`,`En haut de l’accueil : « Toutes », puis chaque machine. Un toucher n’affiche que cette machine.`)),1)]),h(s,{modelValue:i(r),"onUpdate:modelValue":n[0]||=e=>O(r)?r.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])),i(r)?(l(),u(_,{key:1},[i(a)?(l(),u(_,{key:1},[h(p,{color:`neutral`,variant:`ghost`,icon:`i-lucide-arrow-left`,onClick:n[2]||=e=>a.value=null},{default:E(()=>[t(y((`t`in e?e.t:i(X))(`Cancel`)),1)]),_:1}),S(`label`,pr,[t(y((`tl`in e?e.tl:i(Y))(`Group name`,`Nom du groupe`)),1),C(S(`input`,{"onUpdate:modelValue":n[3]||=e=>i(a).name=e,type:`text`,maxlength:`100`},null,512),[[M,i(a).name]])]),S(`p`,mr,y((`tl`in e?e.tl:i(Y))(`Check the machines to include. Drag the handles to set their order.`,`Cochez les machines à inclure. Glissez les poignées pour définir leur ordre.`)),1)],64)):(l(),u(_,{key:0},[S(`h4`,lr,y((`tl`in e?e.tl:i(Y))(`Groups`,`Groupes`)),1),S(`ul`,ur,[(l(!0),u(_,null,d(`machineGroups`in e?e.machineGroups:i(Q),t=>(l(),u(`li`,{key:t.id},[S(`button`,{type:`button`,onClick:e=>g(t)},[h(f,{name:`i-lucide-group`}),S(`span`,fr,[S(`b`,null,y(t.name),1),S(`small`,null,y(t.machines.map(m).join(` · `)||(`tl`in e?e.tl:i(Y))(`No machines`,`Aucune machine`)),1)]),h(f,{name:`i-lucide-chevron-right`})],8,dr)]))),128))]),h(p,{class:`new-machine-group`,color:`neutral`,variant:`outline`,icon:`i-lucide-plus`,onClick:n[1]||=e=>g()},{default:E(()=>[t(y((`tl`in e?e.tl:i(Y))(`New group`,`Nouveau groupe`)),1)]),_:1})],64)),i(a)?c(``,!0):(l(),u(`p`,hr,y((`tl`in e?e.tl:i(Y))(`Order and display`,`Ordre et affichage`)),1)),S(`ul`,{ref_key:`list`,ref:N,class:v([`bar-pref-list`,{dragging:i(P)}])},[(l(!0),u(_,null,d(i(te),(t,n)=>(l(),u(`li`,{key:t.id,class:v([`bar-pref-row`,{moving:i(P)?.id===t.id,off:!t.shown}]),style:b({transform:ae(n)}),"data-bar-id":t.id},[S(`button`,{type:`button`,class:`bar-pref-grip`,"aria-label":(`tl`in e?e.tl:i(Y))(`Move ${t.label} — up and down arrows`,`Déplacer ${t.label} — flèches haut et bas`),title:(`t`in e?e.t:i(X))(`Drag to reorder`),onPointerdown:e=>oe(t.id,e),onKeydown:e=>ie(t.id,e)},`⠿`,40,_r),S(`label`,vr,[S(`input`,{class:`agent-pref-check`,type:`checkbox`,checked:t.shown,onChange:e=>I(t.id,e.target.checked)},null,40,yr),!i(a)&&(`machineGroups`in e?e.machineGroups:i(Q)).some(e=>e.id===t.id)?(l(),o(f,{key:0,name:`i-lucide-group`,"aria-hidden":`true`})):c(``,!0),t.status?(l(),u(`i`,{key:1,class:v([`bar-pref-state`,t.status]),title:(`t`in e?e.t:i(X))(ee[t.status]),"aria-hidden":`true`},null,10,br)):c(``,!0),S(`span`,null,y(t.label),1),t.status&&t.status!==`online`?(l(),u(`small`,xr,y((`t`in e?e.t:i(X))(ee[t.status])),1)):c(``,!0)])],14,gr))),128))],2),i(a)?c(``,!0):(l(),o(p,{key:3,color:`neutral`,variant:`outline`,icon:`i-lucide-rotate-ccw`,class:`bar-pref-reset`,disabled:i(re),onClick:`resetMachineBar`in e?e.resetMachineBar:i(pn)},{default:E(()=>[t(y((`machineGroups`in e?e.machineGroups:i(Q)).length?(`tl`in e?e.tl:i(Y))(`Reset: All + groups + machines`,`Rétablir : Toutes + groupes + machines`):(`tl`in e?e.tl:i(Y))(`Reset: All + every machine`,`Rétablir : Toutes + toutes les machines`)),1)]),_:1},8,[`disabled`,`onClick`])),i(a)?(l(),u(`div`,Sr,[(`machineGroups`in e?e.machineGroups:i(Q)).some(e=>e.id===i(a).id)?(l(),o(p,{key:0,class:`delete-machine-group`,color:`error`,variant:`outline`,onClick:j},{default:E(()=>[t(y((`t`in e?e.t:i(X))(`Delete`)),1)]),_:1})):c(``,!0),h(p,{class:`save-machine-group`,color:`neutral`,disabled:!i(a).name.trim(),onClick:A},{default:E(()=>[t(y((`t`in e?e.t:i(X))(`Save`)),1)]),_:1},8,[`disabled`])])):c(``,!0)],64)):c(``,!0),S(`p`,Cr,y((`t`in e?e.t:i(X))(`Choices follow you on every device.`)),1)],512)}}}),{__name:`MachineBarSettings`}),Tr=`J’ai trouvé la cause : le cache n’était jamais invalidé après une mise à jour. Le correctif tient en trois points :
4
-
5
- - vider l’entrée à chaque écriture ;
6
- - ajouter un test de régression ;
7
- - garder la durée de vie à 5 minutes.
8
-
9
- \`\`\`ts
10
- cache.delete(key)
11
- await save(item)
12
- \`\`\`
13
-
14
- Tous les tests passent.`,Er=`Found the cause: the cache was never invalidated after an update. The fix has three parts:
15
-
16
- - clear the entry on every write;
17
- - add a regression test;
18
- - keep the time to live at 5 minutes.
19
-
20
- \`\`\`ts
21
- cache.delete(key)
22
- await save(item)
23
- \`\`\`
24
-
25
- All tests pass.`,Dr=e=>e===`fr`?Tr:Er,Or=(e,t)=>e===`off`?null:t,kr={class:`typing-preview`},Ar=[`aria-label`,`disabled`],jr=Object.assign(m({__name:`TypingPreview`,setup(e){let t=An(Dr(`en`)),n=s(null),r=s(null),a=s(``),o=()=>{n.value=Or(Rt.value,Date.now())};return p(()=>{r.value&&(a.value=`${r.value.offsetHeight}px`),o()}),T([Rt,ht],o),(e,s)=>{let c=H,d=Le,f=jn;return l(),u(`figure`,kr,[S(`figcaption`,null,[S(`span`,null,y((`t`in e?e.t:i(X))(`Preview`)),1),h(d,{text:(`t`in e?e.t:i(X))(`Replay`)},{default:E(()=>[S(`button`,{type:`button`,class:`typing-replay`,"aria-label":(`t`in e?e.t:i(X))(`Replay`),disabled:!(`typewriterActive`in e?e.typewriterActive:i(at)),onClick:o},[h(c,{name:`i-lucide-rotate-ccw`})],8,Ar)]),_:1},8,[`text`])]),S(`div`,{ref_key:`box`,ref:r,class:`typing-sample md`,style:b({minHeight:i(a)})},[h(f,{html:i(t),typing:i(n),onDone:s[0]||=e=>n.value=null},null,8,[`html`,`typing`])],4)])}}}),{__name:`TypingPreview`}),Mr=[`data-mode`,`data-playing`],Nr=[`aria-label`,`disabled`],Pr={class:`qt-conv`},Fr={class:`qt-agent`},Ir={class:`qt-tag one`},Lr={class:`qt-tag two`},Rr={class:`qt-sent`},zr={class:`qt-sent-q`},Br={class:`qt-sent-q`},Vr={class:`qt-chips`},Hr={class:`qt-chip one`},Ur={class:`qt-chip two`},Wr={class:`qt-field`},Gr={class:`qt-ph`},Kr={class:`qt-tok one`},qr={class:`qt-ans one`},Jr={class:`qt-tok two`},Yr=Object.assign(m({__name:`QuoteTokensPreview`,props:{mode:{}},setup(e){let n=e,r=s(0),a=s(!1),o=()=>{Pt.value||(r.value++,a.value=!0)};return p(o),T(()=>n.mode,o),(n,s)=>{let c=H,d=Le;return l(),u(`figure`,{class:`qt-preview`,"data-mode":e.mode,"data-playing":i(a)},[S(`figcaption`,null,[S(`span`,null,y((`t`in n?n.t:i(X))(`Preview`)),1),h(d,{text:(`t`in n?n.t:i(X))(`Replay`)},{default:E(()=>[S(`button`,{type:`button`,class:`typing-replay`,"aria-label":(`t`in n?n.t:i(X))(`Replay`),disabled:`reducedMotion`in n?n.reducedMotion:i(Pt),onClick:o},[h(c,{name:`i-lucide-rotate-ccw`})],8,Nr)]),_:1},8,[`text`])]),(l(),u(`div`,{key:i(r),class:`qt-stage`,"aria-hidden":`true`,onAnimationend:s[0]||=e=>a.value=!1},[S(`div`,Pr,[S(`div`,Fr,[S(`p`,null,[t(y((`tl`in n?n.tl:i(Y))(`Tea or coffee?`,`Thé ou café ?`))+` `,1),S(`span`,Ir,`↳ `+y((`t`in n?n.t:i(X))(`Reply`)),1)]),S(`p`,null,[t(y((`tl`in n?n.tl:i(Y))(`And your favorite series?`,`Et ta série préférée ?`))+` `,1),S(`span`,Lr,`↳ `+y((`t`in n?n.t:i(X))(`Reply`)),1)])]),S(`div`,Rr,[S(`span`,zr,[s[1]||=S(`b`,null,`↳ 09:12`,-1),t(y((`tl`in n?n.tl:i(Y))(`Tea or coffee?`,`Thé ou café ?`)),1)]),S(`span`,null,y((`tl`in n?n.tl:i(Y))(`Coffee.`,`Café.`)),1),S(`span`,Br,[s[2]||=S(`b`,null,`↳ 09:12`,-1),t(y((`tl`in n?n.tl:i(Y))(`And your favorite series?`,`Et ta série préférée ?`)),1)]),s[3]||=S(`span`,null,`Lost !`,-1)])]),S(`div`,Vr,[S(`span`,Hr,[t(y((`tl`in n?n.tl:i(Y))(`Tea or coffee?`,`Thé ou café ?`)),1),s[4]||=S(`i`,null,`✕`,-1)]),S(`span`,Ur,[t(y((`tl`in n?n.tl:i(Y))(`And your favorite series?`,`Et ta série préférée ?`)),1),s[5]||=S(`i`,null,`✕`,-1)])]),S(`div`,Wr,[S(`span`,Gr,y((`tl`in n?n.tl:i(Y))(`Message to Claude…`,`Message à Claude…`)),1),S(`span`,Kr,[s[6]||=S(`b`,null,`↳`,-1),s[7]||=S(`em`,null,`Quote point 09:12 :`,-1),S(`span`,null,y((`tl`in n?n.tl:i(Y))(`Tea or coffee?`,`Thé ou café ?`)),1),s[8]||=S(`em`,null,`—`,-1)]),S(`span`,qr,y((`tl`in n?n.tl:i(Y))(`Coffee.`,`Café.`)),1),S(`span`,Jr,[s[9]||=S(`b`,null,`↳`,-1),s[10]||=S(`em`,null,`Quote point 09:12 :`,-1),S(`span`,null,y((`tl`in n?n.tl:i(Y))(`And your favorite series?`,`Et ta série préférée ?`)),1),s[11]||=S(`em`,null,`—`,-1)]),s[12]||=S(`span`,{class:`qt-ans two`},`Lost !`,-1),s[13]||=S(`span`,{class:`qt-send`},`↑`,-1)])],32))],8,Mr)}}}),{__name:`QuoteTokensPreview`}),Xr={class:`settings-group phone-key-order`},Zr={class:`muted settings-lead`},Qr={class:`bar-pref-head`},$r={class:`key-order-preview`,"aria-hidden":`true`},ei=[`data-key`],ti={class:`bar-pref-head`},ni=[`aria-label`],ri=[`data-key-row`],ii=[`aria-label`,`title`,`onPointerdown`,`onKeydown`],ai={class:`key-order-label`},oi={class:`key-order-name`},si=[`disabled`,`aria-label`,`onClick`],ci=[`disabled`,`aria-label`,`onClick`],li={class:`key-order-announcement`,"aria-live":`polite`},ui={class:`muted settings-hint`},di=Object.assign(m({__name:`PhoneKeyOrderSettings`,setup(n){let r=e(()=>G.value.map(e=>Nn[e])),a=e(()=>It(G.value)),c=s(``),f=s(null);function p(e,t){let n=ft(G.value,e,t);if(n.join(`
26
- `)===G.value.join(`
27
- `))return;G.value=n,J();let r=n.indexOf(e)+1;c.value=Y(`${$(Nn[e])}: position ${r} of ${n.length}`,`${$(Nn[e])} : position ${r} sur ${n.length}`)}function m(e,t){x(()=>{let n=f.value?.querySelector(`[data-key-row="${CSS.escape(e)}"]`),r=n?.querySelector(t);r&&!r.disabled?r.focus():n?.querySelector(`.key-order-step:not(:disabled)`)?.focus()})}function g(e,t){p(e,G.value.indexOf(e)+t),m(e,t<0?`.key-order-up`:`.key-order-down`)}function C(e,t){let n=G.value.indexOf(e);if(t.key===`ArrowUp`&&n>0)p(e,n-1);else if(t.key===`ArrowDown`&&n<G.value.length-1)p(e,n+1);else return;t.preventDefault(),m(e,`.bar-pref-grip`)}function w(){G.value=[...et],c.value=Y(`Default order restored`,`Ordre par défaut rétabli`)}let T=s(null);function O(e){let t=T.value;if(t){if(e===t.from)return`translateY(${t.dy}px)`;if(t.from<e&&e<=t.to)return`translateY(${-t.h}px)`;if(t.to<=e&&e<t.from)return`translateY(${t.h}px)`}}function k(e){T.value&&e.preventDefault()}let A=null;D(()=>A?.());function j(e,t){if(T.value||!t.isPrimary||t.pointerType===`mouse`&&t.button!==0)return;t.preventDefault();let n=[...f.value?.querySelectorAll(`[data-key-row]`)||[]],r=n.findIndex(t=>t.dataset.keyRow===e);if(r<0)return;let i=n.map(e=>{let t=e.getBoundingClientRect();return t.top+t.height/2}),a=n[r].getBoundingClientRect().height,o=t.clientY;T.value={id:e,from:r,dy:0,to:r,h:a},J();let s=e=>{if(e.pointerId!==t.pointerId||!T.value)return;let n=e.clientY-o,a=i[r]+n,s=i.filter((e,t)=>t!==r&&e<a).length;s!==T.value.to&&J(),T.value={...T.value,dy:n,to:s}},c=n=>r=>{if(r.pointerId!==t.pointerId)return;let i=T.value;A?.(),n&&i&&i.to!==i.from&&p(e,i.to)},l=c(!0),u=c(!1);A=()=>{A=null,T.value=null,window.removeEventListener(`pointermove`,s),window.removeEventListener(`pointerup`,l),window.removeEventListener(`pointercancel`,u),document.removeEventListener(`touchmove`,k)},window.addEventListener(`pointermove`,s),window.addEventListener(`pointerup`,l),window.addEventListener(`pointercancel`,u),document.addEventListener(`touchmove`,k,{passive:!1})}return(e,n)=>{let s=H,p=ze;return l(),u(`div`,Xr,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`Phone key bar`,`Barre de touches du téléphone`)),1),S(`p`,Zr,y((`tl`in e?e.tl:i(Y))(`One row that scrolls sideways, in the Conversation and the Terminal: only the first keys show at once. Put the ones you use most first.`,`Une seule rangée qui défile sur le côté, dans la Conversation et le Terminal : seules les premières touches sont visibles d’emblée. Mets en tête celles dont tu te sers le plus.`)),1),S(`p`,Qr,y((`tl`in e?e.tl:i(Y))(`Preview`,`Aperçu`)),1),S(`div`,$r,[(l(!0),u(_,null,d(i(r),e=>(l(),u(`span`,{key:e.id,class:v([`key-order-cap`,{danger:e.danger}]),"data-key":e.id},[e.icon?(l(),o(s,{key:0,name:e.icon,mode:`svg`},null,8,[`name`])):(l(),u(_,{key:1},[t(y(e.cap()),1)],64))],10,ei))),128))]),S(`p`,ti,y((`tl`in e?e.tl:i(Y))(`Order`,`Ordre`)),1),S(`ul`,{ref_key:`list`,ref:f,class:v([`bar-pref-list key-order-list`,{dragging:i(T)}]),"aria-label":(`tl`in e?e.tl:i(Y))(`Order of the phone keys`,`Ordre des touches du téléphone`)},[(l(!0),u(_,null,d(i(r),(n,a)=>(l(),u(`li`,{key:n.id,class:v([`bar-pref-row`,{moving:i(T)?.id===n.id}]),style:b({transform:O(a)}),"data-key-row":n.id},[S(`button`,{type:`button`,class:`bar-pref-grip`,"aria-label":(`tl`in e?e.tl:i(Y))(`Move ${i($)(n)} — up and down arrows`,`Déplacer ${i($)(n)} — flèches haut et bas`),title:(`t`in e?e.t:i(X))(`Drag to reorder`),onPointerdown:e=>j(n.id,e),onKeydown:e=>C(n.id,e)},`⠿`,40,ii),S(`span`,ai,[S(`span`,{class:v([`key-order-cap`,{danger:n.danger}]),"aria-hidden":`true`},[n.icon?(l(),o(s,{key:0,name:n.icon,mode:`svg`},null,8,[`name`])):(l(),u(_,{key:1},[t(y(n.cap()),1)],64))],2),S(`span`,oi,y(i($)(n)),1)]),S(`button`,{type:`button`,class:`key-order-step key-order-up`,disabled:a===0,"aria-label":(`tl`in e?e.tl:i(Y))(`Move ${i($)(n)} up`,`Monter ${i($)(n)}`),onClick:e=>g(n.id,-1)},[h(s,{name:`i-lucide-chevron-up`})],8,si),S(`button`,{type:`button`,class:`key-order-step key-order-down`,disabled:a===i(r).length-1,"aria-label":(`tl`in e?e.tl:i(Y))(`Move ${i($)(n)} down`,`Descendre ${i($)(n)}`),onClick:e=>g(n.id,1)},[h(s,{name:`i-lucide-chevron-down`})],8,ci)],14,ri))),128))],10,ni),S(`p`,li,y(i(c)),1),h(p,{color:`neutral`,variant:`outline`,icon:`i-lucide-rotate-ccw`,class:`bar-pref-reset`,disabled:i(a),onClick:w},{default:E(()=>[t(y((`tl`in e?e.tl:i(Y))(`Reset to default order`,`Rétablir l’ordre par défaut`)),1)]),_:1},8,[`disabled`]),S(`p`,ui,y((`tl`in e?e.tl:i(Y))(`Saved on this device.`,`Enregistré sur cet appareil.`)),1)])}}}),{__name:`PhoneKeyOrderSettings`}),fi={class:`settings-group`},pi={class:`settings-card wt-card`},mi={key:0,class:`muted`},hi={key:1,class:`muted`},gi=[`aria-label`],_i=[`id`,`aria-selected`,`aria-controls`,`tabindex`,`onClick`,`onKeydown`],vi=[`id`,`aria-labelledby`],yi=[`aria-expanded`,`aria-controls`,`onClick`],bi={class:`wt-count`},xi=[`id`],Si={class:`wt-main`},Ci={class:`wt-meta`},wi={class:`wt-path`},Ti=[`disabled`,`aria-label`,`onClick`],Ei={key:0,class:`spinner`},Di={class:`muted`},Oi=Object.assign(m({__name:`WorktreesSection`,setup(n){p(Rn);let r=e(()=>[...new Set((Mn.value||[]).map(e=>e.machine))]),f=s(null),m=e(()=>f.value!==null&&r.value.includes(f.value)?f.value:r.value[0]),g=e(()=>{let e=new Map;for(let t of Mn.value||[])t.machine===m.value&&(e.has(t.repoRoot)||e.set(t.repoRoot,{root:t.repoRoot,name:t.repo,items:[]}),e.get(t.repoRoot).items.push(t));return[...e.values()]}),b=s(new Set),x=e=>JSON.stringify([m.value,e]);function w(e){let t=x(e);b.value.has(t)?b.value.delete(t):b.value.add(t)}let T=a(),E=e=>`${T}-machine-${r.value.indexOf(e)}`;function D(e,t){if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let n=r.value.length,i=e.key===`Home`?0:e.key===`End`?n-1:(t+(e.key===`ArrowRight`?1:-1)+n)%n;f.value=r.value[i],document.getElementById(E(f.value))?.focus()}let O=e(()=>!!(K.value.machines&&K.value.machines.length>1)),k=e=>(K.value.machines||[]).find(t=>t.key===e)?.label||e||Ft.value;function A(e){return e.prunable?X(`folder missing`):e.workspace?e.agents?Y(`open · ${e.agents} agent${e.agents>1?`s`:``}`,`ouvert · ${e.agents} agent${e.agents>1?`s`:``}`):Y(`open`,`ouvert`):X(`closed`)}let M=s(null);async function N(e){M.value=e.path,await Pn(e),M.value=null}return(e,n)=>{let a=H;return l(),u(`div`,fi,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Worktrees`)),1),S(`div`,pi,[(`worktrees`in e?e.worktrees:i(Mn))===null?(l(),u(`p`,mi,[...n[0]||=[S(`span`,{class:`spinner`},null,-1)]])):(`worktrees`in e?e.worktrees:i(Mn)).length?(l(),u(_,{key:2},[S(`div`,{class:`wt-machines`,role:`tablist`,"aria-label":(`t`in e?e.t:i(X))(`Worktrees`)},[(l(!0),u(_,null,d(i(r),(e,t)=>(l(),u(`button`,{id:E(e),key:e,type:`button`,role:`tab`,"aria-selected":i(m)===e,"aria-controls":`${i(T)}-panel`,tabindex:i(m)===e?0:-1,onClick:t=>f.value=e,onKeydown:e=>D(e,t)},y(k(e)),41,_i))),128))],8,gi),S(`div`,{id:`${i(T)}-panel`,role:`tabpanel`,tabindex:`0`,"aria-labelledby":E(i(m))},[(l(!0),u(_,null,d(i(g),(r,s)=>(l(),u(`section`,{key:x(r.root),class:`wt-project`},[S(`button`,{type:`button`,class:`wt-project-heading`,"aria-expanded":!i(b).has(x(r.root)),"aria-controls":`${i(T)}-project-${s}`,onClick:e=>w(r.root)},[h(a,{name:i(b).has(x(r.root))?`i-lucide-chevron-right`:`i-lucide-chevron-down`},null,8,[`name`]),S(`span`,null,y(r.name),1),S(`span`,bi,y(r.items.length),1)],8,yi),C(S(`ul`,{id:`${i(T)}-project-${s}`,class:`wt-list`},[(l(!0),u(_,null,d(r.items,r=>(l(),u(`li`,{key:`${r.machine}|${r.path}`,class:v({open:r.workspace,gone:r.prunable})},[S(`div`,Si,[S(`b`,null,[h(a,{name:`i-lucide-git-branch`}),t(y((`worktreeName`in e?e.worktreeName:i(In))(r)),1)]),S(`span`,Ci,[t(y(r.repo),1),i(O)?(l(),u(_,{key:0},[t(` · `+y(k(r.machine)),1)],64)):c(``,!0),n[1]||=t(` · `,-1),S(`i`,null,y(A(r)),1)]),S(`span`,wi,y((`shortPath`in e?e.shortPath:i(Ut))(r.path)),1)]),S(`button`,{type:`button`,class:`wt-del`,disabled:i(M)===r.path,"aria-label":(`t`in e?e.t:i(X))(`Delete`),onClick:e=>N(r)},[i(M)===r.path?(l(),u(`span`,Ei)):(l(),o(a,{key:1,name:`i-lucide-trash-2`}))],8,Ti)],2))),128))],8,xi),[[j,!i(b).has(x(r.root))]])]))),128))],8,vi)],64)):(l(),u(`p`,hi,y((`t`in e?e.t:i(X))(`No worktrees.`)),1)),S(`p`,Di,y((`t`in e?e.t:i(X))(`Deleting a worktree removes its folder; the Git branch is kept.`)),1)])])}}}),{__name:`WorktreesSection`}),ki={class:`notification-level`},Ai=[`value`,`aria-label`],ji={key:0,value:`custom`,disabled:``},Mi=[`value`],Ni={class:`notification-level-hint`},Pi=[`open`],Fi={class:`notification-events`},Ii=[`checked`,`onChange`],Li=Object.assign(mn(m({__name:`NotificationLevel`,props:{events:{},label:{},muted:{type:Boolean}},emits:[`change`],setup(n,{emit:r}){let a=n,o=r,s=e(()=>a.muted?`muted`:Ke(a.events));function f(e){o(`change`,[...Ne[e]])}function p(e,t){o(`change`,De.filter(n=>n===e?t:a.events.includes(n)))}return(e,r)=>{let a=H;return l(),u(`div`,ki,[S(`select`,{value:i(s),"aria-label":n.label,onChange:r[0]||=e=>f(e.target.value)},[i(s)===`custom`?(l(),u(`option`,ji,y((`levelLabel`in e?e.levelLabel:i(U))(`custom`)),1)):c(``,!0),(l(!0),u(_,null,d(i(we),t=>(l(),u(`option`,{key:t,value:t},y((`levelLabel`in e?e.levelLabel:i(U))(t)),9,Mi))),128))],40,Ai),S(`small`,Ni,y(i(s)===`custom`?(`t`in e?e.t:i(X))(`Only the events checked under Customize.`):(`levelHint`in e?e.levelHint:i(Se))(i(s))),1),S(`details`,{class:`notification-customize`,open:i(s)===`custom`||void 0},[S(`summary`,null,[h(a,{name:`i-lucide-chevron-right`,class:`notification-chev`}),t(y((`t`in e?e.t:i(X))(`Customize`)),1)]),S(`div`,Fi,[(l(!0),u(_,null,d(i(De),r=>(l(),u(`label`,{key:r},[S(`input`,{type:`checkbox`,checked:!n.muted&&n.events.includes(r),onChange:e=>p(r,e.target.checked)},null,40,Ii),t(` `+y((`eventLabel`in e?e.eventLabel:i(P))(r)),1)]))),128))])],8,Pi)])}}}),[[`__scopeId`,`data-v-aa9b4e30`]]),{__name:`NotificationLevel`}),Ri={class:`notification-rules`,"data-testid":`notification-rules`},zi={class:`settings-group notification-default`,"data-testid":`notification-default`},Bi={class:`settings-toggle notification-subagents`},Vi={class:`muted notification-help`},Hi={class:`settings-group notification-exceptions`,"data-testid":`notification-exceptions`},Ui={key:0,class:`muted`},Wi={class:`notification-rule-head`},Gi={class:`notification-diff`},Ki={key:0,class:`settings-toggle notification-subagents`},qi=[`onClick`],Ji={class:`muted`},Yi=[`aria-expanded`],Xi={key:1,class:`notification-picker`,"data-testid":`notification-picker`},Zi={key:0,class:`muted`},Qi=[`onClick`],$i=Object.assign(mn(m({__name:`NotificationRules`,setup(n){Ce(),Ie();let r=te(),a=_e,o=Pe;function f(e){W({...a.value,default:{...a.value.default,...e}})}let p=e(()=>a.value.default.events),m=e(()=>a.value.exceptions.filter(e=>He(e,o.value)&&!(e.kind===`conversation`&&v(e.id))).map(e=>({e,machine:Re(e.machine),name:g(e)})).sort((e,t)=>e.machine.localeCompare(t.machine)||e.name.localeCompare(t.name)));function g(e){return e.kind===`coordinator`?fe(e.machine,e.id):b(e.id)||e.label}function v(e){let t=K.value.panes.find(t=>t.id===e);return t?!!Fe(t).subagent:!1}let b=e=>K.value.panes.find(t=>t.id===e)?.title||``,x=e=>e.until!==null&&e.until>o.value?e.until:null,C=e=>e.events??p.value;function w(e){let t=V(),n=x(e);if(n)return e.events===null?Y(`Muted until ${St(n)}, then back to the default (${t})`,`Muet jusqu’au ${St(n)}, puis retour au défaut (${t})`):Y(`Muted until ${St(n)}, then ${U(Ke(e.events))}`,`Muet jusqu’au ${St(n)}, puis ${U(Ke(e.events))}`);let r=ge(C(e),p.value);return r===1?Y(`Louder than the default (${t})`,`Plus que le défaut (${t})`):r===-1?Y(`Quieter than the default (${t})`,`Moins que le défaut (${t})`):r===0?Y(`Same as the default (${t})`,`Identique au défaut (${t})`):Y(`Different from the default (${t})`,`Différent du défaut (${t})`)}let T=e=>e.kind===`coordinator`?X(`Coordinator`):X(`Conversation`),E=s(!1),D=e(()=>{let e=new Map,t=t=>{if(a.value.exceptions.some(e=>He(e,o.value)&&be(e,t)))return;let n=e.get(t.machine)??{machine:t.machine,name:Re(t.machine),items:[]};n.items.some(e=>be(e,t))||n.items.push(t),e.set(t.machine,n)},n={top:0,machine:1,project:2};for(let e of r.value)for(let r of[...e.coordinators].sort((e,t)=>n[e.level]-n[t.level]||(e.repo??``).localeCompare(t.repo??``)))t(he(e.machine,r));for(let e of K.value.panes){if(!e.agent)continue;let n=Be(e);n?.kind===`conversation`&&t(n)}return[...e.values()].sort((e,t)=>e.name.localeCompare(t.name))});function O(e){let t=Ke(p.value)===`muted`;xe(e,{events:t?[...Ne.finished]:[],subagents:!1,until:null}),E.value=!1}function k(){W({...a.value,exceptions:[]}),q(Y(`All exceptions removed. Everything follows the default: ${V()}`,`Exceptions retirées. Tout suit le défaut : ${V()}`))}return(e,n)=>{let r=Li,o=dn,s=H;return l(),u(`div`,Ri,[S(`div`,zi,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Default (applies to everything)`)),1),h(r,{events:i(p),label:(`t`in e?e.t:i(X))(`Default level`),onChange:n[0]||=e=>f({events:e})},null,8,[`events`,`label`]),S(`label`,Bi,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Sub-agents`)),1),S(`small`,null,y(i(a).default.subagents?(`t`in e?e.t:i(X))(`On: task agents (workers, reviewers, attempts) notify too, at the same level.`):(`t`in e?e.t:i(X))(`Off: only coordinators, standalone agents and board events notify. Task agents stay silent.`)),1)]),h(o,{color:`success`,size:`xl`,"model-value":i(a).default.subagents,"aria-label":(`t`in e?e.t:i(X))(`Sub-agents`),"onUpdate:modelValue":n[1]||=e=>f({subagents:e})},null,8,[`model-value`,`aria-label`])]),S(`p`,Vi,y((`t`in e?e.t:i(X))(`Visible conversations stay silent on every device. Push resumes after about 30 seconds away. Inactive tabs expire automatically.`)),1)]),S(`div`,Hi,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Exceptions`)),1),i(m).length?c(``,!0):(l(),u(`p`,Ui,y((`t`in e?e.t:i(X))(`No exceptions: everything follows the default. Add one for a coordinator or an agent, or use Notifications in its menu.`)),1)),(l(!0),u(_,null,d(i(m),({e:n,machine:a,name:d})=>(l(),u(`article`,{key:JSON.stringify([n.kind,n.machine,n.id]),class:`notification-rule`,"data-testid":`notification-exception`},[S(`div`,Wi,[S(`small`,null,y(a)+` · `+y(T(n)),1),S(`b`,null,y(d),1),S(`small`,Gi,y(w(n)),1)]),h(r,{events:C(n),muted:!!x(n),label:(`tl`in e?e.tl:i(Y))(`Notifications: ${d}`,`Notifications : ${d}`),onChange:t=>(`setException`in e?e.setException:i(xe))(n,{events:t,until:null})},null,8,[`events`,`muted`,`label`,`onChange`]),n.kind===`coordinator`?(l(),u(`label`,Ki,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Sub-agents`)),1),S(`small`,null,y(n.subagents?(`t`in e?e.t:i(X))(`On: the task agents of this board follow this exception.`):(`t`in e?e.t:i(X))(`Off: only this coordinator. Its board’s task agents follow the default.`)),1)]),h(o,{color:`success`,size:`lg`,"model-value":n.subagents,"aria-label":(`tl`in e?e.tl:i(Y))(`Sub-agents: ${d}`,`Sous-agents : ${d}`),"onUpdate:modelValue":t=>(`setException`in e?e.setException:i(xe))(n,{subagents:t})},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`])])):c(``,!0),S(`button`,{type:`button`,class:`settings-action`,onClick:t=>(`removeException`in e?e.removeException:i(je))(n)},[h(s,{name:`i-lucide-x`}),t(y((`t`in e?e.t:i(X))(`Remove exception`)),1),S(`small`,Ji,y((`tl`in e?e.tl:i(Y))(`Back to the default: ${(`defaultLevelLabel`in e?e.defaultLevelLabel:i(V))()}`,`Retour au défaut : ${(`defaultLevelLabel`in e?e.defaultLevelLabel:i(V))()}`)),1)],8,qi)]))),128)),S(`button`,{type:`button`,class:`settings-action solo notification-add`,"aria-expanded":i(E),onClick:n[2]||=e=>E.value=!i(E)},[h(s,{name:`i-lucide-plus`}),t(y((`t`in e?e.t:i(X))(`Add an exception`)),1)],8,Yi),i(E)?(l(),u(`div`,Xi,[i(D).length?c(``,!0):(l(),u(`p`,Zi,y((`t`in e?e.t:i(X))(`No coordinator or agent conversation to add. Task agents follow the Sub-agents switch.`)),1)),(l(!0),u(_,null,d(i(D),e=>(l(),u(`div`,{key:e.machine,class:`notification-picker-group`},[S(`small`,null,y(e.name),1),(l(!0),u(_,null,d(e.items,e=>(l(),u(`button`,{key:e.kind+e.id,type:`button`,class:`settings-action`,onClick:t=>O(e)},[h(s,{name:e.kind===`coordinator`?`i-lucide-message-square-text`:`i-lucide-bot`},null,8,[`name`]),t(y(e.label),1)],8,Qi))),128))]))),128))])):c(``,!0),i(m).length?(l(),u(`button`,{key:2,type:`button`,class:`settings-action solo notification-reset`,onClick:k},[h(s,{name:`i-lucide-rotate-ccw`}),t(y((`t`in e?e.t:i(X))(`Remove all exceptions`)),1)])):c(``,!0)])])}}}),[[`__scopeId`,`data-v-aeafb17e`]]),{__name:`NotificationRules`}),ea={key:0,class:`settings-card push-devices`,"data-testid":`push-devices`},ta={class:`muted`},na={class:`push-device-main`},ra={key:0},ia={class:`muted`},aa=[`onClick`],oa=Object.assign(mn(m({__name:`PushDevices`,setup(e){let n={apple:[`Apple (Safari, iPhone, iPad)`,`Apple (Safari, iPhone, iPad)`],google:[`Chrome or Android`,`Chrome ou Android`],mozilla:[`Firefox`,`Firefox`],microsoft:[`Edge (Windows)`,`Edge (Windows)`]},r=e=>n[e]?Y(...n[e]):Y(`Other browser`,`Autre navigateur`),a=e=>new Date(e).toLocaleString(`en-GB`,{day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`});function o(e){let t=e.last;if(!t)return{text:Y(`Nothing sent yet`,`Rien d’envoyé pour l’instant`),tone:`none`};let n=a(t.at),r=t.code?` (${t.code})`:``;switch(t.status){case`ok`:return{text:Y(`Delivered · ${n}`,`Distribuée · ${n}`),tone:`ok`};case`expired`:return{text:Y(`Expired${r} · ${n}: this subscription no longer exists`,`Expirée${r} · ${n} : cet abonnement n’existe plus`),tone:`bad`};case`rejected`:return{text:Y(`Rejected by the push service${r} · ${n}`,`Refusée par le service push${r} · ${n}`),tone:`bad`};case`network`:return{text:Y(`Push service unreachable · ${n}`,`Service push injoignable · ${n}`),tone:`bad`};default:return{text:Y(`Failed${r} · ${n}`,`Échec${r} · ${n}`),tone:`bad`}}}return p(()=>yt()),(e,n)=>{let s=H;return(`pushDevices`in e?e.pushDevices:i(st))&&(`pushDevices`in e?e.pushDevices:i(st)).length?(l(),u(`div`,ea,[S(`p`,ta,y((`tl`in e?e.tl:i(Y))(`Registered devices and the result of the last notification sent to each.`,`Appareils enregistrés et résultat de la dernière notification envoyée à chacun.`)),1),S(`ul`,null,[(l(!0),u(_,null,d(`pushDevices`in e?e.pushDevices:i(st),n=>(l(),u(`li`,{key:n.id,"data-testid":`push-device`},[S(`div`,na,[S(`b`,null,[t(y(r(n.provider)),1),n.current?(l(),u(`small`,ra,y((`tl`in e?e.tl:i(Y))(`This device`,`Cet appareil`)),1)):c(``,!0)]),S(`span`,ia,y((`tl`in e?e.tl:i(Y))(`Added ${a(n.addedAt)}`,`Ajouté ${a(n.addedAt)}`)),1),S(`span`,{class:v(`push-result push-result-${o(n).tone}`)},y(o(n).text),3)]),n.last?.status===`expired`?(l(),u(`button`,{key:0,type:`button`,class:`push-device-remove`,onClick:t=>(`refreshPushDevices`in e?e.refreshPushDevices:i(yt))(n.id)},[h(s,{name:`i-lucide-trash-2`}),t(y((`tl`in e?e.tl:i(Y))(`Remove`,`Retirer`)),1)],8,aa)):c(``,!0)]))),128))])])):c(``,!0)}}}),[[`__scopeId`,`data-v-a2f67b97`]]),{__name:`PushDevices`}),sa={class:`settings-group projects-plugin`},ca={class:`projects-plugin-intro`},la=[`href`],ua={class:`projects-plugin-head`},da={key:0},fa={key:1},pa={key:2},ma={key:0,class:`projects-plugin-note`},ha={key:0,class:`projects-plugin-actions`},ga={class:`projects-plugin-note projects-plugin-update`},_a={key:0,class:`projects-plugin-actions`},va={key:1,class:`projects-plugin-note`},ya={key:3,class:`projects-plugin-note`},ba={key:4,class:`projects-plugin-note`},xa={key:2,class:`plugin-input-note reload projects-plugin-reload`},Sa={key:3,class:`projects-plugin-note`},Ca={key:0,class:`projects-plugin-notify`},wa={class:`projects-plugin-note`},Ta={class:`projects-upgrade-cmd`},Ea={class:`projects-plugin-command`},Da=Object.assign(m({__name:`ProjectsPluginSettings`,props:{machines:{}},setup(n){let r=n,a=s({}),f=s({}),p=s({}),m=s({}),g=s({});async function b(e){if(e.online){p.value={...p.value,[e.key]:!0};try{let t=await Nt(`/api/plugins/projects?machine=${encodeURIComponent(e.key)}`);a.value={...a.value,[e.key]:t},f.value={...f.value,[e.key]:``}}catch(t){f.value={...f.value,[e.key]:t.message}}finally{p.value={...p.value,[e.key]:!1}}}}T(()=>r.machines.map(e=>`${e.key}:${e.online}`).join(`|`),()=>{for(let e of r.machines)b(e)},{immediate:!0});async function x(e){if(J(),await Ae(Y(`Install herdr-projects 1.2.21 on ${e.label}? Herdr downloads the plugin from GitHub (release ${zn}, a prebuilt program) and runs its installer on this machine.`,`Installer herdr-projects 1.2.21 sur ${e.label} ? Herdr télécharge le plugin depuis GitHub (version ${zn}, un programme déjà compilé) et exécute son installation sur cette machine.`),X(`Install`),`primary`)){m.value={...m.value,[e.key]:!0};try{await Nt(`/api/plugins/projects`,{machine:e.key}),q(Y(`herdr-projects installed on ${e.label}.`,`herdr-projects installé sur ${e.label}.`)),g.value={...g.value,[e.key]:`install`},await b(e)}catch(e){q(e.message,!0)}finally{m.value={...m.value,[e.key]:!1}}}}let C=e=>!!e&&e.status===`ready`&&Bn(e.program),w=[[`1.2.8`,`auto access for agents`,`l’accès auto des agents`],[`1.2.10`,`a settings page`,`une page de réglages`],[`1.2.11`,`chat-only tasks`,`les tâches conversation seule`],[`1.2.14`,`archiving every done task at once`,`l’archivage de tous les terminés d’un coup`],[`1.2.15`,`autopilot`,`l’autopilot`],[`1.2.18`,`archiving a whole project`,`l’archivage d’un projet entier`]];function D(e){let t=w.filter(([t])=>!Hn(e,t)),n=Y(`your tasks and settings stay.`,`tes tâches et tes réglages restent.`);return t.length?Y(`Adds ${t.map(e=>e[1]).join(`, `)}, and fixes; ${n}`,`Ajoute ${t.map(e=>e[2]).join(`, `)}, et des corrections ; ${n}`):Y(`Fixes and smaller changes; ${n}`,`Des corrections et de petits changements ; ${n}`)}async function O(e){J();let t=a.value[e.key]?.program||``;if(await Ae(Y(`Update herdr-projects from ${t} to 1.2.21 on ${e.label}? Herdr downloads release ${zn} from GitHub (a prebuilt program) and replaces its copy of the plugin. Your tasks and settings stay.`,`Mettre à jour herdr-projects de ${t} en 1.2.21 sur ${e.label} ? Herdr télécharge la version ${zn} depuis GitHub (un programme déjà compilé) et remplace sa copie du plugin. Tes tâches et tes réglages restent.`),Y(`Update`,`Mettre à jour`),`primary`)){m.value={...m.value,[e.key]:!0};try{await Nt(`/api/plugins/projects`,{machine:e.key,update:!0}),q(Y(`herdr-projects updated to ${Kn} on ${e.label}.`,`herdr-projects mis à jour en ${Kn} sur ${e.label}.`)),g.value={...g.value,[e.key]:`update`},await b(e)}catch(e){q(e.message,!0)}finally{m.value={...m.value,[e.key]:!1}}}}let k=ie(Gn),A=e(()=>Object.values(a.value).some(e=>e.status===`ready`));async function j(){try{await navigator.clipboard.writeText(k),q(X(`Copied`))}catch{q(Y(`Copy failed`,`Copie impossible`),!0)}}function M(e){let t=e.program||e.version,n=t?` · v${t}`:``;return C(e)?Y(`Update available`,`Mise à jour disponible`)+n:e.status===`ready`?Y(`Installed`,`Installé`)+n:e.status===`disabled`?Y(`Disabled`,`Désactivé`)+n:e.status===`shepherdr`?Y(`Shepherdr 2 unsupported`,`Shepherdr 2 non pris en charge`)+n:e.status===`old`?Y(`Update needed`,`Mise à jour nécessaire`)+n:Y(`Not installed`,`Non installé`)}return(e,r)=>{let s=H,b=ze,w=qn,T=Xe;return l(),u(`div`,sa,[r[6]||=S(`h3`,null,`herdr-projects`,-1),S(`p`,ca,y((`tl`in e?e.tl:i(Y))(`herdr-projects is a work board for Herdr: one list of tasks, each handed to an agent in its own space. wherdr shows its tasks on the Board, where you can add tasks, start and stop them, reply to an agent, approve finished work and write to its coordinators. It needs herdr-projects ${i(Vn)} or later; the plugin is optional.`,`herdr-projects est un tableau de travail pour Herdr : une liste de tâches, chacune confiée à un agent dans son propre space. wherdr affiche ses tâches dans le Board, où tu peux ajouter des tâches, les lancer et les arrêter, répondre à un agent, approuver un travail fini et écrire à ses coordinateurs. Il faut herdr-projects ${i(Vn)} ou plus ; le plugin est facultatif.`)),1),S(`a`,{class:`projects-plugin-link`,href:i(Wn),target:`_blank`,rel:`noopener noreferrer`},[t(y((`tl`in e?e.tl:i(Y))(`View plugin repository`,`Voir le dépôt du plugin`))+` `,1),h(s,{name:`i-lucide-external-link`})],8,la),(l(!0),u(_,null,d(n.machines,n=>(l(),u(`div`,{key:n.key,class:`projects-plugin-machine`},[S(`div`,ua,[S(`strong`,null,y(n.label),1),n.online?i(p)[n.key]&&!i(a)[n.key]?(l(),u(`span`,fa,y((`tl`in e?e.tl:i(Y))(`Checking…`,`Vérification…`)),1)):i(f)[n.key]?(l(),u(`span`,pa,y((`tl`in e?e.tl:i(Y))(`Status unavailable`,`État indisponible`)),1)):i(a)[n.key]?(l(),u(`span`,{key:3,class:v([i(a)[n.key].status,{behind:C(i(a)[n.key])}])},y(M(i(a)[n.key])),3)):c(``,!0):(l(),u(`span`,da,y((`tl`in e?e.tl:i(Y))(`Offline`,`Hors ligne`)),1))]),n.online&&i(f)[n.key]?(l(),u(`p`,ma,y(i(f)[n.key]),1)):c(``,!0),n.online&&i(a)[n.key]&&!i(f)[n.key]?(l(),u(_,{key:1},[i(a)[n.key].status===`missing`&&i(a)[n.key].installable?(l(),u(`div`,ha,[h(b,{size:`sm`,color:`primary`,icon:`i-lucide-download`,loading:i(m)[n.key],onClick:e=>x(n)},{default:E(()=>[t(y((`tl`in e?e.tl:i(Y))(`Install herdr-projects`,`Installer herdr-projects`)),1)]),_:1},8,[`loading`,`onClick`])])):c(``,!0),C(i(a)[n.key])?(l(),u(_,{key:1},[S(`p`,ga,y((`tl`in e?e.tl:i(Y))(`Tested with ${i(Kn)}.`,`Testé avec ${i(Kn)}.`))+` `+y(D(i(a)[n.key].program)),1),i(a)[n.key].installable?(l(),u(`div`,_a,[h(b,{size:`sm`,color:`primary`,icon:`i-lucide-circle-arrow-up`,loading:i(m)[n.key],onClick:e=>O(n)},{default:E(()=>[t(y((`tl`in e?e.tl:i(Y))(`Update to ${i(Kn)}`,`Mettre à jour en ${i(Kn)}`)),1)]),_:1},8,[`loading`,`onClick`])])):(l(),u(`p`,va,[t(y((`tl`in e?e.tl:i(Y))(`By hand on this machine:`,`À la main sur cette machine :`))+` `,1),S(`code`,null,y(i(Un)),1)]))],64)):c(``,!0),i(a)[n.key].status===`missing`||i(a)[n.key].status===`old`||i(a)[n.key].status===`shepherdr`?(l(),o(w,{key:2,status:i(a)[n.key].status,version:i(a)[n.key].version},null,8,[`status`,`version`])):c(``,!0),i(a)[n.key].status===`disabled`?(l(),u(`p`,ya,y((`tl`in e?e.tl:i(Y))(`The plugin is disabled in Herdr: herdr plugin enable herdr-projects`,`Le plugin est désactivé dans Herdr : herdr plugin enable herdr-projects`)),1)):c(``,!0),i(a)[n.key].status===`ready`?(l(),u(`p`,ba,[h(T,{to:`/board`},{default:E(()=>[t(y((`tl`in e?e.tl:i(Y))(`Open the Board`,`Ouvrir le Board`)),1)]),_:1})])):c(``,!0)],64)):c(``,!0),i(g)[n.key]?(l(),u(`div`,xa,[h(s,{name:`i-lucide-refresh-cw`}),S(`div`,null,[S(`strong`,null,y((`tl`in e?e.tl:i(Y))(`Reload the Herdr client config`,`Recharge la config du client Herdr`)),1),S(`p`,null,[t(y((`tl`in e?e.tl:i(Y))(`In the Herdr terminal: `,`Dans le terminal Herdr : `)),1),r[0]||=S(`kbd`,null,`prefix`,-1),r[1]||=t(` + `,-1),r[2]||=S(`kbd`,null,`Shift`,-1),r[3]||=t(` + `,-1),r[4]||=S(`kbd`,null,`R`,-1),r[5]||=t(`.`,-1),i(g)[n.key]===`install`?(l(),u(_,{key:0},[t(y((`tl`in e?e.tl:i(Y))(`Then open its work board once in Herdr: it asks its first-run questions there.`,`Puis ouvre une fois son tableau dans Herdr : il y pose ses questions de premier lancement.`)),1)],64)):c(``,!0)])])])):c(``,!0),!n.online||i(f)[n.key]?(l(),u(`p`,Sa,[t(y((`tl`in e?e.tl:i(Y))(`By hand on this machine:`,`À la main sur cette machine :`))+` `,1),S(`code`,null,y(i(Un)),1)])):c(``,!0)]))),128)),i(A)?(l(),u(`div`,Ca,[S(`strong`,null,y((`tl`in e?e.tl:i(Y))(`Push for the Board`,`Notifications du Board`)),1),S(`p`,wa,y((`tl`in e?e.tl:i(Y))(`To get a push when a task needs you, is ready to approve, or failed, run this once on each machine with herdr-projects. A tap on the push opens the task.`,`Pour recevoir une notification quand une tâche a besoin de toi, est prête à approuver ou a échoué, lance ceci une fois sur chaque machine qui a herdr-projects. Toucher la notification ouvre la tâche.`)),1),S(`div`,Ta,[S(`code`,Ea,y(i(k)),1),h(b,{size:`sm`,color:`neutral`,variant:`outline`,icon:`i-lucide-copy`,"aria-label":(`t`in e?e.t:i(X))(`Copy command`),onClick:j},null,8,[`aria-label`])])])):c(``,!0)])}}}),{__name:`ProjectsPluginSettings`}),Oa=[`appearance`,`conversation`,`terminal`,`agents`,`plugins`,`phone`,`notifications`,`security`,`shortcuts`,`advanced`,`about`];function ka(e){let t=e.historyBack;return!e.desk&&e.section?t===`/settings`?`history`:`list`:typeof t==`string`&&t.startsWith(`/`)&&!t.startsWith(`/settings`)?`history`:`home`}var Aa={id:`settings`,class:`view settings-view`},ja={class:`top bar settings-top`},Ma=[`aria-label`],Na=[`aria-current`,`onClick`],Pa={class:`settings-section-title`},Fa={class:`settings-section`},Ia={class:`settings-group`},La=[`aria-expanded`],Ra={class:`theme-sw`},za={class:`theme-name`},Ba=[`aria-label`],Va=[`aria-label`],Ha={class:`theme-section-title`},Ua={class:`theme-grid`},Wa=[`aria-checked`],Ga={class:`theme-sw`},Ka={class:`theme-name`},qa=[`aria-checked`,`onClick`],Ja={class:`theme-sw`},Ya={class:`theme-name`},Xa={key:0},Za={key:1},Qa={class:`muted settings-hint`},$a={class:`settings-group`},eo={class:`muted settings-hint`},to={class:`settings-group`},no={id:`home-group-label`},ro={class:`settings-toggle`},io={class:`settings-toggle`},ao={class:`settings-toggle`},oo={class:`settings-toggle`},so={class:`settings-toggle`},co={class:`settings-toggle`},lo={class:`settings-group`},uo={class:`muted settings-hint`},fo={class:`eyebrow settings-subhead`},po={class:`settings-group`},mo={key:0,class:`settings-toggle`},ho={class:`muted settings-hint`},go={class:`settings-group settings-width`},_o={class:`muted settings-hint`},vo={class:`settings-section`},yo={class:`settings-group`},bo={class:`muted settings-hint`},xo={class:`settings-group settings-typing`},So={class:`muted settings-hint`},Co={class:`settings-group`},wo={class:`muted settings-lead`},To={class:`muted settings-hint`},Eo={class:`settings-group`},Do={class:`muted settings-lead`},Oo={class:`muted settings-hint`},ko={class:`settings-section`},Ao={class:`settings-group`},jo={class:`settings-toggle`},Mo={class:`settings-group`},No={class:`settings-stepper`},Po=[`aria-label`],Fo=[`aria-label`],Io={class:`settings-group`},Lo={class:`settings-toggle`},Ro={class:`settings-group`},zo={class:`settings-toggle`},Bo={class:`settings-group settings-renderer`},Vo={class:`muted settings-hint`},Ho={class:`settings-renderer-status`,role:`status`},Uo={class:`settings-section`},Wo={class:`settings-group`},Go={class:`muted agent-pref-intro`},Ko={key:0,class:`agent-pref-list`},qo={key:0},Jo=[`checked`,`onChange`],Yo={key:1,class:`muted agent-pref-intro`},Xo={class:`muted agent-pref-note`},Zo={id:`claude-quotas`,class:`settings-group`},Qo={class:`settings-section`},$o={class:`settings-group`,"data-testid":`notification-quiet`},es={class:`settings-toggle quiet-toggle`},ts={class:`notify-caption`},ns={key:0,class:`muted notify-hint`},rs={class:`notify-caption`},is={class:`settings-group`},as={class:`settings-section`},os={class:`settings-section`},ss={class:`settings-section`},cs={class:`settings-group`},ls={key:0,class:`muted settings-hint`},us={class:`settings-group`},ds={key:0,class:`settings-group`},fs={class:`muted settings-hint`},ps={key:0,class:`muted settings-hint`},ms={key:0,class:`settings-section`},hs={class:`settings-section`},gs={class:`settings-group`},_s={class:`settings-toggle`},vs={class:`muted settings-hint`},ys={class:`mono paste-journal`,style:{"white-space":`pre-wrap`,"overflow-wrap":`anywhere`,"font-size":`11px`}},bs={class:`settings-section`},xs={class:`settings-group`},Ss={class:`settings-version`},Cs={key:1,class:`muted settings-hint`};function ws(){$e()}var Ts=Object.assign(m({__name:`SettingsView`,setup(n){let r=on.version,a=Je(),f=qe();T(()=>[f.path,f.query.section],()=>{(f.query.section===`desktop`||f.path===`/settings/desktop`)&&a.replace({path:`/settings`,query:{...f.query,section:`conversation`}})},{immediate:!0});let m=e(()=>Oa.includes(String(f.query.section))?f.query.section:null),g={appearance:`i-lucide-palette`,conversation:`i-lucide-message-square`,terminal:`i-lucide-square-terminal`,agents:`i-lucide-bot`,plugins:`i-lucide-puzzle`,phone:`i-lucide-smartphone`,notifications:`i-lucide-bell`,security:`i-lucide-lock`,shortcuts:`i-lucide-keyboard`,advanced:`i-lucide-bug`,about:`i-lucide-info`},w={appearance:`Appearance`,conversation:`Conversation`,terminal:`Terminal`,agents:`Agents`,plugins:`Plugins`,phone:`Phone`,notifications:`Notifications`,security:`Security`,shortcuts:`Shortcuts`,advanced:`Advanced`,about:`About`},E=e(()=>Oa.filter(e=>e!==`shortcuts`||Z.value&&!kt.value).map(e=>({id:e,label:X(w[e]),icon:g[e]}))),D=e(()=>m.value&&E.value.some(e=>e.id===m.value)?m.value:Z.value?`appearance`:null),k=e(()=>E.value.find(e=>e.id===D.value)?.label||X(`Settings`)),A=s(null);T(m,()=>x(()=>{A.value&&(A.value.scrollTop=0)}));function M(e){if(e===m.value)return;let t={path:`/settings`,query:{section:e}};Z.value?a.replace(t):a.push(t)}function N(){let e=ka({desk:Z.value,section:m.value,historyBack:history.state?.back});e===`list`?a.replace(`/settings`):e===`history`?a.back():Ye(`/`,{replace:!0})}p(async()=>{if(Z.value||typeof history.state?.back==`string`)return;let e=f.fullPath;await a.replace(`/`),await a.push(e)});let P=wt,ee=Bt,F=jt,te=Lt,I=dt,L=e(()=>[{value:`machine`,label:X(`Machine`)},{value:`state`,label:X(`State`)}]),ie=Mt,R=Ht,z=rt,V=Vt,ce=Kt,le=e(()=>[{label:Y(`Tokens, native field`,`Jetons, champ natif`),description:Y(`Each “↳ … —” line is drawn as a token in the usual field. Typing, dictation and autocorrect unchanged. Default.`,`Chaque ligne « ↳ … — » est dessinée en jeton dans le champ habituel. Saisie, dictée et correction auto inchangées. Par défaut.`),value:`native`},{label:Y(`Plain text`,`Texte simple`),description:Y(`The same “↳ … —” lines, shown as plain text. A fallback if the tokens misbehave.`,`Les mêmes lignes « ↳ … — », affichées en texte simple. Un secours si les jetons se comportent mal.`),value:`lines`}]),de=Wt,fe=e(()=>[{label:Y(`Icon`,`Icône`),description:Y(`A small ↳ after each question, and a grey one after each point (on hover on a computer). Default.`,`Un petit ↳ après chaque question, et un gris après chaque point (au survol sur ordinateur). Par défaut.`),value:`icon`},{label:Y(`Tap the text`,`Toucher le texte`),description:Y(`No button: a question is underlined, tap it. A point: click it on a computer; on a phone, tap it, then “↳ Discuss”.`,`Aucun bouton : une question est soulignée, touche-la. Un point : clique-le sur ordinateur ; sur téléphone, touche-le, puis « ↳ Discuter ».`),value:`text`},{label:Y(`List under the message`,`Liste sous le message`),description:Y(`A number after each question and the questions listed under the message; “+ Quote a point”, then the point.`,`Un numéro après chaque question et les questions listées sous le message ; « + Citer un point », puis le point.`),value:`list`}]),pe=e({get:()=>Rt.value,set:e=>{mt.value=e}}),me=e(()=>[{label:X(`Off`),description:X(`The reply appears at once.`),value:`off`},{label:X(`Fast`),description:X(`Original speed · 0.5 to 2 s.`),value:`fast`},{label:X(`Medium`),description:X(`Twice as slow · 1 to 4 s.`),value:`medium`},{label:X(`Slow`),description:X(`Three times as slow · 1.5 to 6 s.`),value:`slow`}]),he=Jt,ge=Yt,_e=Ct,ve=e(()=>[{label:X(`Normal`),description:X(`760 px column · terminal fitted to width.`),value:`normal`},{label:X(`Wide`),description:X(`Up to 1100 px · terminal fitted to width.`),value:`wide`},{label:X(`Full width`),description:X(`The whole width, terminal included.`),value:`full`}]),ye=Dt,be=[{label:X(`Conversation`),description:X(`Read the transcript first.`),value:`chat`},{label:X(`Terminal`),description:X(`Type straight into the pane.`),value:`term`}],xe=Ot,Se=e(()=>[{label:X(`Remaining`),description:X(`What is left in each window, like Codex.`),value:`left`},{label:X(`Used`),description:X(`What has been used, like Claude.`),value:`used`}]),Ce=ke,we=e(()=>[{label:X(`Border only`),description:X(`A second color glides slowly around the border.`),value:`border`},{label:X(`Halo`),description:X(`The same, with a faint glow around the field.`),value:`halo`},{label:X(`None`),description:X(`Plain 1 px border, no animation.`),value:`off`}]),Te=ne,Ee=se,De=e(()=>[{label:`wherdr grid`,description:X(`Dotted grid with light packets, like wherdr.dev.`),value:`wherdr`},{label:`herdr grid`,description:X(`Flat line grid, like herdr.dev.`),value:`herdr`}]),Oe=e(()=>Tt.value.machines?.filter(e=>e.local||!!e.home&&(tt(e.key)?.status===`online`||!tt(e.key)&&e.online))||[{key:``,label:Ft.value||X(`This machine`),kinds:Tt.value.kinds}]),Ae=e(()=>[...new Set(Oe.value.flatMap(e=>e.kinds||[]))]);function je(e){return!pt.value.includes(e)}function Me(e,t){pt.value=t?pt.value.filter(t=>t!==e):[...pt.value,e]}function Ne(e){let t=Oe.value.filter(t=>t.kinds.includes(e));return t.length===Oe.value.length?``:t.map(e=>e.label||X(`This machine`)).join(`, `)}let Pe=ut,Fe=ot,Ie=s(`all`),Le=s(`manual`),Re=e(()=>[{label:Y(`This device`,`Cet appareil`),value:`device`,disabled:!Pe.value},{label:Y(`All devices`,`Tous les appareils`),value:`all`}]),Be=[{label:Y(`1 hour`,`1 heure`),value:`hour`},{label:Y(`Until tomorrow morning (8 am)`,`Jusqu’à demain matin (8 h)`),value:`morning`},{label:Y(`Until turned back on`,`Jusqu’à réactivation`),value:`manual`}];T(Xt,e=>{if(!e)return;Ie.value=e.scope;let t=e.quiet.until===null?null:e.quiet.until-Date.now();Le.value=t===null?`manual`:t<=36e5?`hour`:`morning`},{immediate:!0});async function U(e){try{let t=Xt.value?.scope;e&&await xt(Ie.value,!0,ct(Le.value)),t&&(!e||t!==Ie.value)&&await xt(t,!1)}catch(e){q(e.message,!0)}}let W=e({get:()=>!!Xt.value,set:e=>{U(e)}});function Ve(e){Ie.value=e,W.value&&U(!0)}function He(e){Le.value=e,W.value&&U(!0)}let Ue=e(()=>{let e=Xt.value;if(!e)return``;let t=e.scope===`all`?Y(`all devices`,`tous les appareils`):Y(`this device`,`cet appareil`),n=yn(e.quiet,nt.value);if(n.kind===`manual`)return Y(`Silenced on ${t} until turned back on.`,`Silence sur ${t} jusqu’à réactivation.`);let r=new Date(n.at).toLocaleTimeString(`en`,{hour:`2-digit`,minute:`2-digit`});if(n.kind===`today`)return Y(`Silenced on ${t} until ${r}.`,`Silence sur ${t} jusqu’à ${r}.`);if(n.kind===`tomorrow`)return Y(`Silenced on ${t} until tomorrow ${r}.`,`Silence sur ${t} jusqu’à demain ${r}.`);let i=new Date(n.at).toLocaleDateString(`en`,{weekday:`short`,day:`numeric`,month:`short`});return Y(`Silenced on ${t} until ${i} ${r}.`,`Silence sur ${t} jusqu’au ${i} ${r}.`)}),We=e=>e===`agents`?Y(`Agents`,`Agents`):e===`herdr`?`Herdr`:`wherdr`,Ge=e=>[e.c.bg,e.c.surface,e.c.line,e.c.text,e.c.accent,e.c.blue,e.c.rose,e.c.teal],Ke=e(()=>{let e=Tt.value.herdrTheme;return e?e.autoSwitch?`${e.darkName||`catppuccin`} / ${e.lightName||`catppuccin-latte`}`:e.name||`catppuccin`:null}),Xe=e(()=>ae(re(Tt.value.herdrTheme,!1).id)),Ze=s(!1),Qe=e(()=>B.value===`follow`?Xe.value:ae(B.value)),G=e(()=>B.value===`follow`?`${X(`Follow Herdr`)}${Xe.value?` · ${Xe.value.label}`:``}`:Qe.value?Qe.value.label:B.value);function $e(e){B.value=e,J()}let et=e=>{gt.value=Math.max(8,Math.min(20,gt.value+e))},K=[{label:`WebGL`,value:`webgl`},{label:`HTML`,value:`html`}],st=e(()=>it.value===`html-fallback`?X(`Active rendering: HTML (WebGL unavailable)`):it.value===`html`?X(`Active rendering: HTML`):X(`Active rendering: WebGL`));T(he,Et);let ft=Tn,ht=Dn,vt=e(()=>zt.map(e=>({label:e===1?X(`1 day`):e===365?X(`1 year`):Y(`${e} days`,`${e} jours`),value:e}))),yt=e({get:()=>ft.value?.maxSessionDays??7,set:async e=>{try{await Nt(`/api/auth/max-session`,{days:e}),await At()}catch(e){q(e.message,!0)}ht()}}),bt=e(()=>{let e=ft.value;if(!e?.deadline)return``;let t=new Date(e.deadline+Date.now()-(e.now??Date.now())).toLocaleString(`en-GB`,{weekday:`short`,day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`});return Y(`This device asks for the passkey again at the first opening after ${t}.`,`Cet appareil redemandera la clé d’accès à la première ouverture après le ${t}.`)});return p(hn),p(()=>{Et(),lt(),Fe().then(_t),ht()}),(e,n)=>{let a=ze,s=H,f=or,p=dn,m=wr,g=jr,x=Yr,w=di,T=vn,ne=Oi,re=$i,ae=En,se=oa,Oe=Da,ke=Cn,Fe=gn,U=bn,qe=_n,Je=On,Ye=Sn;return l(),u(`section`,Aa,[S(`header`,ja,[h(a,{icon:`i-lucide-chevron-left`,color:`neutral`,variant:`ghost`,size:`lg`,class:`icon-btn`,"aria-label":(`t`in e?e.t:i(X))(`Back`),onClick:N},null,8,[`aria-label`]),S(`h2`,null,y((`desk`in e?e.desk:i(Z))?(`t`in e?e.t:i(X))(`Settings`):i(k)),1)]),S(`div`,{class:v([`settings-layout`,{"section-open":i(D)}])},[S(`nav`,{class:`settings-nav`,"aria-label":(`t`in e?e.t:i(X))(`Settings sections`)},[(l(!0),u(_,null,d(i(E),e=>(l(),u(`button`,{key:e.id,type:`button`,class:v([`settings-nav-item`,{selected:i(D)===e.id}]),"aria-current":i(D)===e.id?`page`:void 0,onClick:t=>M(e.id)},[h(s,{name:e.icon},null,8,[`name`]),S(`span`,null,y(e.label),1),h(s,{name:`i-lucide-chevron-right`,class:`settings-nav-arrow`})],10,Na))),128))],8,Ma),C(S(`div`,{ref_key:`body`,ref:A,class:`settings-body`},[S(`h2`,Pa,y(i(k)),1),C(S(`div`,Fa,[S(`div`,Ia,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Theme`)),1),S(`button`,{type:`button`,class:`theme-opt theme-current`,"aria-expanded":i(Ze),onClick:n[0]||=e=>Ze.value=!i(Ze)},[S(`span`,Ra,[(l(!0),u(_,null,d(i(Qe)?Ge(i(Qe)):[],(e,t)=>(l(),u(`i`,{key:t,style:b({background:e})},null,4))),128))]),S(`span`,za,[t(y(i(G)),1),S(`small`,null,y((`t`in e?e.t:i(X))(i(Ze)?`Hide themes`:`Change theme`)),1)]),h(s,{name:i(Ze)?`i-lucide-chevron-up`:`i-lucide-chevron-down`,class:`theme-check`},null,8,[`name`])],8,La),C(S(`div`,{class:`theme-list`,role:`radiogroup`,"aria-label":(`t`in e?e.t:i(X))(`Theme`)},[(l(!0),u(_,null,d((`themeSections`in e?e.themeSections:i(oe))(),r=>(l(),u(`section`,{key:r.group,class:`theme-section`,"aria-label":We(r.group)},[S(`h4`,Ha,y(We(r.group)),1),S(`div`,Ua,[r.group===`herdr`?(l(),u(`button`,{key:0,type:`button`,role:`radio`,class:v([`theme-opt`,{on:(`themeChoice`in e?e.themeChoice:i(B))===(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:i(ue))}]),"aria-checked":(`themeChoice`in e?e.themeChoice:i(B))===(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:i(ue)),onClick:n[1]||=t=>$e(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:i(`follow`))},[S(`span`,Ga,[(l(!0),u(_,null,d(i(Xe)?Ge(i(Xe)):[],(e,t)=>(l(),u(`i`,{key:t,style:b({background:e})},null,4))),128))]),S(`span`,Ka,[t(y((`t`in e?e.t:i(X))(`Follow Herdr`)),1),S(`small`,null,y(i(Ke)?`config.toml · ${i(Ke)}`:(`t`in e?e.t:i(X))(`config.toml not found`)),1)]),(`themeChoice`in e?e.themeChoice:i(B))===(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:i(`follow`))?(l(),o(s,{key:0,name:`i-lucide-check`,class:`theme-check`})):c(``,!0)],10,Wa)):c(``,!0),(l(!0),u(_,null,d(r.themes,n=>(l(),u(`button`,{key:n.id,type:`button`,role:`radio`,class:v([`theme-opt`,{on:(`themeChoice`in e?e.themeChoice:i(B))===n.id}]),"aria-checked":(`themeChoice`in e?e.themeChoice:i(B))===n.id,onClick:e=>$e(n.id)},[S(`span`,Ja,[(l(!0),u(_,null,d(Ge(n),(e,t)=>(l(),u(`i`,{key:t,style:b({background:e})},null,4))),128))]),S(`span`,Ya,[t(y(n.label),1),n.id===(`DEFAULT_THEME`in e?e.DEFAULT_THEME:i(`wherdr-titanium`))?(l(),u(`small`,Xa,y((`t`in e?e.t:i(X))(`default`)),1)):n.light?(l(),u(`small`,Za,y((`t`in e?e.t:i(X))(`light`)),1)):c(``,!0)]),(`themeChoice`in e?e.themeChoice:i(B))===n.id?(l(),o(s,{key:0,name:`i-lucide-check`,class:`theme-check`})):c(``,!0)],10,qa))),128))])],8,Va))),128))],8,Ba),[[j,i(Ze)]])]),S(`p`,Qa,y((`t`in e?e.t:i(X))(`The theme follows you on every device.`)),1),S(`div`,$a,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Message field border on focus`)),1),h(f,{modelValue:i(Ce),"onUpdate:modelValue":n[2]||=e=>O(Ce)?Ce.value=e:null,items:i(we),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),S(`p`,eo,y((`t`in e?e.t:i(X))(`Also on omp’s running actions (border only). Frozen when the system asks for reduced motion. Follows you on every device.`)),1)]),S(`div`,to,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Home screen`)),1),S(`h4`,no,y((`t`in e?e.t:i(X))(`Group by`)),1),h(f,{modelValue:i(te),"onUpdate:modelValue":n[3]||=e=>O(te)?te.value=e:null,items:i(L),"aria-labelledby":`home-group-label`,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),S(`label`,ro,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Individual agents`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`List standalone agents separately. Board tasks stay grouped. Follows you on every device.`)),1)]),h(p,{modelValue:i(I),"onUpdate:modelValue":n[4]||=e=>O(I)?I.value=e:null,"aria-label":(`t`in e?e.t:i(X))(`Individual agents`),color:`success`,size:`xl`},null,8,[`modelValue`,`aria-label`])]),S(`label`,io,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Compact list`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Tasks: one line in Compact, two in Normal with current activity and relevant labels. Details stay in the task sheet. Follows you on every device.`)),1)]),h(p,{modelValue:i(ie),"onUpdate:modelValue":n[5]||=e=>O(ie)?ie.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),S(`label`,ao,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Reorder automatically`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`In Ready, show unread agents before read ones. Follows you on every device.`)),1)]),h(p,{modelValue:i(R),"onUpdate:modelValue":n[6]||=e=>O(R)?R.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),S(`label`,oo,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Show terminals`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Show terminal spaces in the list, filed under Ready.`)),1)]),h(p,{modelValue:i(P),"onUpdate:modelValue":n[7]||=e=>O(P)?P.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),S(`label`,so,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Show counters`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Show agent counters on the home screen.`)),1)]),h(p,{modelValue:i(ee),"onUpdate:modelValue":n[8]||=e=>O(ee)?ee.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),S(`label`,co,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Show quotas`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Show Claude and Codex quotas on the home screen.`)),1)]),h(p,{modelValue:i(F),"onUpdate:modelValue":n[9]||=e=>O(F)?F.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),h(m)]),S(`div`,lo,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Quotas`)),1),h(f,{modelValue:i(xe),"onUpdate:modelValue":n[10]||=e=>O(xe)?xe.value=e:null,items:i(Se),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),S(`p`,uo,y((`t`in e?e.t:i(X))(`The color always flags a nearly exhausted quota. Follows you on every device.`)),1)]),(`desk`in e?e.desk:i(Z))?(l(),u(_,{key:0},[S(`div`,fo,[S(`span`,null,y((`t`in e?e.t:i(X))(`Desktop`)),1)]),S(`div`,po,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Background`)),1),h(f,{modelValue:i(Te),"onUpdate:modelValue":n[11]||=e=>O(Te)?Te.value=e:null,items:i(De),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),i(Te)===`wherdr`?(l(),u(`label`,mo,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Animated packets`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Small glowing squares running along the wherdr grid.`)),1)]),h(p,{modelValue:i(Ee),"onUpdate:modelValue":n[12]||=e=>O(Ee)?Ee.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])):c(``,!0),S(`p`,ho,y((`t`in e?e.t:i(X))(`In the margins of the conversation. Still when the system asks for reduced motion. Follows you on every device.`)),1)]),S(`div`,go,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Content width`)),1),h(f,{modelValue:i(_e),"onUpdate:modelValue":n[13]||=e=>O(_e)?_e.value=e:null,items:i(ve),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),S(`p`,_o,y((`t`in e?e.t:i(X))(`Conversation, terminal, settings and other content. Saved on this device.`)),1)])],64)):c(``,!0)],512),[[j,i(D)===`appearance`]]),C(S(`div`,vo,[S(`div`,yo,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Default pane view`)),1),h(f,{modelValue:i(ye),"onUpdate:modelValue":n[14]||=e=>O(ye)?ye.value=e:null,items:be,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`]),S(`p`,bo,y((`t`in e?e.t:i(X))(`What an agent pane opens on. A pane you switched to Terminal stays there. Follows you on every device.`)),1)]),S(`div`,xo,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Typewriter`)),1),h(f,{modelValue:i(pe),"onUpdate:modelValue":n[15]||=e=>O(pe)?pe.value=e:null,items:i(me),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`,disabled:`reducedMotion`in e?e.reducedMotion:i(Pt)},null,8,[`modelValue`,`items`,`disabled`]),S(`p`,So,y((`t`in e?e.t:i(X))((`reducedMotion`in e?e.reducedMotion:i(Pt))?`Off: the system asks for reduced motion.`:`Only new replies are animated; history appears at once. Tap a reply while it types to show it in full. Follows you on every device.`)),1),S(`label`,{class:v([`settings-toggle encrypted-toggle`,{"is-disabled":!(`typewriterActive`in e?e.typewriterActive:i(at))}])},[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Encrypted text`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Writing advances in glyphs, then the text decrypts behind it.`)),1)]),h(p,{modelValue:i(z),"onUpdate:modelValue":n[16]||=e=>O(z)?z.value=e:null,disabled:!(`typewriterActive`in e?e.typewriterActive:i(at)),color:`success`,size:`xl`},null,8,[`modelValue`,`disabled`])],2),i(D)===`conversation`?(l(),o(g,{key:0})):c(``,!0)]),S(`div`,Co,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`Reply style`,`Style de réponse`)),1),S(`p`,wo,y((`tl`in e?e.tl:i(Y))(`Each question an agent asks, and each point it lists, can be quoted in the field to answer them one by one. Choose how they offer it.`,`Chaque question d’un agent, et chaque point qu’il liste, peut être cité dans le champ pour y répondre un par un. Choisis comment ils le proposent.`)),1),h(f,{modelValue:i(de),"onUpdate:modelValue":n[17]||=e=>O(de)?de.value=e:null,items:i(fe),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio reply-style-radio`},null,8,[`modelValue`,`items`]),S(`p`,To,y((`tl`in e?e.tl:i(Y))(`Follows you on every device.`,`Te suit sur tous tes appareils.`)),1)]),S(`div`,Eo,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`Quoted replies`,`Réponses citées`)),1),S(`p`,Do,y((`tl`in e?e.tl:i(Y))(`Answer several questions, passages or decisions of an agent in one message: each one goes into the field as a “↳ … —” line that names the message and quotes it, your answer below. Choose how the field shows these lines; the message sent is the same.`,`Réponds à plusieurs questions, passages ou décisions d’un agent dans un seul message : chacun entre dans le champ sous la forme d’une ligne « ↳ … — » qui nomme le message et le cite, ta réponse en dessous. Choisis comment le champ affiche ces lignes ; le message envoyé est le même.`)),1),i(D)===`conversation`?(l(),o(x,{key:0,mode:i(ce)},null,8,[`mode`])):c(``,!0),h(f,{modelValue:i(ce),"onUpdate:modelValue":n[18]||=e=>O(ce)?ce.value=e:null,items:i(le),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio quote-mode-radio`},null,8,[`modelValue`,`items`]),S(`p`,Oo,y((`tl`in e?e.tl:i(Y))(`Saved on this device.`,`Enregistré sur cet appareil.`)),1)])],512),[[j,i(D)===`conversation`]]),C(S(`div`,ko,[S(`div`,Ao,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Home screen`)),1),S(`label`,jo,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Show terminals`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Show terminal spaces in the list, filed under Ready.`)),1)]),h(p,{modelValue:i(P),"onUpdate:modelValue":n[19]||=e=>O(P)?P.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])]),S(`div`,Mo,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Text`)),1),S(`div`,No,[S(`span`,null,y((`t`in e?e.t:i(X))(`Terminal text size`)),1),S(`div`,null,[S(`button`,{type:`button`,"aria-label":(`t`in e?e.t:i(X))(`Decrease text size`),onClick:n[20]||=e=>et(-1)},`A−`,8,Po),S(`output`,null,y(`fontSize`in e?e.fontSize:i(gt)),1),S(`button`,{type:`button`,"aria-label":(`t`in e?e.t:i(X))(`Increase text size`),onClick:n[21]||=e=>et(1)},`A+`,8,Fo)])])]),S(`div`,Io,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Clipboard`)),1),S(`label`,Lo,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Agent copies`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Text an agent copies in the terminal (OSC 52) goes to this device’s clipboard. Never read from it. Saved on this device.`)),1)]),h(p,{modelValue:i(V),"onUpdate:modelValue":n[22]||=e=>O(V)?V.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])]),S(`div`,Ro,[S(`label`,zo,[S(`span`,null,[S(`b`,null,y((`t`in e?e.t:i(X))(`Smooth touch scrolling (beta)`)),1),S(`small`,null,y((`t`in e?e.t:i(X))(`Experimental finger tracking and inertia. Saved on this device.`)),1)]),h(p,{modelValue:i(ge),"onUpdate:modelValue":n[23]||=e=>O(ge)?ge.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])]),S(`div`,Bo,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Terminal rendering`)),1),h(f,{modelValue:i(he),"onUpdate:modelValue":n[24]||=e=>O(he)?he.value=e:null,items:K,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`]),S(`p`,Vo,y((`t`in e?e.t:i(X))(`Rendering is saved on this device.`)),1),S(`p`,Ho,y(i(st)),1)]),h(w)],512),[[j,i(D)===`terminal`]]),C(S(`div`,Uo,[S(`div`,Wo,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Offered agents`)),1),S(`p`,Go,y((`t`in e?e.t:i(X))(`Agents offered wherever an agent is chosen. Terminal is always available.`)),1),i(Ae).length?(l(),u(`div`,Ko,[(l(!0),u(_,null,d(i(Ae),t=>(l(),u(`label`,{key:t,class:`settings-toggle`},[S(`span`,null,[S(`b`,null,y((`kindLabel`in e?e.kindLabel:i(Gt))(t)),1),Ne(t)?(l(),u(`small`,qo,y(Ne(t)),1)):c(``,!0)]),S(`input`,{class:`agent-pref-check`,type:`checkbox`,checked:je(t),onChange:e=>Me(t,e.target.checked)},null,40,Jo)]))),128))])):(l(),u(`p`,Yo,y((`t`in e?e.t:i(X))(`No agents installed on online machines.`)),1)),S(`p`,Xo,y((`t`in e?e.t:i(X))(`Choices follow you on every device.`)),1)]),S(`div`,Zo,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`Claude quotas`,`Quotas Claude`)),1),i(D)===`agents`?(l(),o(T,{key:0})):c(``,!0)]),h(ne)],512),[[j,i(D)===`agents`]]),C(S(`div`,Qo,[S(`div`,$o,[S(`label`,es,[S(`span`,null,[S(`b`,null,[h(s,{name:i(W)?`i-lucide-bell-off`:`i-lucide-bell`},null,8,[`name`]),t(y((`tl`in e?e.tl:i(Y))(`Do not disturb`,`Silence`)),1)]),S(`small`,null,y((`tl`in e?e.tl:i(Y))(`Turns off every notification, no exceptions: the rules below are ignored.`,`Coupe toutes les notifications, sans exception : les réglages ci-dessous sont ignorés.`)),1)]),h(p,{modelValue:i(W),"onUpdate:modelValue":n[25]||=e=>O(W)?W.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),S(`p`,ts,y((`tl`in e?e.tl:i(Y))(`Silence on`,`Couper pour`)),1),h(f,{"model-value":i(Ie),items:i(Re),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`,"onUpdate:modelValue":n[26]||=e=>Ve(e)},null,8,[`model-value`,`items`]),i(Pe)?c(``,!0):(l(),u(`p`,ns,y((`tl`in e?e.tl:i(Y))(`“This device” needs notifications turned on below.`,`« Cet appareil » demande d’activer les notifications ci-dessous.`)),1)),S(`p`,rs,y((`tl`in e?e.tl:i(Y))(`Duration`,`Durée`)),1),h(f,{"model-value":i(Le),items:Be,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`,"onUpdate:modelValue":n[27]||=e=>He(e)},null,8,[`model-value`]),S(`p`,{class:v([`muted notify-hint`,{"quiet-end":i(W)}])},y(i(Ue)||(`tl`in e?e.tl:i(Y))(`Notifications come back on by themselves at the end.`,`Retour automatique à la normale à la fin de la durée choisie.`)),3)]),h(re),S(`div`,is,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`This device’s notifications`,`Notifications de cet appareil`)),1),h(ae,{detailed:``}),i(D)===`notifications`?(l(),o(se,{key:0})):c(``,!0)])],512),[[j,i(D)===`notifications`]]),C(S(`div`,as,[h(Oe,{machines:(`appConfig`in e?e.appConfig:i(Tt)).machines||[{key:``,label:(`hostLabel`in e?e.hostLabel:i(Ft))||(`t`in e?e.t:i(X))(`This machine`),local:!0,home:``,dirs:[],online:!0,kinds:[]}]},null,8,[`machines`])],512),[[j,i(D)===`plugins`]]),C(S(`div`,os,[h(ke,{active:i(D)===`phone`},null,8,[`active`])],512),[[j,i(D)===`phone`]]),C(S(`div`,ss,[S(`div`,cs,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`Network access`,`Accès réseau`)),1),h(Fe),(`appConfig`in e?e.appConfig:i(Tt)).openNetwork?c(``,!0):(l(),u(`p`,ls,y((`tl`in e?e.tl:i(Y))(`wherdr only answers this computer (localhost) and your tailnet. A device on another network (a Wi-Fi, a LAN, the Internet) is refused, even with the address and the port. A proxy or tunnel you run on this computer counts as this computer.`,`wherdr ne répond qu’à cet ordinateur (localhost) et à ton tailnet. Un appareil sur un autre réseau (un Wi-Fi, un réseau local, Internet) est refusé, même avec l’adresse et le port. Un proxy ou un tunnel que tu fais tourner sur cet ordinateur compte comme cet ordinateur.`)),1)),h(U)]),S(`div`,us,[S(`h3`,null,y((`tl`in e?e.tl:i(Y))(`Passkey · optional`,`Passkey · facultative`)),1),h(qe)]),i(ft)?.enabled?(l(),u(`div`,ds,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Ask for the passkey again after`)),1),h(f,{modelValue:i(yt),"onUpdate:modelValue":n[28]||=e=>O(yt)?yt.value=e:null,items:i(vt),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),S(`p`,fs,y((`t`in e?e.t:i(X))(`Counted from the last passkey unlock, used or not, for every device. Never in the middle of use: at the next opening of the app.`)),1),i(bt)?(l(),u(`p`,ps,y(i(bt)),1)):c(``,!0)])):c(``,!0)],512),[[j,i(D)===`security`]]),(`desk`in e?e.desk:i(Z))&&!(`coarse`in e?e.coarse:i(kt))?C((l(),u(`div`,ms,[h(Je)],512)),[[j,i(D)===`shortcuts`]]):c(``,!0),C(S(`div`,hs,[S(`div`,gs,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Paste journal`)),1),S(`label`,_s,[S(`span`,null,y((`t`in e?e.t:i(X))(`Paste journal`)),1),h(p,{"model-value":i(Fn),"onUpdate:modelValue":i(Ln)},null,8,[`model-value`,`onUpdate:modelValue`])]),S(`p`,vs,y((`t`in e?e.t:i(X))(`Records the last 50 paste events on this device, without text content. Turning it off clears the journal.`)),1),S(`pre`,ys,y(JSON.stringify(i(kn),null,2)),1)])],512),[[j,i(D)===`advanced`]]),C(S(`div`,bs,[S(`div`,xs,[S(`h3`,null,y((`t`in e?e.t:i(X))(`Application`)),1),S(`p`,Ss,`wherdr · v`+y(i(r)),1),(`updateInfo`in e?e.updateInfo:i(xn))?.latest?(l(),o(Ye,{key:0,info:`updateInfo`in e?e.updateInfo:i(xn)},null,8,[`info`])):(`updateInfo`in e?e.updateInfo:i(xn))?.checked?(l(),u(`p`,Cs,y((`t`in e?e.t:i(X))(`This is the latest version.`)),1)):c(``,!0),S(`button`,{type:`button`,class:`settings-action solo`,onClick:ws},[h(s,{name:`i-lucide-refresh-cw`}),t(y((`t`in e?e.t:i(X))(`Reload app`)),1)]),S(`button`,{type:`button`,class:`settings-action solo`,onClick:n[29]||=(...t)=>(`openOnboarding`in e?e.openOnboarding:i(wn))&&(`openOnboarding`in e?e.openOnboarding:i(wn))(...t)},[h(s,{name:`i-lucide-compass`}),t(y((`tl`in e?e.tl:i(Y))(`Setup guide`,`Guide de démarrage`)),1)])])],512),[[j,i(D)===`about`]])],512),[[j,i(D)]])],2)])}}}),{__name:`SettingsView`}),Es=m({__name:`settings`,setup(e){return p(()=>{qt.value=null}),(e,t)=>{let n=Ts;return l(),o(n)}}});export{Es as default};
Binary file
Binary file
Binary file
@@ -1,62 +0,0 @@
1
- import{Mn as e,Ot as t,P as n,St as r,U as i,fr as a,nn as o,vt as s}from"./C25ROUa9.js";import{ln as c}from"./PjGJWal8.js";import{An as l,At as u,Fn as d,In as f,Ln as p,Nn as ee,Rn as te,S as ne,Tt as m,en as re,hi as h,i as g,jn as ie,kn as ae,kt as oe,mi as _,t as v,tn as y}from"./nfsDZG4P.js";var b=new Set,se=!1,x=e=>{try{return new URL(e,location.href).origin}catch{return``}},ce=e=>b.has(e)||b.has(x(e));function S(e){return _(e===`blocked`?`wherdr only shows images from its own address and from HTTPS addresses on your tailnet.`:`The image could not be loaded.`)}function le(){se||typeof document>`u`||(se=!0,document.addEventListener(`securitypolicyviolation`,e=>{if(/^img-src\b/.test(e.effectiveDirective||e.violatedDirective||``)&&e.blockedURI){b.add(e.blockedURI);for(let t of document.querySelectorAll(`.md-img-fallback[data-why="failed"]`)){let n=t.dataset.src||``;(n===e.blockedURI||x(n)===e.blockedURI)&&ue(t,`blocked`)}}}))}function ue(e,t){e.dataset.why=t;let n=e.querySelector(`.md-img-fallback-why`);n&&(n.textContent=S(t))}function de(e){try{let t=new URL(e,location.href);return t.protocol===`https:`||t.protocol===`http:`?t:null}catch{return null}}function fe(e){if(e.classList.contains(`md-img-broken`))return;let t=e.currentSrc||e.src;e.classList.add(`md-img-broken`);let n=document.createElement(`span`);n.className=`md-img-fallback`,n.setAttribute(`role`,`note`),n.dataset.src=t;let r=document.createElement(`span`);r.className=`md-img-fallback-tag`,r.textContent=_(`Image not shown`),n.append(r);let i=e.getAttribute(`alt`)?.trim();if(i){let e=document.createElement(`span`);e.className=`md-img-fallback-alt`,e.textContent=i,n.append(e)}let a=document.createElement(`span`);a.className=`md-img-fallback-why`,n.append(a);let o=de(t);if(o){let e=document.createElement(`a`);e.href=o.href,e.target=`_blank`,e.rel=`noopener noreferrer`,e.textContent=_(`Open image`);let t=document.createElement(`span`);t.className=`md-img-fallback-url`,t.textContent=o.href.replace(/^https?:\/\//,``),n.append(e,t)}ue(n,ce(t)?`blocked`:`failed`),e.after(n)}var pe=[`innerHTML`],me=Object.assign(i({__name:`ChatMarkdown`,props:{html:{},typing:{},speed:{default:void 0},cipher:{type:Boolean,default:void 0}},emits:[`done`],setup(i,{emit:c}){let u=i,m=c,re=e(null),h=null,g=0,_=e=>e.classList?.contains(`code-head`),v=e=>/^T[DH]$/.test(e.tagName||``),y=[],b=``,se=0;function x(){for(let e of y)e.box.remove();y=[],b=``}function ce(e,t,n,r){let i=`${t}:${n}`;if(i!==b){x(),b=i;for(let r of l(e,t,n)){let e=r.node;if(!e.parentNode)continue;let t=document.createElement(`span`);t.className=`tw-trail`,t.setAttribute(`aria-hidden`,`true`);let n=[],i=f(r.text);Array.from(r.text).forEach((e,r)=>{if(/\s/.test(e))return t.append(e);let a=document.createElement(`span`);a.textContent=e,a.setAttribute(`data-g`,i[r]),n.push(a),t.append(a)}),e.parentNode.insertBefore(t,e.nextSibling),y.push({box:t,cells:n})}y.at(-1)?.cells.at(-1)?.classList.add(`tw-front`),se=r}else if(r-se>=60){se=r;for(let e of y){let t=f(e.cells.map(e=>e.textContent||``).join(``));e.cells.forEach((e,n)=>e.setAttribute(`data-g`,t[n]))}}}function S(){cancelAnimationFrame(g),g=0,x(),h&&ie(h),h=null}function ue(e){if(S(),!re.value)return;h=ee(re.value,{atomic:_,keep:v});let t=h,n=u.speed??oe.value,r=p(t.total,n),i=u.cipher??ne.value,a=()=>{if(h!==t)return;let o=Date.now()-e,s=i?te(t.total,o,n):null,c=s?.written??d(t.stops,o,r),l=s?.decrypted??c;ae(t,l,i,c),i&&ce(t,l,c,performance.now()),s?.done||!i&&o>=r?(S(),m(`done`)):g=requestAnimationFrame(a)};a()}le();function de(e){e.target instanceof HTMLImageElement&&fe(e.target)}function me(){h&&(S(),m(`done`))}return r(()=>{u.typing!==null&&ue(u.typing)}),o(()=>u.typing,e=>{e===null?S():ue(e)}),o(()=>u.html,()=>{h&&(cancelAnimationFrame(g),x(),h=null,m(`done`))},{flush:`pre`}),s(()=>{cancelAnimationFrame(g),x(),h=null}),(e,r)=>(t(),n(`div`,{ref_key:`el`,ref:re,class:a([`md-body`,{typing:i.typing!==null}]),onClickCapture:me,onErrorCapture:de,innerHTML:i.html},null,42,pe))}}),{__name:`ChatMarkdown`});function he(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ge=he();function C(e){ge=e}var _e={exec:()=>null};function w(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(T.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var T={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},ve=/^(?:[ \t]*(?:\n|$))+/,ye=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,be=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Se=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ce=/(?:[*+-]|\d{1,9}[.)])/,E=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,we=w(E).replace(/bull/g,Ce).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),D=w(E).replace(/bull/g,Ce).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Te=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,O=/^[^\n]+/,k=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ee=w(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,k).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),A=w(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ce).getRegex(),De=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Oe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ke=w(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Oe).replace(`tag`,De).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae=w(Te).replace(`hr`,xe).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,De).getRegex(),j={blockquote:w(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Ae).getRegex(),code:ye,def:Ee,fences:be,heading:Se,hr:xe,html:ke,lheading:we,list:A,newline:ve,paragraph:Ae,table:_e,text:O},M=w(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,xe).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,De).getRegex(),je={...j,lheading:D,table:M,paragraph:w(Te).replace(`hr`,xe).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,M).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,De).getRegex()},Me={...j,html:w(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Oe).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_e,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(Te).replace(`hr`,xe).replace(`heading`,` *#{1,6} *[^
2
- ]`).replace(`lheading`,we).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Ne=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fe=/^( {2,}|\\)\n(?!\s*$)/,Ie=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Le=/[\p{P}\p{S}]/u,Re=/[\s\p{P}\p{S}]/u,ze=/[^\s\p{P}\p{S}]/u,Be=w(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Re).getRegex(),Ve=/(?!~)[\p{P}\p{S}]/u,He=/(?!~)[\s\p{P}\p{S}]/u,Ue=/(?:[^\s\p{P}\p{S}]|~)/u,We=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Ge=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ke=w(Ge,`u`).replace(/punct/g,Le).getRegex(),qe=w(Ge,`u`).replace(/punct/g,Ve).getRegex(),Je=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ye=w(Je,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,Re).replace(/punct/g,Le).getRegex(),Xe=w(Je,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,He).replace(/punct/g,Ve).getRegex(),Ze=w(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,Re).replace(/punct/g,Le).getRegex(),Qe=w(/\\(punct)/,`gu`).replace(/punct/g,Le).getRegex(),N=w(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),$e=w(Oe).replace(`(?:-->|$)`,`-->`).getRegex(),et=w(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,$e).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,nt=w(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,tt).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=w(/^!?\[(label)\]\[(ref)\]/).replace(`label`,tt).replace(`ref`,k).getRegex(),it=w(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,k).getRegex(),at={_backpedal:_e,anyPunctuation:Qe,autolink:N,blockSkip:We,br:Fe,code:Pe,del:_e,emStrongLDelim:Ke,emStrongRDelimAst:Ye,emStrongRDelimUnd:Ze,escape:Ne,link:nt,nolink:it,punctuation:Be,reflink:rt,reflinkSearch:w(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,rt).replace(`nolink`,it).getRegex(),tag:et,text:Ie,url:_e},ot={...at,link:w(/^!?\[(label)\]\((.*?)\)/).replace(`label`,tt).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,tt).getRegex()},st={...at,emStrongRDelimAst:Xe,emStrongLDelim:qe,url:w(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ct={...st,br:w(Fe).replace(`{2,}`,`*`).getRegex(),text:w(st.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},lt={normal:j,gfm:je,pedantic:Me},P={normal:at,gfm:st,breaks:ct,pedantic:ot},ut={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},dt=e=>ut[e];function F(e,t){if(t){if(T.escapeTest.test(e))return e.replace(T.escapeReplace,dt)}else if(T.escapeTestNoEncode.test(e))return e.replace(T.escapeReplaceNoEncode,dt);return e}function ft(e){try{e=encodeURI(e).replace(T.percentDecode,`%`)}catch{return null}return e}function pt(e,t){let n=e.replace(T.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(T.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(T.slashPipe,`|`);return n}function mt(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function ht(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function gt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function _t(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
- `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
4
- `)}var vt=class{options;rules;lexer;constructor(e){this.options=e||ge}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:mt(e,`
5
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=_t(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=mt(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:mt(t[0],`
6
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=mt(t[0],`
7
- `).split(`
8
- `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
9
- `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
10
- $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
11
- ${s}`:s,r=r?`${r}
12
- ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
13
- `+e.join(`
14
- `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
15
- `+e.join(`
16
- `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
17
- `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
18
- `,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(`
19
- `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
20
- `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(`
21
- `,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
22
- `+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
23
- `+l}!u&&!l.trim()&&(u=!0),r+=f+`
24
- `,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=pt(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
25
- `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(pt(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
26
- `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=mt(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=ht(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),gt(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return gt(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&!(r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},I=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ge,this.options.tokenizer=this.options.tokenizer||new vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:T,block:lt.normal,inline:P.normal};this.options.pedantic?(t.block=lt.pedantic,t.inline=P.pedantic):this.options.gfm&&(t.block=lt.gfm,t.inline=this.options.breaks?P.breaks:P.gfm),this.tokenizer.rules=t}static get rules(){return{block:lt,inline:P}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(T.carriageReturn,`
27
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(T.tabCharGlobal,` `).replace(T.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
28
- `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=`
29
- `+r.raw,n.text+=`
30
- `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=`
31
- `+r.raw,n.text+=`
32
- `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=`
33
- `+r.raw,a.text+=`
34
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=`
35
- `+r.raw,n.text+=`
36
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a=``;for(;e;){i||(a=``),i=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},yt=class{options;parser;constructor(e){this.options=e||ge}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(T.notSpaceStart)?.[0],i=e.replace(T.endingNewline,``)+`
37
- `;return r?`<pre><code class="language-`+F(r)+`">`+(n?i:F(i,!0))+`</code></pre>
38
- `:`<pre><code>`+(n?i:F(i,!0))+`</code></pre>
39
- `}blockquote({tokens:e}){return`<blockquote>
40
- ${this.parser.parse(e)}</blockquote>
41
- `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
42
- `}hr(e){return`<hr>
43
- `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
44
- `+r+`</`+i+`>
45
- `}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+F(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
46
- `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
47
- `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
48
- <thead>
49
- `+t+`</thead>
50
- `+r+`</table>
51
- `}tablerow({text:e}){return`<tr>
52
- ${e}</tr>
53
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
54
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${F(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=ft(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+F(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ft(e);if(i===null)return F(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${F(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:F(e.text)}},bt=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},L=class e{options;renderer;textRenderer;constructor(e){this.options=e||ge,this.options.renderer=this.options.renderer||new yt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new bt}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
55
- `+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},xt=class{options;block;constructor(e){this.options=e||ge}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?I.lex:I.lexInline}provideParser(){return this.block?L.parse:L.parseInline}},R=new class{defaults=he();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=L;Renderer=yt;TextRenderer=bt;Lexer=I;Tokenizer=vt;Hooks=xt;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new yt(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new vt(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new xt;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=xt.passThroughHooks.has(n)?e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return I.lex(e,t??this.defaults)}parser(e,t){return L.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?I.lex:I.lexInline,s=i.hooks?i.hooks.provideParser():e?L.parse:L.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
56
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+F(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function z(e,t){return R.parse(e,t)}z.options=z.setOptions=function(e){return R.setOptions(e),z.defaults=R.defaults,C(z.defaults),z},z.getDefaults=he,z.defaults=ge,z.use=function(...e){return R.use(...e),z.defaults=R.defaults,C(z.defaults),z},z.walkTokens=function(e,t){return R.walkTokens(e,t)},z.parseInline=R.parseInline,z.Parser=L,z.parser=L.parse,z.Renderer=yt,z.TextRenderer=bt,z.Lexer=I,z.lexer=I.lex,z.Tokenizer=vt,z.Hooks=xt,z.parse=z,z.options,z.setOptions,z.use,z.walkTokens,z.parseInline,L.parse,I.lex;function St(e,t){this.v=e,this.k=t}function Ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wt(e){if(Array.isArray(e))return e}function Tt(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Et(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dt(e,t){return wt(e)||Tt(e,t)||Ot(e,t)||Et()}function Ot(e,t){if(e){if(typeof e==`string`)return Ct(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}function B(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof St;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}B.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},B.prototype.next=function(e){return this._invoke(`next`,e)},B.prototype.throw=function(e){return this._invoke(`throw`,e)},B.prototype.return=function(e){return this._invoke(`return`,e)};var kt=Object.entries,V=Object.setPrototypeOf,At=Object.isFrozen,jt=Object.getPrototypeOf,Mt=Object.getOwnPropertyDescriptor,H=Object.freeze,U=Object.seal,Nt=Object.create,Pt=typeof Reflect<`u`&&Reflect,Ft=Pt.apply,It=Pt.construct;H||=function(e){return e},U||=function(e){return e},Ft||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},It||=function(e){return new e(...[...arguments].slice(1))};var Lt=q(Array.prototype.forEach);Array.prototype.indexOf;var Rt=q(Array.prototype.lastIndexOf),zt=q(Array.prototype.pop),Bt=q(Array.prototype.push);Array.prototype.slice;var Vt=q(Array.prototype.splice),Ht=Array.isArray,Ut=q(String.prototype.toLowerCase),Wt=q(String.prototype.toString),Gt=q(String.prototype.match),Kt=q(String.prototype.replace),qt=q(String.prototype.indexOf),Jt=q(String.prototype.trim),Yt=q(Number.prototype.toString),Xt=q(Boolean.prototype.toString),Zt=typeof BigInt>`u`?null:q(BigInt.prototype.toString),Qt=typeof Symbol>`u`?null:q(Symbol.prototype.toString),W=q(Object.prototype.hasOwnProperty),$t=q(Object.prototype.toString),G=q(RegExp.prototype.test),K=en(TypeError);function q(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Ft(e,t,n)}}function en(e){return function(){return It(e,[...arguments])}}function J(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ut;if(V&&V(e,null),!Ht(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(At(t)||(t[r]=e),i=e)}e[i]=!0}return e}function tn(e){for(let t=0;t<e.length;t++)W(e,t)||(e[t]=null);return e}function Y(e){let t=Nt(null);for(let r of kt(e)){var n=Dt(r,2);let i=n[0],a=n[1];W(e,i)&&(t[i]=Ht(a)?tn(a):a&&typeof a==`object`&&a.constructor===Object?Y(a):a)}return t}function nn(e){switch(typeof e){case`string`:return e;case`number`:return Yt(e);case`boolean`:return Xt(e);case`bigint`:return Zt?Zt(e):`0`;case`symbol`:return Qt?Qt(e):`Symbol()`;case`undefined`:return $t(e);case`function`:case`object`:{if(e===null)return $t(e);let t=e,n=X(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:$t(e)}return $t(e)}default:return $t(e)}}function X(e,t){for(;e!==null;){let n=Mt(e,t);if(n){if(n.get)return q(n.get);if(typeof n.value==`function`)return q(n.value)}e=jt(e)}function n(){return null}return n}function rn(e){try{return G(e,``),!0}catch{return!1}}var an=H(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),on=H(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),sn=H([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),cn=H([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ln=H(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),un=H([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),dn=H([`#text`]),fn=H(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),pn=H(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),mn=H(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),hn=H([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),gn=U(/{{[\w\W]*|^[\w\W]*}}/g),_n=U(/<%[\w\W]*|^[\w\W]*%>/g),vn=U(/\${[\w\W]*/g),yn=U(/^data-[\-\w.\u00B7-\uFFFF]+$/),bn=U(/^aria-[\-\w]+$/),xn=U(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sn=U(/^(?:\w+script|data):/i),Cn=U(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wn=U(/^html$/i),Tn=U(/^[a-z][.\w]*(-[.\w]+)+$/i),En=U(/<[/\w!]/g),Dn=U(/<[/\w]/g),On=U(/<\/no(script|embed|frames)/i),kn=U(/\/>/i),Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},An=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],jn=H(J({},An)),Mn=function(){let e={};return Lt(An,t=>{e[t]=U(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),H(e)}(),Nn=function(){return typeof window>`u`?null:window},Pn=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Fn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},In=function(e,t,n,r){return W(e,t)&&Ht(e[t])?J(r.base?Y(r.base):{},e[t],r.transform):n},Ln=function(e,t,n){let r=W(e,t)?e[t]:void 0;return r&&typeof r==`object`?Y(r):n()};function Rn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nn(),t=e=>Rn(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==Z.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=X(d,`cloneNode`),p=X(d,`remove`),ee=X(d,`removeAttributeNode`),te=X(d,`nextSibling`),ne=X(d,`childNodes`),m=X(d,`parentNode`),re=X(d,`shadowRoot`),h=X(d,`attributes`),g=o&&o.prototype?X(o.prototype,`nodeType`):null,ie=o&&o.prototype?X(o.prototype,`nodeName`):null,ae=o&&o.prototype?X(o.prototype,`ownerDocument`):null,oe=function(e){return g?g(e):e.nodeType},_=function(e){return ie?ie(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let v,y=``,b,se=!1,x=0,ce=function(){if(x>0)throw K(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},S=function(e){ce(),x++;try{return v.createHTML(e)}finally{x--}},le=function(e){ce(),x++;try{return v.createScriptURL(e)}finally{x--}},ue=function(){return se||=(b=Pn(u,i),!0),b},de=n,fe=de.implementation,pe=de.createNodeIterator,me=de.createDocumentFragment,he=de.getElementsByTagName,ge=r.importNode,C=Fn();t.isSupported=typeof kt==`function`&&typeof m==`function`&&fe&&fe.createHTMLDocument!==void 0;let _e=gn,w=_n,T=vn,ve=yn,ye=bn,be=Sn,xe=Cn,Se=Tn,Ce=xn,E=null,we=J({},[...an,...on,...sn,...ln,...dn]),D=null,Te=J({},[...fn,...pn,...mn,...hn]),O=Object.seal(Nt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),k=null,Ee=null,A=Object.seal(Nt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),De=!0,Oe=!0,ke=!1,Ae=!0,j=!1,M=!0,je=!1,Me=!1,Ne=null,Pe=null,Fe=!1,Ie=!1,Le=!1,Re=!1,ze=!0,Be=!1,Ve=`user-content-`,He=!0,Ue=!1,We={},Ge=null,Ke=J({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),qe=null,Je=J({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ye=null,Xe=J({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ze=`http://www.w3.org/1998/Math/MathML`,Qe=`http://www.w3.org/2000/svg`,N=`http://www.w3.org/1999/xhtml`,$e=N,et=!1,tt=null,nt=J({},[Ze,Qe,N],Wt),rt=H([`mi`,`mo`,`mn`,`ms`,`mtext`]),it=J({},rt),at=H([`annotation-xml`]),ot=J({},at),st=J({},[`title`,`style`,`font`,`a`,`script`]),ct=null,lt=[`application/xhtml+xml`,`text/html`],P=null,ut=null,dt=n.createElement(`form`),F=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ut&&ut===e)return;(!e||typeof e!=`object`)&&(e={}),e=Y(e),ct=lt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,P=ct===`application/xhtml+xml`?Wt:Ut,E=In(e,`ALLOWED_TAGS`,we,{transform:P}),D=In(e,`ALLOWED_ATTR`,Te,{transform:P}),tt=In(e,`ALLOWED_NAMESPACES`,nt,{transform:Wt}),Ye=In(e,`ADD_URI_SAFE_ATTR`,Xe,{transform:P,base:Xe}),qe=In(e,`ADD_DATA_URI_TAGS`,Je,{transform:P,base:Je}),Ge=In(e,`FORBID_CONTENTS`,Ke,{transform:P}),k=In(e,`FORBID_TAGS`,Y({}),{transform:P}),Ee=In(e,`FORBID_ATTR`,Y({}),{transform:P}),We=W(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Y(e.USE_PROFILES):e.USE_PROFILES:!1,De=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=e.SAFE_FOR_TEMPLATES||!1,M=e.SAFE_FOR_XML!==!1,je=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,ze=e.SANITIZE_DOM!==!1,Be=e.SANITIZE_NAMED_PROPS||!1,He=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,Ce=rn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:xn,$e=typeof e.NAMESPACE==`string`?e.NAMESPACE:N,it=Ln(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>J({},rt)),ot=Ln(e,`HTML_INTEGRATION_POINTS`,()=>J({},at));let t=Ln(e,`CUSTOM_ELEMENT_HANDLING`,()=>Nt(null));if(O=Nt(null),W(t,`tagNameCheck`)&&F(t.tagNameCheck)&&(O.tagNameCheck=t.tagNameCheck),W(t,`attributeNameCheck`)&&F(t.attributeNameCheck)&&(O.attributeNameCheck=t.attributeNameCheck),W(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(O.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),U(O),j&&(Oe=!1),Le&&(Ie=!0),We&&(E=J({},dn),D=Nt(null),We.html===!0&&(J(E,an),J(D,fn)),We.svg===!0&&(J(E,on),J(D,pn),J(D,hn)),We.svgFilters===!0&&(J(E,sn),J(D,pn),J(D,hn)),We.mathMl===!0&&(J(E,ln),J(D,mn),J(D,hn))),A.tagCheck=null,A.attributeCheck=null,W(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?A.tagCheck=e.ADD_TAGS:Ht(e.ADD_TAGS)&&(E===we&&(E=Y(E)),J(E,e.ADD_TAGS,P))),W(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?A.attributeCheck=e.ADD_ATTR:Ht(e.ADD_ATTR)&&(D===Te&&(D=Y(D)),J(D,e.ADD_ATTR,P))),W(e,`ADD_FORBID_CONTENTS`)&&Ht(e.ADD_FORBID_CONTENTS)&&(Ge===Ke&&(Ge=Y(Ge)),J(Ge,e.ADD_FORBID_CONTENTS,P)),He&&(E[`#text`]=!0),je&&J(E,[`html`,`head`,`body`]),E.table&&(J(E,[`tbody`]),delete k.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw K(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw K(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=v;v=e.TRUSTED_TYPES_POLICY;try{y=S(``)}catch(e){throw v=t,e}}else e.TRUSTED_TYPES_POLICY===null?(v=void 0,y=``):(v===void 0&&(v=ue()),v&&typeof y==`string`&&(y=S(``)));H&&H(e),ut=e},pt=J({},[...on,...sn,...cn]),mt=J({},[...ln,...un]),ht=function(e,t,n){return t.namespaceURI===N?e===`svg`:t.namespaceURI===Ze?e===`svg`&&(n===`annotation-xml`||it[n]):!!pt[e]},gt=function(e,t,n){return t.namespaceURI===N?e===`math`:t.namespaceURI===Qe?e===`math`&&ot[n]:!!mt[e]},_t=function(e,t,n){return t.namespaceURI===Qe&&!ot[n]||t.namespaceURI===Ze&&!it[n]?!1:!mt[e]&&(st[e]||!pt[e])},vt=function(e){let t=m(e);(!t||!t.tagName)&&(t={namespaceURI:$e,tagName:`template`});let n=Ut(e.tagName),r=Ut(t.tagName);return tt[e.namespaceURI]?e.namespaceURI===Qe?ht(n,t,r):e.namespaceURI===Ze?gt(n,t,r):e.namespaceURI===N?_t(n,t,r):!!(ct===`application/xhtml+xml`&&tt[e.namespaceURI]):!1},I=function(e){Bt(t.removed,{element:e});try{m(e).removeChild(e)}catch{if(p(e),!m(e))throw K(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},yt=function(e,t,n){try{ee(e,t)}catch{try{e.removeAttribute(n)}catch{}}},bt=function(e){R(e);let t=ne(e);if(t){let e=[];Lt(t,t=>{Bt(e,t)}),Lt(e,e=>{try{p(e)}catch{}})}let n=h(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&yt(e,r,i)}},L=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Bt(t.removed,{attribute:r||null,from:n});try{r?ee(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Ie||Le)try{I(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},xt=function(e){let t=h(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||D[P(i)]||yt(e,r,i)}},R=function(e){let t=[e];for(;t.length>0;){let e=t.pop();oe(e)===Z.element&&xt(e);let n=ne(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},z=function(e,t){return M?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},St=function(e){if(!M)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=oe(e);if(n===Z.processingInstruction||n===Z.comment&&G(Dn,e.data)){try{p(e)}catch{}continue}if(n===Z.element){let t=e,n=P(_(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&z(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=ne(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Ct=function(e){let t=null,r=null;if(Fe)e=`<remove></remove>`+e;else{let t=Gt(e,/^[\r\n\t ]+/);r=t&&t[0]}ct===`application/xhtml+xml`&&$e===N&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=v?S(e):e;if($e===N)try{t=new l().parseFromString(i,ct)}catch{}if(!t||!t.documentElement){t=fe.createDocument($e,`template`,null);try{t.documentElement.innerHTML=et?y:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),$e===N?he.call(t,je?`html`:`body`)[0]:je?t.documentElement:a},wt=function(e){let t=ae?ae(e):e.ownerDocument;return pe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Tt=function(e){return e=Kt(e,_e,` `),e=Kt(e,w,` `),e=Kt(e,T,` `),e},Et=function(e){e.normalize();let t=ae?ae(e):e.ownerDocument,n=pe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Tt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Lt(i,e=>{Ot(e.content)&&Et(e.content)})},Dt=function(e){let t=ie?ie(e):null;return typeof t!=`string`||P(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==h(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==g(e)||e.childNodes!==ne(e)},Ot=function(e){if(!g||typeof e!=`object`||!e)return!1;try{return g(e)===Z.documentFragment}catch{return!1}},B=function(e){if(!g||typeof e!=`object`||!e)return!1;try{return typeof g(e)==`number`}catch{return!1}};function V(e,n,r){e.length!==0&&Lt(e,e=>{e.call(t,n,r,ut)})}let At=function(e,t){return!!(M&&e.hasChildNodes()&&!B(e.firstElementChild)&&G(En,e.textContent)&&G(En,e.innerHTML)||M&&e.namespaceURI===N&&jn[t]&&(B(e.firstElementChild)||typeof e.textContent==`string`&&G(Mn[t],e.textContent))||e.nodeType===Z.processingInstruction||M&&e.nodeType===Z.comment&&G(Dn,e.data))},jt=function(e,t){return e instanceof RegExp?G(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Mt=function(e,t,n){if(!k[t]&&Zt(t)&&jt(O.tagNameCheck,t))return!1;if(He&&!Ge[t]){let t=m(e),r=ne(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,te(e))}}}return I(e),!0},Pt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Y(t):t},Ft=function(e,t){return e===t||m(e)!==null?!1:(Ue&&R(e),!0)},It=function(e,n){if(V(C.beforeSanitizeElements,e,null),Ft(e,n))return!0;if(Dt(e))return I(e),!0;let r=P(_(e));if(E=Pt(C.uponSanitizeElement,E,we,Ne),V(C.uponSanitizeElement,e,{tagName:r,allowedTags:E}),Ft(e,n))return!0;if(At(e,r))return I(e),!0;if(k[r]||!(A.tagCheck instanceof Function&&A.tagCheck(r))&&!E[r]){let t=Mt(e,r,n);return t===!1&&(V(C.afterSanitizeElements,e,null),Ft(e,n))?!0:t}if(oe(e)===Z.element&&!vt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&G(On,e.innerHTML))return I(e),!0;if(j&&e.nodeType===Z.text){let n=Tt(e.textContent);e.textContent!==n&&(Bt(t.removed,{element:e.cloneNode()}),e.textContent=n)}return V(C.afterSanitizeElements,e,null),Ft(e,n)},Yt=function(e,t,r){if(Ee[t]||z(t,e)||ze&&(t===`id`||t===`name`)&&(r in n||r in dt))return!1;let i=D[t]||A.attributeCheck instanceof Function&&A.attributeCheck(t,e);return Oe&&G(ve,t)||De&&G(ye,t)?!0:i?Ye[t]||G(Ce,Kt(r,xe,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&qt(r,`data:`)===0&&qe[e]||ke&&!G(be,Kt(r,xe,``))?!0:!r:Zt(e)&&jt(O.tagNameCheck,e)&&jt(O.attributeNameCheck,t,e)||t===`is`&&O.allowCustomizedBuiltInElements&&jt(O.tagNameCheck,r)},Xt=J({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Zt=function(e){return!Xt[Ut(e)]&&G(Se,e)},Qt=function(e,t,n,r){if(v&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return S(r);case`TrustedScriptURL`:return le(r)}return r},$t=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Dt(e)||(I(e),!1)}catch{return L(t,e),!1}},q=function(e,n){if(V(C.beforeSanitizeAttributes,e,null),Ft(e,n))return;let r=e.attributes;if(!r||Dt(e))return;D=Pt(C.uponSanitizeAttribute,D,Te,Pe);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0},a=r.length,o=P(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=P(s),d=l,f=s===`value`?d:Jt(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,V(C.uponSanitizeAttribute,e,i),f=i.attrValue,Be&&(u===`id`||u===`name`)&&qt(f,Ve)!==0&&(L(s,e,n),f=Ve+f,p=!0),M&&G(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){L(s,e,n);continue}if(u===`attributename`&&Gt(f,`href`)){L(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){L(s,e,n);continue}if(!Ae&&G(kn,f)){L(s,e,n);continue}if(j&&(f=Tt(f)),!Yt(o,u,f)){L(s,e,n);continue}f=Qt(o,u,c,f),f!==d&&$t(e,s,c,f)&&p&&zt(t.removed)}}V(C.afterSanitizeAttributes,e,null),Ft(e,n)},en=function(e){let t=null,n=wt(e);for(V(C.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(V(C.uponSanitizeShadowNode,t,null),It(t,e),q(t,e),Ot(t.content)&&en(t.content),oe(t)===Z.element){let e=re(t);Ot(e)&&(tn(e),en(e))}V(C.afterSanitizeShadowDOM,e,null)},tn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){en(e.shadow);continue}let n=e.node,r=oe(n)===Z.element,i=ne(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ie?ie(n):null;if(typeof e==`string`&&P(e)===`template`){let e=n.content;Ot(e)&&t.push({node:e,shadow:null})}}if(r){let e=re(n);Ot(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(et=!e,et&&(e=`<!-->`),typeof e!=`string`&&!B(e)&&(e=nn(e),typeof e!=`string`))throw K(`dirty is not a string, aborting`);if(!t.isSupported)return e;Me?(E=Ne,D=Pe):ft(n),(C.uponSanitizeElement.length>0||C.uponSanitizeAttribute.length>0)&&(E=Y(E)),C.uponSanitizeAttribute.length>0&&(D=Y(D)),t.removed=[];let c=Ue&&typeof e!=`string`&&B(e);if(c){St(e);let t=_(e);if(typeof t==`string`){let n=P(t);if(!E[n]||k[n])throw bt(e),K(`root node is forbidden and cannot be sanitized in-place`)}if(Dt(e))throw bt(e),K(`root node is clobbered and cannot be sanitized in-place`);try{tn(e)}catch(t){throw bt(e),t}}else if(B(e))i=Ct(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Z.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),tn(i);else{if(!Ie&&!j&&!je&&e.indexOf(`<`)===-1)return v&&Re?S(e):e;if(i=Ct(e),!i)return Ie?null:Re?y:``}i&&Fe&&I(i.firstChild);let l=c?e:i;try{let e=wt(l);for(;o=e.nextNode();)It(o,l),q(o,l),Ot(o.content)&&en(o.content)}catch(n){throw c&&(bt(e),Lt(t.removed,e=>{e.element&&R(e.element)})),n}if(c){let n=!1;if(Lt(t.removed,t=>{t.element&&(t.element===e&&(n=!0),R(t.element))}),n)throw K(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return j&&Et(e),e}if(Ie){if(j&&Et(i),Le)for(s=me.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(D.shadowroot||D.shadowrootmode)&&(s=ge.call(r,s,!0)),s}let u=je?i.outerHTML:i.innerHTML;return je&&E[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&G(wn,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
58
- `+u),j&&(u=Tt(u)),v&&Re?S(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ft(e),Me=!0,Ne=E,Pe=D},t.clearConfig=function(){ut=null,Me=!1,Ne=null,Pe=null,v=b,y=``},t.isValidAttribute=function(e,t,n){ut||ft({});let r=P(e),i=P(t);return Yt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&W(C,e)&&Bt(C[e],t)},t.removeHook=function(e,t){if(W(C,e)){if(t!==void 0){let n=Rt(C[e],t);return n===-1?void 0:Vt(C[e],n,1)[0]}return zt(C[e])}},t.removeHooks=function(e){W(C,e)&&(C[e]=[])},t.removeAllHooks=function(){C=Fn()},t}var zn=Rn(),Bn=new Set(`ts.tsx.js.jsx.mjs.cjs.vue.svelte.json.jsonl.md.mdx.txt.html.htm.css.scss.less.py.rb.rs.go.java.kt.swift.c.h.cpp.hpp.cs.php.sh.bash.zsh.fish.yml.yaml.toml.ini.conf.cfg.lock.xml.svg.csv.tsv.sql.pdf.png.jpg.jpeg.gif.webp.mp4.m4v.mov.webm.zip.gz.tgz.docx.xlsx.pptx.ipynb.dockerfile.patch.diff`.split(`.`)),Vn=new Set([`Dockerfile`,`Makefile`,`LICENSE`,`Gemfile`,`Procfile`,`Justfile`,`.env`,`.gitignore`]),Hn=/[\0\n\r\t`"<>|*?$;&{}[\]()\\]|:\/\//,Un=/:\d+(?::\d+)?$/,Wn=/^[\w@+~.,=%#-]+$/,Gn=e=>e.replace(Un,``);function Kn(e){let t=String(e||``).trim();if(t.length<2||t.length>1024||Hn.test(t))return null;let n=Gn(t);if(n.length<2||n.startsWith(`-`))return null;let r=n.startsWith(`/`)||n.startsWith(`~/`);if(/\s/.test(n)&&!r||/\s{2,}|^\S+\s+-/.test(n))return null;let i=n.replace(/^~\//,``).replace(/^\/+/,``).split(`/`),a=i.filter((e,t)=>e!==``||t!==i.length-1);if(!a.length||a.some(e=>e===``||!Wn.test(e.replace(/ /g,`_`))))return null;if(r)return n.startsWith(`/`)&&a.length===1&&!/\.\w+$/.test(a[0])?null:n;if(n.startsWith(`./`)||n.startsWith(`../`))return n;let o=a[a.length-1],s=/\.([A-Za-z0-9]{1,10})$/.exec(o)?.[1]?.toLowerCase(),c=Vn.has(o)||!!(s&&Bn.has(s));return a.length===1?c&&!/^\d/.test(o)?n:null:(c||n.endsWith(`/`)||a.length>=3)&&a.every(e=>/[A-Za-z_]/.test(e))?n:null}var qn=new Set(`git.gh.npm.npx.pnpm.yarn.bun.node.deno.python.python3.pip.uv.cargo.go.make.docker.kubectl.cd.ls.cat.grep.rg.find.sed.awk.curl.wget.ssh.scp.rsync.tar.chmod.chown.mkdir.rm.mv.cp.echo.export.sudo.brew.apt.apk.systemctl.journalctl.flock.tmux.herdr.claude.codex.omp.vitest.jest.tsc.eslint.prettier.nuxt.vite.swift.xcodebuild.open.kill.ps.top.du.df.free.uptime.touch.head.tail.jq.env.source.bash.sh.zsh`.split(`.`)),Jn=`ctrl|control|cmd|command|alt|option|opt|shift|meta|super|fn`,Yn=RegExp(`^(?:${Jn})(?:[+-](?:${Jn}|esc|escape|enter|return|tab|space|backspace|delete|del|home|end|pgup|pgdn|up|down|left|right|f\\d{1,2}|.))+$|^[⌘⌃⌥⇧]+\\S{0,2}$|^[↵⏎⇥⌫⎋↑↓←→]$`,`i`),Xn=/^(?:Esc|Escape|Enter|Return|Tab|Space|Backspace|Delete|Home|End|PgUp|PgDn|F\d{1,2}|ESC|ENTER|TAB)$/,Zn=`ms|µs|ns|s|sec|min|h|d|%|x|×|k|m|kb|ko|mb|mo|gb|go|tb|b|px|em|rem|lines|tests|files`,Qn=RegExp(`^[~≈<>+−-]?\\d[\\d_.,]*\\s?(?:${Zn})?(?:\\s\\d[\\d.,]*\\s?(?:${Zn}))*$`,`i`);function $n(e){let t=String(e||``).trim();if(!t||t.length>400)return null;if(/^(?:exit|code|status)\s+0$|^(?:ok|pass(?:ed)?|✓)$/i.test(t))return`ok`;if(/^(?:exit|code|status)\s+[1-9]\d*$|^(?:fail(?:ed)?|error|✗)$/i.test(t)||/^(?:E[A-Z]{3,}|SIG[A-Z]+)$/.test(t))return`err`;if(Yn.test(t)||Xn.test(t))return`key`;if(/^t-\d{3,}$|^[A-Z][A-Z0-9]+-\d+$|^(?=[0-9a-f]*[a-f])(?=[0-9a-f]*\d)[0-9a-f]{7,40}$/.test(t))return`id`;if(Qn.test(t))return`num`;if(Kn(t))return`path`;if(/^[$!❯]\s|^\/[a-z][\w-]*(?:\s|$)/.test(t))return`cmd`;let n=t.split(/\s+/)[0];return qn.has(n)&&/\s/.test(t)||/\s--?[a-z]/.test(t)&&/^[a-z][\w.-]*\s/.test(t)?`cmd`:null}var er={c:{comment:String.raw`\/\/[^\n]*|\/\*[\s\S]*?\*\/`,keywords:`if.else.for.while.do.return.break.continue.switch.case.default.function.const.let.var.class.extends.implements.interface.type.enum.import.export.from.as.new.this.super.try.catch.finally.throw.throws.async.await.yield.typeof.instanceof.in.of.void.static.public.private.protected.readonly.abstract.true.false.null.undefined.nil.fn.pub.struct.impl.trait.mod.use.mut.match.loop.where.self.Self.func.package.go.defer.chan.map.range.select.int.long.char.bool.boolean.float.double.string.auto.union.namespace.using.template.override.final.val.when.guard.some.any.unknown.never.declare.keyof.satisfies`.split(`.`)},hash:{comment:String.raw`#[^\n]*`,keywords:`if.elif.else.for.while.in.not.and.or.is.return.def.class.import.from.as.with.try.except.finally.raise.pass.break.continue.lambda.yield.async.await.global.nonlocal.del.assert.True.False.None.then.fi.do.done.case.esac.function.local.export.readonly.source.echo.exit.set.unset.shift.until.begin.end.module.require.unless.nil.self.true.false.null.yes.no.on.off`.split(`.`)},sql:{comment:String.raw`--[^\n]*|\/\*[\s\S]*?\*\/`,keywords:`select.from.where.and.or.not.in.is.null.as.join.left.right.inner.outer.on.group.by.order.having.limit.offset.insert.into.values.update.set.delete.create.table.index.view.drop.alter.add.primary.key.foreign.references.unique.default.distinct.union.all.case.when.then.else.end.begin.commit.rollback.with.returning.integer.text.varchar.boolean.true.false.local.function.return.if.for.while.do.nil.repeat.until`.split(`.`),caseless:!0},markup:{comment:String.raw`<!--[\s\S]*?-->`,keywords:[],tags:!0}},tr={};for(let e of`js.javascript.mjs.cjs.jsx.ts.typescript.tsx.json.jsonc.json5.java.c.h.cpp.c++.cc.hpp.cs.csharp.go.golang.rust.rs.swift.kotlin.kt.scala.dart.php.css.scss.less.groovy.zig`.split(`.`))tr[e]=`c`;for(let e of`sh.bash.zsh.fish.shell.console.shellsession.py.python.python3.rb.ruby.yaml.yml.toml.ini.conf.dockerfile.docker.makefile.make.perl.pl.r.nix.elixir.ex.exs.nim.powershell.ps1.cmake.gitignore.env.dotenv`.split(`.`))tr[e]=`hash`;for(let e of[`sql`,`mysql`,`postgres`,`postgresql`,`sqlite`,`plsql`,`lua`,`haskell`,`hs`,`elm`])tr[e]=`sql`;for(let e of[`html`,`xml`,`svg`,`vue`,`svelte`,`xhtml`,`plist`])tr[e]=`markup`;var nr=String.raw`"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|\`(?:[^\`\\]|\\[\s\S])*\``,rr=String.raw`\b(?:0x[\da-fA-F_]+|\d[\d_]*(?:\.\d+)?(?:[eE][+-]?\d+)?)\b`,ir=String.raw`[A-Za-z_$][\w$]*`,ar=String.raw`<\/?[A-Za-z][\w:-]*|\/?>`,or=new Map;function sr(e){let t=tr[e.toLowerCase()];if(!t)return null;let n=or.get(t);if(!n){let e=er[t],r=[`(${e.comment})`,`(${nr})`,`(${rr})`,`(${e.tags?ar:ir})`];n={re:new RegExp(r.join(`|`),`g`),words:new Set(e.caseless?e.keywords.map(e=>e.toLowerCase()):e.keywords),caseless:!!e.caseless},or.set(t,n)}return n}var cr=e=>e.replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e]),lr=(e,t)=>`<span class="hl-${e}">${cr(t)}</span>`;function ur(e,t){let n=e.length>65536?null:sr(t);if(!n)return cr(e);let r=``,i=0;n.re.lastIndex=0;for(let t=n.re.exec(e);t;t=n.re.exec(e)){if(!t[0]){n.re.lastIndex++;continue}r+=cr(e.slice(i,t.index)),i=t.index+t[0].length,t[1]?r+=lr(`c`,t[0]):t[2]?r+=lr(`s`,t[0]):t[3]?r+=lr(`n`,t[0]):t[0].startsWith(`<`)||t[0].endsWith(`>`)?r+=lr(`t`,t[0]):n.words.has(n.caseless?t[0].toLowerCase():t[0])?r+=lr(`k`,t[0]):r+=cr(t[0])}return r+cr(e.slice(i))}var dr={bash:!0,sh:!0,zsh:!0,shell:!0,console:!0,shellsession:!0},fr=/^\s*(?:!(?=\s*[^\s=])\s*|\$\s+|❯\s+)/;function pr(e){let t=e.some(e=>fr.test(e)),n=[],r=!1;for(let i of e){if(!t||r)n.push(i);else if(fr.test(i))n.push(i.replace(fr,``));else continue;r=t&&/\\\s*$/.test(i)}let i=n.join(`
59
- `).replace(/^\s*\n|\s+$/g,``);return i.trim()?i:null}function mr(e,t){let n=String(t||``).trim().split(/\s/)[0].toLowerCase(),r=String(e||``).split(`
60
- `);if(dr[n])return pr(r);if(n)return null;let i=pr(r);if(!i)return null;if(r.some(e=>fr.test(e)))return i;let a=i.replace(/\\\s*\n/g,` `).split(`
61
- `).map(e=>e.trim()).filter(e=>e&&!e.startsWith(`#`));return a.length&&a.every(e=>$n(e)===`cmd`&&!e.startsWith(`/`))?i:null}function hr(e){let t=String(e||``).trim();if(!t||t.includes(`
62
- `))return null;let n=t.match(/^([!$❯])(\s*)(.+)$/);if(n){let e=n[3].trim();return n[2]||n[1]===`!`&&$n(e)===`cmd`&&!e.startsWith(`/`)?e:null}return $n(t)===`cmd`&&!t.startsWith(`/`)?t:null}var gr={claude:!0,codex:!0,omp:!0},_r=e=>!!gr[e||``];function vr(e,t){let n=t.trim();return n&&_r(e)?`! ${n}`:null}var yr=!1,br=re(5e3,4e6),xr=y(),Sr=new Set;function Cr(e){Sr.add(e)}var wr={FORBID_TAGS:[`style`,`form`,`textarea`,`select`,`option`,`optgroup`,`fieldset`,`legend`,`label`,`datalist`,`output`,`dialog`],FORBID_ATTR:[`style`]},Tr=!1,Er=!1,Dr=e=>!/^[a-z][a-z\d+.-]*:/i.test(e)&&!e.startsWith(`//`)&&!e.startsWith(`#`),Q=e=>e.replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e]);function Or(e,t={}){let n=t.doc?`\0doc\0${e}`:t.plain?`\0plain\0${e}`:e,r=br.get(n);if(r!==void 0)return r;yr||(yr=!0,z.use({renderer:{code({text:e,lang:t}){let n=Q((t||``).split(/\s/)[0]||``);if(Er)return`<div class="code-block"><div class="code-head"><span>${n||`code`}</span><span class="code-tools"><button type="button" class="code-copy">${Q(_(`Copy`))}</button></span></div><pre><code${n?` class="language-${n}"`:``}>${ur(e,n)}</code></pre></div>`;let r=mr(e,t),i=r===null?``:`<button type="button" class="code-run">${Q(h(`Run`,`Lancer`))}</button>`;return`<div class="code-block"${r===null?``:` data-cmd="${Q(r)}"`}><div class="code-head"><span>${n||`code`}</span><span class="code-tools">${i}<button type="button" class="code-copy">${Q(_(`Copy`))}</button></span></div><pre><code${n?` class="language-${n}"`:``}>${Q(e)}</code></pre></div>`},codespan({text:e}){let t=Q(e);if(Er){let n=$n(e);return`<code${n?` data-k="${n}"`:``}>${t}</code>`}if(Kn(e))return`<code class="md-path" data-k="path" role="button" tabindex="0">${t}</code>`;let n=hr(e);if(n!==null)return`<code class="md-cmd" data-k="cmd" data-cmd="${Q(n)}" role="button" tabindex="0">${t}</code>`;let r=$n(e);return`<code${r?` data-k="${r}"`:``}>${t}</code>`}}}),zn.addHook(`uponSanitizeElement`,(e,t)=>{if(!Tr||t.tagName!==`input`)return;let n=e;n.getAttribute(`type`)===`checkbox`&&n.hasAttribute(`disabled`)||n.parentNode?.removeChild(n)}),zn.addHook(`afterSanitizeAttributes`,e=>{if(Er&&e.tagName===`IMG`){let t=e.getAttribute(`src`);t&&Dr(t)&&(e.setAttribute(`data-src`,t),e.removeAttribute(`src`))}e.tagName===`A`&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`))}));let i;Tr=!!(t.plain||t.doc),Er=!!t.doc;try{let t=z.parse(e,{breaks:!Er,gfm:!0,async:!1});i=Tr?zn.sanitize(t,wr):zn.sanitize(t)}catch{i=`<p>${Q(e)}</p>`}finally{Tr=!1,Er=!1}for(let e of xr(n)){let t=br.delete(e);if(t!==void 0&&t!==i)for(let e of Sr)e(t)}return br.set(n,i,n.length+i.length),i}var $=(e,t,n={})=>({id:e,kind:`key`,send:e,label:t,...n}),kr=(e,t,n)=>$(e,n,{icon:t}),Ar=e=>$(e,()=>e.toUpperCase(),{cap:()=>e.toUpperCase()}),jr=[{id:`keyboard`,kind:`keyboard`,label:()=>_(`Show or hide the phone keyboard`),name:()=>h(`Phone keyboard`,`Clavier du téléphone`),icon:`i-lucide-keyboard`},{id:`ctrl`,kind:`modifier`,modifier:`ctrl`,label:()=>_(`Ctrl`),cap:()=>_(`Ctrl`)},$(`esc`,()=>_(`Esc`),{cap:()=>_(`Esc`)}),$(`tab`,()=>h(`Tab`,`Tabulation`),{cap:()=>h(`Tab`,`Tab`)}),kr(`left`,`i-lucide-arrow-left`,()=>h(`Left arrow`,`Flèche gauche`)),kr(`up`,`i-lucide-arrow-up`,()=>h(`Up arrow`,`Flèche haut`)),kr(`down`,`i-lucide-arrow-down`,()=>h(`Down arrow`,`Flèche bas`)),kr(`right`,`i-lucide-arrow-right`,()=>h(`Right arrow`,`Flèche droite`)),kr(`enter`,`i-lucide-corner-down-left`,()=>h(`Enter`,`Entrée`)),$(`ctrl-c`,()=>h(`Ctrl+C`,`Ctrl+C`),{send:`ctrl+c`,cap:()=>`^C`,danger:!0}),kr(`backspace`,`i-lucide-delete`,()=>h(`Backspace`,`Retour arrière`)),$(`home`,()=>h(`Home`,`Début`),{cap:()=>h(`Home`,`Début`)}),$(`end`,()=>h(`End`,`Fin`),{cap:()=>h(`End`,`Fin`)}),$(`pageup`,()=>h(`PgUp`,`Page précédente`),{cap:()=>h(`PgUp`,`Pg préc`)}),$(`pagedown`,()=>h(`PgDn`,`Page suivante`),{cap:()=>h(`PgDn`,`Pg suiv`)}),$(`delete`,()=>h(`Delete`,`Supprimer`),{cap:()=>h(`Del`,`Suppr`)}),$(`insert`,()=>h(`Insert`,`Insérer`),{cap:()=>h(`Ins`,`Inser`)}),{id:`alt`,kind:`modifier`,modifier:`alt`,label:()=>_(`Alt`),cap:()=>_(`Alt`)},{id:`shift`,kind:`modifier`,modifier:`shift`,label:()=>_(`Shift`),cap:()=>_(`Shift`)},Ar(`y`),Ar(`n`),...u.filter(e=>/^f\d+$/.test(e)).map(Ar)],Mr=e=>(e.name||e.label)(),Nr=Object.fromEntries(jr.map(e=>[e.id,e])),Pr=`pasteJournalEnabled`;function Fr(){try{return typeof localStorage<`u`&&localStorage.getItem(Pr)===`1`}catch{return!1}}var Ir=e(Fr()),Lr=e([]);function Rr(e){Ir.value=e,e||(Lr.value=[]);try{localStorage.setItem(Pr,e?`1`:`0`)}catch{}}function zr(e,t,n,r,i){if(!Ir.value)return;let a=r.value,o=i(),s={time:new Date().toISOString(),event:e.type,types:[...t?.types||[]],textLength:n,prevented:!1,focus:document.activeElement?.tagName||`NONE`,fieldFocused:document.activeElement===r,modified:!1,fieldLength:r.value.length,connected:r.isConnected};setTimeout(()=>{Ir.value&&(s.prevented=e.defaultPrevented,s.modified=r.value!==a||i()!==o,s.fieldLength=r.value.length,s.connected=r.isConnected,Lr.value=[...Lr.value.slice(-49),s])},0)}var Br=e(null),Vr=e(!1);async function Hr(){Vr.value=!0;try{Br.value=await g(`/api/worktrees`)}catch(e){m(e.message,!0)}finally{Vr.value=!1}}var Ur=e=>e.branch||e.path.split(`/`).pop()||e.path;async function Wr(e){let t=Ur(e),n=e.agents?h(` ${e.agents>1?`Its ${e.agents} agents will be stopped`:`Its agent will be stopped`}.`,` ${e.agents>1?`Ses ${e.agents} agents seront arrêtés`:`Son agent sera arrêté`}.`):e.panes?h(` Its terminals will be closed.`,` Ses terminaux seront fermés.`):``,r=e.branch?h(` Branch ${e.branch} is kept.`,` La branche ${e.branch} est gardée.`):``;if(!await c(h(`Delete worktree ${t} (${e.path})?${n}${r}`,`Supprimer le worktree ${t} (${e.path}) ?${n}${r}`),_(`Delete`)))return!1;let i=!1;for(;;)try{return await g(`/api/worktrees/remove`,{machine:e.machine,path:e.path,force:i}),m(h(`Worktree ${t} deleted`,`Worktree ${t} supprimé`)),Br.value&&=Br.value.filter(t=>t.machine!==e.machine||t.path!==e.path),!0}catch(e){if(!i&&e instanceof v&&e.code===`dirty`){if(!await c(h(`${t} has uncommitted changes. Delete them with the worktree?`,`${t} contient des modifications non commitées. Les supprimer avec le worktree ?`),_(`Force delete`)))return!1;i=!0;continue}return m(e.message,!0),!1}}export{Lr as a,zr as c,Or as d,Cr as f,me as g,Gn as h,Br as i,Nr as l,vr as m,Wr as n,Ir as o,_r as p,Ur as r,Rr as s,Hr as t,Mr as u};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file