@kynetic-ai/spec 0.9.1 → 0.11.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 (310) hide show
  1. package/README.md +2 -1
  2. package/dist/acp/client.d.ts +6 -1
  3. package/dist/acp/client.d.ts.map +1 -1
  4. package/dist/acp/client.js +7 -2
  5. package/dist/acp/client.js.map +1 -1
  6. package/dist/acp/framing.d.ts +12 -1
  7. package/dist/acp/framing.d.ts.map +1 -1
  8. package/dist/acp/framing.js +27 -4
  9. package/dist/acp/framing.js.map +1 -1
  10. package/dist/agent-runtime/dispatch.d.ts +292 -0
  11. package/dist/agent-runtime/dispatch.d.ts.map +1 -0
  12. package/dist/agent-runtime/dispatch.js +860 -0
  13. package/dist/agent-runtime/dispatch.js.map +1 -0
  14. package/dist/agent-runtime/index.d.ts +11 -0
  15. package/dist/agent-runtime/index.d.ts.map +1 -0
  16. package/dist/agent-runtime/index.js +11 -0
  17. package/dist/agent-runtime/index.js.map +1 -0
  18. package/dist/agent-runtime/invocation.d.ts +86 -0
  19. package/dist/agent-runtime/invocation.d.ts.map +1 -0
  20. package/dist/agent-runtime/invocation.js +442 -0
  21. package/dist/agent-runtime/invocation.js.map +1 -0
  22. package/dist/agent-runtime/prompts.d.ts +50 -0
  23. package/dist/agent-runtime/prompts.d.ts.map +1 -0
  24. package/dist/agent-runtime/prompts.js +108 -0
  25. package/dist/agent-runtime/prompts.js.map +1 -0
  26. package/dist/agents/spawner.d.ts.map +1 -1
  27. package/dist/agents/spawner.js +60 -4
  28. package/dist/agents/spawner.js.map +1 -1
  29. package/dist/cli/batch-exec.d.ts.map +1 -1
  30. package/dist/cli/batch-exec.js +140 -62
  31. package/dist/cli/batch-exec.js.map +1 -1
  32. package/dist/cli/batch-write-buffer.d.ts +141 -0
  33. package/dist/cli/batch-write-buffer.d.ts.map +1 -0
  34. package/dist/cli/batch-write-buffer.js +400 -0
  35. package/dist/cli/batch-write-buffer.js.map +1 -0
  36. package/dist/cli/commands/agent.d.ts +20 -0
  37. package/dist/cli/commands/agent.d.ts.map +1 -0
  38. package/dist/cli/commands/agent.js +831 -0
  39. package/dist/cli/commands/agent.js.map +1 -0
  40. package/dist/cli/commands/inbox.d.ts.map +1 -1
  41. package/dist/cli/commands/inbox.js +46 -22
  42. package/dist/cli/commands/inbox.js.map +1 -1
  43. package/dist/cli/commands/index.d.ts +1 -0
  44. package/dist/cli/commands/index.d.ts.map +1 -1
  45. package/dist/cli/commands/index.js +1 -0
  46. package/dist/cli/commands/index.js.map +1 -1
  47. package/dist/cli/commands/item.d.ts.map +1 -1
  48. package/dist/cli/commands/item.js +22 -16
  49. package/dist/cli/commands/item.js.map +1 -1
  50. package/dist/cli/commands/log.js +1 -1
  51. package/dist/cli/commands/log.js.map +1 -1
  52. package/dist/cli/commands/meta.d.ts.map +1 -1
  53. package/dist/cli/commands/meta.js +168 -6
  54. package/dist/cli/commands/meta.js.map +1 -1
  55. package/dist/cli/commands/module.d.ts.map +1 -1
  56. package/dist/cli/commands/module.js +2 -1
  57. package/dist/cli/commands/module.js.map +1 -1
  58. package/dist/cli/commands/plan-import.js +19 -3
  59. package/dist/cli/commands/plan-import.js.map +1 -1
  60. package/dist/cli/commands/plan.d.ts.map +1 -1
  61. package/dist/cli/commands/plan.js +87 -43
  62. package/dist/cli/commands/plan.js.map +1 -1
  63. package/dist/cli/commands/ralph.d.ts +5 -56
  64. package/dist/cli/commands/ralph.d.ts.map +1 -1
  65. package/dist/cli/commands/ralph.js +52 -1502
  66. package/dist/cli/commands/ralph.js.map +1 -1
  67. package/dist/cli/commands/search.d.ts.map +1 -1
  68. package/dist/cli/commands/search.js +22 -13
  69. package/dist/cli/commands/search.js.map +1 -1
  70. package/dist/cli/commands/serve.d.ts.map +1 -1
  71. package/dist/cli/commands/serve.js +70 -11
  72. package/dist/cli/commands/serve.js.map +1 -1
  73. package/dist/cli/commands/session/checkpoint.d.ts.map +1 -1
  74. package/dist/cli/commands/session/checkpoint.js +7 -2
  75. package/dist/cli/commands/session/checkpoint.js.map +1 -1
  76. package/dist/cli/commands/session/commands.d.ts.map +1 -1
  77. package/dist/cli/commands/session/commands.js +15 -0
  78. package/dist/cli/commands/session/commands.js.map +1 -1
  79. package/dist/cli/commands/session/context.d.ts.map +1 -1
  80. package/dist/cli/commands/session/context.js +10 -5
  81. package/dist/cli/commands/session/context.js.map +1 -1
  82. package/dist/cli/commands/session/log.d.ts +1 -0
  83. package/dist/cli/commands/session/log.d.ts.map +1 -1
  84. package/dist/cli/commands/session/log.js +124 -8
  85. package/dist/cli/commands/session/log.js.map +1 -1
  86. package/dist/cli/commands/session/stale-close.d.ts +17 -0
  87. package/dist/cli/commands/session/stale-close.d.ts.map +1 -0
  88. package/dist/cli/commands/session/stale-close.js +378 -0
  89. package/dist/cli/commands/session/stale-close.js.map +1 -0
  90. package/dist/cli/commands/setup.d.ts.map +1 -1
  91. package/dist/cli/commands/setup.js +95 -0
  92. package/dist/cli/commands/setup.js.map +1 -1
  93. package/dist/cli/commands/skill-crud.d.ts.map +1 -1
  94. package/dist/cli/commands/skill-crud.js +4 -3
  95. package/dist/cli/commands/skill-crud.js.map +1 -1
  96. package/dist/cli/commands/skill-diff.d.ts.map +1 -1
  97. package/dist/cli/commands/skill-diff.js +15 -0
  98. package/dist/cli/commands/skill-diff.js.map +1 -1
  99. package/dist/cli/commands/skill-install.d.ts.map +1 -1
  100. package/dist/cli/commands/skill-install.js +50 -18
  101. package/dist/cli/commands/skill-install.js.map +1 -1
  102. package/dist/cli/commands/task.d.ts.map +1 -1
  103. package/dist/cli/commands/task.js +536 -310
  104. package/dist/cli/commands/task.js.map +1 -1
  105. package/dist/cli/commands/tasks.js +1 -1
  106. package/dist/cli/commands/tasks.js.map +1 -1
  107. package/dist/cli/commands/triage.d.ts.map +1 -1
  108. package/dist/cli/commands/triage.js +37 -13
  109. package/dist/cli/commands/triage.js.map +1 -1
  110. package/dist/cli/commands/validate.d.ts.map +1 -1
  111. package/dist/cli/commands/validate.js +65 -25
  112. package/dist/cli/commands/validate.js.map +1 -1
  113. package/dist/cli/help/content.d.ts.map +1 -1
  114. package/dist/cli/help/content.js +5 -0
  115. package/dist/cli/help/content.js.map +1 -1
  116. package/dist/cli/index.d.ts.map +1 -1
  117. package/dist/cli/index.js +2 -1
  118. package/dist/cli/index.js.map +1 -1
  119. package/dist/cli/output.d.ts.map +1 -1
  120. package/dist/cli/output.js +5 -1
  121. package/dist/cli/output.js.map +1 -1
  122. package/dist/daemon/project-context.ts +22 -0
  123. package/dist/daemon/routes/agent-dispatch.ts +279 -0
  124. package/dist/daemon/routes/items.ts +22 -0
  125. package/dist/daemon/routes/meta.ts +141 -1
  126. package/dist/daemon/routes/plans.ts +147 -0
  127. package/dist/daemon/routes/sessions.ts +180 -0
  128. package/dist/daemon/routes/tasks.ts +198 -0
  129. package/dist/daemon/routes/validation.ts +1 -1
  130. package/dist/daemon/server.ts +77 -21
  131. package/dist/daemon/websocket/handler.ts +67 -6
  132. package/dist/daemon/websocket/lifecycle.ts +19 -0
  133. package/dist/daemon/websocket/pubsub.ts +74 -3
  134. package/dist/export/html.d.ts.map +1 -1
  135. package/dist/export/html.js +5 -2
  136. package/dist/export/html.js.map +1 -1
  137. package/dist/export/triage.d.ts +1 -1
  138. package/dist/export/triage.d.ts.map +1 -1
  139. package/dist/export/triage.js +5 -3
  140. package/dist/export/triage.js.map +1 -1
  141. package/dist/parser/alignment.d.ts.map +1 -1
  142. package/dist/parser/alignment.js +10 -5
  143. package/dist/parser/alignment.js.map +1 -1
  144. package/dist/parser/assess.js +1 -1
  145. package/dist/parser/assess.js.map +1 -1
  146. package/dist/parser/config.d.ts +6 -6
  147. package/dist/parser/meta.d.ts.map +1 -1
  148. package/dist/parser/meta.js +9 -8
  149. package/dist/parser/meta.js.map +1 -1
  150. package/dist/parser/plan-document.d.ts +12 -12
  151. package/dist/parser/plans.d.ts +7 -0
  152. package/dist/parser/plans.d.ts.map +1 -1
  153. package/dist/parser/plans.js +100 -15
  154. package/dist/parser/plans.js.map +1 -1
  155. package/dist/parser/refs.d.ts +5 -0
  156. package/dist/parser/refs.d.ts.map +1 -1
  157. package/dist/parser/refs.js +17 -12
  158. package/dist/parser/refs.js.map +1 -1
  159. package/dist/parser/shadow.d.ts +1 -1
  160. package/dist/parser/shadow.d.ts.map +1 -1
  161. package/dist/parser/shadow.js +71 -4
  162. package/dist/parser/shadow.js.map +1 -1
  163. package/dist/parser/skill-render.d.ts.map +1 -1
  164. package/dist/parser/skill-render.js +6 -3
  165. package/dist/parser/skill-render.js.map +1 -1
  166. package/dist/parser/validate.d.ts.map +1 -1
  167. package/dist/parser/validate.js +35 -76
  168. package/dist/parser/validate.js.map +1 -1
  169. package/dist/parser/yaml.d.ts +24 -5
  170. package/dist/parser/yaml.d.ts.map +1 -1
  171. package/dist/parser/yaml.js +224 -64
  172. package/dist/parser/yaml.js.map +1 -1
  173. package/dist/schema/meta.d.ts +457 -119
  174. package/dist/schema/meta.d.ts.map +1 -1
  175. package/dist/schema/meta.js +56 -0
  176. package/dist/schema/meta.js.map +1 -1
  177. package/dist/schema/plan.d.ts +22 -22
  178. package/dist/schema/spec.d.ts +39 -39
  179. package/dist/schema/task.d.ts +43 -32
  180. package/dist/schema/task.d.ts.map +1 -1
  181. package/dist/schema/task.js +5 -0
  182. package/dist/schema/task.js.map +1 -1
  183. package/dist/sessions/store.d.ts +126 -0
  184. package/dist/sessions/store.d.ts.map +1 -1
  185. package/dist/sessions/store.js +440 -22
  186. package/dist/sessions/store.js.map +1 -1
  187. package/dist/sessions/types.d.ts +75 -17
  188. package/dist/sessions/types.d.ts.map +1 -1
  189. package/dist/sessions/types.js +51 -1
  190. package/dist/sessions/types.js.map +1 -1
  191. package/dist/triage/actions.d.ts +1 -0
  192. package/dist/triage/actions.d.ts.map +1 -1
  193. package/dist/triage/actions.js +34 -7
  194. package/dist/triage/actions.js.map +1 -1
  195. package/dist/utils/commit.js +1 -1
  196. package/dist/utils/commit.js.map +1 -1
  197. package/dist/web-ui/_app/env.js +1 -0
  198. package/dist/web-ui/_app/immutable/assets/0.BJaYkGW2.css +1 -0
  199. package/dist/web-ui/_app/immutable/assets/9.SzGLxi4x.css +1 -0
  200. package/dist/web-ui/_app/immutable/assets/select-trigger.CV-KWLNP.css +1 -0
  201. package/dist/web-ui/_app/immutable/chunks/-lc0BifF.js +1 -0
  202. package/dist/web-ui/_app/immutable/chunks/62JVKtnb.js +1 -0
  203. package/dist/web-ui/_app/immutable/chunks/8RBjHMN1.js +1 -0
  204. package/dist/web-ui/_app/immutable/chunks/B5LJFxqa.js +1 -0
  205. package/dist/web-ui/_app/immutable/chunks/B5wTVqxm.js +1 -0
  206. package/dist/web-ui/_app/immutable/chunks/B6VSmczZ.js +1 -0
  207. package/dist/web-ui/_app/immutable/chunks/B8a0xDxR.js +1 -0
  208. package/dist/web-ui/_app/immutable/chunks/BEOQc37C.js +1 -0
  209. package/dist/web-ui/_app/immutable/chunks/BHtYorjv.js +1 -0
  210. package/dist/web-ui/_app/immutable/chunks/BJ0JX3ea.js +1 -0
  211. package/dist/web-ui/_app/immutable/chunks/BMuCqDX8.js +1 -0
  212. package/dist/web-ui/_app/immutable/chunks/BP352uRn.js +1 -0
  213. package/dist/web-ui/_app/immutable/chunks/BUZujXJ2.js +1 -0
  214. package/dist/web-ui/_app/immutable/chunks/BVA9Exy-.js +1 -0
  215. package/dist/web-ui/_app/immutable/chunks/BWET-efb.js +1 -0
  216. package/dist/web-ui/_app/immutable/chunks/BXkNecpt.js +1 -0
  217. package/dist/web-ui/_app/immutable/chunks/BYzrIfX8.js +1 -0
  218. package/dist/web-ui/_app/immutable/chunks/BkOJ8DkV.js +1 -0
  219. package/dist/web-ui/_app/immutable/chunks/BpuwufMc.js +1 -0
  220. package/dist/web-ui/_app/immutable/chunks/BwMO4RrG.js +1 -0
  221. package/dist/web-ui/_app/immutable/chunks/BysXJlZb.js +1 -0
  222. package/dist/web-ui/_app/immutable/chunks/C076q4JN.js +1 -0
  223. package/dist/web-ui/_app/immutable/chunks/C33JaVbg.js +1 -0
  224. package/dist/web-ui/_app/immutable/chunks/CGtqifKp.js +1 -0
  225. package/dist/web-ui/_app/immutable/chunks/CHDZZ7OG.js +1 -0
  226. package/dist/web-ui/_app/immutable/chunks/CPPfDSei.js +5 -0
  227. package/dist/web-ui/_app/immutable/chunks/CUir3f4J.js +60 -0
  228. package/dist/web-ui/_app/immutable/chunks/Cncwi6fQ.js +1 -0
  229. package/dist/web-ui/_app/immutable/chunks/CrCIbn0C.js +1 -0
  230. package/dist/web-ui/_app/immutable/chunks/CwELQvbx.js +1 -0
  231. package/dist/web-ui/_app/immutable/chunks/D3vxvonu.js +1 -0
  232. package/dist/web-ui/_app/immutable/chunks/D6TVmR9T.js +1 -0
  233. package/dist/web-ui/_app/immutable/chunks/D7LTux4W.js +1 -0
  234. package/dist/web-ui/_app/immutable/chunks/D82RulSH.js +1 -0
  235. package/dist/web-ui/_app/immutable/chunks/D9QNBZM2.js +2 -0
  236. package/dist/web-ui/_app/immutable/chunks/DAMmvwn4.js +1 -0
  237. package/dist/web-ui/_app/immutable/chunks/DAh4Wfku.js +1 -0
  238. package/dist/web-ui/_app/immutable/chunks/DAx07bEQ.js +1 -0
  239. package/dist/web-ui/_app/immutable/chunks/DBYE9jOd.js +1 -0
  240. package/dist/web-ui/_app/immutable/chunks/DOno4cA2.js +1 -0
  241. package/dist/web-ui/_app/immutable/chunks/DQA8NZIH.js +2 -0
  242. package/dist/web-ui/_app/immutable/chunks/DRfPm2bo.js +1 -0
  243. package/dist/web-ui/_app/immutable/chunks/DhQhksaB.js +1 -0
  244. package/dist/web-ui/_app/immutable/chunks/DjG7s6hm.js +1 -0
  245. package/dist/web-ui/_app/immutable/chunks/DjcCz-PU.js +2 -0
  246. package/dist/web-ui/_app/immutable/chunks/DkltRNvh.js +1 -0
  247. package/dist/web-ui/_app/immutable/chunks/DlaTnPKL.js +1 -0
  248. package/dist/web-ui/_app/immutable/chunks/DvA-KON-.js +1 -0
  249. package/dist/web-ui/_app/immutable/chunks/DxCk-KHc.js +1 -0
  250. package/dist/web-ui/_app/immutable/chunks/DzO4hlg9.js +1 -0
  251. package/dist/web-ui/_app/immutable/chunks/Eo4gF7ih.js +1 -0
  252. package/dist/web-ui/_app/immutable/chunks/ExCq5swK.js +1 -0
  253. package/dist/web-ui/_app/immutable/chunks/T3zZGv51.js +1 -0
  254. package/dist/web-ui/_app/immutable/chunks/XZumBYeP.js +1 -0
  255. package/dist/web-ui/_app/immutable/chunks/_ySfNjkF.js +1 -0
  256. package/dist/web-ui/_app/immutable/chunks/iEtR5cV6.js +1 -0
  257. package/dist/web-ui/_app/immutable/chunks/k_Qegko0.js +1 -0
  258. package/dist/web-ui/_app/immutable/chunks/pE6cYWlS.js +1 -0
  259. package/dist/web-ui/_app/immutable/entry/app.Cgu6uKeS.js +2 -0
  260. package/dist/web-ui/_app/immutable/entry/start.9XifnLoB.js +1 -0
  261. package/dist/web-ui/_app/immutable/nodes/0.DISwcKSK.js +1 -0
  262. package/dist/web-ui/_app/immutable/nodes/1.Cx2Ufqp1.js +1 -0
  263. package/dist/web-ui/_app/immutable/nodes/10.C3z8ijXL.js +1 -0
  264. package/dist/web-ui/_app/immutable/nodes/11.DZdIjZmM.js +1 -0
  265. package/dist/web-ui/_app/immutable/nodes/12.FsIGfAOa.js +1 -0
  266. package/dist/web-ui/_app/immutable/nodes/13.DZoFwagf.js +1 -0
  267. package/dist/web-ui/_app/immutable/nodes/14.DaIzDKbQ.js +1 -0
  268. package/dist/web-ui/_app/immutable/nodes/15.BYyt4XWF.js +2 -0
  269. package/dist/web-ui/_app/immutable/nodes/16.CQkSqpOe.js +1 -0
  270. package/dist/web-ui/_app/immutable/nodes/2.Bkf_j2UJ.js +1 -0
  271. package/dist/web-ui/_app/immutable/nodes/3.kaMCurJG.js +1 -0
  272. package/dist/web-ui/_app/immutable/nodes/4.BSsFPTHG.js +2 -0
  273. package/dist/web-ui/_app/immutable/nodes/5.CpPlcCEZ.js +1 -0
  274. package/dist/web-ui/_app/immutable/nodes/6.BN4FqQmY.js +1 -0
  275. package/dist/web-ui/_app/immutable/nodes/7.9kBYIZik.js +1 -0
  276. package/dist/web-ui/_app/immutable/nodes/8.BuijtZ6B.js +1 -0
  277. package/dist/web-ui/_app/immutable/nodes/9.C-Weba8R.js +1 -0
  278. package/dist/web-ui/_app/version.json +1 -0
  279. package/dist/web-ui/index.html +39 -0
  280. package/dist/web-ui/robots.txt +3 -0
  281. package/package.json +4 -2
  282. package/plugin/.claude-plugin/marketplace.json +1 -1
  283. package/plugin/.claude-plugin/plugin.json +1 -1
  284. package/plugin/plugins/kspec/skills/task-work/SKILL.md +25 -2
  285. package/templates/agents-sections/06-ralph-loop.md +64 -11
  286. package/templates/skills/task-work/SKILL.md +25 -2
  287. package/dist/ralph/cli-renderer.d.ts +0 -27
  288. package/dist/ralph/cli-renderer.d.ts.map +0 -1
  289. package/dist/ralph/cli-renderer.js +0 -250
  290. package/dist/ralph/cli-renderer.js.map +0 -1
  291. package/dist/ralph/events.d.ts +0 -65
  292. package/dist/ralph/events.d.ts.map +0 -1
  293. package/dist/ralph/events.js +0 -600
  294. package/dist/ralph/events.js.map +0 -1
  295. package/dist/ralph/index.d.ts +0 -11
  296. package/dist/ralph/index.d.ts.map +0 -1
  297. package/dist/ralph/index.js +0 -16
  298. package/dist/ralph/index.js.map +0 -1
  299. package/dist/ralph/loop-errors.d.ts +0 -83
  300. package/dist/ralph/loop-errors.d.ts.map +0 -1
  301. package/dist/ralph/loop-errors.js +0 -150
  302. package/dist/ralph/loop-errors.js.map +0 -1
  303. package/dist/ralph/subagent.d.ts +0 -127
  304. package/dist/ralph/subagent.d.ts.map +0 -1
  305. package/dist/ralph/subagent.js +0 -268
  306. package/dist/ralph/subagent.js.map +0 -1
  307. package/dist/ralph/wrap-up.d.ts +0 -127
  308. package/dist/ralph/wrap-up.d.ts.map +0 -1
  309. package/dist/ralph/wrap-up.js +0 -271
  310. package/dist/ralph/wrap-up.js.map +0 -1
@@ -0,0 +1 @@
1
+ import{z as d,A as g,u as i,q as m,B as l,C as b,g as p,D as v,F as h}from"./D3vxvonu.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>v(s.s);if(n){let o=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const f in a)a[f]!==t[f]&&(t[f]=a[f],c=!0);return c&&o++,o});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),i(()=>{const o=m(()=>e.m.map(b));return()=>{for(const t of o)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as c,i as d,a as f}from"./D3vxvonu.js";import{k as h}from"./DQA8NZIH.js";import{s as l,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(s,o){m(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);const e=[["path",{d:"m9 18 6-6-6-6"}]];$(s,l({name:"chevron-right"},()=>t,{get iconNode(){return e},children:(a,g)=>{var r=n(),p=c(r);h(p,()=>o.children??d),i(a,r)},$$slots:{default:!0}})),f()}export{k as C};
@@ -0,0 +1 @@
1
+ import{l as k,k as f,m,o as n,q as i,v as u,w as t}from"./D3vxvonu.js";function E(e,a,r=a){var v=new WeakSet;k(e,"input",async c=>{var l=c?e.defaultValue:e.value;if(l=o(e)?h(l):l,r(l),f!==null&&v.add(f),await m(),l!==(l=a())){var _=e.selectionStart,s=e.selectionEnd,b=e.value.length;if(e.value=l??"",s!==null){var d=e.value.length;_===s&&s===b&&d>b?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=_,e.selectionEnd=Math.min(s,d))}}}),(n&&e.defaultValue!==e.value||i(a)==null&&e.value)&&(r(o(e)?h(e.value):e.value),f!==null&&v.add(f)),u(()=>{var c=a();if(e===document.activeElement){var l=t??f;if(v.has(l))return}o(e)&&c===h(e.value)||e.type==="date"&&!c&&!e.value||c!==e.value&&(e.value=c??"")})}function S(e,a,r=a){k(e,"change",v=>{var c=v?e.defaultChecked:e.checked;r(c)}),(n&&e.defaultChecked!==e.checked||i(a)==null)&&r(e.checked),u(()=>{var v=a();e.checked=!!v})}function o(e){var a=e.type;return a==="number"||a==="range"}function h(e){return e===""?null:+e}function C(e,a,r=a){k(e,"change",()=>{r(e.files)}),n&&e.files&&r(e.files),u(()=>{e.files=a()})}export{E as a,C as b,S as c};
@@ -0,0 +1 @@
1
+ import{c as n,a as p}from"./DvA-KON-.js";import{p as i,f as m,i as l,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function G(s,r){i(r,!0);let t=u(r,["$$slots","$$events","$$legacy"]);const a=[["line",{x1:"6",x2:"6",y1:"3",y2:"15"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M18 9a9 9 0 0 1-9 9"}]];$(s,h({name:"git-branch"},()=>t,{get iconNode(){return a},children:(e,x)=>{var o=n(),c=m(o);f(c,()=>r.children??l),p(e,o)},$$slots:{default:!0}})),d()}export{G};
@@ -0,0 +1 @@
1
+ import{c as j,a as d,f as k}from"./DvA-KON-.js";import{t as P,l as b,m as f,k as g}from"./DQA8NZIH.js";import{p as q,f as A,a as C,c as h,i as m,r as x}from"./D3vxvonu.js";import{p as r,i as D,r as E,b as p}from"./BysXJlZb.js";const y=P({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var F=k("<a><!></a>"),G=k("<button><!></button>");function L(_,e){q(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),c=r(e,"href",3,void 0),z=r(e,"type",3,"button"),v=E(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=j(),w=A(u);{var B=i=>{var a=F();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:c(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...v}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)},V=i=>{var a=G();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...v}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)};D(w,i=>{c()?i(B):i(V,!1)})}d(_,u),C()}export{L as B};
@@ -0,0 +1 @@
1
+ import{c,a as i}from"./DvA-KON-.js";import{p as n,f as m,i as d,a as l}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as _}from"./B5wTVqxm.js";function I(e,o){n(o,!0);let s=u(o,["$$slots","$$events","$$legacy"]);const t=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]];_(e,h({name:"circle-check-big"},()=>s,{get iconNode(){return t},children:(a,$)=>{var r=c(),p=m(r);f(p,()=>o.children??d),i(a,r)},$$slots:{default:!0}})),l()}export{I as C};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as l,i as c,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as u,r as $}from"./BysXJlZb.js";import{I as h}from"./B5wTVqxm.js";function N(r,o){m(o,!0);let s=$(o,["$$slots","$$events","$$legacy"]);const t=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];h(r,u({name:"play"},()=>s,{get iconNode(){return t},children:(e,_)=>{var a=n(),p=l(a);f(p,()=>o.children??c),i(e,a)},$$slots:{default:!0}})),d()}export{N as P};
@@ -0,0 +1 @@
1
+ import{k as O,R as j,S as w,T as U,U as y,V as A,o as S,W as q,X as C,Y as Z,x as $,y as z,E as G,Z as H,_ as V,a0 as W,a1 as X,a2 as T,a3 as J,v as Q,q as M,a4 as k,a5 as m,a6 as x,a7 as ee,a8 as B,g as b,F as re,a9 as se,d as te,e as ie,aa as ne,ab as R,ac as ae,ad as fe,I as ue,ae as ce,af as oe,ag as _,ah as N,ai as le,aj as de,P as I,ak as D}from"./D3vxvonu.js";import{c as pe}from"./pE6cYWlS.js";class he{anchor;#r=new Map;#s=new Map;#e=new Map;#t=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#n=()=>{var e=O;if(this.#r.has(e)){var t=this.#r.get(e),s=this.#s.get(t);if(s)j(s),this.#t.delete(t);else{var i=this.#e.get(t);i&&(this.#s.set(t,i.effect),this.#e.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),s=i.effect)}for(const[n,f]of this.#r){if(this.#r.delete(n),n===e)break;const a=this.#e.get(f);a&&(w(a.effect),this.#e.delete(f))}for(const[n,f]of this.#s){if(n===t||this.#t.has(n))continue;const a=()=>{if(Array.from(this.#r.values()).includes(n)){var o=document.createDocumentFragment();C(f,o),o.append(y()),this.#e.set(n,{effect:f,fragment:o})}else w(f);this.#t.delete(n),this.#s.delete(n)};this.#i||!s?(this.#t.add(n),U(f,a,!1)):a()}}};#a=e=>{this.#r.delete(e);const t=Array.from(this.#r.values());for(const[s,i]of this.#e)t.includes(s)||(w(i.effect),this.#e.delete(s))};ensure(e,t){var s=O,i=Z();if(t&&!this.#s.has(e)&&!this.#e.has(e))if(i){var n=document.createDocumentFragment(),f=y();n.append(f),this.#e.set(e,{effect:A(()=>t(f)),fragment:n})}else this.#s.set(e,A(()=>t(this.anchor)));if(this.#r.set(s,e),i){for(const[a,u]of this.#s)a===e?s.skipped_effects.delete(u):s.skipped_effects.add(u);for(const[a,u]of this.#e)a===e?s.skipped_effects.delete(u.effect):s.skipped_effects.add(u.effect);s.oncommit(this.#n),s.ondiscard(this.#a)}else S&&(this.anchor=q),this.#n()}}function xe(r,e,t=!1){S&&z();var s=new he(r),i=t?G:0;function n(f,a){if(S){const o=H(r)===V;if(f===o){var u=W();X(u),s.anchor=u,T(!1),s.ensure(f,a),T(!0);return}}s.ensure(f,a)}$(()=>{var f=!1;e((a,u=!0)=>{f=!0,n(u,a)}),f||n(!1,null)},i)}function L(r,e){return r===e||r?.[m]===e}function me(r={},e,t,s){return J(()=>{var i,n;return Q(()=>{i=n,n=[],M(()=>{r!==t(...n)&&(e(r,...n),i&&L(t(...i),r)&&e(null,...i))})}),()=>{k(()=>{n&&L(t(...n),r)&&e(null,...n)})}}),r}const _e={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Re(r,e,t){return new Proxy({props:r,exclude:e},_e)}const ve={get(r,e){if(!r.exclude.includes(e))return b(r.version),e in r.special?r.special[e]():r.props[e]},set(r,e,t){if(!(e in r.special)){var s=R;try{D(r.parent_effect),r.special[e]=Pe({get[e](){return r.props[e]}},e,B)}finally{D(s)}}return r.special[e](t),I(r.version),!0},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},deleteProperty(r,e){return r.exclude.includes(e)||(r.exclude.push(e),I(r.version)),!0},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function ge(r,e){return new Proxy({props:r,exclude:e,special:{},version:de(0),parent_effect:R},ve)}const be={get(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(r,e,t){let s=r.props.length;for(;s--;){let i=r.props[s];_(i)&&(i=i());const n=x(i,e);if(n&&n.set)return n.set(t),!0}return!1},getOwnPropertyDescriptor(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const i=x(s,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(r,e){if(e===m||e===N)return!1;for(let t of r.props)if(_(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(r){const e=[];for(let t of r.props)if(_(t)&&(t=t()),!!t){for(const s in t)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(t))e.includes(s)||e.push(s)}return e}};function Ee(...r){return new Proxy({props:r},be)}function Pe(r,e,t,s){var i=!ue||(t&ce)!==0,n=(t&fe)!==0,f=(t&le)!==0,a=s,u=!0,o=()=>(u&&(u=!1,a=f?M(s):s),a),d;if(n){var Y=m in r||N in r;d=x(r,e)?.set??(Y&&e in r?c=>r[e]=c:void 0)}var p,g=!1;n?[p,g]=pe(()=>r[e]):p=r[e],p===void 0&&s!==void 0&&(p=o(),d&&(i&&ee(),d(p)));var l;if(i?l=()=>{var c=r[e];return c===void 0?o():(u=!0,c)}:l=()=>{var c=r[e];return c!==void 0&&(a=void 0),c===void 0?a:c},i&&(t&B)===0)return l;if(d){var F=r.$$legacy;return(function(c,v){return arguments.length>0?((!i||!v||F||g)&&d(v?l():c),c):l()})}var P=!1,h=((t&oe)!==0?re:se)(()=>(P=!1,l()));n&&b(h);var K=R;return(function(c,v){if(arguments.length>0){const E=v?b(h):i&&n?te(c):c;return ie(h,E),P=!0,a!==void 0&&(a=E),c}return ne&&P||(K.f&ae)!==0?h.v:b(h)})}export{he as B,me as b,xe as i,ge as l,Pe as p,Re as r,Ee as s};
@@ -0,0 +1 @@
1
+ import{c,a as d}from"./DvA-KON-.js";import"./BUZujXJ2.js";import{f as i}from"./D3vxvonu.js";import{I as l,s as p}from"./BHtYorjv.js";import{l as $,s as h}from"./BysXJlZb.js";function M(a,e){const s=$(e,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];l(a,h({name:"refresh-cw"},()=>s,{get iconNode(){return o},children:(r,f)=>{var t=c(),n=i(t);p(n,e,"default",{}),d(r,t)},$$slots:{default:!0}}))}function N(a,e){const s=$(e,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]];l(a,h({name:"shield-check"},()=>s,{get iconNode(){return o},children:(r,f)=>{var t=c(),n=i(t);p(n,e,"default",{}),d(r,t)},$$slots:{default:!0}}))}export{M as R,N as S};
@@ -0,0 +1 @@
1
+ import{c as b,a as d,f as x}from"./DvA-KON-.js";import{p as h,f,a as p,g as y,h as $,s as k,i as z,n as G,c as H,r as I}from"./D3vxvonu.js";import{c as u}from"./DAx07bEQ.js";import{p as g,s as m,r as v,b as J}from"./BysXJlZb.js";import{D as K,P as L,a as M,b as N,c as O,d as Q,e as R}from"./BMuCqDX8.js";import{m as _,t as T,k as V,l as U}from"./DQA8NZIH.js";import{X as W}from"./DAh4Wfku.js";function me(o,e){h(e,!0);let a=g(e,"open",15,!1),s=v(e,["$$slots","$$events","$$legacy","open"]);var t=b(),n=f(t);u(n,()=>K,(r,l)=>{l(r,m(()=>s,{get open(){return a()},set open(i){a(i)}}))}),d(o,t),p()}function Y(o,e){let a=v(e,["$$slots","$$events","$$legacy"]);var s=b(),t=f(s);u(t,()=>L,(n,r)=>{r(n,m(()=>a))}),d(o,s)}function Z(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class"]);var t=b(),n=f(t);{let r=$(()=>_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));u(n,()=>M,(l,i)=>{i(l,m({"data-slot":"sheet-overlay",get class(){return y(r)}},()=>s,{get ref(){return a()},set ref(c){a(c)}}))})}d(o,t),p()}const ee=T({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",left:"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm",right:"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm"}},defaultVariants:{side:"right"}});var te=x('<!> <span class="sr-only">Close</span>',1),ae=x("<!> <!>",1),se=x("<!> <!>",1);function ve(o,e){h(e,!0);let a=g(e,"ref",15,null),s=g(e,"side",3,"right"),t=v(e,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);Y(o,m(()=>e.portalProps,{children:(n,r)=>{var l=se(),i=f(l);Z(i,{});var c=k(i,2);{let C=$(()=>_(ee({side:s()}),e.class));u(c,()=>O,(X,j)=>{j(X,m({"data-slot":"sheet-content",get class(){return y(C)}},()=>t,{get ref(){return a()},set ref(P){a(P)},children:(P,oe)=>{var S=ae(),D=f(S);V(D,()=>e.children??z);var q=k(D,2);u(q,()=>N,(A,B)=>{B(A,{class:"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none",children:(E,ne)=>{var w=te(),F=f(w);W(F,{class:"size-4"}),G(2),d(E,w)},$$slots:{default:!0}})}),d(P,S)},$$slots:{default:!0}}))})}d(n,l)},$$slots:{default:!0}})),p()}var re=x("<div><!></div>");function he(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=re();U(t,r=>({"data-slot":"sheet-header",class:r,...s}),[()=>_("flex flex-col gap-1.5 p-4",e.class)]);var n=H(t);V(n,()=>e.children??z),I(t),J(t,r=>a(r),()=>a()),d(o,t),p()}function pe(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class"]);var t=b(),n=f(t);{let r=$(()=>_("text-foreground font-semibold",e.class));u(n,()=>Q,(l,i)=>{i(l,m({"data-slot":"sheet-title",get class(){return y(r)}},()=>s,{get ref(){return a()},set ref(c){a(c)}}))})}d(o,t),p()}function be(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class"]);var t=b(),n=f(t);{let r=$(()=>_("text-muted-foreground text-sm",e.class));u(n,()=>R,(l,i)=>{i(l,m({"data-slot":"sheet-description",get class(){return y(r)}},()=>s,{get ref(){return a()},set ref(c){a(c)}}))})}d(o,t),p()}export{me as S,ve as a,he as b,pe as c,be as d};
@@ -0,0 +1 @@
1
+ import{f as l,a as i}from"./DvA-KON-.js";import{p as c,c as f,i as n,r as p,a as m}from"./D3vxvonu.js";import{l as h,m as u,k as v}from"./DQA8NZIH.js";import{p as b,r as x,b as g}from"./BysXJlZb.js";var _=l("<div><!></div>");function P(t,r){c(r,!0);let e=b(r,"ref",15,null),o=x(r,["$$slots","$$events","$$legacy","ref","class","children"]);var a=_();h(a,s=>({"data-slot":"card",class:s,...o}),[()=>u("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",r.class)]);var d=f(a);v(d,()=>r.children??n),p(a),g(a,s=>e(s),()=>e()),i(t,a),m()}export{P as C};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as d,i as c,a as f}from"./D3vxvonu.js";import{k as l}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(a,o){m(o,!0);let s=u(o,["$$slots","$$events","$$legacy"]);const e=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];$(a,h({name:"folder"},()=>s,{get iconNode(){return e},children:(t,v)=>{var r=n(),p=d(r);l(p,()=>o.children??c),i(t,r)},$$slots:{default:!0}})),f()}export{k as F};
@@ -0,0 +1,5 @@
1
+ import{Y as S}from"./DQA8NZIH.js";import{aX as P,b as L,d as N,e as $,g as _,h as W,q as w}from"./D3vxvonu.js";function B(){return Symbol(P)}function M(t){return typeof t=="function"}function U(t){return t!==null&&typeof t=="object"}const V=["string","number","bigint","boolean"];function T(t){return t==null||V.includes(typeof t)?!0:Array.isArray(t)?t.every(n=>T(n)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const y=Symbol("box"),A=Symbol("is-writable");function F(t,n){const e=W(t);return n?{[y]:!0,[A]:!0,get current(){return _(e)},set current(r){n(r)}}:{[y]:!0,get current(){return t()}}}function v(t){return U(t)&&y in t}function C(t){return v(t)&&A in t}function St(t){return v(t)?t:M(t)?F(t):G(t)}function Tt(t){return Object.entries(t).reduce((n,[e,r])=>v(r)?(C(r)?Object.defineProperty(n,e,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(n,e,{get(){return r.current}}),n):Object.assign(n,{[e]:r}),{})}function At(t){return C(t)?{[y]:!0,get current(){return t.current}}:t}function G(t){let n=L(N(t));return{[y]:!0,[A]:!0,get current(){return _(n)},set current(e){$(n,e,!0)}}}function X(...t){return function(n){for(const e of t)if(e){if(n.defaultPrevented)return;typeof e=="function"?e.call(this,n):e.current?.call(this,n)}}}var O=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H=/\n/g,Y=/^\s*/,K=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,z=/^:\s*/,D=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,Z=/^\s+|\s+$/g,J=`
2
+ `,x="/",I="*",m="",Q="comment",tt="declaration";function nt(t,n){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];n=n||{};var e=1,r=1;function o(c){var i=c.match(H);i&&(e+=i.length);var p=c.lastIndexOf(J);r=~p?c.length-p:r+c.length}function s(){var c={line:e,column:r};return function(i){return i.position=new a(c),f(),i}}function a(c){this.start=c,this.end={line:e,column:r},this.source=n.source}a.prototype.content=t;function u(c){var i=new Error(n.source+":"+e+":"+r+": "+c);if(i.reason=c,i.filename=n.source,i.line=e,i.column=r,i.source=t,!n.silent)throw i}function d(c){var i=c.exec(t);if(i){var p=i[0];return o(p),t=t.slice(p.length),i}}function f(){d(Y)}function l(c){var i;for(c=c||[];i=g();)i!==!1&&c.push(i);return c}function g(){var c=s();if(!(x!=t.charAt(0)||I!=t.charAt(1))){for(var i=2;m!=t.charAt(i)&&(I!=t.charAt(i)||x!=t.charAt(i+1));)++i;if(i+=2,m===t.charAt(i-1))return u("End of comment missing");var p=t.slice(2,i-2);return r+=2,o(p),t=t.slice(i),r+=2,c({type:Q,comment:p})}}function b(){var c=s(),i=d(K);if(i){if(g(),!d(z))return u("property missing ':'");var p=d(D),k=c({type:tt,property:R(i[0].replace(O,m)),value:p?R(p[0].replace(O,m)):m});return d(q),k}}function h(){var c=[];l(c);for(var i;i=b();)i!==!1&&(c.push(i),l(c));return c}return f(),h()}function R(t){return t?t.replace(Z,m):m}function et(t,n){let e=null;if(!t||typeof t!="string")return e;const r=nt(t),o=typeof n=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;o?n(a,u,s):u&&(e=e||{},e[a]=u)}),e}const rt=/\d/,ot=["-","_","/","."];function it(t=""){if(!rt.test(t))return t!==t.toLowerCase()}function st(t){const n=[];let e="",r,o;for(const s of t){const a=ot.includes(s);if(a===!0){n.push(e),e="",r=void 0;continue}const u=it(s);if(o===!1){if(r===!1&&u===!0){n.push(e),e=s,r=u;continue}if(r===!0&&u===!1&&e.length>1){const d=e.at(-1);n.push(e.slice(0,Math.max(0,e.length-1))),e=d+s,r=u;continue}}e+=s,r=u,o=a}return n.push(e),n}function j(t){return t?st(t).map(n=>at(n)).join(""):""}function ct(t){return ut(j(t||""))}function at(t){return t?t[0].toUpperCase()+t.slice(1):""}function ut(t){return t?t[0].toLowerCase()+t.slice(1):""}function E(t){if(!t)return{};const n={};function e(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){n[j(r)]=o;return}if(r.startsWith("--")){n[r]=o;return}n[ct(r)]=o}return et(t,e),n}function ft(...t){return(...n)=>{for(const e of t)typeof e=="function"&&e(...n)}}function lt(t,n){const e=RegExp(t,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,n):r}}const pt=lt(/[A-Z]/,t=>`-${t.toLowerCase()}`);function dt(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(n=>`${pt(n)}: ${t[n]};`).join(`
3
+ `)}function ht(t={}){return dt(t).replace(`
4
+ `," ")}const mt=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],gt=new Set(mt);function bt(t){return gt.has(t)}function wt(...t){const n={...t[0]};for(let e=1;e<t.length;e++){const r=t[e];if(r){for(const o of Object.keys(r)){const s=n[o],a=r[o],u=typeof s=="function",d=typeof a=="function";if(u&&bt(o)){const f=s,l=a;n[o]=X(f,l)}else if(u&&d)n[o]=ft(s,a);else if(o==="class"){const f=T(s),l=T(a);f&&l?n[o]=S(s,a):f?n[o]=S(s):l&&(n[o]=S(a))}else if(o==="style"){const f=typeof s=="object",l=typeof a=="object",g=typeof s=="string",b=typeof a=="string";if(f&&l)n[o]={...s,...a};else if(f&&b){const h=E(a);n[o]={...s,...h}}else if(g&&l){const h=E(s);n[o]={...h,...a}}else if(g&&b){const h=E(s),c=E(a);n[o]={...h,...c}}else f?n[o]=s:l?n[o]=a:g?n[o]=s:b&&(n[o]=a)}else n[o]=a!==void 0?a:s}for(const o of Object.getOwnPropertySymbols(r)){const s=n[o],a=r[o];n[o]=a!==void 0?a:s}}}return typeof n.style=="object"&&(n.style=ht(n.style).replaceAll(`
5
+ `," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}function Ot(t,n){return{[B()]:e=>v(t)?(t.current=e,w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t.current=null,n?.(null))}):(t(e),w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t(null),n?.(null))})}}function xt(t){return t?"true":"false"}function It(t){return t?"true":void 0}function Rt(t){return t?"":void 0}function _t(t){return t?!0:void 0}function Ct(t){return t?"open":"closed"}class yt{#t;#n;attrs;constructor(n){this.#t=n.getVariant?n.getVariant():null,this.#n=this.#t?`data-${this.#t}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(e=>[e,this.getAttr(e)]))}getAttr(n,e){return e?`data-${e}-${n}`:`${this.#n}${n}`}selector(n,e){return`[${this.getAttr(n,e)}]`}}function jt(t){const n=new yt(t);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}function kt(t,n){return`bits-${t}`}export{y as B,Ot as a,It as b,jt as c,kt as d,F as e,St as f,Tt as g,v as h,A as i,C as j,Rt as k,Ct as l,wt as m,xt as n,_t as o,G as p,E as q,U as r,ht as s,At as t,ft as u,X as v};
@@ -0,0 +1,60 @@
1
+ import{t as Zn,o as Xt,y as Qt,ab as Yn,aW as jn,W as Vt,aq as Xn,aN as Qn,aU as Vn,aO as Kn,a1 as Jn,al as Ne,p as er,f as tr,i as nr,a as rr}from"./D3vxvonu.js";import{d as Kt,e as sr,c as ir,a as lr}from"./DvA-KON-.js";import{k as ar}from"./DQA8NZIH.js";import{s as or,r as cr}from"./BysXJlZb.js";import{I as pr}from"./B5wTVqxm.js";function Rs(r,e,n=!1,s=!1,t=!1){var a=r,l="";Zn(()=>{var p=Yn;if(l===(l=e()??"")){Xt&&Qt();return}if(p.nodes!==null&&(jn(p.nodes.start,p.nodes.end),p.nodes=null),l!==""){if(Xt){Vt.data;for(var o=Qt(),f=o;o!==null&&(o.nodeType!==Xn||o.data!=="");)f=o,o=Qn(o);if(o===null)throw Vn(),Kn;Kt(Vt,f),a=Jn(o);return}var u=l+"";n?u=`<svg>${u}</svg>`:s&&(u=`<math>${u}</math>`);var d=sr(u);if((n||s)&&(d=Ne(d)),Kt(Ne(d),d.lastChild),n||s)for(;Ne(d);)a.before(Ne(d));else a.before(d)}})}function mt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ne=mt();function gn(r){ne=r}var ee={exec:()=>null};function b(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:(t,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(M.caret,"$1"),n=n.replace(t,l),s},getRegex:()=>new RegExp(n,e)};return s}var ur=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),M={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}>`)},hr=/^(?:[ \t]*(?:\n|$))+/,fr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_e=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,dn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,mn=b(dn).replace(/bull/g,kt).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(),mr=b(dn).replace(/bull/g,kt).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(),bt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kr=/^[^\n]+/,xt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,br=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xr=b(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,kt).getRegex(),He="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",Tt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tr=b("^ {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",Tt).replace("tag",He).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kn=b(bt).replace("hr",_e).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",He).getRegex(),wr=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kn).getRegex(),wt={blockquote:wr,code:fr,def:br,fences:gr,heading:dr,hr:_e,html:Tr,lheading:mn,list:xr,newline:hr,paragraph:kn,table:ee,text:kr},Jt=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_e).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",He).getRegex(),_r={...wt,lheading:mr,table:Jt,paragraph:b(bt).replace("hr",_e).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",He).getRegex()},Ar={...wt,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tt).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:ee,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(bt).replace("hr",_e).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",mn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Er=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bn=/^( {2,}|\\)\n(?!\s*$)/,yr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Be=/[\p{P}\p{S}]/u,_t=/[\s\p{P}\p{S}]/u,xn=/[^\s\p{P}\p{S}]/u,Rr=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_t).getRegex(),Tn=/(?!~)[\p{P}\p{S}]/u,Lr=/(?!~)[\s\p{P}\p{S}]/u,Ir=/(?:[^\s\p{P}\p{S}]|~)/u,wn=/(?![*_])[\p{P}\p{S}]/u,Dr=/(?![*_])[\s\p{P}\p{S}]/u,Or=/(?:[^\s\p{P}\p{S}]|[*_])/u,Cr=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ur?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_n=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Nr=b(_n,"u").replace(/punct/g,Be).getRegex(),Mr=b(_n,"u").replace(/punct/g,Tn).getRegex(),An="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Pr=b(An,"gu").replace(/notPunctSpace/g,xn).replace(/punctSpace/g,_t).replace(/punct/g,Be).getRegex(),vr=b(An,"gu").replace(/notPunctSpace/g,Ir).replace(/punctSpace/g,Lr).replace(/punct/g,Tn).getRegex(),$r=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xn).replace(/punctSpace/g,_t).replace(/punct/g,Be).getRegex(),zr=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,wn).getRegex(),Ur="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Fr=b(Ur,"gu").replace(/notPunctSpace/g,Or).replace(/punctSpace/g,Dr).replace(/punct/g,wn).getRegex(),Hr=b(/\\(punct)/,"gu").replace(/punct/g,Be).getRegex(),Br=b(/^<(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(),Gr=b(Tt).replace("(?:-->|$)","-->").getRegex(),Wr=b("^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",Gr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ze=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,qr=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),En=b(/^!?\[(label)\]\[(ref)\]/).replace("label",ze).replace("ref",xt).getRegex(),Sn=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",xt).getRegex(),Zr=b("reflink|nolink(?!\\()","g").replace("reflink",En).replace("nolink",Sn).getRegex(),en=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,At={_backpedal:ee,anyPunctuation:Hr,autolink:Br,blockSkip:Cr,br:bn,code:Sr,del:ee,delLDelim:ee,delRDelim:ee,emStrongLDelim:Nr,emStrongRDelimAst:Pr,emStrongRDelimUnd:$r,escape:Er,link:qr,nolink:Sn,punctuation:Rr,reflink:En,reflinkSearch:Zr,tag:Wr,text:yr,url:ee},Yr={...At,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",ze).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ze).getRegex()},pt={...At,emStrongRDelimAst:vr,emStrongLDelim:Mr,delLDelim:zr,delRDelim:Fr,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",en).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",en).getRegex()},jr={...pt,br:b(bn).replace("{2,}","*").getRegex(),text:b(pt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Me={normal:wt,gfm:_r,pedantic:Ar},ge={normal:At,gfm:pt,breaks:jr,pedantic:Yr},Xr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn=r=>Xr[r];function q(r,e){if(e){if(M.escapeTest.test(r))return r.replace(M.escapeReplace,tn)}else if(M.escapeTestNoEncode.test(r))return r.replace(M.escapeReplaceNoEncode,tn);return r}function nn(r){try{r=encodeURI(r).replace(M.percentDecode,"%")}catch{return null}return r}function rn(r,e){let n=r.replace(M.findPipe,(a,l,p)=>{let o=!1,f=l;for(;--f>=0&&p[f]==="\\";)o=!o;return o?"|":" |"}),s=n.split(M.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(M.slashPipe,"|");return s}function de(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s&&r.charAt(s-t-1)===e;)t++;return r.slice(0,s-t)}function Qr(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])n++;else if(r[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function Vr(r,e=0){let n=e,s="";for(let t of r)if(t===" "){let a=4-n%4;s+=" ".repeat(a),n+=a}else s+=t,n++;return s}function sn(r,e,n,s,t){let a=e.href,l=e.title||null,p=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:l,text:p,tokens:s.inlineTokens(p)};return s.state.inLink=!1,o}function Kr(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
+ `).map(a=>{let l=a.match(n.other.beginningSpace);if(l===null)return a;let[p]=l;return p.length>=t.length?a.slice(t.length):a}).join(`
4
+ `)}var Ue=class{options;rules;lexer;constructor(r){this.options=r||ne}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:de(n,`
5
+ `)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],s=Kr(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=de(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:de(e[0],`
6
+ `)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=de(e[0],`
7
+ `).split(`
8
+ `),s="",t="",a=[];for(;n.length>0;){let l=!1,p=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))p.push(n[o]),l=!0;else if(!l)p.push(n[o]);else break;n=n.slice(o);let f=p.join(`
9
+ `),u=f.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
11
+ ${f}`:f,t=t?`${t}
12
+ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=d,n.length===0)break;let k=a.at(-1);if(k?.type==="code")break;if(k?.type==="blockquote"){let _=k,T=_.raw+`
13
+ `+n.join(`
14
+ `),U=this.blockquote(T);a[a.length-1]=U,s=s.substring(0,s.length-_.raw.length)+U.raw,t=t.substring(0,t.length-_.text.length)+U.text;break}else if(k?.type==="list"){let _=k,T=_.raw+`
15
+ `+n.join(`
16
+ `),U=this.list(T);a[a.length-1]=U,s=s.substring(0,s.length-k.raw.length)+U.raw,t=t.substring(0,t.length-_.raw.length)+U.raw,n=T.substring(a.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),s=n.length>1,t={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;r;){let o=!1,f="",u="";if(!(e=a.exec(r))||this.rules.block.hr.test(r))break;f=e[0],r=r.substring(f.length);let d=Vr(e[2].split(`
18
+ `,1)[0],e[1].length),k=r.split(`
19
+ `,1)[0],_=!d.trim(),T=0;if(this.options.pedantic?(T=2,u=d.trimStart()):_?T=e[1].length+1:(T=d.search(this.rules.other.nonSpaceChar),T=T>4?1:T,u=d.slice(T),T+=e[1].length),_&&this.rules.other.blankLine.test(k)&&(f+=k+`
20
+ `,r=r.substring(k.length+1),o=!0),!o){let U=this.rules.other.nextBulletRegex(T),Ae=this.rules.other.hrRegex(T),Ee=this.rules.other.fencesBeginRegex(T),Se=this.rules.other.headingBeginRegex(T),re=this.rules.other.htmlBeginRegex(T),L=this.rules.other.blockquoteBeginRegex(T);for(;r;){let Y=r.split(`
21
+ `,1)[0],j;if(k=Y,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),j=k):j=k.replace(this.rules.other.tabCharGlobal," "),Ee.test(k)||Se.test(k)||re.test(k)||L.test(k)||U.test(k)||Ae.test(k))break;if(j.search(this.rules.other.nonSpaceChar)>=T||!k.trim())u+=`
22
+ `+j.slice(T);else{if(_||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Ee.test(d)||Se.test(d)||Ae.test(d))break;u+=`
23
+ `+k}_=!k.trim(),f+=Y+`
24
+ `,r=r.substring(Y.length+1),d=j.slice(T)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0)),t.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),t.raw+=f}let p=t.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(o.raw);if(f){let u={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};o.checked=u.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=u.raw+o.tokens[0].raw,o.tokens[0].text=u.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(u)):o.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):o.tokens.unshift(u)}}if(!t.loose){let f=o.tokens.filter(d=>d.type==="space"),u=f.length>0&&f.some(d=>this.rules.other.anyLine.test(d.raw));t.loose=u}}if(t.loose)for(let o of t.items){o.loose=!0;for(let f of o.tokens)f.type==="text"&&(f.type="paragraph")}return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=rn(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of t)a.rows.push(rn(l,a.header.length).map((p,o)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:a.align[o]})));return a}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=de(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Qr(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),sn(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return sn(n,t,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,l,p=t,o=0,f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,e=e.slice(-1*r.length+t);(s=f.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){p+=l;continue}else if((s[5]||s[6])&&t%3&&!((t+l)%3)){o+=l;continue}if(p-=l,p>0)continue;l=Math.min(l,l+p+o);let u=[...s[0]][0].length,d=r.slice(0,t+s.index+u+l);if(Math.min(t,l)%2){let _=d.slice(1,-1);return{type:"em",raw:d,text:_,tokens:this.lexer.inlineTokens(_)}}let k=d.slice(2,-2);return{type:"strong",raw:d,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r,e,n=""){let s=this.rules.inline.delLDelim.exec(r);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,l,p=t,o=this.rules.inline.delRDelim;for(o.lastIndex=0,e=e.slice(-1*r.length+t);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==t))continue;if(s[3]||s[4]){p+=l;continue}if(p-=l,p>0)continue;l=Math.min(l,l+p);let f=[...s[0]][0].length,u=r.slice(0,t+s.index+f+l),d=u.slice(t,-t);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},H=class ut{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ne,this.options.tokenizer=this.options.tokenizer||new Ue,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 n={other:M,block:Me.normal,inline:ge.normal};this.options.pedantic?(n.block=Me.pedantic,n.inline=ge.pedantic):this.options.gfm&&(n.block=Me.gfm,this.options.breaks?n.inline=ge.breaks:n.inline=ge.gfm),this.tokenizer.rules=n}static get rules(){return{block:Me,inline:ge}}static lex(e,n){return new ut(n).lex(e)}static lexInline(e,n){return new ut(n).inlineTokens(e)}lex(e){e=e.replace(M.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(M.tabCharGlobal," ").replace(M.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=n.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
28
+ `:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
29
+ `)?"":`
30
+ `)+t.raw,l.text+=`
31
+ `+t.text,this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
32
+ `)?"":`
33
+ `)+t.raw,l.text+=`
34
+ `+t.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,p=e.slice(1),o;this.options.extensions.startBlock.forEach(f=>{o=f.call({lexer:this},p),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
35
+ `)?"":`
36
+ `)+t.raw,l.text+=`
37
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t),s=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
38
+ `)?"":`
39
+ `)+t.raw,l.text+=`
40
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=t[2]?t[2].length:0,s=s.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,p="";for(;e;){l||(p=""),l=!1;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let u=n.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,s,p)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,s,p)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let f=e;if(this.options.extensions?.startInline){let u=1/0,d=e.slice(1),k;this.options.extensions.startInline.forEach(_=>{k=_.call({lexer:this},d),typeof k=="number"&&k>=0&&(u=Math.min(u,k))}),u<1/0&&u>=0&&(f=e.substring(0,u+1))}if(o=this.tokenizer.inlineText(f)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(p=o.raw.slice(-1)),l=!0;let u=n.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):n.push(o);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},Fe=class{options;parser;constructor(r){this.options=r||ne}space(r){return""}code({text:r,lang:e,escaped:n}){let s=(e||"").match(M.notSpaceStart)?.[0],t=r.replace(M.endingNewline,"")+`
41
+ `;return s?'<pre><code class="language-'+q(s)+'">'+(n?t:q(t,!0))+`</code></pre>
42
+ `:"<pre><code>"+(n?t:q(t,!0))+`</code></pre>
43
+ `}blockquote({tokens:r}){return`<blockquote>
44
+ ${this.parser.parse(r)}</blockquote>
45
+ `}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
46
+ `}hr(r){return`<hr>
47
+ `}list(r){let e=r.ordered,n=r.start,s="";for(let l=0;l<r.items.length;l++){let p=r.items[l];s+=this.listitem(p)}let t=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+t+a+`>
48
+ `+s+"</"+t+`>
49
+ `}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
50
+ `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
51
+ `}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let s="";for(let t=0;t<r.rows.length;t++){let a=r.rows[t];n="";for(let l=0;l<a.length;l++)n+=this.tablecell(a[l]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+s+`</table>
55
+ `}tablerow({text:r}){return`<tr>
56
+ ${r}</tr>
57
+ `}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
58
+ `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${q(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let s=this.parser.parseInline(n),t=nn(r);if(t===null)return s;r=t;let a='<a href="'+r+'"';return e&&(a+=' title="'+q(e)+'"'),a+=">"+s+"</a>",a}image({href:r,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let t=nn(r);if(t===null)return q(n);r=t;let a=`<img src="${r}" alt="${q(n)}"`;return e&&(a+=` title="${q(e)}"`),a+=">",a}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:q(r.text)}},Et=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},B=class ht{options;renderer;textRenderer;constructor(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Et}static parse(e,n){return new ht(n).parse(e)}static parseInline(e,n){return new ht(n).parseInline(e)}parse(e){let n="";for(let s=0;s<e.length;s++){let t=e[s];if(this.options.extensions?.renderers?.[t.type]){let l=t,p=this.options.extensions.renderers[l.type].call({parser:this},l);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=p||"";continue}}let a=t;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){let s="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let p=this.options.extensions.renderers[a.type].call({parser:this},a);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=p||"";continue}}let l=a;switch(l.type){case"escape":{s+=n.text(l);break}case"html":{s+=n.html(l);break}case"link":{s+=n.link(l);break}case"image":{s+=n.image(l);break}case"checkbox":{s+=n.checkbox(l);break}case"strong":{s+=n.strong(l);break}case"em":{s+=n.em(l);break}case"codespan":{s+=n.codespan(l);break}case"br":{s+=n.br(l);break}case"del":{s+=n.del(l);break}case"text":{s+=n.text(l);break}default:{let p='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return s}},we=class{options;block;constructor(r){this.options=r||ne}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?H.lex:H.lexInline}provideParser(){return this.block?B.parse:B.parseInline}},Jr=class{defaults=mt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=B;Renderer=Fe;TextRenderer=Et;Lexer=H;Tokenizer=Ue;Hooks=we;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let s of r)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let a of t.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=s;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let l=t[a].flat(1/0);n=n.concat(this.walkTokens(l,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...l){let p=t.renderer.apply(this,l);return p===!1&&(p=a.apply(this,l)),p}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),n.renderer){let t=this.defaults.renderer||new Fe(this.defaults);for(let a in n.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,p=n.renderer[l],o=t[l];t[l]=(...f)=>{let u=p.apply(t,f);return u===!1&&(u=o.apply(t,f)),u||""}}s.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new Ue(this.defaults);for(let a in n.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,p=n.tokenizer[l],o=t[l];t[l]=(...f)=>{let u=p.apply(t,f);return u===!1&&(u=o.apply(t,f)),u}}s.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new we;for(let a in n.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,p=n.hooks[l],o=t[l];we.passThroughHooks.has(a)?t[l]=f=>{if(this.defaults.async&&we.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await p.call(t,f);return o.call(t,d)})();let u=p.call(t,f);return o.call(t,u)}:t[l]=(...f)=>{if(this.defaults.async)return(async()=>{let d=await p.apply(t,f);return d===!1&&(d=await o.apply(t,f)),d})();let u=p.apply(t,f);return u===!1&&(u=o.apply(t,f)),u}}s.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(l){let p=[];return p.push(a.call(this,l)),t&&(p=p.concat(t.call(this,l))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return H.lex(r,e??this.defaults)}parser(r,e){return B.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let s={...n},t={...this.defaults,...s},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return a(new 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(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let l=t.hooks?await t.hooks.preprocess(e):e,p=await(t.hooks?await t.hooks.provideLexer():r?H.lex:H.lexInline)(l,t),o=t.hooks?await t.hooks.processAllTokens(p):p;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let f=await(t.hooks?await t.hooks.provideParser():r?B.parse:B.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(f):f})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let l=(t.hooks?t.hooks.provideLexer():r?H.lex:H.lexInline)(e,t);t.hooks&&(l=t.hooks.processAllTokens(l)),t.walkTokens&&this.walkTokens(l,t.walkTokens);let p=(t.hooks?t.hooks.provideParser():r?B.parse:B.parseInline)(l,t);return t.hooks&&(p=t.hooks.postprocess(p)),p}catch(l){return a(l)}}}onError(r,e){return n=>{if(n.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+q(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},te=new Jr;function x(r,e){return te.parse(r,e)}x.options=x.setOptions=function(r){return te.setOptions(r),x.defaults=te.defaults,gn(x.defaults),x};x.getDefaults=mt;x.defaults=ne;x.use=function(...r){return te.use(...r),x.defaults=te.defaults,gn(x.defaults),x};x.walkTokens=function(r,e){return te.walkTokens(r,e)};x.parseInline=te.parseInline;x.Parser=B;x.parser=B.parse;x.Renderer=Fe;x.TextRenderer=Et;x.Lexer=H;x.lexer=H.lex;x.Tokenizer=Ue;x.Hooks=we;x.parse=x;x.options;x.setOptions;x.use;x.walkTokens;x.parseInline;B.parse;H.lex;const{entries:yn,setPrototypeOf:ln,isFrozen:es,getPrototypeOf:ts,getOwnPropertyDescriptor:ns}=Object;let{freeze:P,seal:z,create:ft}=Object,{apply:gt,construct:dt}=typeof Reflect<"u"&&Reflect;P||(P=function(e){return e});z||(z=function(e){return e});gt||(gt=function(e,n){for(var s=arguments.length,t=new Array(s>2?s-2:0),a=2;a<s;a++)t[a-2]=arguments[a];return e.apply(n,t)});dt||(dt=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),t=1;t<n;t++)s[t-1]=arguments[t];return new e(...s)});const Pe=v(Array.prototype.forEach),rs=v(Array.prototype.lastIndexOf),an=v(Array.prototype.pop),me=v(Array.prototype.push),ss=v(Array.prototype.splice),$e=v(String.prototype.toLowerCase),st=v(String.prototype.toString),it=v(String.prototype.match),ke=v(String.prototype.replace),is=v(String.prototype.indexOf),ls=v(String.prototype.trim),F=v(Object.prototype.hasOwnProperty),N=v(RegExp.prototype.test),be=as(TypeError);function v(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),t=1;t<n;t++)s[t-1]=arguments[t];return gt(r,e,s)}}function as(r){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return dt(r,n)}}function m(r,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e;ln&&ln(r,null);let s=e.length;for(;s--;){let t=e[s];if(typeof t=="string"){const a=n(t);a!==t&&(es(e)||(e[s]=a),t=a)}r[t]=!0}return r}function os(r){for(let e=0;e<r.length;e++)F(r,e)||(r[e]=null);return r}function Z(r){const e=ft(null);for(const[n,s]of yn(r))F(r,n)&&(Array.isArray(s)?e[n]=os(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=Z(s):e[n]=s);return e}function xe(r,e){for(;r!==null;){const s=ns(r,e);if(s){if(s.get)return v(s.get);if(typeof s.value=="function")return v(s.value)}r=ts(r)}function n(){return null}return n}const on=P(["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"]),lt=P(["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"]),at=P(["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"]),cs=P(["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"]),ot=P(["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"]),ps=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cn=P(["#text"]),pn=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","slot"]),ct=P(["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","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","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-rendering","textlength","type","u1","u2","unicode","values","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"]),un=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),ve=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),us=z(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hs=z(/<%[\w\W]*|[\w\W]*%>/gm),fs=z(/\$\{[\w\W]*/gm),gs=z(/^data-[\-\w.\u00B7-\uFFFF]+$/),ds=z(/^aria-[\-\w]+$/),Rn=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ms=z(/^(?:\w+script|data):/i),ks=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ln=z(/^html$/i),bs=z(/^[a-z][.\w]*(-[.\w]+)+$/i);var hn=Object.freeze({__proto__:null,ARIA_ATTR:ds,ATTR_WHITESPACE:ks,CUSTOM_ELEMENT:bs,DATA_ATTR:gs,DOCTYPE_NAME:Ln,ERB_EXPR:hs,IS_ALLOWED_URI:Rn,IS_SCRIPT_OR_DATA:ms,MUSTACHE_EXPR:us,TMPLIT_EXPR:fs});const Te={element:1,text:3,progressingInstruction:7,comment:8,document:9},xs=function(){return typeof window>"u"?null:window},Ts=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const t="data-tt-policy-suffix";n&&n.hasAttribute(t)&&(s=n.getAttribute(t));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},fn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function In(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xs();const e=g=>In(g);if(e.version="3.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==Te.document||!r.Element)return e.isSupported=!1,e;let{document:n}=r;const s=n,t=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:p,Element:o,NodeFilter:f,NamedNodeMap:u=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:k,trustedTypes:_}=r,T=o.prototype,U=xe(T,"cloneNode"),Ae=xe(T,"remove"),Ee=xe(T,"nextSibling"),Se=xe(T,"childNodes"),re=xe(T,"parentNode");if(typeof l=="function"){const g=n.createElement("template");g.content&&g.content.ownerDocument&&(n=g.content.ownerDocument)}let L,Y="";const{implementation:j,createNodeIterator:Dn,createDocumentFragment:On,getElementsByTagName:Cn}=n,{importNode:Nn}=s;let C=fn();e.isSupported=typeof yn=="function"&&typeof re=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ge,ERB_EXPR:We,TMPLIT_EXPR:qe,DATA_ATTR:Mn,ARIA_ATTR:Pn,IS_SCRIPT_OR_DATA:vn,ATTR_WHITESPACE:St,CUSTOM_ELEMENT:$n}=hn;let{IS_ALLOWED_URI:yt}=hn,R=null;const Rt=m({},[...on,...lt,...at,...ot,...cn]);let I=null;const Lt=m({},[...pn,...ct,...un,...ve]);let A=Object.seal(ft(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}})),ue=null,Ze=null;const se=Object.seal(ft(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let It=!0,Ye=!0,Dt=!1,Ot=!0,ie=!1,ye=!0,K=!1,je=!1,Xe=!1,le=!1,Re=!1,Le=!1,Ct=!0,Nt=!1;const zn="user-content-";let Qe=!0,he=!1,ae={},G=null;const Ve=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Mt=null;const Pt=m({},["audio","video","img","source","image","track"]);let Ke=null;const vt=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",X="http://www.w3.org/1999/xhtml";let oe=X,Je=!1,et=null;const Un=m({},[Ie,De,X],st);let Oe=m({},["mi","mo","mn","ms","mtext"]),Ce=m({},["annotation-xml"]);const Fn=m({},["title","style","font","a","script"]);let fe=null;const Hn=["application/xhtml+xml","text/html"],Bn="text/html";let y=null,ce=null;const Gn=n.createElement("form"),$t=function(i){return i instanceof RegExp||i instanceof Function},tt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ce&&ce===i)){if((!i||typeof i!="object")&&(i={}),i=Z(i),fe=Hn.indexOf(i.PARSER_MEDIA_TYPE)===-1?Bn:i.PARSER_MEDIA_TYPE,y=fe==="application/xhtml+xml"?st:$e,R=F(i,"ALLOWED_TAGS")?m({},i.ALLOWED_TAGS,y):Rt,I=F(i,"ALLOWED_ATTR")?m({},i.ALLOWED_ATTR,y):Lt,et=F(i,"ALLOWED_NAMESPACES")?m({},i.ALLOWED_NAMESPACES,st):Un,Ke=F(i,"ADD_URI_SAFE_ATTR")?m(Z(vt),i.ADD_URI_SAFE_ATTR,y):vt,Mt=F(i,"ADD_DATA_URI_TAGS")?m(Z(Pt),i.ADD_DATA_URI_TAGS,y):Pt,G=F(i,"FORBID_CONTENTS")?m({},i.FORBID_CONTENTS,y):Ve,ue=F(i,"FORBID_TAGS")?m({},i.FORBID_TAGS,y):Z({}),Ze=F(i,"FORBID_ATTR")?m({},i.FORBID_ATTR,y):Z({}),ae=F(i,"USE_PROFILES")?i.USE_PROFILES:!1,It=i.ALLOW_ARIA_ATTR!==!1,Ye=i.ALLOW_DATA_ATTR!==!1,Dt=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=i.SAFE_FOR_TEMPLATES||!1,ye=i.SAFE_FOR_XML!==!1,K=i.WHOLE_DOCUMENT||!1,le=i.RETURN_DOM||!1,Re=i.RETURN_DOM_FRAGMENT||!1,Le=i.RETURN_TRUSTED_TYPE||!1,Xe=i.FORCE_BODY||!1,Ct=i.SANITIZE_DOM!==!1,Nt=i.SANITIZE_NAMED_PROPS||!1,Qe=i.KEEP_CONTENT!==!1,he=i.IN_PLACE||!1,yt=i.ALLOWED_URI_REGEXP||Rn,oe=i.NAMESPACE||X,Oe=i.MATHML_TEXT_INTEGRATION_POINTS||Oe,Ce=i.HTML_INTEGRATION_POINTS||Ce,A=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&$t(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&$t(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(Ye=!1),Re&&(le=!0),ae&&(R=m({},cn),I=[],ae.html===!0&&(m(R,on),m(I,pn)),ae.svg===!0&&(m(R,lt),m(I,ct),m(I,ve)),ae.svgFilters===!0&&(m(R,at),m(I,ct),m(I,ve)),ae.mathMl===!0&&(m(R,ot),m(I,un),m(I,ve))),i.ADD_TAGS&&(typeof i.ADD_TAGS=="function"?se.tagCheck=i.ADD_TAGS:(R===Rt&&(R=Z(R)),m(R,i.ADD_TAGS,y))),i.ADD_ATTR&&(typeof i.ADD_ATTR=="function"?se.attributeCheck=i.ADD_ATTR:(I===Lt&&(I=Z(I)),m(I,i.ADD_ATTR,y))),i.ADD_URI_SAFE_ATTR&&m(Ke,i.ADD_URI_SAFE_ATTR,y),i.FORBID_CONTENTS&&(G===Ve&&(G=Z(G)),m(G,i.FORBID_CONTENTS,y)),i.ADD_FORBID_CONTENTS&&(G===Ve&&(G=Z(G)),m(G,i.ADD_FORBID_CONTENTS,y)),Qe&&(R["#text"]=!0),K&&m(R,["html","head","body"]),R.table&&(m(R,["tbody"]),delete ue.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=i.TRUSTED_TYPES_POLICY,Y=L.createHTML("")}else L===void 0&&(L=Ts(_,t)),L!==null&&typeof Y=="string"&&(Y=L.createHTML(""));P&&P(i),ce=i}},zt=m({},[...lt,...at,...cs]),Ut=m({},[...ot,...ps]),Wn=function(i){let c=re(i);(!c||!c.tagName)&&(c={namespaceURI:oe,tagName:"template"});const h=$e(i.tagName),w=$e(c.tagName);return et[i.namespaceURI]?i.namespaceURI===De?c.namespaceURI===X?h==="svg":c.namespaceURI===Ie?h==="svg"&&(w==="annotation-xml"||Oe[w]):!!zt[h]:i.namespaceURI===Ie?c.namespaceURI===X?h==="math":c.namespaceURI===De?h==="math"&&Ce[w]:!!Ut[h]:i.namespaceURI===X?c.namespaceURI===De&&!Ce[w]||c.namespaceURI===Ie&&!Oe[w]?!1:!Ut[h]&&(Fn[h]||!zt[h]):!!(fe==="application/xhtml+xml"&&et[i.namespaceURI]):!1},W=function(i){me(e.removed,{element:i});try{re(i).removeChild(i)}catch{Ae(i)}},J=function(i,c){try{me(e.removed,{attribute:c.getAttributeNode(i),from:c})}catch{me(e.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(le||Re)try{W(c)}catch{}else try{c.setAttribute(i,"")}catch{}},Ft=function(i){let c=null,h=null;if(Xe)i="<remove></remove>"+i;else{const E=it(i,/^[\r\n\t ]+/);h=E&&E[0]}fe==="application/xhtml+xml"&&oe===X&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const w=L?L.createHTML(i):i;if(oe===X)try{c=new k().parseFromString(w,fe)}catch{}if(!c||!c.documentElement){c=j.createDocument(oe,"template",null);try{c.documentElement.innerHTML=Je?Y:w}catch{}}const O=c.body||c.documentElement;return i&&h&&O.insertBefore(n.createTextNode(h),O.childNodes[0]||null),oe===X?Cn.call(c,K?"html":"body")[0]:K?c.documentElement:O},Ht=function(i){return Dn.call(i.ownerDocument||i,i,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},nt=function(i){return i instanceof d&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof u)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Bt=function(i){return typeof p=="function"&&i instanceof p};function Q(g,i,c){Pe(g,h=>{h.call(e,i,c,ce)})}const Gt=function(i){let c=null;if(Q(C.beforeSanitizeElements,i,null),nt(i))return W(i),!0;const h=y(i.nodeName);if(Q(C.uponSanitizeElement,i,{tagName:h,allowedTags:R}),ye&&i.hasChildNodes()&&!Bt(i.firstElementChild)&&N(/<[/\w!]/g,i.innerHTML)&&N(/<[/\w!]/g,i.textContent)||i.nodeType===Te.progressingInstruction||ye&&i.nodeType===Te.comment&&N(/<[/\w]/g,i.data))return W(i),!0;if(!(se.tagCheck instanceof Function&&se.tagCheck(h))&&(!R[h]||ue[h])){if(!ue[h]&&qt(h)&&(A.tagNameCheck instanceof RegExp&&N(A.tagNameCheck,h)||A.tagNameCheck instanceof Function&&A.tagNameCheck(h)))return!1;if(Qe&&!G[h]){const w=re(i)||i.parentNode,O=Se(i)||i.childNodes;if(O&&w){const E=O.length;for(let $=E-1;$>=0;--$){const V=U(O[$],!0);V.__removalCount=(i.__removalCount||0)+1,w.insertBefore(V,Ee(i))}}}return W(i),!0}return i instanceof o&&!Wn(i)||(h==="noscript"||h==="noembed"||h==="noframes")&&N(/<\/no(script|embed|frames)/i,i.innerHTML)?(W(i),!0):(ie&&i.nodeType===Te.text&&(c=i.textContent,Pe([Ge,We,qe],w=>{c=ke(c,w," ")}),i.textContent!==c&&(me(e.removed,{element:i.cloneNode()}),i.textContent=c)),Q(C.afterSanitizeElements,i,null),!1)},Wt=function(i,c,h){if(Ct&&(c==="id"||c==="name")&&(h in n||h in Gn))return!1;if(!(Ye&&!Ze[c]&&N(Mn,c))){if(!(It&&N(Pn,c))){if(!(se.attributeCheck instanceof Function&&se.attributeCheck(c,i))){if(!I[c]||Ze[c]){if(!(qt(i)&&(A.tagNameCheck instanceof RegExp&&N(A.tagNameCheck,i)||A.tagNameCheck instanceof Function&&A.tagNameCheck(i))&&(A.attributeNameCheck instanceof RegExp&&N(A.attributeNameCheck,c)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(c,i))||c==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&N(A.tagNameCheck,h)||A.tagNameCheck instanceof Function&&A.tagNameCheck(h))))return!1}else if(!Ke[c]){if(!N(yt,ke(h,St,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&is(h,"data:")===0&&Mt[i])){if(!(Dt&&!N(vn,ke(h,St,"")))){if(h)return!1}}}}}}}return!0},qt=function(i){return i!=="annotation-xml"&&it(i,$n)},Zt=function(i){Q(C.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||nt(i))return;const h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0};let w=c.length;for(;w--;){const O=c[w],{name:E,namespaceURI:$,value:V}=O,pe=y(E),rt=V;let D=E==="value"?rt:ls(rt);if(h.attrName=pe,h.attrValue=D,h.keepAttr=!0,h.forceKeepAttr=void 0,Q(C.uponSanitizeAttribute,i,h),D=h.attrValue,Nt&&(pe==="id"||pe==="name")&&(J(E,i),D=zn+D),ye&&N(/((--!?|])>)|<\/(style|title|textarea)/i,D)){J(E,i);continue}if(pe==="attributename"&&it(D,"href")){J(E,i);continue}if(h.forceKeepAttr)continue;if(!h.keepAttr){J(E,i);continue}if(!Ot&&N(/\/>/i,D)){J(E,i);continue}ie&&Pe([Ge,We,qe],jt=>{D=ke(D,jt," ")});const Yt=y(i.nodeName);if(!Wt(Yt,pe,D)){J(E,i);continue}if(L&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!$)switch(_.getAttributeType(Yt,pe)){case"TrustedHTML":{D=L.createHTML(D);break}case"TrustedScriptURL":{D=L.createScriptURL(D);break}}if(D!==rt)try{$?i.setAttributeNS($,E,D):i.setAttribute(E,D),nt(i)?W(i):an(e.removed)}catch{J(E,i)}}Q(C.afterSanitizeAttributes,i,null)},qn=function g(i){let c=null;const h=Ht(i);for(Q(C.beforeSanitizeShadowDOM,i,null);c=h.nextNode();)Q(C.uponSanitizeShadowNode,c,null),Gt(c),Zt(c),c.content instanceof a&&g(c.content);Q(C.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(g){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,h=null,w=null,O=null;if(Je=!g,Je&&(g="<!-->"),typeof g!="string"&&!Bt(g))if(typeof g.toString=="function"){if(g=g.toString(),typeof g!="string")throw be("dirty is not a string, aborting")}else throw be("toString is not a function");if(!e.isSupported)return g;if(je||tt(i),e.removed=[],typeof g=="string"&&(he=!1),he){if(g.nodeName){const V=y(g.nodeName);if(!R[V]||ue[V])throw be("root node is forbidden and cannot be sanitized in-place")}}else if(g instanceof p)c=Ft("<!---->"),h=c.ownerDocument.importNode(g,!0),h.nodeType===Te.element&&h.nodeName==="BODY"||h.nodeName==="HTML"?c=h:c.appendChild(h);else{if(!le&&!ie&&!K&&g.indexOf("<")===-1)return L&&Le?L.createHTML(g):g;if(c=Ft(g),!c)return le?null:Le?Y:""}c&&Xe&&W(c.firstChild);const E=Ht(he?g:c);for(;w=E.nextNode();)Gt(w),Zt(w),w.content instanceof a&&qn(w.content);if(he)return g;if(le){if(Re)for(O=On.call(c.ownerDocument);c.firstChild;)O.appendChild(c.firstChild);else O=c;return(I.shadowroot||I.shadowrootmode)&&(O=Nn.call(s,O,!0)),O}let $=K?c.outerHTML:c.innerHTML;return K&&R["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&N(Ln,c.ownerDocument.doctype.name)&&($="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
60
+ `+$),ie&&Pe([Ge,We,qe],V=>{$=ke($,V," ")}),L&&Le?L.createHTML($):$},e.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tt(g),je=!0},e.clearConfig=function(){ce=null,je=!1},e.isValidAttribute=function(g,i,c){ce||tt({});const h=y(g),w=y(i);return Wt(h,w,c)},e.addHook=function(g,i){typeof i=="function"&&me(C[g],i)},e.removeHook=function(g,i){if(i!==void 0){const c=rs(C[g],i);return c===-1?void 0:ss(C[g],c,1)[0]}return an(C[g])},e.removeHooks=function(g){C[g]=[]},e.removeAllHooks=function(){C=fn()},e}var S=In(),ws=S;S.sanitize.bind(S);S.isSupported;S.addHook.bind(S);S.removeHook.bind(S);S.removeHooks.bind(S);S.removeAllHooks.bind(S);S.setConfig.bind(S);S.clearConfig.bind(S);S.isValidAttribute.bind(S);S.version;S.removed;x.setOptions({gfm:!0,breaks:!0});function Ls(r){if(!r)return"";const e=x.parse(r,{async:!1});return ws.sanitize(e,{ADD_ATTR:["target"],ALLOWED_TAGS:["p","br","strong","em","del","code","pre","blockquote","ul","ol","li","a","h1","h2","h3","h4","h5","h6","hr","table","thead","tbody","tr","th","td","img","span","div","input"],ALLOWED_ATTR:["href","target","rel","src","alt","title","class","type","checked","disabled"]})}function Is(r,e){er(e,!0);let n=cr(e,["$$slots","$$events","$$legacy"]);const s=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];pr(r,or({name:"file-text"},()=>n,{get iconNode(){return s},children:(t,a)=>{var l=ir(),p=tr(l);ar(p,()=>e.children??nr),lr(t,l)},$$slots:{default:!0}})),rr()}export{Is as F,Rs as h,Ls as r};
@@ -0,0 +1 @@
1
+ import{c as H,a as o,f as u}from"./DvA-KON-.js";import{p as Q,f as b,a as S,c as l,r as f,t as p,g as d,h as L,s as T}from"./D3vxvonu.js";import{d as X,s as k}from"./D9QNBZM2.js";import{p as R,i as w}from"./BysXJlZb.js";import{p as N,q as v}from"./DQA8NZIH.js";import{b as Y}from"./D7LTux4W.js";import{g as $}from"./B8a0xDxR.js";function I(s){return s.startsWith("@")?s.slice(1):s}const ee=/^[0-9A-HJKMNP-TV-Z]{26}$/i;function te(s){return ee.test(I(s))}function ae(s){const e=I(s);return te(e)?e.slice(0,8):e}function ne(s,e,_=""){const c=encodeURIComponent(e);switch(s){case"task":return`${_}/tasks/board?ref=${c}`;case"spec":return`${_}/specs?ref=${c}`;case"plan":return`${_}/plans?ref=${c}`;case"session":return`${_}/sessions/${I(e)}`}}var re=u('<span class="text-sm"> </span> <span class="text-[10px] font-mono text-muted-foreground"> </span>',1),se=u('<span class="text-sm font-mono"> </span>'),oe=u('<span role="link" tabindex="0" data-testid="reference-link"><!></span>'),ie=u('<a data-testid="reference-link"><!></a>'),le=u('<span class="text-sm"> </span> <span class="text-[10px] font-mono text-muted-foreground"> </span>',1),fe=u('<span class="text-sm font-mono text-muted-foreground"> </span>'),ce=u('<span data-testid="reference-link"><!></span>');function ge(s,e){Q(e,!0);const _=n=>{var a=H(),h=b(a);{var x=r=>{var t=re(),i=b(t),E=l(i,!0);f(i);var C=T(i,2),m=l(C);f(C),p(()=>{k(E,c()),k(m,`@${d(A)??""}`)}),o(r,t)},D=r=>{var t=se(),i=l(t);f(t),p(()=>k(i,`@${d(q)??""}`)),o(r,t)};w(h,r=>{c()?r(x):r(D,!1)})}o(n,a)};let c=R(e,"title",3,null),P=R(e,"linked",3,!0),V=R(e,"inline",3,!1),W=R(e,"stopPropagation",3,!1),U=R(e,"class",3,""),q=L(()=>I(e.ref)),A=L(()=>ae(e.ref)),z=L(()=>ne(e.type,e.ref,Y));function Z(n){W()&&n.stopPropagation()}function J(n){n.stopPropagation(),n.preventDefault(),$(d(z))}var K=H(),j=b(K);{var B=n=>{var a=oe();a.__click=J,a.__keydown=x=>x.key==="Enter"&&J(x);var h=l(a);_(h),f(a),p(()=>{N(a,1,`inline-flex items-baseline gap-1 text-primary hover:underline cursor-pointer ${U()??""}`),v(a,"title",e.ref),v(a,"data-ref-type",e.type),v(a,"data-href",d(z))}),o(n,a)},F=n=>{var a=H(),h=b(a);{var x=r=>{var t=ie();t.__click=Z;var i=l(t);_(i),f(t),p(()=>{v(t,"href",d(z)),N(t,1,`inline-flex items-baseline gap-1 text-primary hover:underline ${U()??""}`),v(t,"title",e.ref),v(t,"data-ref-type",e.type)}),o(r,t)},D=r=>{var t=ce(),i=l(t);{var E=m=>{var g=le(),y=b(g),G=l(y,!0);f(y);var M=T(y,2),O=l(M);f(M),p(()=>{k(G,c()),k(O,`@${d(A)??""}`)}),o(m,g)},C=m=>{var g=fe(),y=l(g);f(g),p(()=>k(y,`@${d(q)??""}`)),o(m,g)};w(i,m=>{c()?m(E):m(C,!1)})}f(t),p(()=>{N(t,1,`inline-flex items-baseline gap-1 ${U()??""}`),v(t,"title",e.ref),v(t,"data-ref-type",e.type)}),o(r,t)};w(h,r=>{P()?r(x):r(D,!1)},!0)}o(n,a)};w(j,n=>{P()&&V()?n(B):n(F,!1)})}o(s,K),S()}X(["click","keydown"]);export{ge as R};
@@ -0,0 +1 @@
1
+ import{c as n,a as m}from"./DvA-KON-.js";import{p as i,f as c,i as d,a as l}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(s,o){i(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]];$(s,h({name:"terminal"},()=>t,{get iconNode(){return a},children:(e,_)=>{var r=n(),p=c(r);f(p,()=>o.children??d),m(e,r)},$$slots:{default:!0}})),l()}export{k as T};
@@ -0,0 +1 @@
1
+ import{H as a,u as i,z as t,I as _,q as l,J as m}from"./D3vxvonu.js";function p(e){t===null&&a(),_&&t.l!==null?d(t).m.push(e):i(()=>{const n=l(e);if(typeof n=="function")return n})}function y(e){t===null&&a(),p(()=>()=>l(e))}function v(e,n,{bubbles:o=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:n,bubbles:o,cancelable:s})}function b(){const e=t;return e===null&&a(),(n,o,s)=>{const c=e.s.$$events?.[n];if(c){const r=m(c)?c.slice():[c],u=v(n,o,s);for(const f of r)f.call(e.x,u);return!u.defaultPrevented}return!0}}function d(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{y as a,b as c,p as o};
@@ -0,0 +1 @@
1
+ var Gt=Array.isArray,Kt=Array.prototype.indexOf,Mn=Array.from,Fn=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyDescriptors,zt=Object.prototype,Xt=Array.prototype,at=Object.getPrototypeOf,Qe=Object.isExtensible;function jn(e){return typeof e=="function"}const Ee=()=>{};function Ln(e){return e()}function Zt(e){for(var t=0;t<e.length;t++)e[t]()}function lt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function qn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const g=2,ge=4,pe=8,He=1<<24,F=16,j=32,z=64,ut=128,N=512,E=1024,S=2048,L=4096,P=8192,H=16384,Ue=32768,me=65536,et=1<<17,ot=1<<18,oe=1<<19,ct=1<<20,Yn=1<<25,te=32768,Fe=1<<21,Ve=1<<22,U=1<<23,J=Symbol("$state"),Hn=Symbol("legacy props"),Un=Symbol(""),fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Bn=1,Be=3,_t=8;function Wt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Jt(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function nn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function rn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function $n(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const zn=1,Xn=2,Zn=4,Wn=8,Jn=16,Qn=1,er=2,tr=4,nr=8,rr=16,sr=1,fr=2,an="[",ln="[!",un="]",Ge={},b=Symbol(),ir="http://www.w3.org/1999/xhtml",ar="http://www.w3.org/2000/svg",lr="@attach";function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ur(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function or(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let B=!1;function cr(e){B=e}let x;function ae(e){if(e===null)throw Ke(),Ge;return x=e}function _r(){return ae(X(x))}function vr(e){if(B){if(X(x)!==null)throw Ke(),Ge;x=e}}function dr(e=1){if(B){for(var t=e,n=x;t--;)n=X(n);x=n}}function pr(e=!0){for(var t=0,n=x;;){if(n.nodeType===_t){var r=n.data;if(r===un){if(t===0)return n;t-=1}else(r===an||r===ln)&&(t+=1)}var s=X(n);e&&n.remove(),n=s}}function hr(e){if(!e||e.nodeType!==_t)throw Ke(),Ge;return e.data}function vt(e){return e===this.v}function dt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pt(e){return!dt(e,this.v)}let Ce=!1;function yr(){Ce=!0}let y=null;function Te(e){y=e}function wr(e){return De().get(e)}function br(e,t){return De().set(e,t),t}function Er(e){return De().has(e)}function gr(){return De()}function mr(e,t=!1,n){y={p:y,i:!1,c:null,e:null,s:e,x:null,l:Ce&&!t?{s:null,u:null,$:[]}:null}}function Tr(e){var t=y,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,y=t.p,e??{}}function he(){return!Ce||y!==null&&y.l===null}function De(e){return y===null&&Wt(),y.c??=new Map(on(y)||void 0)}function on(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Z=[];function ht(){var e=Z;Z=[],Zt(e)}function yt(e){if(Z.length===0&&!de){var t=Z;queueMicrotask(()=>{t===Z&&ht()})}Z.push(e)}function cn(){for(;Z.length>0;)ht()}function _n(e){var t=p;if(t===null)return _.f|=U,e;if((t.f&Ue)===0){if((t.f&ut)===0)throw e;t.b.error(e)}else Ae(e,t)}function Ae(e,t){for(;t!==null;){if((t.f&ut)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const vn=-7169;function m(e,t){e.f=e.f&vn|t}function $e(e){(e.f&N)!==0||e.deps===null?m(e,E):m(e,L)}function wt(e){if(e!==null)for(const t of e)(t.f&g)===0||(t.f&te)===0||(t.f^=te,wt(t.deps))}function dn(e,t,n){(e.f&S)!==0?t.add(e):(e.f&L)!==0&&n.add(e),wt(e.deps),m(e,E)}const be=new Set;let h=null,Ie=null,D=null,O=[],ke=null,je=!1,de=!1;class G{committed=!1;current=new Map;previous=new Map;#n=new Set;#r=new Set;#e=0;#t=0;#i=null;#s=new Set;#f=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#t>0}process(t){O=[],Ie=null,this.apply();var n=[],r=[];for(const s of t)this.#a(s,n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#l(r),this.#l(n)):(Ie=this,h=null,tt(r),tt(n),Ie=null,this.#i?.resolve()),D=null}#a(t,n,r){t.f^=E;for(var s=t.first,f=null;s!==null;){var u=s.f,a=(u&(j|z))!==0,l=a&&(u&E)!==0,i=l||(u&P)!==0||this.skipped_effects.has(s);if(!i&&s.fn!==null){a?s.f^=E:f!==null&&(u&(ge|pe|He))!==0?f.b.defer_effect(s):(u&ge)!==0?n.push(s):ce(s)&&((u&F)!==0&&this.#s.add(s),ue(s));var o=s.first;if(o!==null){s=o;continue}}var c=s.parent;for(s=s.next;s===null&&c!==null;)c===f&&(f=null),s=c.next,c=c.parent}}#l(t){for(var n=0;n<t.length;n+=1)dn(t[n],this.#s,this.#f)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),D?.set(t,t.v))}activate(){h=this,this.apply()}deactivate(){h===this&&(h=null,D=null)}flush(){if(this.activate(),O.length>0){if(bt(),h!==null&&h!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#r)t(this);this.#r.clear()}#u(){if(this.#t===0){for(const t of this.#n)t();this.#n.clear()}this.#e===0&&this.#o()}#o(){if(be.size>1){this.previous.clear();var t=D,n=!0;for(const s of be){if(s===this){n=!1;continue}const f=[];for(const[a,l]of this.current){if(s.current.has(a))if(n&&l!==s.current.get(a))s.current.set(a,l);else continue;f.push(a)}if(f.length===0)continue;const u=[...s.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var r=O;O=[];const a=new Set,l=new Map;for(const i of f)Et(i,u,a,l);if(O.length>0){h=s,s.apply();for(const i of O)s.#a(i,[],[]);s.deactivate()}O=r}}h=null,D=t}this.committed=!0,be.delete(this)}increment(t){this.#e+=1,t&&(this.#t+=1)}decrement(t){this.#e-=1,t&&(this.#t-=1),this.revive()}revive(){for(const t of this.#s)this.#f.delete(t),m(t,S),ne(t);for(const t of this.#f)m(t,L),ne(t);this.flush()}oncommit(t){this.#n.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=lt()).promise}static ensure(){if(h===null){const t=h=new G;be.add(h),de||G.enqueue(()=>{h===t&&t.flush()})}return h}static enqueue(t){yt(t)}apply(){}}function pn(e){var t=de;de=!0;try{for(var n;;){if(cn(),O.length===0&&(h?.flush(),O.length===0))return ke=null,n;bt()}}finally{de=t}}function bt(){var e=Q;je=!0;var t=null;try{var n=0;for(Oe(!0);O.length>0;){var r=G.ensure();if(n++>1e3){var s,f;hn()}r.process(O),V.clear()}}finally{je=!1,Oe(e),ke=null}}function hn(){try{nn()}catch(e){Ae(e,ke)}}let I=null;function tt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|P))===0&&ce(r)&&(I=new Set,ue(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?It(r):r.fn=null),I?.size>0)){V.clear();for(const s of I){if((s.f&(H|P))!==0)continue;const f=[s];let u=s.parent;for(;u!==null;)I.has(u)&&(I.delete(u),f.push(u)),u=u.parent;for(let a=f.length-1;a>=0;a--){const l=f[a];(l.f&(H|P))===0&&ue(l)}}I.clear()}}I=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&g)!==0?Et(s,t,n,r):(f&(Ve|F))!==0&&(f&S)===0&&gt(s,t,r)&&(m(s,S),ne(s))}}function gt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&g)!==0&&gt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ne(e){for(var t=ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(je&&t===p&&(n&F)!==0&&(n&ot)===0)return;if((n&(z|j))!==0){if((n&E)===0)return;t.f^=E}}O.push(t)}function yn(e,t,n,r){const s=he()?ze:En;if(n.length===0&&e.length===0){r(t.map(s));return}var f=h,u=p,a=wn();function l(){Promise.all(n.map(i=>bn(i))).then(i=>{a();try{r([...t.map(s),...i])}catch(o){(u.f&H)===0&&Ae(o,u)}f?.deactivate(),xe()}).catch(i=>{Ae(i,u)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{f?.deactivate(),xe()}}):l()}function wn(){var e=p,t=_,n=y,r=h;return function(f=!0){le(e),$(t),Te(n),f&&r?.activate()}}function xe(){le(null),$(null),Te(null)}function ze(e){var t=g|S,n=_!==null&&(_.f&g)!==0?_:null;return p!==null&&(p.f|=oe),{ctx:y,deps:null,effects:null,equals:vt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??p,ac:null}}function bn(e,t,n){let r=p;r===null&&Jt();var s=r.b,f=void 0,u=Ze(b),a=!_,l=new Map;return On(()=>{var i=lt();f=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).then(()=>{o===h&&o.committed&&o.deactivate(),xe()})}catch(d){i.reject(d),xe()}var o=h;if(a){var c=s.is_rendered();s.update_pending_count(1),o.increment(c),l.get(o)?.reject(fe),l.delete(o),l.set(o,i)}const v=(d,w=void 0)=>{if(o.activate(),w)w!==fe&&(u.f|=U,qe(u,w));else{(u.f&U)!==0&&(u.f^=U),qe(u,d);for(const[ye,we]of l){if(l.delete(ye),ye===o)break;we.reject(fe)}}a&&(s.update_pending_count(-1),o.decrement(c))};i.promise.then(v,d=>v(null,d||"unknown"))}),Rn(()=>{for(const i of l.values())i.reject(fe)}),new Promise(i=>{function o(c){function v(){c===f?i(u):o(f)}c.then(v,v)}o(f)})}function Ar(e){const t=ze(e);return jt(t),t}function En(e){const t=ze(e);return t.equals=pt,t}function mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)K(t[n])}}function gn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function Xe(e){var t,n=p;le(gn(e));try{e.f&=~te,mt(e),t=Ht(e)}finally{le(n)}return t}function Tt(e){var t=Xe(e);if(!e.equals(t)&&(e.wv=qt(),(!h?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){m(e,E);return}re||(D!==null?(Nt()||h?.is_fork)&&D.set(e,t):$e(e))}let Le=new Set;const V=new Map;let At=!1;function Ze(e,t){var n={f:0,v:e,reactions:null,equals:vt,rv:0,wv:0};return n}function q(e,t){const n=Ze(e);return jt(n),n}function xr(e,t=!1,n=!0){const r=Ze(e);return t||(r.equals=pt),Ce&&n&&y!==null&&y.l!==null&&(y.l.s??=[]).push(r),r}function Y(e,t,n=!1){_!==null&&(!k||(_.f&et)!==0)&&he()&&(_.f&(g|F|Ve|et))!==0&&!M?.includes(e)&&fn();let r=n?_e(t):t;return qe(e,r)}function qe(e,t){if(!e.equals(t)){var n=e.v;re?V.set(e,t):V.set(e,n),e.v=t;var r=G.ensure();if(r.capture(e,n),(e.f&g)!==0){const s=e;(e.f&S)!==0&&Xe(s),$e(s)}e.wv=qt(),xt(e,S),he()&&p!==null&&(p.f&E)!==0&&(p.f&(j|z))===0&&(R===null?kn([e]):R.push(e)),!r.is_fork&&Le.size>0&&!At&&mn()}return t}function mn(){At=!1;var e=Q;Oe(!0);const t=Array.from(Le);try{for(const n of t)(n.f&E)!==0&&m(n,L),ce(n)&&ue(n)}finally{Oe(e)}Le.clear()}function Sr(e,t=1){var n=ie(e),r=t===1?n++:n--;return Y(e,n),r}function Me(e){Y(e,e.v+1)}function xt(e,t){var n=e.reactions;if(n!==null)for(var r=he(),s=n.length,f=0;f<s;f++){var u=n[f],a=u.f;if(!(!r&&u===p)){var l=(a&S)===0;if(l&&m(u,t),(a&g)!==0){var i=u;D?.delete(i),(a&te)===0&&(a&N&&(u.f|=te),xt(i,L))}else l&&((a&F)!==0&&I!==null&&I.add(u),ne(u))}}}function _e(e){if(typeof e!="object"||e===null||J in e)return e;const t=at(e);if(t!==zt&&t!==Xt)return e;var n=new Map,r=Gt(e),s=q(0),f=ee,u=a=>{if(ee===f)return a();var l=_,i=ee;$(null),it(f);var o=a();return $(l),it(i),o};return r&&n.set("length",q(e.length)),new Proxy(e,{defineProperty(a,l,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&rn();var o=n.get(l);return o===void 0?o=u(()=>{var c=q(i.value);return n.set(l,c),c}):Y(o,i.value,!0),!0},deleteProperty(a,l){var i=n.get(l);if(i===void 0){if(l in a){const o=u(()=>q(b));n.set(l,o),Me(s)}}else Y(i,b),Me(s);return!0},get(a,l,i){if(l===J)return e;var o=n.get(l),c=l in a;if(o===void 0&&(!c||ve(a,l)?.writable)&&(o=u(()=>{var d=_e(c?a[l]:b),w=q(d);return w}),n.set(l,o)),o!==void 0){var v=ie(o);return v===b?void 0:v}return Reflect.get(a,l,i)},getOwnPropertyDescriptor(a,l){var i=Reflect.getOwnPropertyDescriptor(a,l);if(i&&"value"in i){var o=n.get(l);o&&(i.value=ie(o))}else if(i===void 0){var c=n.get(l),v=c?.v;if(c!==void 0&&v!==b)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return i},has(a,l){if(l===J)return!0;var i=n.get(l),o=i!==void 0&&i.v!==b||Reflect.has(a,l);if(i!==void 0||p!==null&&(!o||ve(a,l)?.writable)){i===void 0&&(i=u(()=>{var v=o?_e(a[l]):b,d=q(v);return d}),n.set(l,i));var c=ie(i);if(c===b)return!1}return o},set(a,l,i,o){var c=n.get(l),v=l in a;if(r&&l==="length")for(var d=i;d<c.v;d+=1){var w=n.get(d+"");w!==void 0?Y(w,b):d in a&&(w=u(()=>q(b)),n.set(d+"",w))}if(c===void 0)(!v||ve(a,l)?.writable)&&(c=u(()=>q(void 0)),Y(c,_e(i)),n.set(l,c));else{v=c.v!==b;var ye=u(()=>_e(i));Y(c,ye)}var we=Reflect.getOwnPropertyDescriptor(a,l);if(we?.set&&we.set.call(o,i),!v){if(r&&typeof l=="string"){var Je=n.get("length"),Pe=Number(l);Number.isInteger(Pe)&&Pe>=Je.v&&Y(Je,Pe+1)}Me(s)}return!0},ownKeys(a){ie(s);var l=Reflect.ownKeys(a).filter(c=>{var v=n.get(c);return v===void 0||v.v!==b});for(var[i,o]of n)o.v!==b&&!(i in a)&&l.push(i);return l},setPrototypeOf(){sn()}})}function nt(e){try{if(e!==null&&typeof e=="object"&&J in e)return e[J]}catch{}return e}function Rr(e,t){return Object.is(nt(e),nt(t))}var rt,Tn,St,Rt;function Or(){if(rt===void 0){rt=window,Tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;St=ve(t,"firstChild").get,Rt=ve(t,"nextSibling").get,Qe(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Qe(n)&&(n.__t=void 0)}}function Se(e=""){return document.createTextNode(e)}function Re(e){return St.call(e)}function X(e){return Rt.call(e)}function Nr(e,t){if(!B)return Re(e);var n=Re(x);if(n===null)n=x.appendChild(Se());else if(t&&n.nodeType!==Be){var r=Se();return n?.before(r),ae(r),r}return ae(n),n}function Cr(e,t=!1){if(!B){var n=Re(e);return n instanceof Comment&&n.data===""?X(n):n}if(t&&x?.nodeType!==Be){var r=Se();return x?.before(r),ae(r),r}return x}function Dr(e,t=1,n=!1){let r=B?x:e;for(var s;t--;)s=r,r=X(r);if(!B)return r;if(n&&r?.nodeType!==Be){var f=Se();return r===null?s?.after(f):r.before(f),ae(f),f}return ae(r),r}function An(e){e.textContent=""}function kr(){return!1}function Pr(e,t){if(t){const n=document.body;e.autofocus=!0,yt(()=>{document.activeElement===n&&e.focus()})}}function Ir(e){B&&Re(e)!==null&&An(e)}let st=!1;function xn(){st||(st=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function We(e){var t=_,n=p;$(null),le(null);try{return e()}finally{$(t),le(n)}}function Mr(e,t,n,r=n){e.addEventListener(t,()=>We(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),xn()}function Ot(e){p===null&&(_===null&&tn(),en()),re&&Qt()}function Sn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function C(e,t,n){var r=p;r!==null&&(r.f&P)!==0&&(e|=P);var s={ctx:y,deps:null,nodes:null,f:e|S|N,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{ue(s),s.f|=Ue}catch(a){throw K(s),a}else t!==null&&ne(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&oe)===0&&(f=f.first,(e&F)!==0&&(e&me)!==0&&f!==null&&(f.f|=me)),f!==null&&(f.parent=r,r!==null&&Sn(f,r),_!==null&&(_.f&g)!==0&&(e&z)===0)){var u=_;(u.effects??=[]).push(f)}return s}function Nt(){return _!==null&&!k}function Rn(e){const t=C(pe,null,!1);return m(t,E),t.teardown=e,t}function Fr(e){Ot();var t=p.f,n=!_&&(t&j)!==0&&(t&Ue)===0;if(n){var r=y;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return C(ge|ct,e,!1)}function jr(e){return Ot(),C(pe|ct,e,!0)}function Lr(e){G.ensure();const t=C(z|oe,e,!0);return()=>{K(t)}}function qr(e){G.ensure();const t=C(z|oe,e,!0);return(n={})=>new Promise(r=>{n.outro?Dn(t,()=>{K(t),r(void 0)}):(K(t),r(void 0))})}function Yr(e){return C(ge,e,!1)}function Hr(e,t){var n=y,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Dt(()=>{e(),!r.ran&&(r.ran=!0,Bt(t))})}function Ur(){var e=y;Dt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&E)!==0&&n.deps!==null&&m(n,L),ce(n)&&ue(n),t.ran=!1}})}function On(e){return C(Ve|oe,e,!0)}function Dt(e,t=0){return C(pe|t,e,!0)}function Vr(e,t=[],n=[],r=[]){yn(r,t,n,s=>{C(pe,()=>e(...s.map(ie)),!0)})}function Br(e,t=0){var n=C(F|t,e,!0);return n}function Gr(e,t=0){var n=C(He|t,e,!0);return n}function Kr(e){return C(j|oe,e,!0)}function kt(e){var t=e.teardown;if(t!==null){const n=re,r=_;ft(!0),$(null);try{t.call(null)}finally{ft(n),$(r)}}}function Pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&We(()=>{s.abort(fe)});var r=n.next;(n.f&z)!==0?n.parent=null:K(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&j)===0&&K(t),t=n}}function K(e,t=!0){var n=!1;(t||(e.f&ot)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Cn(e.nodes.start,e.nodes.end),n=!0),Pt(e,t&&!n),Ne(e,0),m(e,H);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();kt(e);var s=e.parent;s!==null&&s.first!==null&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Cn(e,t){for(;e!==null;){var n=e===t?null:X(e);e.remove(),e=n}}function It(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Dn(e,t,n=!0){var r=[];Mt(e,r,!0);var s=()=>{n&&K(e),t&&t()},f=r.length;if(f>0){var u=()=>--f||s();for(var a of r)a.out(u)}else s()}function Mt(e,t,n){if((e.f&P)===0){e.f^=P;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var s=e.first;s!==null;){var f=s.next,u=(s.f&me)!==0||(s.f&j)!==0&&(e.f&F)!==0;Mt(s,t,u?n:!1),s=f}}}function $r(e){Ft(e,!0)}function Ft(e,t){if((e.f&P)!==0){e.f^=P,(e.f&E)===0&&(m(e,S),ne(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&me)!==0||(n.f&j)!==0;Ft(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const u of f)(u.is_global||t)&&u.in()}}function zr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:X(n);t.append(n),n=s}}let Q=!1;function Oe(e){Q=e}let re=!1;function ft(e){re=e}let _=null,k=!1;function $(e){_=e}let p=null;function le(e){p=e}let M=null;function jt(e){_!==null&&(M===null?M=[e]:M.push(e))}let T=null,A=0,R=null;function kn(e){R=e}let Lt=1,W=0,ee=W;function it(e){ee=e}function qt(){return++Lt}function ce(e){var t=e.f;if((t&S)!==0)return!0;if(t&g&&(e.f&=~te),(t&L)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var f=n[s];if(ce(f)&&Tt(f),f.wv>e.wv)return!0}(t&N)!==0&&D===null&&m(e,E)}return!1}function Yt(e,t,n=!0){var r=e.reactions;if(r!==null&&!M?.includes(e))for(var s=0;s<r.length;s++){var f=r[s];(f.f&g)!==0?Yt(f,t,!1):t===f&&(n?m(f,S):(f.f&E)!==0&&m(f,L),ne(f))}}function Ht(e){var t=T,n=A,r=R,s=_,f=M,u=y,a=k,l=ee,i=e.f;T=null,A=0,R=null,_=(i&(j|z))===0?e:null,M=null,Te(e.ctx),k=!1,ee=++W,e.ac!==null&&(We(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=Fe;var o=e.fn,c=o(),v=e.deps;if(T!==null){var d;if(Ne(e,A),v!==null&&A>0)for(v.length=A+T.length,d=0;d<T.length;d++)v[A+d]=T[d];else e.deps=v=T;if(Nt()&&(e.f&N)!==0)for(d=A;d<v.length;d++)(v[d].reactions??=[]).push(e)}else v!==null&&A<v.length&&(Ne(e,A),v.length=A);if(he()&&R!==null&&!k&&v!==null&&(e.f&(g|L|S))===0)for(d=0;d<R.length;d++)Yt(R[d],e);if(s!==null&&s!==e){if(W++,s.deps!==null)for(let w=0;w<n;w+=1)s.deps[w].rv=W;if(t!==null)for(const w of t)w.rv=W;R!==null&&(r===null?r=R:r.push(...R))}return(e.f&U)!==0&&(e.f^=U),c}catch(w){return _n(w)}finally{e.f^=Fe,T=t,A=n,R=r,_=s,M=f,Te(u),k=a,ee=l}}function Pn(e,t){let n=t.reactions;if(n!==null){var r=Kt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&g)!==0&&(T===null||!T.includes(t))){var f=t;(f.f&N)!==0&&(f.f^=N,f.f&=~te),$e(f),mt(f),Ne(f,0)}}function Ne(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Pn(e,n[r])}function ue(e){var t=e.f;if((t&H)===0){m(e,E);var n=p,r=Q;p=e,Q=!0;try{(t&(F|He))!==0?Nn(e):Pt(e),kt(e);var s=Ht(e);e.teardown=typeof s=="function"?s:null,e.wv=Lt;var f}finally{Q=r,p=n}}}async function Xr(){await Promise.resolve(),pn()}function Zr(){return G.ensure().settled()}function ie(e){var t=e.f,n=(t&g)!==0;if(_!==null&&!k){var r=p!==null&&(p.f&H)!==0;if(!r&&!M?.includes(e)){var s=_.deps;if((_.f&Fe)!==0)e.rv<W&&(e.rv=W,T===null&&s!==null&&s[A]===e?A++:T===null?T=[e]:T.push(e));else{(_.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[_]:f.includes(_)||f.push(_)}}}if(re&&V.has(e))return V.get(e);if(n){var u=e;if(re){var a=u.v;return((u.f&E)===0&&u.reactions!==null||Vt(u))&&(a=Xe(u)),V.set(u,a),a}var l=(u.f&N)===0&&!k&&_!==null&&(Q||(_.f&N)!==0),i=u.deps===null;ce(u)&&(l&&(u.f|=N),Tt(u)),l&&!i&&Ut(u)}if(D?.has(e))return D.get(e);if((e.f&U)!==0)throw e.v;return e.v}function Ut(e){if(e.deps!==null){e.f|=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&g)!==0&&(t.f&N)===0&&Ut(t)}}function Vt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(V.has(t)||(t.f&g)!==0&&Vt(t))return!0;return!1}function Bt(e){var t=k;try{return k=!0,e()}finally{k=t}}function Wr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(J in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&J in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=at(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=$t(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function In(e,t,n){if(e==null)return t(void 0),Ee;const r=Bt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const se=[];function Jr(e,t=Ee){let n=null;const r=new Set;function s(a){if(dt(e,a)&&(e=a,n)){const l=!se.length;for(const i of r)i[1](),se.push(i,e);if(l){for(let i=0;i<se.length;i+=2)se[i][0](se[i+1]);se.length=0}}}function f(a){s(a(e))}function u(a,l=Ee){const i=[a,l];return r.add(i),r.size===1&&(n=t(s,f)||Ee),a(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:u}}function Qr(e){let t;return In(e,n=>t=n)(),t}export{rt as $,jr as A,Zt as B,Ln as C,Wr as D,me as E,ze as F,yr as G,Wt as H,Ce as I,Gt as J,xr as K,In as L,Qr as M,Rn as N,Fn as O,Sr as P,qn as Q,$r as R,K as S,Dn as T,Se as U,Kr as V,x as W,zr as X,kr as Y,hr as Z,ln as _,Tr as a,zn as a$,pr as a0,ae as a1,cr as a2,Yr as a3,yt as a4,J as a5,ve as a6,Kn as a7,tr as a8,En as a9,m as aA,S as aB,ne as aC,L as aD,qe as aE,Ae as aF,$n as aG,oe as aH,ut as aI,or as aJ,We as aK,Or as aL,an as aM,X as aN,Ge as aO,Gn as aP,An as aQ,Mn as aR,qr as aS,un as aT,Ke as aU,pn as aV,Cn as aW,lr as aX,Hr as aY,Ur as aZ,Yn as a_,re as aa,p as ab,H as ac,nr as ad,er as ae,Qn as af,jn as ag,Hn as ah,rr as ai,Ze as aj,le as ak,Re as al,Tn as am,sr as an,fr as ao,Ue as ap,_t as aq,Be as ar,Nt as as,Me as at,G as au,dn as av,$ as aw,Te as ax,_n as ay,_ as az,q as b,Jn as b0,Xn as b1,P as b2,Zn as b3,Wn as b4,Bn as b5,ar as b6,Gr as b7,ur as b8,Rr as b9,yn as ba,Pr as bb,b as bc,xn as bd,ir as be,at as bf,Un as bg,$t as bh,he as bi,ee as bj,Er as bk,wr as bl,br as bm,gr as bn,Lr as bo,zt as bp,ot as bq,Jr as br,Zr as bs,Nr as c,_e as d,Y as e,Cr as f,ie as g,Ar as h,Ee as i,Ir as j,h as k,Mr as l,Xr as m,dr as n,B as o,mr as p,Bt as q,vr as r,Dr as s,Vr as t,Fr as u,Dt as v,Ie as w,Br as x,_r as y,y as z};
@@ -0,0 +1 @@
1
+ import{c as n,a as c}from"./DvA-KON-.js";import{p as i,f as m,i as d,a as f}from"./D3vxvonu.js";import{k as l}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function N(s,o){i(o,!0);let e=u(o,["$$slots","$$events","$$legacy"]);const t=[["path",{d:"M20 6 9 17l-5-5"}]];$(s,h({name:"check"},()=>e,{get iconNode(){return t},children:(a,_)=>{var r=n(),p=m(r);l(p,()=>o.children??d),c(a,r)},$$slots:{default:!0}})),f()}export{N as C};
@@ -0,0 +1 @@
1
+ const s=globalThis.__sveltekit_1t47v30?.base??"",t=globalThis.__sveltekit_1t47v30?.assets??s??"";export{t as a,s as b};
@@ -0,0 +1 @@
1
+ import{s as e}from"./B8a0xDxR.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -0,0 +1,2 @@
1
+ import{as as J,g as q,aj as j,v as K,q as Q,at as C,a4 as F,W as d,o as _,ab as m,x as Z,y as ee,aq as V,_ as te,V as f,au as T,T as A,U,av as se,ak as R,aw as y,ax as P,ay as ie,az as L,z,X as re,aA as B,aB as ne,aC as Y,aD as ae,aE as oe,S as D,a1 as k,n as le,a0 as ue,aF as W,aG as ce,E as he,aH as fe,aI as de,aJ as _e,N as pe,aK as ge,O as ve,aL as O,al as ye,aM as Ee,aN as be,aO as x,a2 as S,aP as me,aQ as we,aR as Te,aS as Se,p as Re,aT as ke,aU as Ne,a as Ae}from"./D3vxvonu.js";import{d as De}from"./DvA-KON-.js";function Le(t){let e=0,s=j(0),r;return()=>{J()&&(q(s),K(()=>(e===0&&(r=Q(()=>t(()=>C(s)))),e+=1,()=>{F(()=>{e-=1,e===0&&(r?.(),r=void 0,C(s))})})))}}var Oe=he|fe|de;function xe(t,e,s){new Ie(t,e,s)}class Ie{parent;is_pending=!1;#t;#v=_?d:null;#i;#c;#r;#s=null;#e=null;#n=null;#a=null;#l=null;#h=0;#o=0;#f=!1;#d=new Set;#_=new Set;#u=null;#b=Le(()=>(this.#u=j(this.#h),()=>{this.#u=null}));constructor(e,s,r){this.#t=e,this.#i=s,this.#c=r,this.parent=m.b,this.is_pending=!!this.#i.pending,this.#r=Z(()=>{if(m.b=this,_){const i=this.#v;ee(),i.nodeType===V&&i.data===te?this.#w():(this.#m(),this.#o===0&&(this.is_pending=!1))}else{var n=this.#y();try{this.#s=f(()=>r(n))}catch(i){this.error(i)}this.#o>0?this.#g():this.is_pending=!1}return()=>{this.#l?.remove()}},Oe),_&&(this.#t=d)}#m(){try{this.#s=f(()=>this.#c(this.#t))}catch(e){this.error(e)}}#w(){const e=this.#i.pending;e&&(this.#e=f(()=>e(this.#t)),T.enqueue(()=>{var s=this.#y();this.#s=this.#p(()=>(T.ensure(),f(()=>this.#c(s)))),this.#o>0?this.#g():(A(this.#e,()=>{this.#e=null}),this.is_pending=!1)}))}#y(){var e=this.#t;return this.is_pending&&(this.#l=U(),this.#t.before(this.#l),e=this.#l),e}defer_effect(e){se(e,this.#d,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#p(e){var s=m,r=L,n=z;R(this.#r),y(this.#r),P(this.#r.ctx);try{return e()}catch(i){return ie(i),null}finally{R(s),y(r),P(n)}}#g(){const e=this.#i.pending;this.#s!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#l),re(this.#s,this.#a)),this.#e===null&&(this.#e=f(()=>e(this.#t)))}#E(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#E(e);return}if(this.#o+=e,this.#o===0){this.is_pending=!1;for(const s of this.#d)B(s,ne),Y(s);for(const s of this.#_)B(s,ae),Y(s);this.#d.clear(),this.#_.clear(),this.#e&&A(this.#e,()=>{this.#e=null}),this.#a&&(this.#t.before(this.#a),this.#a=null)}}update_pending_count(e){this.#E(e),this.#h+=e,this.#u&&oe(this.#u,this.#h)}get_effect_pending(){return this.#b(),q(this.#u)}error(e){var s=this.#i.onerror;let r=this.#i.failed;if(this.#f||!s&&!r)throw e;this.#s&&(D(this.#s),this.#s=null),this.#e&&(D(this.#e),this.#e=null),this.#n&&(D(this.#n),this.#n=null),_&&(k(this.#v),le(),k(ue()));var n=!1,i=!1;const a=()=>{if(n){_e();return}n=!0,i&&ce(),T.ensure(),this.#h=0,this.#n!==null&&A(this.#n,()=>{this.#n=null}),this.is_pending=this.has_pending_snippet(),this.#s=this.#p(()=>(this.#f=!1,f(()=>this.#c(this.#t)))),this.#o>0?this.#g():this.is_pending=!1};var c=L;try{y(null),i=!0,s?.(e,a),i=!1}catch(u){W(u,this.#r&&this.#r.parent)}finally{y(c)}r&&F(()=>{this.#n=this.#p(()=>{T.ensure(),this.#f=!0;try{return f(()=>{r(this.#t,()=>e,()=>a)})}catch(u){return W(u,this.#r.parent),null}finally{this.#f=!1}})})}}function He(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Me=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qe(t){return Me.includes(t)}const Fe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function je(t){return t=t.toLowerCase(),Fe[t]??t}const Ve=["touchstart","touchmove"];function Ce(t){return Ve.includes(t)}const Pe=["textarea","script","style","title"];function Ue(t){return Pe.includes(t)}const G=new Set,I=new Set;function X(t,e,s,r={}){function n(i){if(r.capture||b.call(e,i),!i.cancelBubble)return ge(()=>s?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?F(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function ze(t,e,s,r={}){var n=X(e,t,s,r);return()=>{t.removeEventListener(e,n,r)}}function Ge(t,e,s,r,n){var i={capture:r,passive:n},a=X(t,e,s,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&pe(()=>{e.removeEventListener(t,a,i)})}function Xe(t){for(var e=0;e<t.length;e++)G.add(t[e]);for(var s of I)s(t)}let H=null;function b(t){var e=this,s=e.ownerDocument,r=t.type,n=t.composedPath?.()||[],i=n[0]||t.target;H=t;var a=0,c=H===t&&t.__root;if(c){var u=n.indexOf(c);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;u<=p&&(a=u)}if(i=n[a]||t.target,i!==e){ve(t,"currentTarget",{configurable:!0,get(){return i||s}});var N=L,h=m;y(null),R(null);try{for(var o,l=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var E=i["__"+r];E!=null&&(!i.disabled||t.target===i)&&E.call(i,t)}catch(w){o?l.push(w):o=w}if(t.cancelBubble||g===e||g===null)break;i=g}if(o){for(let w of l)queueMicrotask(()=>{throw w});throw o}}finally{t.__root=e,delete t.currentTarget,y(N),R(h)}}}function $e(t,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(t.__t??=t.nodeValue)&&(t.__t=s,t.nodeValue=s+"")}function Be(t,e){return $(t,e)}function Je(t,e){O(),e.intro=e.intro??!1;const s=e.target,r=_,n=d;try{for(var i=ye(s);i&&(i.nodeType!==V||i.data!==Ee);)i=be(i);if(!i)throw x;S(!0),k(i);const a=$(t,{...e,anchor:i});return S(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(c=>c.startsWith("https://svelte.dev/e/")))throw a;return a!==x&&console.warn("Failed to hydrate: ",a),e.recover===!1&&me(),O(),we(s),S(!1),Be(t,e)}finally{S(r),k(n)}}const v=new Map;function $(t,{target:e,anchor:s,props:r={},events:n,context:i,intro:a=!0}){O();var c=new Set,u=h=>{for(var o=0;o<h.length;o++){var l=h[o];if(!c.has(l)){c.add(l);var g=Ce(l);e.addEventListener(l,b,{passive:g});var E=v.get(l);E===void 0?(document.addEventListener(l,b,{passive:g}),v.set(l,1)):v.set(l,E+1)}}};u(Te(G)),I.add(u);var p=void 0,N=Se(()=>{var h=s??e.appendChild(U());return xe(h,{pending:()=>{}},o=>{if(i){Re({});var l=z;l.c=i}if(n&&(r.$$events=n),_&&De(o,null),p=t(o,r)||{},_&&(m.nodes.end=d,d===null||d.nodeType!==V||d.data!==ke))throw Ne(),x;i&&Ae()}),()=>{for(var o of c){e.removeEventListener(o,b);var l=v.get(o);--l===0?(document.removeEventListener(o,b),v.delete(o)):v.set(o,l)}I.delete(u),h!==s&&h.parentNode?.removeChild(h)}});return M.set(p,N),p}let M=new WeakMap;function Ke(t,e){const s=M.get(t);return s?(M.delete(t),s(e)):Promise.resolve()}export{He as a,qe as b,X as c,Xe as d,Ge as e,Le as f,Je as h,Ue as i,Be as m,je as n,ze as o,$e as s,Ke as u};
@@ -0,0 +1 @@
1
+ import{f as l,a as m}from"./DvA-KON-.js";import{p as f,a as i}from"./D3vxvonu.js";import{l as n,m as p}from"./DQA8NZIH.js";import{p as c,r as d,b as u}from"./BysXJlZb.js";var v=l("<div></div>");function k(r,a){f(a,!0);let e=c(a,"ref",15,null),o=d(a,["$$slots","$$events","$$legacy","ref","class"]);var s=v();n(s,t=>({"data-slot":"skeleton",class:t,...o}),[()=>p("bg-accent animate-pulse rounded-md",a.class)]),u(s,t=>e(t),()=>e()),m(r,s),i()}export{k as S};
@@ -0,0 +1 @@
1
+ import{c as n,a as m}from"./DvA-KON-.js";import{p as i,f as c,i as d,a as f}from"./D3vxvonu.js";import{k as l}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(s,o){i(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];$(s,h({name:"x"},()=>t,{get iconNode(){return a},children:(e,_)=>{var r=n(),p=c(r);l(p,()=>o.children??d),m(e,r)},$$slots:{default:!0}})),f()}export{k as X};
@@ -0,0 +1 @@
1
+ import{x as s,o as c,y as m,E as i}from"./D3vxvonu.js";import{B as p}from"./BysXJlZb.js";function E(n,r,o){c&&m();var e=new p(n);s(()=>{var a=r()??null;e.ensure(a,a&&(t=>o(t,a)))},i)}export{E as c};
@@ -0,0 +1 @@
1
+ import{c as i,a as n}from"./DvA-KON-.js";import{p as m,f as c,i as l,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function N(a,o){m(o,!0);let r=u(o,["$$slots","$$events","$$legacy"]);const s=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];$(a,h({name:"activity"},()=>r,{get iconNode(){return s},children:(e,v)=>{var t=i(),p=c(t);f(p,()=>o.children??l),n(e,t)},$$slots:{default:!0}})),d()}export{N as A};
@@ -0,0 +1 @@
1
+ import{c as U,a as s,f as u,t as I}from"./DvA-KON-.js";import{p as It,u as $e,e as R,f as S,a as zt,b as ut,c as v,s as d,r as i,t as B,g as l,h as et,n as $,i as Yt}from"./D3vxvonu.js";import{s as z}from"./D9QNBZM2.js";import{i as p,s as at,r as Zt}from"./BysXJlZb.js";import{B as ct,c as Ae,e as rt,h as ot,q as Le,p as Ee,R as We,G as Ge,H as Ue,I as je,J as Fe,K as He,k as te}from"./DQA8NZIH.js";import{c as G}from"./DAx07bEQ.js";import{B as F}from"./BkOJ8DkV.js";import{T as Xt}from"./k_Qegko0.js";import{I as Oe}from"./Eo4gF7ih.js";import{S as Mt}from"./8RBjHMN1.js";import{S as V}from"./DAMmvwn4.js";import{R as ft}from"./Cncwi6fQ.js";import{T as _t,a as mt,b as gt}from"./DRfPm2bo.js";import{G as Ve}from"./BYzrIfX8.js";import{E as qe}from"./B6VSmczZ.js";import{I as ee}from"./B5wTVqxm.js";function Je(k){return{pending:{bg:"bg-status-pending",fg:"text-status-pending-fg",label:"Pending"},in_progress:{bg:"bg-status-in-progress",fg:"text-status-in-progress-fg",label:"In Progress"},pending_review:{bg:"bg-status-pending-review",fg:"text-status-pending-review-fg",label:"Review"},needs_work:{bg:"bg-status-needs-work",fg:"text-status-needs-work-fg",label:"Needs Work"},completed:{bg:"bg-status-completed",fg:"text-status-completed-fg",label:"Completed"},blocked:{bg:"bg-status-blocked",fg:"text-status-blocked-fg",label:"Blocked"},cancelled:{bg:"bg-status-cancelled",fg:"text-status-cancelled-fg",label:"Cancelled"}}[k]||{bg:"bg-muted",fg:"text-muted-foreground",label:k}}function Qa(k){const e=[],C=[],b=[],M=[],P=[];for(const A of k)switch(A.status){case"pending":{A.automation==="eligible"?C.push(A):e.push(A);break}case"in_progress":case"needs_work":b.push(A);break;case"pending_review":M.push(A);break;case"completed":P.push(A);break;case"blocked":b.push(A);break;case"cancelled":P.push(A);break}const T=(A,K)=>A.priority-K.priority;e.sort(T),C.sort(T),b.sort(T),M.sort(T),P.sort((A,K)=>{const yt=new Date(A.started_at||A.created_at).getTime();return new Date(K.started_at||K.created_at).getTime()-yt});const H=P.slice(0,20);return[{id:"backlog",label:"Backlog",tasks:e},{id:"ready",label:"Ready",tasks:C},{id:"in_progress",label:"In Progress",tasks:b},{id:"review",label:"Review",tasks:M},{id:"done",label:"Done",tasks:H}]}function Xa(k){const e=Date.now(),C=new Date(k).getTime(),b=e-C,M=Math.floor(b/6e4),P=Math.floor(M/60),T=Math.floor(P/24);return M<1?"just now":M<60?`${M}m`:P<24?`${P}h`:T<30?`${T}d`:`${Math.floor(T/30)}mo`}function Ya(k){const e=Math.floor(k/1e3),C=Math.floor(e/60),b=Math.floor(C/60);return b>0?`${b}h ${C%60}m`:C>0?`${C}m ${e%60}s`:`${e}s`}function Ke(k){if(k.startsWith("branch:"))return{label:k.slice(7),url:null};if(k.startsWith("pr:")){const e=k.slice(3);return e.startsWith("http")?{label:`PR ${e.split("/").pop()}`,url:e}:{label:`PR #${e}`,url:null}}if(k.startsWith("http")){const e=k.match(/\/pull\/(\d+)/);return e?{label:`PR #${e[1]}`,url:k}:{label:k.split("/").slice(-1)[0]||k,url:k}}return{label:k,url:null}}var Qe=u('<div class="flex flex-col gap-4 py-4" data-testid="task-detail-skeleton"><!> <!> <div class="flex gap-2"><!> <!></div> <div><!> <!></div> <div class="flex gap-1"><!> <!></div> <!> <div><!> <!></div></div>'),Xe=u('<div class="bg-destructive/10 text-destructive p-4 rounded-lg" role="alert"> </div>'),Ye=u('<p class="text-sm text-muted-foreground" data-testid="task-description"> </p>'),Ze=u('<div data-testid="task-spec-ref"><p class="text-xs font-medium text-muted-foreground mb-0.5">Spec</p> <!></div>'),ta=u('<div data-testid="task-tags"><p class="text-xs font-medium text-muted-foreground mb-1">Tags</p> <div class="flex flex-wrap gap-1"></div></div>'),ea=u("<li><!></li>"),aa=u('<p class="text-xs font-medium text-muted-foreground mb-1">Dependencies</p> <ul class="text-sm space-y-0.5"></ul>',1),sa=u('<p class="text-sm text-muted-foreground">No dependencies</p>'),ra=u("<li><!></li>"),oa=u('<div data-testid="task-blocked-by"><p class="text-xs font-medium text-destructive mb-1">Blocked By</p> <ul class="text-sm space-y-0.5"></ul></div>'),da=u('<a target="_blank" rel="noopener noreferrer" class="text-xs text-primary hover:underline font-mono inline-flex items-center gap-1"> <!></a>'),la=u('<span class="text-muted-foreground font-mono text-xs"> </span>'),na=u('<li class="flex items-center gap-1.5"><!> <!></li>'),ia=u('<div data-testid="task-vcs"><p class="text-xs font-medium text-muted-foreground mb-1">VCS</p> <ul class="text-sm space-y-1"></ul></div>'),va=u('<div data-testid="task-plan-ref"><p class="text-xs font-medium text-muted-foreground mb-0.5">Plan</p> <!></div>'),ua=u('<div data-testid="task-derivation"><p class="text-xs font-medium text-muted-foreground mb-0.5">Derivation</p> <p class="text-sm text-muted-foreground"> </p></div>'),ca=u('<div data-testid="task-session-ref"><p class="text-xs font-medium text-muted-foreground mb-0.5">Session</p> <!></div>'),fa=u("<p>Read-only mode — use CLI to start task</p>"),_a=u("<!> <!>",1),ma=u("<p>Read-only mode — use CLI to submit task</p>"),ga=u("<!> <!>",1),pa=u("<p>Read-only mode — use CLI to complete task</p>"),ha=u("<!> <!>",1),xa=u("<p>Read-only mode — use CLI to block task</p>"),ka=u("<!> <!>",1),ba=u('<div class="flex gap-2" data-testid="reason-input"><!> <!> <!></div>'),ya=u('<p class="text-sm text-destructive" data-testid="action-error"> </p>'),wa=u('<li class="flex items-start gap-2 text-sm"><span class="mt-0.5 text-xs"><!></span> <span> </span></li>'),Pa=u('<p class="text-xs font-medium text-muted-foreground mb-1"> </p> <ul class="space-y-1"></ul>',1),Ta=u('<p class="text-sm text-muted-foreground">No todos</p>'),Ra=u("<p>Read-only mode — use CLI to add notes</p>"),Sa=u("<!> <!>",1),Ca=u('<div class="mb-3 space-y-2" data-testid="task-add-note"><!> <!></div>'),Ma=u('<div class="mb-3 space-y-2" data-testid="task-add-note"><!> <!></div>'),Ia=u('No notes recorded. Use <code class="bg-muted px-1 rounded">kspec task note</code> to add context.',1),za=u('<div class="text-center py-4 text-muted-foreground text-xs" data-testid="notes-empty"><!></div>'),Da=u('<div class="border rounded-md p-2.5" data-testid="note-item"><div class="flex justify-between items-start mb-1"><span class="text-[10px] text-muted-foreground"> </span> <span class="text-[10px] text-muted-foreground" data-testid="note-timestamp"> </span></div> <p class="text-sm whitespace-pre-wrap"> </p></div>'),Na=u('<div class="flex flex-col gap-4"><!> <div class="flex flex-wrap gap-2 items-center"><!> <!> <!> <!></div> <!> <!> <div data-testid="task-dependencies"><!></div> <!> <!> <!> <!> <!> <div class="flex flex-wrap gap-2" data-testid="task-actions"><!> <!> <!> <!></div> <!> <!> <!> <div data-testid="task-todos"><!></div> <!> <div data-testid="task-notes"><p class="text-xs font-medium text-muted-foreground mb-2"> </p> <!> <div class="space-y-3"><!></div></div></div>');function Za(k,e){It(e,!0);let C=ut(""),b=ut(!1),M=ut(""),P=ut(""),T=ut(null);$e(()=>{e.task&&(R(C,""),R(M,""),R(P,""),R(T,null))});async function H(L){if(e.task){R(b,!0),R(C,"");try{await L(),e.onTaskUpdated?.(e.task)}catch(O){O instanceof We?R(C,O.message,!0):R(C,O instanceof Error?O.message:"Action failed",!0)}finally{R(b,!1)}}}function A(){e.task&&H(()=>Fe(e.task._ulid))}function K(){e.task&&H(()=>He(e.task._ulid))}function yt(){if(!e.task||!l(P).trim())return;const L=l(P).trim();H(async()=>{await Ge(e.task._ulid,L),R(P,""),R(T,null)})}function Dt(){if(!e.task||!l(P).trim())return;const L=l(P).trim();H(async()=>{await Ue(e.task._ulid,L),R(P,""),R(T,null)})}function ae(){if(!e.task||!l(M).trim())return;const L=l(M).trim();H(async()=>{await je(e.task._ulid,L),R(M,"")})}function se(L){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(L))}let pt=et(()=>e.task?Je(e.task.status):null),Q=et(Ae);var Nt=U(),re=S(Nt);{var oe=L=>{var O=Qe(),ht=v(O);V(ht,{class:"h-6 w-3/4 ds-shimmer"});var xt=d(ht,2);V(xt,{class:"h-3 w-24 ds-shimmer"});var dt=d(xt,2),q=v(dt);V(q,{class:"h-5 w-20 rounded-full ds-shimmer"});var J=d(q,2);V(J,{class:"h-5 w-24 rounded-full ds-shimmer"}),i(dt);var X=d(dt,2),kt=v(X);V(kt,{class:"h-3 w-10 mb-1 ds-shimmer"});var lt=d(kt,2);V(lt,{class:"h-4 w-32 ds-shimmer"}),i(X);var Y=d(X,2),nt=v(Y);V(nt,{class:"h-5 w-12 rounded-full ds-shimmer"});var wt=d(nt,2);V(wt,{class:"h-5 w-16 rounded-full ds-shimmer"}),i(Y);var st=d(Y,2);V(st,{class:"h-px w-full ds-shimmer"});var it=d(st,2),vt=v(it);V(vt,{class:"h-3 w-16 mb-2 ds-shimmer"});var bt=d(vt,2);V(bt,{class:"h-16 w-full rounded-md ds-shimmer"}),i(it),i(O),s(L,O)},de=L=>{var O=U(),ht=S(O);{var xt=q=>{var J=Xe(),X=v(J,!0);i(J),B(()=>z(X,e.error)),s(q,J)},dt=q=>{var J=U(),X=S(J);{var kt=lt=>{var Y=Na(),nt=v(Y);{var wt=t=>{var a=Ye(),o=v(a,!0);i(a),B(()=>z(o,e.task.description)),s(t,a)};p(nt,t=>{e.task.description&&t(wt)})}var st=d(nt,2),it=v(st);ct(it,{get class(){return`${l(pt).bg??""} ${l(pt).fg??""}`},"data-testid":"task-status-badge",children:(t,a)=>{$();var o=I();B(()=>z(o,l(pt).label)),s(t,o)},$$slots:{default:!0}});var vt=d(it,2);ct(vt,{variant:"outline","data-testid":"task-priority",children:(t,a)=>{$();var o=I();B(()=>z(o,`Priority ${e.task.priority??""}`)),s(t,o)},$$slots:{default:!0}});var bt=d(vt,2);ct(bt,{variant:"outline","data-testid":"task-type",children:(t,a)=>{$();var o=I();B(()=>z(o,e.task.type)),s(t,o)},$$slots:{default:!0}});var le=d(bt,2);{var ne=t=>{ct(t,{variant:"secondary","data-testid":"task-automation",children:(a,o)=>{$();var _=I();B(()=>z(_,e.task.automation)),s(a,_)},$$slots:{default:!0}})};p(le,t=>{e.task.automation&&t(ne)})}i(st);var Bt=d(st,2);{var ie=t=>{var a=Ze(),o=d(v(a),2);ft(o,{get ref(){return e.task.spec_ref},type:"spec"}),i(a),s(t,a)};p(Bt,t=>{e.task.spec_ref&&t(ie)})}var $t=d(Bt,2);{var ve=t=>{var a=ta(),o=d(v(a),2);rt(o,21,()=>e.task.tags,ot,(_,c)=>{ct(_,{variant:"secondary",children:(r,n)=>{$();var f=I();B(()=>z(f,l(c))),s(r,f)},$$slots:{default:!0}})}),i(o),i(a),s(t,a)};p($t,t=>{e.task.tags?.length>0&&t(ve)})}var Pt=d($t,2),ue=v(Pt);{var ce=t=>{var a=aa(),o=d(S(a),2);rt(o,21,()=>e.task.depends_on,ot,(_,c)=>{var r=ea(),n=v(r);ft(n,{get ref(){return l(c)},type:"task",class:"text-xs"}),i(r),s(_,r)}),i(o),s(t,a)},fe=t=>{var a=sa();s(t,a)};p(ue,t=>{e.task.depends_on?.length>0?t(ce):t(fe,!1)})}i(Pt);var At=d(Pt,2);{var _e=t=>{var a=oa(),o=d(v(a),2);rt(o,21,()=>e.task.blocked_by,ot,(_,c)=>{var r=ra(),n=v(r);ft(n,{get ref(){return l(c)},type:"task",class:"text-xs"}),i(r),s(_,r)}),i(o),i(a),s(t,a)};p(At,t=>{e.task.blocked_by?.length>0&&t(_e)})}var Lt=d(At,2);{var me=t=>{var a=ia(),o=d(v(a),2);rt(o,21,()=>e.task.vcs_refs,ot,(_,c)=>{const r=et(()=>Ke(l(c)));var n=na(),f=v(n);Ve(f,{class:"size-3 text-muted-foreground flex-shrink-0"});var g=d(f,2);{var D=N=>{var m=da(),x=v(m),j=d(x);qe(j,{class:"size-3"}),i(m),B(()=>{Le(m,"href",l(r).url),z(x,`${l(r).label??""} `)}),s(N,m)},E=N=>{var m=la(),x=v(m,!0);i(m),B(()=>z(x,l(r).label)),s(N,m)};p(g,N=>{l(r).url?N(D):N(E,!1)})}i(n),s(_,n)}),i(o),i(a),s(t,a)};p(Lt,t=>{e.task.vcs_refs?.length>0&&t(me)})}var Et=d(Lt,2);{var ge=t=>{var a=va(),o=d(v(a),2);ft(o,{get ref(){return e.task.plan_ref},type:"plan"}),i(a),s(t,a)},pe=t=>{var a=U(),o=S(a);{var _=c=>{var r=ua(),n=d(v(r),2),f=v(n,!0);i(n),i(r),B(()=>z(f,e.task.derivation)),s(c,r)};p(o,c=>{e.task.derivation&&c(_)},!0)}s(t,a)};p(Et,t=>{e.task.plan_ref?t(ge):t(pe,!1)})}var Wt=d(Et,2);{var he=t=>{var a=ca(),o=d(v(a),2);ft(o,{get ref(){return e.task.session_ref},type:"session"}),i(a),s(t,a)};p(Wt,t=>{e.task.session_ref&&t(he)})}var Gt=d(Wt,2);Mt(Gt,{});var Tt=d(Gt,2),Ut=v(Tt);{var xe=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=_a(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",disabled:!0,"data-testid":"action-start",children:(W,Ct)=>{$();var tt=I("Start");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=fa();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",onclick:A,get disabled(){return l(b)},"data-testid":"action-start",children:(n,f)=>{$();var g=I();B(()=>z(g,l(b)?"Starting...":"Start")),s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(Ut,t=>{e.task.status==="pending"&&t(xe)})}var jt=d(Ut,2);{var ke=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=ga(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",disabled:!0,"data-testid":"action-submit",children:(W,Ct)=>{$();var tt=I("Submit for Review");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=ma();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",onclick:K,get disabled(){return l(b)},"data-testid":"action-submit",children:(n,f)=>{$();var g=I();B(()=>z(g,l(b)?"Submitting...":"Submit for Review")),s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(jt,t=>{(e.task.status==="in_progress"||e.task.status==="needs_work")&&t(ke)})}var Ft=d(jt,2);{var be=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=ha(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",variant:"outline",disabled:!0,"data-testid":"action-complete-toggle",children:(W,Ct)=>{$();var tt=I("Complete");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=pa();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",variant:"outline",onclick:()=>{R(T,"complete"),R(P,"")},get disabled(){return l(b)},"data-testid":"action-complete-toggle",children:(n,f)=>{$();var g=I("Complete");s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(Ft,t=>{(e.task.status==="in_progress"||e.task.status==="pending_review")&&t(be)})}var ye=d(Ft,2);{var we=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=ka(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",variant:"destructive",disabled:!0,"data-testid":"action-block-toggle",children:(W,Ct)=>{$();var tt=I("Block");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=xa();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",variant:"destructive",onclick:()=>{R(T,"block"),R(P,"")},get disabled(){return l(b)},"data-testid":"action-block-toggle",children:(n,f)=>{$();var g=I("Block");s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(ye,t=>{e.task.status!=="blocked"&&e.task.status!=="completed"&&e.task.status!=="cancelled"&&t(we)})}i(Tt);var Ht=d(Tt,2);{var Pe=t=>{var a=ba(),o=v(a);{let r=et(()=>l(T)==="block"?"Block":"Completion");Oe(o,{get placeholder(){return`${l(r)??""} reason...`},class:"flex-1",get value(){return l(P)},set value(n){R(P,n,!0)}})}var _=d(o,2);{let r=et(()=>l(T)==="block"?Dt:yt),n=et(()=>l(b)||!l(P).trim());F(_,{size:"sm",get onclick(){return l(r)},get disabled(){return l(n)},children:(f,g)=>{$();var D=I("Confirm");s(f,D)},$$slots:{default:!0}})}var c=d(_,2);F(c,{size:"sm",variant:"ghost",onclick:()=>{R(T,null),R(P,"")},children:(r,n)=>{$();var f=I("Cancel");s(r,f)},$$slots:{default:!0}}),i(a),s(t,a)};p(Ht,t=>{!l(Q)&&l(T)&&t(Pe)})}var Ot=d(Ht,2);{var Te=t=>{var a=ya(),o=v(a,!0);i(a),B(()=>z(o,l(C))),s(t,a)};p(Ot,t=>{l(C)&&t(Te)})}var Vt=d(Ot,2);Mt(Vt,{});var Rt=d(Vt,2),Re=v(Rt);{var Se=t=>{var a=Pa(),o=S(a),_=v(o);i(o);var c=d(o,2);rt(c,21,()=>e.task.todos,ot,(r,n)=>{var f=wa(),g=v(f),D=v(g);{var E=y=>{var h=I("✅");s(y,h)},N=y=>{var h=I("⏸️");s(y,h)};p(D,y=>{l(n).done?y(E):y(N,!1)})}i(g);var m=d(g,2);let x;var j=v(m,!0);i(m),i(f),B(()=>{x=Ee(m,1,"",null,x,{"line-through":l(n).done}),z(j,l(n).text)}),s(r,f)}),i(c),B(()=>z(_,`Todos (${e.task.todos.length??""})`)),s(t,a)},Ce=t=>{var a=Ta();s(t,a)};p(Re,t=>{e.task.todos&&e.task.todos.length>0?t(Se):t(Ce,!1)})}i(Rt);var qt=d(Rt,2);Mt(qt,{});var Jt=d(qt,2),St=v(Jt),Me=v(St);i(St);var Kt=d(St,2);{var Ie=t=>{var a=Ca(),o=v(a);Xt(o,{placeholder:"Add a note...",disabled:!0,rows:2});var _=d(o,2);G(_,()=>gt,(c,r)=>{r(c,{children:(n,f)=>{var g=Sa(),D=S(g);{const N=(m,x)=>{F(m,at(()=>x?.().props,{size:"sm",disabled:!0,"data-testid":"action-add-note",children:(y,h)=>{$();var w=I("Add Note");s(y,w)},$$slots:{default:!0}}))};G(D,()=>_t,(m,x)=>{x(m,{child:N,$$slots:{child:!0}})})}var E=d(D,2);G(E,()=>mt,(N,m)=>{m(N,{children:(x,j)=>{var y=Ra();s(x,y)},$$slots:{default:!0}})}),s(n,g)},$$slots:{default:!0}})}),i(a),s(t,a)},ze=t=>{var a=Ma(),o=v(a);Xt(o,{placeholder:"Add a note...",get disabled(){return l(b)},rows:2,get value(){return l(M)},set value(c){R(M,c,!0)}});var _=d(o,2);{let c=et(()=>l(b)||!l(M).trim());F(_,{size:"sm",onclick:ae,get disabled(){return l(c)},"data-testid":"action-add-note",children:(r,n)=>{$();var f=I();B(()=>z(f,l(b)?"Adding...":"Add Note")),s(r,f)},$$slots:{default:!0}})}i(a),s(t,a)};p(Kt,t=>{l(Q)?t(Ie):t(ze,!1)})}var Qt=d(Kt,2),De=v(Qt);{var Ne=t=>{var a=za(),o=v(a);{var _=r=>{var n=Ia();$(2),s(r,n)},c=r=>{var n=I("Add a note above to document decisions, progress, or findings.");s(r,n)};p(o,r=>{l(Q)?r(_):r(c,!1)})}i(a),s(t,a)},Be=t=>{var a=U(),o=S(a);rt(o,17,()=>e.task.notes??[],ot,(_,c)=>{var r=Da(),n=v(r),f=v(n),g=v(f,!0);i(f);var D=d(f,2),E=v(D,!0);i(D),i(n);var N=d(n,2),m=v(N,!0);i(N),i(r),B(x=>{z(g,l(c).author),z(E,x),z(m,l(c).content)},[()=>se(l(c).created_at)]),s(_,r)}),s(t,a)};p(De,t=>{(e.task.notes??[]).length===0?t(Ne):t(Be,!1)})}i(Qt),i(Jt),i(Y),B(()=>z(Me,`Notes (${e.task.notes?.length??0??""})`)),s(lt,Y)};p(X,lt=>{e.task&&l(pt)&&lt(kt)},!0)}s(q,J)};p(ht,q=>{e.error?q(xt):q(dt,!1)},!0)}s(L,O)};p(re,L=>{e.loading?L(oe):L(de,!1)})}s(k,Nt),zt()}function ts(k,e){It(e,!0);let C=Zt(e,["$$slots","$$events","$$legacy"]);const b=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]];ee(k,at({name:"layout-grid"},()=>C,{get iconNode(){return b},children:(M,P)=>{var T=U(),H=S(T);te(H,()=>e.children??Yt),s(M,T)},$$slots:{default:!0}})),zt()}function es(k,e){It(e,!0);let C=Zt(e,["$$slots","$$events","$$legacy"]);const b=[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]];ee(k,at({name:"list"},()=>C,{get iconNode(){return b},children:(M,P)=>{var T=U(),H=S(T);te(H,()=>e.children??Yt),s(M,T)},$$slots:{default:!0}})),zt()}export{ts as L,Za as T,Ya as a,es as b,Qa as d,Xa as f,Je as g};