@tickernelz/paperclip-pro-ui 2026.1006.0 → 2026.1006.2

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 (167) hide show
  1. package/dist/assets/{AgentAvatar-D6FB0fuO.js → AgentAvatar-lnkDMHMh.js} +1 -1
  2. package/dist/assets/AgentIdentity-Cpb2VddX.js +1 -0
  3. package/dist/assets/Agents.production-pGUwDC7r.js +2 -0
  4. package/dist/assets/CompanyActivity.production-ZGgxxisV.js +1 -0
  5. package/dist/assets/{CompanyExport-BX6imgeR.js → CompanyExport-GeY3_TXI.js} +4 -4
  6. package/dist/assets/CompanySkills.production-BN9MKK7o.js +10 -0
  7. package/dist/assets/{Costs.production-CfN-y0WT.js → Costs.production-B4oABBSg.js} +1 -1
  8. package/dist/assets/EmptyState-CqqJOoXs.js +1 -0
  9. package/dist/assets/MarkdownBody-CEnh9lVM.js +16 -0
  10. package/dist/assets/{MarkdownEditor-BGjNjqa2.js → MarkdownEditor-seU_oAfy.js} +38 -38
  11. package/dist/assets/{OrgChart.production-BQUvMu4Q.js → OrgChart.production-JOfw43w3.js} +1 -1
  12. package/dist/assets/{PageSkeleton-CgAHzFTc.js → PageSkeleton-C9WV_Qyq.js} +1 -1
  13. package/dist/assets/RoutineDetail.production-A472lDXj.js +1 -0
  14. package/dist/assets/RoutineRunVariablesDialog-yR5DLc68.js +5 -0
  15. package/dist/assets/Routines.production-LvomJjv8.js +1 -0
  16. package/dist/assets/{SidebarContext-C7OpDbXX.js → SidebarContext-Dpto7Kf2.js} +1 -1
  17. package/dist/assets/StatusIcon-BtBa0xK_.js +1 -0
  18. package/dist/assets/{abnfDiagram-VCTEODGH-wiE_K2ku.js → abnfDiagram-VCTEODGH-CElI5h6o.js} +1 -1
  19. package/dist/assets/agent-avatar-url-270oGkoO.js +92 -0
  20. package/dist/assets/agents-BlxRXAz3.js +1 -0
  21. package/dist/assets/{architectureDiagram-5GKGNRK7-BkhBoP5_.js → architectureDiagram-5GKGNRK7-DUBpjYei.js} +1 -1
  22. package/dist/assets/{badge-dhlY-PQY.js → badge-D0Ti-OuU.js} +1 -1
  23. package/dist/assets/{blockDiagram-I7D4REHJ-fyVn7r-9.js → blockDiagram-I7D4REHJ-CD5_3VhC.js} +1 -1
  24. package/dist/assets/bot-CGOpwPIZ.js +1 -0
  25. package/dist/assets/boxes-xBZV8xLw.js +41 -0
  26. package/dist/assets/button-DLWREze0.js +1 -0
  27. package/dist/assets/{c4Diagram-7LVT6UL2-BqC3qTZS.js → c4Diagram-7LVT6UL2-CSASNZeo.js} +1 -1
  28. package/dist/assets/{card-DmOCHnV1.js → card-Qk8smcrQ.js} +1 -1
  29. package/dist/assets/channel-CtmRoUn0.js +1 -0
  30. package/dist/assets/check-5Tuqm2aI.js +1 -0
  31. package/dist/assets/checkbox-SNvdBfci.js +1 -0
  32. package/dist/assets/chevron-down-ZMnYk9j3.js +1 -0
  33. package/dist/assets/chevron-right-Dv6dHZgu.js +1 -0
  34. package/dist/assets/{chunk-4HAMMTFA-CGGd_Pxz.js → chunk-4HAMMTFA-Duh1dbZg.js} +1 -1
  35. package/dist/assets/{chunk-75Z2AOVW-BaPl5WA6.js → chunk-75Z2AOVW-CTyOxDW3.js} +1 -1
  36. package/dist/assets/{chunk-DU6HZSFF-2P5iNHqg.js → chunk-DU6HZSFF-mLZ_DAj9.js} +17 -17
  37. package/dist/assets/{chunk-F27PBJKO-Ci7GmRgM.js → chunk-F27PBJKO-BI6MjXNA.js} +1 -1
  38. package/dist/assets/{chunk-GMAD6QVW-BfvaaEBW.js → chunk-GMAD6QVW-Vk29EsOn.js} +1 -1
  39. package/dist/assets/{chunk-GVQU2GXP-Cwp_Wpj2.js → chunk-GVQU2GXP-D5bNpR4K.js} +1 -1
  40. package/dist/assets/{chunk-IMKFNOWR-BjXu-u1C.js → chunk-IMKFNOWR-DlfITCc_.js} +1 -1
  41. package/dist/assets/{chunk-L3NEJ4N5-JUd1UqX1.js → chunk-L3NEJ4N5-GADujcju.js} +1 -1
  42. package/dist/assets/{chunk-OSK3NFVY-DlrxddG-.js → chunk-OSK3NFVY-BfvIkdmA.js} +1 -1
  43. package/dist/assets/{chunk-P2QGCYS3-CjqEi3mx.js → chunk-P2QGCYS3-DD1uZyrA.js} +1 -1
  44. package/dist/assets/{chunk-POPQ4Y6H-BytmIqFc.js → chunk-POPQ4Y6H-B0MtQqlF.js} +1 -1
  45. package/dist/assets/{chunk-PWAF6VOD-CR3rNBNB.js → chunk-PWAF6VOD-DHqPPKbd.js} +1 -1
  46. package/dist/assets/{chunk-SHT3W25Y-B1Klag0Z.js → chunk-SHT3W25Y-CorllSkN.js} +1 -1
  47. package/dist/assets/{chunk-SVP7TREG-A4BO1_5v.js → chunk-SVP7TREG-BNLl-Ok9.js} +1 -1
  48. package/dist/assets/{chunk-TICWLB2K-B4lRXha0.js → chunk-TICWLB2K-BWKPkn9E.js} +1 -1
  49. package/dist/assets/classDiagram-ZZMXUADV-DDCCAOna.js +1 -0
  50. package/dist/assets/classDiagram-v2-VYDZK3BY-DDCCAOna.js +1 -0
  51. package/dist/assets/clipboard-BPoFQAy2.js +1 -0
  52. package/dist/assets/{company-members-BCWB1iQ_.js → company-members-BKdmkDTe.js} +1 -1
  53. package/dist/assets/{cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js → cynefinDiagram-5FMLGOSQ-CGZNoppH.js} +1 -1
  54. package/dist/assets/{dagre-GXQ25YYZ-C1bu-Sbk.js → dagre-GXQ25YYZ-D0kXJo1b.js} +1 -1
  55. package/dist/assets/{definition-B0A7Y2Kz.js → definition-DTQCzcR3.js} +1 -1
  56. package/dist/assets/{diagram-S7CK7UJ4-D0cqRe3j.js → diagram-S7CK7UJ4-BMOu70sn.js} +1 -1
  57. package/dist/assets/{diagram-UQ7AKVKN-DdEgR6LR.js → diagram-UQ7AKVKN-dAmEsEgr.js} +1 -1
  58. package/dist/assets/{diagram-VSXAHHWV-B_APewr5.js → diagram-VSXAHHWV-zD92DhH2.js} +1 -1
  59. package/dist/assets/{diagram-VX7I27RA-B2quR8-z.js → diagram-VX7I27RA-C6F4NzHd.js} +1 -1
  60. package/dist/assets/{diagram-Z3DM3KII-BpQRCt5N.js → diagram-Z3DM3KII-BxGljaP6.js} +1 -1
  61. package/dist/assets/{dist-CJ2IjArq.js → dist-BzPgY729.js} +1 -1
  62. package/dist/assets/{dist-C0aY0Z9q.js → dist-DvMfIbJ9.js} +1 -1
  63. package/dist/assets/{ebnfDiagram-PWID7BFC-C9x73jSZ.js → ebnfDiagram-PWID7BFC-DFhVsGcz.js} +1 -1
  64. package/dist/assets/{environments-DgYKMH7B.js → environments-BNSxsEsE.js} +1 -1
  65. package/dist/assets/{erDiagram-RLTQ6QDP-Dkp7z94L.js → erDiagram-RLTQ6QDP-CExzemcW.js} +1 -1
  66. package/dist/assets/external-link-rfTzFbSd.js +1 -0
  67. package/dist/assets/file-text-dks7zWRZ.js +1 -0
  68. package/dist/assets/flowDiagram-HODETNUW-DEjrdPyS.js +1 -0
  69. package/dist/assets/{ganttDiagram-EL5Y4UJY-CJs7mNJX.js → ganttDiagram-EL5Y4UJY-DStsnXzo.js} +1 -1
  70. package/dist/assets/{gitGraphDiagram-WWUBYQGX-ByeD7NPE.js → gitGraphDiagram-WWUBYQGX-BejeRC3-.js} +1 -1
  71. package/dist/assets/health-DsHGAxc8.js +1 -0
  72. package/dist/assets/heartbeats-DWUL5tSL.js +1 -0
  73. package/dist/assets/index-Cx882YTU.css +1 -0
  74. package/dist/assets/index-DTMtHDxt.js +779 -0
  75. package/dist/assets/{infoDiagram-27XIBGKW-B6sR9qVK.js → infoDiagram-27XIBGKW-Cch-IRh-.js} +1 -1
  76. package/dist/assets/{input-BYys7uph.js → input-BWYuMr4z.js} +1 -1
  77. package/dist/assets/{ishikawaDiagram-5VMMS53U-HFQ3gYGN.js → ishikawaDiagram-5VMMS53U-DDvnGaeJ.js} +1 -1
  78. package/dist/assets/{journeyDiagram-3NMN7TZE-BtoNErTz.js → journeyDiagram-3NMN7TZE-rmjbLNr7.js} +1 -1
  79. package/dist/assets/{kanban-definition-UXKFOSKX-Y55yoRj4.js → kanban-definition-UXKFOSKX-hvO2tDhG.js} +1 -1
  80. package/dist/assets/label-TkPoSJhK.js +5 -0
  81. package/dist/assets/{line-CJEZO7lL.js → line-Dk_ouzM8.js} +1 -1
  82. package/dist/assets/loader-circle-DiqjntTX.js +1 -0
  83. package/dist/assets/mention-chips-B_zVTnHY.js +17 -0
  84. package/dist/assets/{mermaid.core-G_BSi0G0.js → mermaid.core-Be3XJK9z.js} +4 -4
  85. package/dist/assets/{mindmap-definition-YA3MSWOX-BnlANYwV.js → mindmap-definition-YA3MSWOX-Dislw6JU.js} +1 -1
  86. package/dist/assets/octagon-alert-HfSAYnSC.js +1 -0
  87. package/dist/assets/{pegDiagram-XKGWAZYB-CHhCzuLt.js → pegDiagram-XKGWAZYB-CizC38c5.js} +1 -1
  88. package/dist/assets/{pieDiagram-E7YTZNPT-CEGI1j0Q.js → pieDiagram-E7YTZNPT-DvHDuZK1.js} +1 -1
  89. package/dist/assets/{quadrantDiagram-AXDQQJYC-BfVC-A1t.js → quadrantDiagram-AXDQQJYC-DTAvsUNT.js} +1 -1
  90. package/dist/assets/{railroadDiagram-O6MQD6OU-Bwh6snZb.js → railroadDiagram-O6MQD6OU-DGlhxzAn.js} +1 -1
  91. package/dist/assets/{requirementDiagram-BXWQKSXE-NEvTOdsw.js → requirementDiagram-BXWQKSXE-BzY8WPIy.js} +1 -1
  92. package/dist/assets/rotate-ccw-C9ZF1aqD.js +1 -0
  93. package/dist/assets/router-BC2Duaf5.js +15 -0
  94. package/dist/assets/{sankeyDiagram-P5KCCOFB-AvKb1lr-.js → sankeyDiagram-P5KCCOFB-Be3A08ra.js} +1 -1
  95. package/dist/assets/save-yPNdO-t7.js +1 -0
  96. package/dist/assets/select-DsMS_Sad.js +1 -0
  97. package/dist/assets/{sequenceDiagram-WJ2MYXX4-BP0QZnHN.js → sequenceDiagram-WJ2MYXX4-BJuFaGQ8.js} +1 -1
  98. package/dist/assets/sheet-CFbmpBhA.js +1 -0
  99. package/dist/assets/skeleton-DtakB_VA.js +1 -0
  100. package/dist/assets/{stateDiagram-D77RDMKH-Ce0Wj7yz.js → stateDiagram-D77RDMKH-BWwUdBob.js} +1 -1
  101. package/dist/assets/stateDiagram-v2-MP3YSRHH-P6gPsRNv.js +1 -0
  102. package/dist/assets/{swimlanes-42K2YHIH-CX7zPtNU.js → swimlanes-42K2YHIH-CMos3UkM.js} +1 -1
  103. package/dist/assets/swimlanesDiagram-VR7AAH4N-BjRksHrL.js +8 -0
  104. package/dist/assets/{tabs-BTWtgE_e.js → tabs-DCzsHrwQ.js} +1 -1
  105. package/dist/assets/{timeline-definition-24CTP7MA-Bw21rjHm.js → timeline-definition-24CTP7MA-5RQLEOvu.js} +1 -1
  106. package/dist/assets/triangle-alert-CrLKyTUa.js +1 -0
  107. package/dist/assets/use-adapter-capabilities-CVwppNII.js +1 -0
  108. package/dist/assets/useHiddenSettings-COOnS4sa.js +1 -0
  109. package/dist/assets/{vennDiagram-4TSXK5OY-BuncstTm.js → vennDiagram-4TSXK5OY-BZm-uDwq.js} +1 -1
  110. package/dist/assets/{wardleyDiagram-VM6X3IG4-DOHY7xcd.js → wardleyDiagram-VM6X3IG4-Y317P_uV.js} +1 -1
  111. package/dist/assets/{xychartDiagram-S5SC5T6Z-qOWxoNte.js → xychartDiagram-S5SC5T6Z-DIOiLKNy.js} +1 -1
  112. package/dist/brands/apps/browser-use.svg +6 -0
  113. package/dist/brands/apps/cognee.png +0 -0
  114. package/dist/brands/apps/connection-pool.svg +1 -0
  115. package/dist/brands/apps/honcho.svg +33 -0
  116. package/dist/brands/apps/manifest.json +45 -0
  117. package/dist/brands/apps/neon.png +0 -0
  118. package/dist/brands/apps/supermemory.png +0 -0
  119. package/dist/brands/apps/zep.png +0 -0
  120. package/dist/index.html +108 -46
  121. package/dist/sw.js +17 -3
  122. package/package.json +1 -1
  123. package/dist/assets/AgentIdentity-DjRFrNXO.js +0 -1
  124. package/dist/assets/Agents.production-BRdUzpF6.js +0 -2
  125. package/dist/assets/CompanyActivity.production-dD0_52Wu.js +0 -1
  126. package/dist/assets/CompanySkills.production-DGbZb0AI.js +0 -10
  127. package/dist/assets/EmptyState-C4lXde64.js +0 -1
  128. package/dist/assets/MarkdownBody--RIJLCMA.js +0 -16
  129. package/dist/assets/RoutineDetail.production-Bsf338vO.js +0 -1
  130. package/dist/assets/RoutineRunVariablesDialog-DP1tcp7X.js +0 -5
  131. package/dist/assets/Routines.production-BGR6_EI9.js +0 -1
  132. package/dist/assets/StatusIcon-VpulllGv.js +0 -1
  133. package/dist/assets/agents-BP_X6XtR.js +0 -1
  134. package/dist/assets/bot-LA1HiarN.js +0 -1
  135. package/dist/assets/button-C4DIaoFo.js +0 -1
  136. package/dist/assets/channel-0B5iAV5A.js +0 -1
  137. package/dist/assets/check-CYgpX7OA.js +0 -1
  138. package/dist/assets/checkbox-CKFq766c.js +0 -1
  139. package/dist/assets/chevron-down-BU9R1R4F.js +0 -1
  140. package/dist/assets/chevron-right-BmxFehfD.js +0 -1
  141. package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +0 -1
  142. package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +0 -1
  143. package/dist/assets/clipboard-DMxSLEQ6.js +0 -1
  144. package/dist/assets/createLucideIcon-B54j0Sae.js +0 -92
  145. package/dist/assets/external-link-Bi7tqIF1.js +0 -1
  146. package/dist/assets/file-text-MN4vnW0c.js +0 -1
  147. package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +0 -1
  148. package/dist/assets/health-Cu3NB6y9.js +0 -1
  149. package/dist/assets/heartbeats-Bjbu1IYj.js +0 -1
  150. package/dist/assets/index-DRWrweZf.js +0 -737
  151. package/dist/assets/index-L45mDhY7.css +0 -1
  152. package/dist/assets/label-_X3u-iq9.js +0 -5
  153. package/dist/assets/loader-circle-D6KkdGol.js +0 -1
  154. package/dist/assets/mention-chips-B6d93utO.js +0 -17
  155. package/dist/assets/octagon-alert-BgFrORnN.js +0 -1
  156. package/dist/assets/rotate-ccw-DP6ACo04.js +0 -1
  157. package/dist/assets/router-D63KhMWd.js +0 -15
  158. package/dist/assets/save-C2ttL8uR.js +0 -1
  159. package/dist/assets/select-DrSnWvLC.js +0 -1
  160. package/dist/assets/sheet-CdR6tW8E.js +0 -1
  161. package/dist/assets/skeleton-C0oo8l5C.js +0 -1
  162. package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +0 -1
  163. package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +0 -8
  164. package/dist/assets/triangle-alert-BhrZ1ChK.js +0 -1
  165. package/dist/assets/use-adapter-capabilities-DHgLdZ1V.js +0 -1
  166. package/dist/assets/useHiddenSettings-C5RuvqCg.js +0 -1
  167. package/dist/assets/zap-md9c-4bv.js +0 -41
@@ -1,2 +1,2 @@
1
- import{n}from"./mermaid-parser.core-CHJSk6z0.js";import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-Bssc388C.js";import{c as i}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{f as m}from"./mermaid.core-G_BSi0G0.js";var p={parse:a(async r=>{const e=await n("info",r);o.debug(e)},"parse")},d={version:"11.17.2"},x={parser:p,db:{getVersion:a(()=>d.version,"getVersion")},renderer:{draw:a((r,e,s)=>{o.debug(`rendering info diagram
1
+ import{n}from"./mermaid-parser.core-CHJSk6z0.js";import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-Bssc388C.js";import{c as i}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{f as m}from"./mermaid.core-Be3XJK9z.js";var p={parse:a(async r=>{const e=await n("info",r);o.debug(e)},"parse")},d={version:"11.17.2"},x={parser:p,db:{getVersion:a(()=>d.version,"getVersion")},renderer:{draw:a((r,e,s)=>{o.debug(`rendering info diagram
2
2
  `+r);const t=m(e);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw")}};export{x as diagram};
@@ -1 +1 @@
1
- var o=Object.defineProperty;var i=(r,e)=>o(r,"name",{value:e,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as a,S as s,Zr as d}from"./createLucideIcon-B54j0Sae.js";var m=t(a(),1),l=t(d(),1);function b({className:r,type:e,...n}){return(0,l.jsx)("input",{type:e,"data-slot":"input",className:s("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-(--tp-color-box-shadow) outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3)","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),...n})}i(b,"Input");export{b as t};
1
+ var o=Object.defineProperty;var i=(e,r)=>o(e,"name",{value:r,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{Di as a,S as s,ki as d}from"./agent-avatar-url-270oGkoO.js";var m=t(d(),1),l=t(a(),1);function b({className:e,type:r,...n}){return(0,l.jsx)("input",{type:r,"data-slot":"input",className:s("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-(--tp-color-box-shadow) outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3)","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}i(b,"Input");export{b as t};
@@ -1,4 +1,4 @@
1
- var dt=Object.defineProperty;var $=(t,o)=>dt(t,"name",{value:o,configurable:!0});import{n as l}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import"./src-Bssc388C.js";import{H as yt,K as it,U as ft,a as pt,c as gt,s as kt,v as mt,w as wt,x as ot,y as _t}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{p as bt}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{t as xt}from"./rough.esm-DnC5Tr1g.js";import{f as vt}from"./mermaid.core-G_BSi0G0.js";var J=(function(){var t=l(function(e,s,u,i){for(u=u||{},i=e.length;i--;u[e[i]]=s);return u},"o"),o=[1,4],n=[1,14],a=[1,12],r=[1,13],h=[6,7,8],k=[1,20],c=[1,18],p=[1,19],y=[6,7,11],_=[1,6,13,14],m=[1,23],A=[1,24],v=[1,6,7,11,13,14],B={trace:l($(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l($(function(s,u,i,d,w,f,E){var b=f.length-1;switch(w){case 6:case 7:return d;case 15:d.addNode(f[b-1].length,f[b].trim());break;case 16:d.addNode(0,f[b].trim())}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:n,7:[1,10],9:9,12:11,13:a,14:r},t(h,[2,3]),{1:[2,2]},t(h,[2,4]),t(h,[2,5]),{1:[2,6],6:n,12:15,13:a,14:r},{6:n,9:16,12:11,13:a,14:r},{6:k,7:c,10:17,11:p},t(y,[2,18],{14:[1,21]}),t(y,[2,16]),t(y,[2,17]),{6:k,7:c,10:22,11:p},{1:[2,7],6:n,12:15,13:a,14:r},t(_,[2,14],{7:m,11:A}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(y,[2,15]),t(_,[2,13],{7:m,11:A}),t(v,[2,11]),t(v,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l($(function(s,u){if(u.recoverable)this.trace(s);else{var i=new Error(s);throw i.hash=u,i}},"parseError"),"parseError"),parse:l($(function(s){var u=this,i=[0],d=[],w=[null],f=[],E=this.table,b="",x=0,N=0,S=0,M=2,P=1,V=f.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(L.yy[R]=this.yy[R]);g.setInput(s,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var W=g.yylloc;f.push(W);var K=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(O){i.length=i.length-2*O,w.length=w.length-O,f.length=f.length-O}$(ut,"popStack"),l(ut,"popStack");function tt(){var O=d.pop()||g.lex()||P;return typeof O!="number"&&(O instanceof Array&&(d=O,O=d.pop()),O=u.symbols_[O]||O),O}$(tt,"lex"),l(tt,"lex");for(var T,X,F,D,Y,j={},U,C,et,G;;){if(F=i[i.length-1],this.defaultActions[F]?D=this.defaultActions[F]:((T===null||typeof T>"u")&&(T=tt()),D=E[F]&&E[F][T]),typeof D>"u"||!D.length||!D[0]){var q="";G=[];for(U in E[F])this.terminals_[U]&&U>M&&G.push("'"+this.terminals_[U]+"'");g.showPosition?q="Parse error on line "+(x+1)+`:
1
+ var dt=Object.defineProperty;var $=(t,o)=>dt(t,"name",{value:o,configurable:!0});import{n as l}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import"./src-Bssc388C.js";import{H as yt,K as it,U as ft,a as pt,c as gt,s as kt,v as mt,w as wt,x as ot,y as _t}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{p as bt}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{t as xt}from"./rough.esm-DnC5Tr1g.js";import{f as vt}from"./mermaid.core-Be3XJK9z.js";var J=(function(){var t=l(function(e,s,u,i){for(u=u||{},i=e.length;i--;u[e[i]]=s);return u},"o"),o=[1,4],n=[1,14],a=[1,12],r=[1,13],h=[6,7,8],k=[1,20],c=[1,18],p=[1,19],y=[6,7,11],_=[1,6,13,14],m=[1,23],A=[1,24],v=[1,6,7,11,13,14],B={trace:l($(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l($(function(s,u,i,d,w,f,E){var b=f.length-1;switch(w){case 6:case 7:return d;case 15:d.addNode(f[b-1].length,f[b].trim());break;case 16:d.addNode(0,f[b].trim())}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:n,7:[1,10],9:9,12:11,13:a,14:r},t(h,[2,3]),{1:[2,2]},t(h,[2,4]),t(h,[2,5]),{1:[2,6],6:n,12:15,13:a,14:r},{6:n,9:16,12:11,13:a,14:r},{6:k,7:c,10:17,11:p},t(y,[2,18],{14:[1,21]}),t(y,[2,16]),t(y,[2,17]),{6:k,7:c,10:22,11:p},{1:[2,7],6:n,12:15,13:a,14:r},t(_,[2,14],{7:m,11:A}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(y,[2,15]),t(_,[2,13],{7:m,11:A}),t(v,[2,11]),t(v,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l($(function(s,u){if(u.recoverable)this.trace(s);else{var i=new Error(s);throw i.hash=u,i}},"parseError"),"parseError"),parse:l($(function(s){var u=this,i=[0],d=[],w=[null],f=[],E=this.table,b="",x=0,N=0,S=0,M=2,P=1,V=f.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(L.yy[R]=this.yy[R]);g.setInput(s,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var W=g.yylloc;f.push(W);var K=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(O){i.length=i.length-2*O,w.length=w.length-O,f.length=f.length-O}$(ut,"popStack"),l(ut,"popStack");function tt(){var O=d.pop()||g.lex()||P;return typeof O!="number"&&(O instanceof Array&&(d=O,O=d.pop()),O=u.symbols_[O]||O),O}$(tt,"lex"),l(tt,"lex");for(var T,X,F,D,Y,j={},U,C,et,G;;){if(F=i[i.length-1],this.defaultActions[F]?D=this.defaultActions[F]:((T===null||typeof T>"u")&&(T=tt()),D=E[F]&&E[F][T]),typeof D>"u"||!D.length||!D[0]){var q="";G=[];for(U in E[F])this.terminals_[U]&&U>M&&G.push("'"+this.terminals_[U]+"'");g.showPosition?q="Parse error on line "+(x+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":q="Parse error on line "+(x+1)+": Unexpected "+(T==P?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(q,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:W,expected:G})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+T);switch(D[0]){case 1:i.push(T),w.push(g.yytext),f.push(g.yylloc),i.push(D[1]),T=null,X?(T=X,X=null):(N=g.yyleng,b=g.yytext,x=g.yylineno,W=g.yylloc,S>0&&S--);break;case 2:if(C=this.productions_[D[1]][1],j.$=w[w.length-C],j._$={first_line:f[f.length-(C||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(C||1)].first_column,last_column:f[f.length-1].last_column},K&&(j._$.range=[f[f.length-(C||1)].range[0],f[f.length-1].range[1]]),Y=this.performAction.apply(j,[b,N,x,L.yy,D[1],w,f].concat(V)),typeof Y<"u")return Y;C&&(i=i.slice(0,-1*C*2),w=w.slice(0,-1*C),f=f.slice(0,-1*C)),i.push(this.productions_[D[1]][0]),w.push(j.$),f.push(j._$),et=E[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse"),"parse")};B.lexer=(function(){return{EOF:1,parseError:l($(function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);else throw new Error(s)},"parseError"),"parseError"),setInput:l(function(e,s){return this.yy=s||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:l(function(e){var s=e.length,u=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===i.length?this.yylloc.first_column:0)+i[i.length-u.length].length-u[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(e){this.unput(this.match.slice(e))},"less"),pastInput:l(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var e=this.pastInput(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- var xt=Object.defineProperty;var x=(e,t)=>xt(e,"name",{value:t,configurable:!0});import{n as s}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{p as H}from"./src-Bssc388C.js";import{H as kt,K as _t,U as bt,a as vt,c as wt,v as Tt,w as St,x as L,y as $t}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{t as nt}from"./arc-BQ55EiX2.js";import{t as Mt}from"./chunk-5VM5RSS4-2H3r6wq0.js";import{a as Et,n as Ct,o as Pt,s as ct}from"./chunk-F27PBJKO-Ci7GmRgM.js";var Z=(function(){var e=s(function(n,i,a,o){for(a=a||{},o=n.length;o--;a[n[o]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,18],l=[1,9],d=[1,10],r=[1,11],c=[1,12],h=[1,13],y=[1,14],g={trace:s(x(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(x(function(i,a,o,f,p,u,b){var k=u.length-1;switch(p){case 1:return u[k-1];case 2:this.$=[];break;case 3:u[k-1].push(u[k]),this.$=u[k-1];break;case 4:case 5:this.$=u[k];break;case 6:case 7:this.$=[];break;case 8:f.setDiagramTitle(u[k].substr(6)),this.$=u[k].substr(6);break;case 9:this.$=u[k].trim(),f.setAccTitle(this.$);break;case 10:case 11:this.$=u[k].trim(),f.setAccDescription(this.$);break;case 12:f.addSection(u[k].substr(8)),this.$=u[k].substr(8);break;case 13:f.addTask(u[k-1],u[k]),this.$="task"}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:l,12:d,14:r,16:c,17:h,18:y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:l,12:d,14:r,16:c,17:h,18:y},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:s(x(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),"parseError"),parse:s(x(function(i){var a=this,o=[0],f=[],p=[null],u=[],b=this.table,k="",P=0,F=0,tt=0,ft=2,et=1,pt=u.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var q=_.yylloc;u.push(q);var gt=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(T){o.length=o.length-2*T,p.length=p.length-T,u.length=u.length-T}x(mt,"popStack"),s(mt,"popStack");function it(){var T=f.pop()||_.lex()||et;return typeof T!="number"&&(T instanceof Array&&(f=T,T=f.pop()),T=a.symbols_[T]||T),T}x(it,"lex"),s(it,"lex");for(var v,X,A,w,G,R={},z,M,rt,W;;){if(A=o[o.length-1],this.defaultActions[A]?w=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=it()),w=b[A]&&b[A][v]),typeof w>"u"||!w.length||!w[0]){var U="";W=[];for(z in b[A])this.terminals_[z]&&z>ft&&W.push("'"+this.terminals_[z]+"'");_.showPosition?U="Parse error on line "+(P+1)+`:
1
+ var xt=Object.defineProperty;var x=(e,t)=>xt(e,"name",{value:t,configurable:!0});import{n as s}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{p as H}from"./src-Bssc388C.js";import{H as kt,K as _t,U as bt,a as vt,c as wt,v as Tt,w as St,x as L,y as $t}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{t as nt}from"./arc-BQ55EiX2.js";import{t as Mt}from"./chunk-5VM5RSS4-2H3r6wq0.js";import{a as Et,n as Ct,o as Pt,s as ct}from"./chunk-F27PBJKO-BI6MjXNA.js";var Z=(function(){var e=s(function(n,i,a,o){for(a=a||{},o=n.length;o--;a[n[o]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,18],l=[1,9],d=[1,10],r=[1,11],c=[1,12],h=[1,13],y=[1,14],g={trace:s(x(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(x(function(i,a,o,f,p,u,b){var k=u.length-1;switch(p){case 1:return u[k-1];case 2:this.$=[];break;case 3:u[k-1].push(u[k]),this.$=u[k-1];break;case 4:case 5:this.$=u[k];break;case 6:case 7:this.$=[];break;case 8:f.setDiagramTitle(u[k].substr(6)),this.$=u[k].substr(6);break;case 9:this.$=u[k].trim(),f.setAccTitle(this.$);break;case 10:case 11:this.$=u[k].trim(),f.setAccDescription(this.$);break;case 12:f.addSection(u[k].substr(8)),this.$=u[k].substr(8);break;case 13:f.addTask(u[k-1],u[k]),this.$="task"}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:l,12:d,14:r,16:c,17:h,18:y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:l,12:d,14:r,16:c,17:h,18:y},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:s(x(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),"parseError"),parse:s(x(function(i){var a=this,o=[0],f=[],p=[null],u=[],b=this.table,k="",P=0,F=0,tt=0,ft=2,et=1,pt=u.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var q=_.yylloc;u.push(q);var gt=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(T){o.length=o.length-2*T,p.length=p.length-T,u.length=u.length-T}x(mt,"popStack"),s(mt,"popStack");function it(){var T=f.pop()||_.lex()||et;return typeof T!="number"&&(T instanceof Array&&(f=T,T=f.pop()),T=a.symbols_[T]||T),T}x(it,"lex"),s(it,"lex");for(var v,X,A,w,G,R={},z,M,rt,W;;){if(A=o[o.length-1],this.defaultActions[A]?w=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=it()),w=b[A]&&b[A][v]),typeof w>"u"||!w.length||!w[0]){var U="";W=[];for(z in b[A])this.terminals_[z]&&z>ft&&W.push("'"+this.terminals_[z]+"'");_.showPosition?U="Parse error on line "+(P+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+W.join(", ")+", got '"+(this.terminals_[v]||v)+"'":U="Parse error on line "+(P+1)+": Unexpected "+(v==et?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(U,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:q,expected:W})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(w[0]){case 1:o.push(v),p.push(_.yytext),u.push(_.yylloc),o.push(w[1]),v=null,X?(v=X,X=null):(F=_.yyleng,k=_.yytext,P=_.yylineno,q=_.yylloc,tt>0&&tt--);break;case 2:if(M=this.productions_[w[1]][1],R.$=p[p.length-M],R._$={first_line:u[u.length-(M||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(M||1)].first_column,last_column:u[u.length-1].last_column},gt&&(R._$.range=[u[u.length-(M||1)].range[0],u[u.length-1].range[1]]),G=this.performAction.apply(R,[k,F,P,I.yy,w[1],p,u].concat(pt)),typeof G<"u")return G;M&&(o=o.slice(0,-1*M*2),p=p.slice(0,-1*M),u=u.slice(0,-1*M)),o.push(this.productions_[w[1]][0]),p.push(R.$),u.push(R._$),rt=b[o[o.length-2]][o[o.length-1]],o.push(rt);break;case 3:return!0}}return!0},"parse"),"parse")};g.lexer=(function(){return{EOF:1,parseError:s(x(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),"parseError"),setInput:s(function(n,i){return this.yy=i||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:s(function(n){var i=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(n){this.unput(this.match.slice(n))},"less"),pastInput:s(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var n=this.pastInput(),i=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- var me=Object.defineProperty;var E=(e,u)=>me(e,"name",{value:u,configurable:!0});import{n as r}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as ee}from"./src-Bssc388C.js";import{J as be,et as he,f as Y,rt as ke,tt as ue,x as W,z as M}from"./chunk-DU6HZSFF-2P5iNHqg.js";import"./chunk-75Z2AOVW-BaPl5WA6.js";import"./chunk-PWAF6VOD-CR3rNBNB.js";import"./chunk-GMAD6QVW-BfvaaEBW.js";import{t as Ee}from"./chunk-5VM5RSS4-2H3r6wq0.js";import"./chunk-P2QGCYS3-CjqEi3mx.js";import"./chunk-4HAMMTFA-CGGd_Pxz.js";import{i as _e,r as Se}from"./chunk-GVQU2GXP-Cwp_Wpj2.js";import{n as Ne}from"./chunk-L3NEJ4N5-JUd1UqX1.js";import{f as xe,n as De,t as Le}from"./mermaid.core-G_BSi0G0.js";var te=(function(){var e=r(function(i,t,o,c){for(o=o||{},c=i.length;c--;o[i[c]]=t);return o},"o"),u=[1,4],p=[1,13],s=[1,12],d=[1,15],b=[1,16],S=[1,20],h=[1,19],v=[6,7,8],I=[1,26],g=[1,24],B=[1,25],N=[6,7,11],R=[1,31],O=[6,7,11,24],f=[1,6,13,16,17,20,23],w=[1,35],A=[1,36],T=[1,6,7,11,13,16,17,20,23],j=[1,38],U={trace:r(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:r(E(function(t,o,c,l,y,n,H){var a=n.length-1;switch(y){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[a-1].id),l.addNode(n[a-2].length,n[a-1].id,n[a-1].descr,n[a-1].type,n[a]);break;case 16:l.getLogger().info("Node: ",n[a].id),l.addNode(n[a-1].length,n[a].id,n[a].descr,n[a].type);break;case 17:l.getLogger().trace("Icon: ",n[a]),l.decorateNode({icon:n[a]});break;case 18:case 23:l.decorateNode({class:n[a]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[a-1].id),l.addNode(0,n[a-1].id,n[a-1].descr,n[a-1].type,n[a]);break;case 21:l.getLogger().trace("Node: ",n[a].id),l.addNode(0,n[a].id,n[a].descr,n[a].type);break;case 22:l.decorateNode({icon:n[a]});break;case 27:l.getLogger().trace("node found ..",n[a-2]),this.$={id:n[a-1],descr:n[a-1],type:l.getType(n[a-2],n[a])};break;case 28:this.$={id:n[a],descr:n[a],type:0};break;case 29:l.getLogger().trace("node found ..",n[a-3]),this.$={id:n[a-3],descr:n[a-1],type:l.getType(n[a-2],n[a])};break;case 30:this.$=n[a-1]+n[a];break;case 31:this.$=n[a]}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},e(v,[2,3]),{1:[2,2]},e(v,[2,4]),e(v,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},{6:p,9:22,12:11,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},{6:I,7:g,10:23,11:B},e(N,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:h}),e(N,[2,19]),e(N,[2,21],{15:30,24:R}),e(N,[2,22]),e(N,[2,23]),e(O,[2,25]),e(O,[2,26]),e(O,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:B},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},e(f,[2,14],{7:w,11:A}),e(T,[2,8]),e(T,[2,9]),e(T,[2,10]),e(N,[2,16],{15:37,24:R}),e(N,[2,17]),e(N,[2,18]),e(N,[2,20],{24:j}),e(O,[2,31]),{21:[1,39]},{22:[1,40]},e(f,[2,13],{7:w,11:A}),e(T,[2,11]),e(T,[2,12]),e(N,[2,15],{24:j}),e(O,[2,30]),{22:[1,41]},e(O,[2,27]),e(O,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:r(E(function(t,o){if(o.recoverable)this.trace(t);else{var c=new Error(t);throw c.hash=o,c}},"parseError"),"parseError"),parse:r(E(function(t){var o=this,c=[0],l=[],y=[null],n=[],H=this.table,a="",z=0,re=0,ae=0,de=2,oe=1,pe=n.slice.call(arguments,1),k=Object.create(this.lexer),P={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(P.yy[J]=this.yy[J]);k.setInput(t,P.yy),P.yy.lexer=k,P.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var q=k.yylloc;n.push(q);var fe=k.options&&k.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ye(D){c.length=c.length-2*D,y.length=y.length-D,n.length=n.length-D}E(ye,"popStack"),r(ye,"popStack");function ce(){var D=l.pop()||k.lex()||oe;return typeof D!="number"&&(D instanceof Array&&(l=D,D=l.pop()),D=o.symbols_[D]||D),D}E(ce,"lex"),r(ce,"lex");for(var _,Q,V,x,Z,G={},X,C,le,K;;){if(V=c[c.length-1],this.defaultActions[V]?x=this.defaultActions[V]:((_===null||typeof _>"u")&&(_=ce()),x=H[V]&&H[V][_]),typeof x>"u"||!x.length||!x[0]){var $="";K=[];for(X in H[V])this.terminals_[X]&&X>de&&K.push("'"+this.terminals_[X]+"'");k.showPosition?$="Parse error on line "+(z+1)+`:
1
+ var me=Object.defineProperty;var E=(e,u)=>me(e,"name",{value:u,configurable:!0});import{n as r}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as ee}from"./src-Bssc388C.js";import{J as be,et as he,f as Y,rt as ke,tt as ue,x as W,z as M}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import"./chunk-75Z2AOVW-CTyOxDW3.js";import"./chunk-PWAF6VOD-DHqPPKbd.js";import"./chunk-GMAD6QVW-Vk29EsOn.js";import{t as Ee}from"./chunk-5VM5RSS4-2H3r6wq0.js";import"./chunk-P2QGCYS3-DD1uZyrA.js";import"./chunk-4HAMMTFA-Duh1dbZg.js";import{i as _e,r as Se}from"./chunk-GVQU2GXP-D5bNpR4K.js";import{n as Ne}from"./chunk-L3NEJ4N5-GADujcju.js";import{f as xe,n as De,t as Le}from"./mermaid.core-Be3XJK9z.js";var te=(function(){var e=r(function(i,t,o,c){for(o=o||{},c=i.length;c--;o[i[c]]=t);return o},"o"),u=[1,4],p=[1,13],s=[1,12],d=[1,15],b=[1,16],S=[1,20],h=[1,19],v=[6,7,8],I=[1,26],g=[1,24],B=[1,25],N=[6,7,11],R=[1,31],O=[6,7,11,24],f=[1,6,13,16,17,20,23],w=[1,35],A=[1,36],T=[1,6,7,11,13,16,17,20,23],j=[1,38],U={trace:r(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:r(E(function(t,o,c,l,y,n,H){var a=n.length-1;switch(y){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[a-1].id),l.addNode(n[a-2].length,n[a-1].id,n[a-1].descr,n[a-1].type,n[a]);break;case 16:l.getLogger().info("Node: ",n[a].id),l.addNode(n[a-1].length,n[a].id,n[a].descr,n[a].type);break;case 17:l.getLogger().trace("Icon: ",n[a]),l.decorateNode({icon:n[a]});break;case 18:case 23:l.decorateNode({class:n[a]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[a-1].id),l.addNode(0,n[a-1].id,n[a-1].descr,n[a-1].type,n[a]);break;case 21:l.getLogger().trace("Node: ",n[a].id),l.addNode(0,n[a].id,n[a].descr,n[a].type);break;case 22:l.decorateNode({icon:n[a]});break;case 27:l.getLogger().trace("node found ..",n[a-2]),this.$={id:n[a-1],descr:n[a-1],type:l.getType(n[a-2],n[a])};break;case 28:this.$={id:n[a],descr:n[a],type:0};break;case 29:l.getLogger().trace("node found ..",n[a-3]),this.$={id:n[a-3],descr:n[a-1],type:l.getType(n[a-2],n[a])};break;case 30:this.$=n[a-1]+n[a];break;case 31:this.$=n[a]}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},e(v,[2,3]),{1:[2,2]},e(v,[2,4]),e(v,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},{6:p,9:22,12:11,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},{6:I,7:g,10:23,11:B},e(N,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:h}),e(N,[2,19]),e(N,[2,21],{15:30,24:R}),e(N,[2,22]),e(N,[2,23]),e(O,[2,25]),e(O,[2,26]),e(O,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:B},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},e(f,[2,14],{7:w,11:A}),e(T,[2,8]),e(T,[2,9]),e(T,[2,10]),e(N,[2,16],{15:37,24:R}),e(N,[2,17]),e(N,[2,18]),e(N,[2,20],{24:j}),e(O,[2,31]),{21:[1,39]},{22:[1,40]},e(f,[2,13],{7:w,11:A}),e(T,[2,11]),e(T,[2,12]),e(N,[2,15],{24:j}),e(O,[2,30]),{22:[1,41]},e(O,[2,27]),e(O,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:r(E(function(t,o){if(o.recoverable)this.trace(t);else{var c=new Error(t);throw c.hash=o,c}},"parseError"),"parseError"),parse:r(E(function(t){var o=this,c=[0],l=[],y=[null],n=[],H=this.table,a="",z=0,re=0,ae=0,de=2,oe=1,pe=n.slice.call(arguments,1),k=Object.create(this.lexer),P={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(P.yy[J]=this.yy[J]);k.setInput(t,P.yy),P.yy.lexer=k,P.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var q=k.yylloc;n.push(q);var fe=k.options&&k.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ye(D){c.length=c.length-2*D,y.length=y.length-D,n.length=n.length-D}E(ye,"popStack"),r(ye,"popStack");function ce(){var D=l.pop()||k.lex()||oe;return typeof D!="number"&&(D instanceof Array&&(l=D,D=l.pop()),D=o.symbols_[D]||D),D}E(ce,"lex"),r(ce,"lex");for(var _,Q,V,x,Z,G={},X,C,le,K;;){if(V=c[c.length-1],this.defaultActions[V]?x=this.defaultActions[V]:((_===null||typeof _>"u")&&(_=ce()),x=H[V]&&H[V][_]),typeof x>"u"||!x.length||!x[0]){var $="";K=[];for(X in H[V])this.terminals_[X]&&X>de&&K.push("'"+this.terminals_[X]+"'");k.showPosition?$="Parse error on line "+(z+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+K.join(", ")+", got '"+(this.terminals_[_]||_)+"'":$="Parse error on line "+(z+1)+": Unexpected "+(_==oe?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError($,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:q,expected:K})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+_);switch(x[0]){case 1:c.push(_),y.push(k.yytext),n.push(k.yylloc),c.push(x[1]),_=null,Q?(_=Q,Q=null):(re=k.yyleng,a=k.yytext,z=k.yylineno,q=k.yylloc,ae>0&&ae--);break;case 2:if(C=this.productions_[x[1]][1],G.$=y[y.length-C],G._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},fe&&(G._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),Z=this.performAction.apply(G,[a,re,z,P.yy,x[1],y,n].concat(pe)),typeof Z<"u")return Z;C&&(c=c.slice(0,-1*C*2),y=y.slice(0,-1*C),n=n.slice(0,-1*C)),c.push(this.productions_[x[1]][0]),y.push(G.$),n.push(G._$),le=H[c[c.length-2]][c[c.length-1]],c.push(le);break;case 3:return!0}}return!0},"parse"),"parse")};U.lexer=(function(){return{EOF:1,parseError:r(E(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),"parseError"),setInput:r(function(i,t){return this.yy=t||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:r(function(i){var t=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var i=this.pastInput(),t=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -0,0 +1,5 @@
1
+ var At=Object.defineProperty;var a=(e,t)=>At(e,"name",{value:t,configurable:!0});import{i as Ie}from"./rolldown-runtime-ZpX3ckPj.js";import{Di as jt,Oi as Mt,S as A,ki as Ft,l as Lt,t as Ye}from"./agent-avatar-url-270oGkoO.js";import{Z as Xe}from"./mention-chips-B_zVTnHY.js";import{_ as $t,g as Wt}from"./boxes-xBZV8xLw.js";import{C as zt}from"./MarkdownEditor-seU_oAfy.js";import{a as Ut,c as Vt,o as Kt,r as Bt,u as Ht}from"./checkbox-SNvdBfci.js";import{d as qt,g as Gt,i as Yt,p as Xt}from"./agents-BlxRXAz3.js";import{t as Qt}from"./check-5Tuqm2aI.js";import{t as Zt}from"./button-DLWREze0.js";var s=Ie(Ft(),1),f=Ie(jt(),1),Jt=Object.defineProperty,en=a((e,t)=>Jt(e,"name",{value:t,configurable:!0}),"__name"),tn=s.forwardRef(en(a(function(t,n){return(0,f.jsx)(Lt.label,{...t,ref:n,onMouseDown:a(r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())},"onMouseDown")})},"Label2"),"Label")),nn=tn,Qe={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};Qe.node;var rn=Ye(Qe),Ze={name:"play",size:24,node:[["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",key:"10ikf1"}]]};Ze.node;var Xr=Ye(Ze),je=1,on=.9,sn=.8,an=.17,ye=.1,Ee=.999,ln=.9999,un=.99,cn=/[\\\/_+.#"@\[\(\{&]/,dn=/[\\\/_+.#"@\[\(\{&]/g,fn=/[\s-]/,Je=/[\s-]/g;function Re(e,t,n,r,o,i,u){if(i===t.length)return o===e.length?je:un;var l=`${o},${i}`;if(u[l]!==void 0)return u[l];for(var m=r.charAt(i),c=n.indexOf(m,o),v=0,b,E,w,R;c>=0;)b=Re(e,t,n,r,c+1,i+1,u),b>v&&(c===o?b*=je:cn.test(e.charAt(c-1))?(b*=sn,w=e.slice(o,c-1).match(dn),w&&o>0&&(b*=Math.pow(Ee,w.length))):fn.test(e.charAt(c-1))?(b*=on,R=e.slice(o,c-1).match(Je),R&&o>0&&(b*=Math.pow(Ee,R.length))):(b*=an,o>0&&(b*=Math.pow(Ee,c-o))),e.charAt(c)!==t.charAt(i)&&(b*=ln)),(b<ye&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(E=Re(e,t,n,r,c+1,i+2,u),E*ye>b&&(b=E*ye)),b>v&&(v=b),c=n.indexOf(m,c+1);return u[l]=v,v}a(Re,"G");function Me(e){return e.toLowerCase().replace(Je," ")}a(Me,"D");function mn(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Re(e,t,Me(e),Me(t),0,0,{})}a(mn,"W");var Qr=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:n=!0}={}){return a(function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)},"handleEvent")}a(X,"composeEventHandlers");function Fe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}a(Fe,"setRef");function J(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Fe(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Fe(e[o],null)}}}}a(J,"composeRefs");function ne(...e){return s.useCallback(J(...e),e)}a(ne,"useComposedRefs");function pn(e,t){const n=s.createContext(t),r=a(i=>{const{children:u,...l}=i,m=s.useMemo(()=>l,Object.values(l));return(0,f.jsx)(n.Provider,{value:m,children:u})},"Provider");r.displayName=e+"Provider";function o(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return a(o,"useContext2"),[r,o]}a(pn,"createContext2");function vn(e,t=[]){let n=[];function r(i,u){const l=s.createContext(u),m=n.length;n=[...n,u];const c=a(b=>{const{scope:E,children:w,...R}=b,C=E?.[e]?.[m]||l,N=s.useMemo(()=>R,Object.values(R));return(0,f.jsx)(C.Provider,{value:N,children:w})},"Provider");c.displayName=i+"Provider";function v(b,E){const w=E?.[e]?.[m]||l,R=s.useContext(w);if(R)return R;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${i}\``)}return a(v,"useContext2"),[c,v]}a(r,"createContext3");const o=a(()=>{const i=n.map(u=>s.createContext(u));return a(function(l){const m=l?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:m}}),[l,m])},"useScope")},"createScope");return o.scopeName=e,[r,gn(o,...t)]}a(vn,"createContextScope");function gn(...e){const t=e[0];if(e.length===1)return t;const n=a(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return a(function(i){const u=r.reduce((l,{useScope:m,scopeName:c})=>{const v=m(i)[`__scope${c}`];return{...l,...v}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}a(gn,"composeContextScopes");var de=globalThis?.document?s.useLayoutEffect:()=>{},hn=s[" useId ".trim().toString()]||(()=>{}),bn=0;function B(e){const[t,n]=s.useState(hn());return de(()=>{e||n(r=>r??String(bn++))},[e]),e||(t?`radix-${t}`:"")}a(B,"useId");var xn=s[" useInsertionEffect ".trim().toString()]||de;function yn({prop:e,defaultProp:t,onChange:n=a(()=>{},"onChange"),caller:r}){const[o,i,u]=En({defaultProp:t,onChange:n}),l=e!==void 0,m=l?e:o;{const c=s.useRef(e!==void 0);s.useEffect(()=>{const v=c.current;c.current=l},[l,r])}return[m,s.useCallback(c=>{if(l){const v=wn(c)?c(e):c;v!==e&&u.current?.(v)}else i(c)},[l,e,i,u])]}a(yn,"useControllableState");function En({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return xn(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}a(En,"useUncontrolledState");function wn(e){return typeof e=="function"}a(wn,"isFunction");var et=Ie(Mt(),1);function tt(e){const t=Cn(e),n=s.forwardRef((r,o)=>{const{children:i,...u}=r,l=s.Children.toArray(i),m=l.find(Nn);if(m){const c=m.props.children,v=l.map(b=>b===m?s.Children.count(c)>1?s.Children.only(null):s.isValidElement(c)?c.props.children:null:b);return(0,f.jsx)(t,{...u,ref:o,children:s.isValidElement(c)?s.cloneElement(c,void 0,v):null})}return(0,f.jsx)(t,{...u,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}a(tt,"createSlot");function Cn(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const u=Rn(o),l=Dn(i,o.props);return o.type!==s.Fragment&&(l.ref=r?J(r,u):u),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}a(Cn,"createSlotClone");var Sn=Symbol("radix.slottable");function Nn(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sn}a(Nn,"isSlottable");function Dn(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...u)=>{const l=i(...u);return o(...u),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}a(Dn,"mergeProps");function Rn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}a(Rn,"getElementRef$1");var I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=tt(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:u,...l}=o,m=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(m,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _n(e,t){e&&et.flushSync(()=>e.dispatchEvent(t))}a(_n,"dispatchDiscreteCustomEvent");function fe(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}a(fe,"useCallbackRef");function Pn(e,t=globalThis?.document){const n=fe(e);s.useEffect(()=>{const r=a(o=>{o.key==="Escape"&&n(o)},"handleKeyDown");return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}a(Pn,"useEscapeKeydown");var In="DismissableLayer",_e="dismissableLayer.update",On="dismissableLayer.pointerDownOutside",Tn="dismissableLayer.focusOutside",Le,nt=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rt=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:u,onDismiss:l,...m}=e,c=s.useContext(nt),[v,b]=s.useState(null),E=v?.ownerDocument??globalThis?.document,[,w]=s.useState({}),R=ne(t,y=>b(y)),C=Array.from(c.layers),[N]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),O=C.indexOf(N),T=v?C.indexOf(v):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,_=T>=O,L=jn(y=>{const V=y.target,F=[...c.branches].some(z=>z.contains(V));!_||F||(o?.(y),u?.(y),y.defaultPrevented||l?.())},E),D=Mn(y=>{const V=y.target;[...c.branches].some(F=>F.contains(V))||(i?.(y),u?.(y),y.defaultPrevented||l?.())},E);return Pn(y=>{T===c.layers.size-1&&(r?.(y),!y.defaultPrevented&&l&&(y.preventDefault(),l()))},E),s.useEffect(()=>{if(v)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Le=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(v)),c.layers.add(v),$e(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=Le)}},[v,E,n,c]),s.useEffect(()=>()=>{v&&(c.layers.delete(v),c.layersWithOutsidePointerEventsDisabled.delete(v),$e())},[v,c]),s.useEffect(()=>{const y=a(()=>w({}),"handleUpdate");return document.addEventListener(_e,y),()=>document.removeEventListener(_e,y)},[]),(0,f.jsx)(I.div,{...m,ref:R,style:{pointerEvents:k?_?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,D.onFocusCapture),onBlurCapture:X(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,L.onPointerDownCapture)})});rt.displayName=In;var kn="DismissableLayerBranch",An=s.forwardRef((e,t)=>{const n=s.useContext(nt),r=s.useRef(null),o=ne(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),(0,f.jsx)(I.div,{...e,ref:o})});An.displayName=kn;function jn(e,t=globalThis?.document){const n=fe(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=a(l=>{if(l.target&&!r.current){let m=a(function(){ot(On,n,c,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);r.current=!1},"handlePointerDown"),u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:a(()=>r.current=!0,"onPointerDownCapture")}}a(jn,"usePointerDownOutside");function Mn(e,t=globalThis?.document){const n=fe(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a(i=>{i.target&&!r.current&&ot(Tn,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:a(()=>r.current=!0,"onFocusCapture"),onBlurCapture:a(()=>r.current=!1,"onBlurCapture")}}a(Mn,"useFocusOutside");function $e(){const e=new CustomEvent(_e);document.dispatchEvent(e)}a($e,"dispatchUpdate");function ot(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_n(o,i):o.dispatchEvent(i)}a(ot,"handleAndDispatchCustomEvent");var we="focusScope.autoFocusOnMount",Ce="focusScope.autoFocusOnUnmount",We={bubbles:!1,cancelable:!0},Fn="FocusScope",st=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...u}=e,[l,m]=s.useState(null),c=fe(o),v=fe(i),b=s.useRef(null),E=ne(t,C=>m(C)),w=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let C=a(function(k){if(w.paused||!l)return;const _=k.target;l.contains(_)?b.current=_:Y(b.current,{select:!0})},"handleFocusIn2"),N=a(function(k){if(w.paused||!l)return;const _=k.relatedTarget;_!==null&&(l.contains(_)||Y(b.current,{select:!0}))},"handleFocusOut2"),O=a(function(k){if(document.activeElement===document.body)for(const _ of k)_.removedNodes.length>0&&Y(l)},"handleMutations2");document.addEventListener("focusin",C),document.addEventListener("focusout",N);const T=new MutationObserver(O);return l&&T.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",N),T.disconnect()}}},[r,l,w.paused]),s.useEffect(()=>{if(l){Ue.add(w);const C=document.activeElement;if(!l.contains(C)){const N=new CustomEvent(we,We);l.addEventListener(we,c),l.dispatchEvent(N),N.defaultPrevented||(Ln(Vn(at(l)),{select:!0}),document.activeElement===C&&Y(l))}return()=>{l.removeEventListener(we,c),setTimeout(()=>{const N=new CustomEvent(Ce,We);l.addEventListener(Ce,v),l.dispatchEvent(N),N.defaultPrevented||Y(C??document.body,{select:!0}),l.removeEventListener(Ce,v),Ue.remove(w)},0)}}},[l,c,v,w]);const R=s.useCallback(C=>{if(!n&&!r||w.paused)return;const N=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,O=document.activeElement;if(N&&O){const T=C.currentTarget,[k,_]=$n(T);k&&_?!C.shiftKey&&O===_?(C.preventDefault(),n&&Y(k,{select:!0})):C.shiftKey&&O===k&&(C.preventDefault(),n&&Y(_,{select:!0})):O===T&&C.preventDefault()}},[n,r,w.paused]);return(0,f.jsx)(I.div,{tabIndex:-1,...u,ref:E,onKeyDown:R})});st.displayName=Fn;function Ln(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Y(r,{select:t}),document.activeElement!==n)return}a(Ln,"focusFirst");function $n(e){const t=at(e);return[ze(t,e),ze(t.reverse(),e)]}a($n,"getTabbableEdges");function at(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}a(at,"getTabbableCandidates");function ze(e,t){for(const n of e)if(!Wn(n,{upTo:t}))return n}a(ze,"findVisible");function Wn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}a(Wn,"isHidden");function zn(e){return e instanceof HTMLInputElement&&"select"in e}a(zn,"isSelectableInput");function Y(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zn(e)&&t&&e.select()}}a(Y,"focus");var Ue=Un();function Un(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ve(e,t),e.unshift(t)},remove(t){e=Ve(e,t),e[0]?.resume()}}}a(Un,"createFocusScopesStack");function Ve(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}a(Ve,"arrayRemove");function Vn(e){return e.filter(t=>t.tagName!=="A")}a(Vn,"removeLinks");var Kn="Portal",it=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);de(()=>i(!0),[]);const u=n||o&&globalThis?.document?.body;return u?et.createPortal((0,f.jsx)(I.div,{...r,ref:t}),u):null});it.displayName=Kn;function Bn(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}a(Bn,"useStateMachine");var he=a(e=>{const{present:t,children:n}=e,r=Hn(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=ne(r.ref,qn(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null},"Presence");he.displayName="Presence";function Hn(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),[u,l]=Bn(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const m=pe(r.current);i.current=u==="mounted"?m:"none"},[u]),de(()=>{const m=r.current,c=o.current;if(c!==e){const v=i.current,b=pe(m);e?l("MOUNT"):b==="none"||m?.display==="none"?l("UNMOUNT"):l(c&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),de(()=>{if(t){let m;const c=t.ownerDocument.defaultView??window,v=a(E=>{const w=pe(r.current).includes(CSS.escape(E.animationName));if(E.target===t&&w&&(l("ANIMATION_END"),!o.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",m=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},"handleAnimationEnd"),b=a(E=>{E.target===t&&(i.current=pe(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{c.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}a(Hn,"usePresence");function pe(e){return e?.animationName||"none"}a(pe,"getAnimationName");function qn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}a(qn,"getElementRef");var Se=0;function Gn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ke()),document.body.insertAdjacentElement("beforeend",e[1]??Ke()),Se++,()=>{Se===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Se--}},[])}a(Gn,"useFocusGuards");function Ke(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}a(Ke,"createFocusGuard");var be="Dialog",[lt,Zr]=vn(be),[Yn,W]=lt(be),ut=a(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:u=!0}=e,l=s.useRef(null),m=s.useRef(null),[c,v]=yn({prop:r,defaultProp:o??!1,onChange:i,caller:be});return(0,f.jsx)(Yn,{scope:t,triggerRef:l,contentRef:m,contentId:B(),titleId:B(),descriptionId:B(),open:c,onOpenChange:v,onOpenToggle:s.useCallback(()=>v(b=>!b),[v]),modal:u,children:n})},"Dialog");ut.displayName=be;var ct="DialogTrigger",Xn=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(ct,n),i=ne(t,o.triggerRef);return(0,f.jsx)(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ke(o.open),...r,ref:i,onClick:X(e.onClick,o.onOpenToggle)})});Xn.displayName=ct;var Oe="DialogPortal",[Qn,dt]=lt(Oe,{forceMount:void 0}),ft=a(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=W(Oe,t);return(0,f.jsx)(Qn,{scope:t,forceMount:n,children:s.Children.map(r,u=>(0,f.jsx)(he,{present:n||i.open,children:(0,f.jsx)(it,{asChild:!0,container:o,children:u})}))})},"DialogPortal");ft.displayName=Oe;var ge="DialogOverlay",mt=s.forwardRef((e,t)=>{const n=dt(ge,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=W(ge,e.__scopeDialog);return i.modal?(0,f.jsx)(he,{present:r||i.open,children:(0,f.jsx)(Jn,{...o,ref:t})}):null});mt.displayName=ge;var Zn=tt("DialogOverlay.RemoveScroll"),Jn=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(ge,n);return(0,f.jsx)($t,{as:Zn,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(I.div,{"data-state":ke(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ee="DialogContent",pt=s.forwardRef((e,t)=>{const n=dt(ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=W(ee,e.__scopeDialog);return(0,f.jsx)(he,{present:r||i.open,children:i.modal?(0,f.jsx)(er,{...o,ref:t}):(0,f.jsx)(tr,{...o,ref:t})})});pt.displayName=ee;var er=s.forwardRef((e,t)=>{const n=W(ee,e.__scopeDialog),r=s.useRef(null),o=ne(t,n.contentRef,r);return s.useEffect(()=>{const i=r.current;if(i)return Wt(i)},[]),(0,f.jsx)(vt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,i=>{const u=i.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0;(u.button===2||l)&&i.preventDefault()}),onFocusOutside:X(e.onFocusOutside,i=>i.preventDefault())})}),tr=s.forwardRef((e,t)=>{const n=W(ee,e.__scopeDialog),r=s.useRef(!1),o=s.useRef(!1);return(0,f.jsx)(vt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a(i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},"onCloseAutoFocus"),onInteractOutside:a(i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;n.triggerRef.current?.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()},"onInteractOutside")})}),vt=s.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...u}=e,l=W(ee,n),m=s.useRef(null),c=ne(t,m);return Gn(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(st,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,f.jsx)(rt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ke(l.open),...u,ref:c,onDismiss:a(()=>l.onOpenChange(!1),"onDismiss")})}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(sr,{titleId:l.titleId}),(0,f.jsx)(ir,{contentRef:m,descriptionId:l.descriptionId})]})]})}),Te="DialogTitle",nr=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(Te,n);return(0,f.jsx)(I.h2,{id:o.titleId,...r,ref:t})});nr.displayName=Te;var gt="DialogDescription",rr=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(gt,n);return(0,f.jsx)(I.p,{id:o.descriptionId,...r,ref:t})});rr.displayName=gt;var ht="DialogClose",or=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(ht,n);return(0,f.jsx)(I.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});or.displayName=ht;function ke(e){return e?"open":"closed"}a(ke,"getState");var bt="DialogTitleWarning",[Jr,xt]=pn(bt,{contentName:ee,titleName:Te,docsSlug:"dialog"}),sr=a(({titleId:e})=>{const t=xt(bt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
+
3
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
+
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&document.getElementById(e)},[n,e]),null},"TitleWarning"),ar="DialogDescriptionWarning",ir=a(({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xt(ar).contentName}}.`;return s.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&document.getElementById(t)},[n,e,t]),null},"DescriptionWarning"),lr=ut,ur=ft,cr=mt,dr=pt,ce='[cmdk-group=""]',Ne='[cmdk-group-items=""]',fr='[cmdk-group-heading=""]',yt='[cmdk-item=""]',Be=`${yt}:not([aria-disabled="true"])`,Pe="cmdk-item-select",se="data-value",mr=a((e,t,n)=>mn(e,t,n),"Re"),Et=s.createContext(void 0),me=a(()=>s.useContext(Et),"K"),wt=s.createContext(void 0),Ae=a(()=>s.useContext(wt),"ee"),Ct=s.createContext(void 0),St=s.forwardRef((e,t)=>{let n=ae(()=>{var d,p;return{search:"",value:(p=(d=e.value)!=null?d:e.defaultValue)!=null?p:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ae(()=>new Set),o=ae(()=>new Map),i=ae(()=>new Map),u=ae(()=>new Set),l=Nt(e),{label:m,children:c,value:v,onValueChange:b,filter:E,shouldFilter:w,loop:R,disablePointerSelection:C=!1,vimBindings:N=!0,...O}=e,T=B(),k=B(),_=B(),L=s.useRef(null),D=Sr();te(()=>{if(v!==void 0){let d=v.trim();n.current.value=d,y.emit()}},[v]),te(()=>{D(6,oe)},[]);let y=s.useMemo(()=>({subscribe:a(d=>(u.current.add(d),()=>u.current.delete(d)),"subscribe"),snapshot:a(()=>n.current,"snapshot"),setState:a((d,p,h)=>{var g,x,S,P;if(!Object.is(n.current[d],p)){if(n.current[d]=p,d==="search")j(),z(),D(1,Z);else if(d==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let M=document.getElementById(_);M?M.focus():(g=document.getElementById(T))==null||g.focus()}if(D(7,()=>{var M;n.current.selectedItemId=(M=H())==null?void 0:M.id,y.emit()}),h||D(5,oe),((x=l.current)==null?void 0:x.value)!==void 0){let M=p??"";(P=(S=l.current).onValueChange)==null||P.call(S,M);return}}y.emit()}},"setState"),emit:a(()=>{u.current.forEach(d=>d())},"emit")}),[]),V=s.useMemo(()=>({value:a((d,p,h)=>{var g;p!==((g=i.current.get(d))==null?void 0:g.value)&&(i.current.set(d,{value:p,keywords:h}),n.current.filtered.items.set(d,F(p,h)),D(2,()=>{z(),y.emit()}))},"value"),item:a((d,p)=>(r.current.add(d),p&&(o.current.has(p)?o.current.get(p).add(d):o.current.set(p,new Set([d]))),D(3,()=>{j(),z(),n.current.value||Z(),y.emit()}),()=>{i.current.delete(d),r.current.delete(d),n.current.filtered.items.delete(d);let h=H();D(4,()=>{j(),h?.getAttribute("id")===d&&Z(),y.emit()})}),"item"),group:a(d=>(o.current.has(d)||o.current.set(d,new Set),()=>{i.current.delete(d),o.current.delete(d)}),"group"),filter:a(()=>l.current.shouldFilter,"filter"),label:m||e["aria-label"],getDisablePointerSelection:a(()=>l.current.disablePointerSelection,"getDisablePointerSelection"),listId:T,inputId:_,labelId:k,listInnerRef:L}),[]);function F(d,p){var h,g;let x=(g=(h=l.current)==null?void 0:h.filter)!=null?g:mr;return d?x(d,n.current.search,p):0}a(F,"te");function z(){if(!n.current.search||l.current.shouldFilter===!1)return;let d=n.current.filtered.items,p=[];n.current.filtered.groups.forEach(g=>{let x=o.current.get(g),S=0;x.forEach(P=>{let M=d.get(P);S=Math.max(M,S)}),p.push([g,S])});let h=L.current;K().sort((g,x)=>{var S,P;let M=g.getAttribute("id"),kt=x.getAttribute("id");return((S=d.get(kt))!=null?S:0)-((P=d.get(M))!=null?P:0)}).forEach(g=>{let x=g.closest(Ne);x?x.appendChild(g.parentElement===x?g:g.closest(`${Ne} > *`)):h.appendChild(g.parentElement===h?g:g.closest(`${Ne} > *`))}),p.sort((g,x)=>x[1]-g[1]).forEach(g=>{var x;let S=(x=L.current)==null?void 0:x.querySelector(`${ce}[${se}="${encodeURIComponent(g[0])}"]`);S?.parentElement.appendChild(S)})}a(z,"z");function Z(){let d=K().find(h=>h.getAttribute("aria-disabled")!=="true"),p=d?.getAttribute(se);y.setState("value",p||void 0)}a(Z,"W");function j(){var d,p,h,g;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let x=0;for(let S of r.current){let P=F((p=(d=i.current.get(S))==null?void 0:d.value)!=null?p:"",(g=(h=i.current.get(S))==null?void 0:h.keywords)!=null?g:[]);n.current.filtered.items.set(S,P),P>0&&x++}for(let[S,P]of o.current)for(let M of P)if(n.current.filtered.items.get(M)>0){n.current.filtered.groups.add(S);break}n.current.filtered.count=x}a(j,"J");function oe(){var d,p,h;let g=H();g&&(((d=g.parentElement)==null?void 0:d.firstChild)===g&&((h=(p=g.closest(ce))==null?void 0:p.querySelector(fr))==null||h.scrollIntoView({block:"nearest"})),g.scrollIntoView({block:"nearest"}))}a(oe,"ne");function H(){var d;return(d=L.current)==null?void 0:d.querySelector(`${yt}[aria-selected="true"]`)}a(H,"M");function K(){var d;return Array.from(((d=L.current)==null?void 0:d.querySelectorAll(Be))||[])}a(K,"V");function $(d){let p=K()[d];p&&y.setState("value",p.getAttribute(se))}a($,"X");function q(d){var p;let h=H(),g=K(),x=g.findIndex(P=>P===h),S=g[x+d];(p=l.current)!=null&&p.loop&&(S=x+d<0?g[g.length-1]:x+d===g.length?g[0]:g[x+d]),S&&y.setState("value",S.getAttribute(se))}a(q,"Q");function ie(d){let p=H(),h=p?.closest(ce),g;for(;h&&!g;)h=d>0?wr(h,ce):Cr(h,ce),g=h?.querySelector(Be);g?y.setState("value",g.getAttribute(se)):q(d)}a(ie,"re");let le=a(()=>$(K().length-1),"oe"),ue=a(d=>{d.preventDefault(),d.metaKey?le():d.altKey?ie(1):q(1)},"ie"),G=a(d=>{d.preventDefault(),d.metaKey?$(0):d.altKey?ie(-1):q(-1)},"se");return s.createElement(I.div,{ref:t,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:a(d=>{var p;(p=O.onKeyDown)==null||p.call(O,d);let h=d.nativeEvent.isComposing||d.keyCode===229;if(!(d.defaultPrevented||h))switch(d.key){case"n":case"j":N&&d.ctrlKey&&ue(d);break;case"ArrowDown":ue(d);break;case"p":case"k":N&&d.ctrlKey&&G(d);break;case"ArrowUp":G(d);break;case"Home":d.preventDefault(),$(0);break;case"End":d.preventDefault(),le();break;case"Enter":{d.preventDefault();let g=H();if(g){let x=new Event(Pe);g.dispatchEvent(x)}}}},"onKeyDown")},s.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:Dr},m),xe(e,d=>s.createElement(wt.Provider,{value:y},s.createElement(Et.Provider,{value:V},d))))}),pr=s.forwardRef((e,t)=>{var n,r;let o=B(),i=s.useRef(null),u=s.useContext(Ct),l=me(),m=Nt(e),c=(r=(n=m.current)==null?void 0:n.forceMount)!=null?r:u?.forceMount;te(()=>{if(!c)return l.item(o,u?.id)},[c]);let v=Dt(o,i,[e.value,e.children,i],e.keywords),b=Ae(),E=Q(D=>D.value&&D.value===v.current),w=Q(D=>c||l.filter()===!1?!0:D.search?D.filtered.items.get(o)>0:!0);s.useEffect(()=>{let D=i.current;if(!(!D||e.disabled))return D.addEventListener(Pe,R),()=>D.removeEventListener(Pe,R)},[w,e.onSelect,e.disabled]);function R(){var D,y;C(),(y=(D=m.current).onSelect)==null||y.call(D,v.current)}a(R,"C");function C(){b.setState("value",v.current,!0)}if(a(C,"S"),!w)return null;let{disabled:N,value:O,onSelect:T,forceMount:k,keywords:_,...L}=e;return s.createElement(I.div,{ref:J(i,t),...L,id:o,"cmdk-item":"",role:"option","aria-disabled":!!N,"aria-selected":!!E,"data-disabled":!!N,"data-selected":!!E,onPointerMove:N||l.getDisablePointerSelection()?void 0:C,onClick:N?void 0:R},e.children)}),vr=s.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,u=B(),l=s.useRef(null),m=s.useRef(null),c=B(),v=me(),b=Q(w=>o||v.filter()===!1?!0:w.search?w.filtered.groups.has(u):!0);te(()=>v.group(u),[]),Dt(u,l,[e.value,e.heading,m]);let E=s.useMemo(()=>({id:u,forceMount:o}),[o]);return s.createElement(I.div,{ref:J(l,t),...i,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},n&&s.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),xe(e,w=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},s.createElement(Ct.Provider,{value:E},w))))}),gr=s.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=s.useRef(null),i=Q(u=>!u.search);return!n&&!i?null:s.createElement(I.div,{ref:J(o,t),...r,"cmdk-separator":"",role:"separator"})}),hr=s.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=Ae(),u=Q(c=>c.search),l=Q(c=>c.selectedItemId),m=me();return s.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),s.createElement(I.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":l,id:m.inputId,type:"text",value:o?e.value:u,onChange:a(c=>{o||i.setState("search",c.target.value),n?.(c.target.value)},"onChange")})}),br=s.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=s.useRef(null),u=s.useRef(null),l=Q(c=>c.selectedItemId),m=me();return s.useEffect(()=>{if(u.current&&i.current){let c=u.current,v=i.current,b,E=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let w=c.offsetHeight;v.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return E.observe(c),()=>{cancelAnimationFrame(b),E.unobserve(c)}}},[]),s.createElement(I.div,{ref:J(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:m.listId},xe(e,c=>s.createElement("div",{ref:J(u,m.listInnerRef),"cmdk-list-sizer":""},c)))}),xr=s.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:u,...l}=e;return s.createElement(lr,{open:n,onOpenChange:r},s.createElement(ur,{container:u},s.createElement(cr,{"cmdk-overlay":"",className:o}),s.createElement(dr,{"aria-label":e.label,"cmdk-dialog":"",className:i},s.createElement(St,{ref:t,...l}))))}),yr=s.forwardRef((e,t)=>Q(n=>n.filtered.count===0)?s.createElement(I.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Er=s.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return s.createElement(I.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},xe(e,u=>s.createElement("div",{"aria-hidden":!0},u)))}),re=Object.assign(St,{List:br,Item:pr,Input:hr,Group:vr,Separator:gr,Dialog:xr,Empty:yr,Loading:Er});function wr(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}a(wr,"we");function Cr(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}a(Cr,"De");function Nt(e){let t=s.useRef(e);return te(()=>{t.current=e}),t}a(Nt,"pe");var te=typeof window>"u"?s.useEffect:s.useLayoutEffect;function ae(e){let t=s.useRef();return t.current===void 0&&(t.current=e()),t}a(ae,"L");function Q(e){let t=Ae(),n=a(()=>e(t.snapshot()),"n");return s.useSyncExternalStore(t.subscribe,n,n)}a(Q,"P");function Dt(e,t,n,r=[]){let o=s.useRef(),i=me();return te(()=>{var u;let l=(()=>{var c;for(let v of n){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(c=v.current.textContent)==null?void 0:c.trim():o.current}})(),m=r.map(c=>c.trim());i.value(e,l,m),(u=t.current)==null||u.setAttribute(se,l),o.current=l}),o}a(Dt,"ve");var Sr=a(()=>{let[e,t]=s.useState(),n=ae(()=>new Map);return te(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}},"ke");function Nr(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}a(Nr,"Me");function xe({asChild:e,children:t},n){return e&&s.isValidElement(t)?s.cloneElement(Nr(t),{ref:t.ref},n(t.props.children)):n(t)}a(xe,"B");var Dr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Rt({className:e,...t}){return(0,f.jsx)(re,{"data-slot":"command",className:A("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}a(Rt,"Command");function eo({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...i}){return(0,f.jsxs)(Bt,{...i,children:[(0,f.jsxs)(Vt,{className:"sr-only",children:[(0,f.jsx)(Ht,{children:e}),(0,f.jsx)(Kt,{children:t})]}),(0,f.jsxs)(Ut,{className:A("overflow-hidden p-0",r),showCloseButton:!1,children:[(0,f.jsx)(Rt,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n}),o&&(0,f.jsxs)(zt,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-0 right-2 flex h-12 items-center rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,f.jsx)(Xe,{}),(0,f.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}a(eo,"CommandDialog");function Rr({className:e,...t}){return(0,f.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,f.jsx)(Yt,{className:"size-4 shrink-0 opacity-50"}),(0,f.jsx)(re.Input,{"data-slot":"command-input",className:A("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-base md:text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}a(Rr,"CommandInput");function _r({className:e,...t}){return(0,f.jsx)(re.List,{"data-slot":"command-list",className:A("max-h-(--sz-300px) scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}a(_r,"CommandList");function Pr({...e}){return(0,f.jsx)(re.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}a(Pr,"CommandEmpty");function He({className:e,...t}){return(0,f.jsx)(re.Group,{"data-slot":"command-group",className:A("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}a(He,"CommandGroup");function to({className:e,...t}){return(0,f.jsx)(re.Separator,{"data-slot":"command-separator",className:A("bg-border -mx-1 h-px",e),...t})}a(to,"CommandSeparator");function qe({className:e,...t}){return(0,f.jsx)(re.Item,{"data-slot":"command-item",className:A("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}a(qe,"CommandItem");function no({className:e,...t}){return(0,f.jsx)("span",{"data-slot":"command-shortcut",className:A("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}a(no,"CommandShortcut");var Ir=s.forwardRef(({checked:e,onCheckedChange:t,size:n="default",className:r,disabled:o,onClick:i,...u},l)=>{const m=n==="lg";return(0,f.jsx)("button",{ref:l,type:"button",role:"switch","aria-checked":e,"data-slot":"toggle",disabled:o,className:A("relative inline-flex shrink-0 items-center rounded-full border-2 transition-all outline-none","focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30","disabled:cursor-not-allowed disabled:opacity-50",m?"h-6 w-12":"h-5 w-11",e?"border-(--status-task-done) bg-(--status-task-done)":"border-transparent bg-input/90",r),...u,onClick:a(c=>{i?.(c),t(!e)},"onClick"),children:(0,f.jsx)("span",{className:A("pointer-events-none inline-block rounded-full bg-background shadow-sm transition-transform not-dark:bg-clip-padding dark:bg-foreground",m?"h-5 w-7":"h-4 w-6",e?"translate-x-4":"translate-x-0")})})});Ir.displayName="ToggleSwitch";var _t="--mobile-viewport-inset-bottom",Pt="--mobile-viewport-height",ve=0,De=null;function U(){const e=document.documentElement.style,t=window.visualViewport,n=t?.height??window.innerHeight,r=t?.offsetTop??0,o=Math.max(0,Math.round(window.innerHeight-n-r));e.setProperty(_t,`${o}px`),e.setProperty(Pt,`${Math.round(n)}px`)}a(U,"publish");function Or(){const e=window.visualViewport;return U(),e?.addEventListener("resize",U),e?.addEventListener("scroll",U),window.addEventListener("resize",U),window.addEventListener("orientationchange",U),()=>{e?.removeEventListener("resize",U),e?.removeEventListener("scroll",U),window.removeEventListener("resize",U),window.removeEventListener("orientationchange",U);const t=document.documentElement.style;t.removeProperty(_t),t.removeProperty(Pt)}}a(Or,"attach");function Tr(e){(0,s.useEffect)(()=>{if(!(!e||typeof window>"u"))return ve+=1,ve===1?De=Or():U(),()=>{ve-=1,!(ve>0)&&(De?.(),De=null)}},[e])}a(Tr,"useMobileViewportInsets");function It(e){return e.trim().toLowerCase().replace(/\s+/g," ")}a(It,"normalizeSearchText");function Ot(e){return It(e).match(/[\p{L}\p{N}]+/gu)??[]}a(Ot,"searchWords");function kr(e,t){if(t.length<3)return null;let n=0,r=-1,o=-1,i=0;for(let u=0;u<e.length&&n<t.length;u+=1)e[u]===t[n]&&(r===-1?r=u:i+=u-o-1,o=u,n+=1);return n!==t.length||o-r+1>t.length*2?null:32+i*2+r+Math.max(0,e.length-t.length)*.5}a(kr,"fuzzyWordSubsequenceScore");function Ar(e,t){if(!t)return 0;const n=Ot(e);if(n.length===0)return null;let r=Number.POSITIVE_INFINITY;n.forEach((u,l)=>{let m=null;if(u===t)m=0;else if(u.startsWith(t))m=8+(u.length-t.length)*.25;else{const c=u.indexOf(t);c>=0?m=16+c+(u.length-t.length)*.1:m=kr(u,t)}m!==null&&(r=Math.min(r,m+l*.05))});const o=n.join("").indexOf(t);o>=0&&(r=Math.min(r,24+o*.05));const i=n.map(u=>u[0]).join("");if(t.length<=4)if(i.startsWith(t))r=Math.min(r,28+(i.length-t.length)*.25);else{const u=i.indexOf(t);u>=0&&(r=Math.min(r,36+u))}return Number.isFinite(r)?r:null}a(Ar,"scoreTokenAgainstText");function Tt(e,t){const n=Ot(t);if(n.length===0)return 0;let r=0;for(const o of n){let i=Number.POSITIVE_INFINITY;if(e.forEach((u,l)=>{const m=Ar(u.text??"",o);m!==null&&(i=Math.min(i,m+(u.weight??l*20)))}),!Number.isFinite(i))return null;r+=i}return r}a(Tt,"scoreFuzzyTextFields");function jr(e,t){return Tt([{text:e}],t)}a(jr,"scoreFuzzyTextMatch");function Mr(e,t){return jr(e,t)!==null}a(Mr,"fuzzyTextMatchesQuery");function Ge(){const e=window.visualViewport?.height;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null}a(Ge,"readVisualViewportHeight");function Fr(){const[e,t]=(0,s.useState)(()=>typeof window>"u"?null:Ge());return(0,s.useEffect)(()=>{const n=window.visualViewport;if(!n)return;const r=a(()=>{const o=Ge();o!==null&&t(o)},"update");return r(),n.addEventListener("resize",r),n.addEventListener("scroll",r),()=>{n.removeEventListener("resize",r),n.removeEventListener("scroll",r)}},[]),e===null?{}:{"--mobile-entity-picker-visual-viewport-height":`${e}px`}}a(Fr,"useMobileEntityPickerViewportStyle");function Lr(e,t){return Mr(`${e.label} ${e.searchText??""}`,t)}a(Lr,"defaultFilterOption");function $r(e,t){return Tt([{text:e.label,weight:0},{text:e.searchText,weight:20}],t)}a($r,"defaultScoreOption");function ro({value:e,groups:t,onValueChange:n,placeholder:r,searchPlaceholder:o="Search...",emptyMessage:i="No options found.",loadingMessage:u="Loading...",loading:l=!1,disabled:m=!1,className:c,triggerClassName:v,contentClassName:b,align:E="start",contentWidth:w="trigger",renderValue:R,renderOption:C,deriveGroups:N,filterOption:O=Lr,scoreOption:T,disablePortal:k,mobileTitle:_,triggerAriaLabel:L,modal:D,contentStyle:y,listFooter:V,createItem:F}){const[z,Z]=(0,s.useState)(!1),[j,oe]=(0,s.useState)("");Tr(z);const H=Fr(),K=(0,s.useRef)(!1),$=(0,s.useRef)(!1),q=(0,s.useMemo)(()=>{for(const p of t){const h=p.options.find(g=>g.value===e);if(h)return h}return null},[t,e]),ie=(0,s.useMemo)(()=>N?N(j,t):t,[N,t,j]),le=(0,s.useMemo)(()=>{if(l)return[];const p=It(j);return ie.map(h=>{const g=h.options.map((x,S)=>{if(!p)return{option:x,index:S,score:0};if(!O(x,j))return null;if(T){const P=T(x,j);return P===null?null:{option:x,index:S,score:P}}return{option:x,index:S,score:$r(x,j)??Number.MAX_SAFE_INTEGER}}).filter(x=>x!==null);return p&&g.sort((x,S)=>x.score-S.score||x.index-S.index),{...h,options:g.map(x=>x.option)}}).filter(h=>h.options.length>0)},[O,l,j,T,ie]),ue=le.some(p=>p.options.length>0);function G({suppressTriggerFocus:p=!1}={}){p&&($.current=!0),Z(!1),oe("")}a(G,"closePopover");function d(p){if(p.disabled)return;$.current=!0;const h=n(p.value,p);h===!1||typeof h=="object"&&h?.close===!1||G()}return a(d,"selectOption"),(0,f.jsxs)(qt,{modal:D,open:z,onOpenChange:a(p=>{Z(p),p||oe("")},"onOpenChange"),children:[(0,f.jsx)(Gt,{asChild:!0,children:(0,f.jsxs)(Zt,{type:"button",variant:"outline",disabled:m,onPointerDown:a(()=>{K.current=!0},"onPointerDown"),onFocus:a(()=>{const p=K.current||$.current;K.current=!1,$.current=!1,!p&&Z(!0)},"onFocus"),onKeyDown:a(p=>{p.key==="Escape"&&z&&(p.preventDefault(),G())},"onKeyDown"),"aria-expanded":z,"aria-label":L,role:"combobox",className:A("w-full justify-between overflow-hidden",c,v),children:[(0,f.jsx)("span",{className:A("min-w-0 flex-1 truncate text-left",!q&&"text-muted-foreground"),children:R?R(q):q?.label??r}),(0,f.jsx)(rn,{className:"ml-2 size-4 opacity-50"})]})}),(0,f.jsxs)(Xt,{"data-mobile-entity-picker":"","aria-label":_??r,style:{...H,...y},align:E,collisionPadding:16,disablePortal:k,className:A("p-0",w==="trigger"?"w-(--radix-popover-trigger-width) min-w-56 max-w-(--sz-calc-23)":"w-72 max-w-(--sz-calc-23)",b),onKeyDownCapture:a(p=>{p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),G({suppressTriggerFocus:!0}))},"onKeyDownCapture"),onCloseAutoFocus:a(()=>{$.current=!0,queueMicrotask(()=>{$.current=!1})},"onCloseAutoFocus"),children:[(0,f.jsxs)("div",{"data-mobile-entity-picker-header":"","data-mobile-sheet-header":"",className:"hidden items-center justify-between gap-2 border-b border-border px-4 py-3",children:[(0,f.jsx)("span",{className:"shrink-0 text-base font-semibold text-foreground",children:_??r}),(0,f.jsx)("span",{"data-mobile-sheet-value":"",className:"min-w-0 flex-1 truncate text-right text-xs text-muted-foreground",children:q?.label??null}),(0,f.jsx)("button",{type:"button",className:"inline-flex size-9 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground","aria-label":"Close selector","data-mobile-sheet-close":"",onClick:a(()=>G({suppressTriggerFocus:!0}),"onClick"),children:(0,f.jsx)(Xe,{className:"size-5"})})]}),(0,f.jsxs)(Rt,{shouldFilter:!1,children:[(0,f.jsx)(Rr,{value:j,onValueChange:oe,placeholder:o}),(0,f.jsx)(_r,{className:"overscroll-contain touch-pan-y",onWheelCapture:a(p=>{p.currentTarget.scrollHeight>p.currentTarget.clientHeight&&p.stopPropagation()},"onWheelCapture"),children:l?(0,f.jsx)("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:u}):(0,f.jsxs)(f.Fragment,{children:[!ue&&!F?(0,f.jsx)(Pr,{children:i}):null,!ue&&F?(0,f.jsx)("div",{className:"px-3 py-3 text-center text-xs text-muted-foreground",children:i}):null,le.map(p=>(0,f.jsx)(He,{heading:p.label,children:p.options.map(h=>{const g=h.value===e;return(0,f.jsxs)(qe,{value:h.key,disabled:h.disabled,onSelect:a(()=>d(h),"onSelect"),children:[C?C(h,{selected:g}):(0,f.jsx)("span",{className:"min-w-0 truncate",children:h.label}),(0,f.jsx)(Qt,{className:A("ml-auto size-4",g?"opacity-100":"opacity-0")})]},h.key)})},p.id)),F?(0,f.jsx)(He,{className:"border-t border-border",children:(0,f.jsx)(qe,{value:"__searchable_select_create__",onSelect:a(()=>{const p=j;$.current=!0,G(),window.setTimeout(()=>F.onSelect(p),0)},"onSelect"),children:F.render(j)})}):null,V]})})]})]})]})}a(ro,"SearchableSelect");function oo({className:e,...t}){return(0,f.jsx)(nn,{"data-slot":"label",className:A("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}a(oo,"Label");export{Xr as _,Tt as a,Rt as c,He as d,Rr as f,no as g,to as h,It as i,eo as l,_r as m,ro as n,Tr as o,qe as p,Fr as r,Ir as s,oo as t,Pr as u,rn as v};
@@ -1 +1 @@
1
- var h=Object.defineProperty;var c=(t,u)=>h(t,"name",{value:u,configurable:!0});import{n as o,t as v}from"./path-D6mommQw.js";import{t as b}from"./array-CL5Tisss.js";import{rt as w}from"./chunk-75Z2AOVW-BaPl5WA6.js";function y(t){return t[0]}c(y,"x");function E(t){return t[1]}c(E,"y");function q(t,u){var s=o(!0),i=null,l=w,r=null,d=v(e);t=typeof t=="function"?t:t===void 0?y:o(t),u=typeof u=="function"?u:u===void 0?E:o(u);function e(n){var f,m=(n=b(n)).length,p,a=!1,g;for(i==null&&(r=l(g=d())),f=0;f<=m;++f)!(f<m&&s(p=n[f],f,n))===a&&((a=!a)?r.lineStart():r.lineEnd()),a&&r.point(+t(p,f,n),+u(p,f,n));if(g)return r=null,g+""||null}return c(e,"line"),e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}c(q,"line_default");export{q as t};
1
+ var h=Object.defineProperty;var c=(t,u)=>h(t,"name",{value:u,configurable:!0});import{n as o,t as v}from"./path-D6mommQw.js";import{t as b}from"./array-CL5Tisss.js";import{rt as w}from"./chunk-75Z2AOVW-CTyOxDW3.js";function y(t){return t[0]}c(y,"x");function E(t){return t[1]}c(E,"y");function q(t,u){var s=o(!0),i=null,l=w,r=null,d=v(e);t=typeof t=="function"?t:t===void 0?y:o(t),u=typeof u=="function"?u:u===void 0?E:o(u);function e(n){var f,m=(n=b(n)).length,p,a=!1,g;for(i==null&&(r=l(g=d())),f=0;f<=m;++f)!(f<m&&s(p=n[f],f,n))===a&&((a=!a)?r.lineStart():r.lineEnd()),a&&r.point(+t(p,f,n),+u(p,f,n));if(g)return r=null,g+""||null}return c(e,"line"),e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}c(q,"line_default");export{q as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./agent-avatar-url-270oGkoO.js";var a={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};a.node;var o=e(a);export{o as t};
@@ -0,0 +1,17 @@
1
+ var pn=Object.defineProperty;var r=(e,n)=>pn(e,"name",{value:n,configurable:!0});import{n as mn}from"./rolldown-runtime-ZpX3ckPj.js";import{Dt as gn,jt as kn,t as xn}from"./agent-avatar-url-270oGkoO.js";var Je="project://",et="agent://",dn="user://",tt="skill://",bn="routine://",yn=/^[0-9a-f]{6}$/i,wn=/^[0-9a-f]{3}$/i,In=/^#[0-9a-f]{6}$/i,Sn=/^#[0-9a-f]{3}$/i,Cn=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,vn=/^[a-z0-9-]+$/i,En=/^[a-z0-9][a-z0-9-]*$/i;function St(e){if(!e)return null;const n=e.trim();if(!n)return null;if(In.test(n))return n.toLowerCase();if(yn.test(n))return`#${n.toLowerCase()}`;if(Sn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(wn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(St,"normalizeHexColor");function sl(e,n){const t=e.trim(),i=St(n??null);return i?`${Je}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Je}${t}`}r(sl,"buildProjectMentionHref");function Tn(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:St(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(Tn,"parseProjectMentionHref");function cl(e,n){const t=e.trim(),i=vt(n??null);return i?`${et}${t}?i=${encodeURIComponent(i)}`:`${et}${t}`}r(cl,"buildAgentMentionHref");function Ct(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:vt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Ct,"parseAgentMentionHref");function hl(e){return`${dn}${e.trim()}`}r(hl,"buildUserMentionHref");function zn(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(zn,"parseUserMentionHref");function fl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?s=${encodeURIComponent(i)}`:`${tt}${t}`}r(fl,"buildSkillMentionHref");function _n(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:Et(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(_n,"parseSkillMentionHref");function pl(e){return`${bn}${e.trim()}`}r(pl,"buildRoutineMentionHref");function An(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(An,"parseRoutineMentionHref");function ml(e){if(!e)return[];const n=new Set,t=new RegExp(Cn);let i;for(;(i=t.exec(e))!==null;){const u=Ct(i[1]);u&&n.add(u.agentId)}return[...n]}r(ml,"extractAgentMentionIds");function vt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!vn.test(n)?null:n}r(vt,"normalizeAgentIcon");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!En.test(n)?null:n}r(Et,"normalizeSkillSlug");var Ln=/^[A-Z][A-Z0-9]*-\d+$/;function Tt(e){const n=e.trim().toUpperCase();return Ln.test(n)?n:null}r(Tt,"normalizeIssueIdentifier");function gl(e){return`/issues/${Tt(e)??e.trim()}`}r(gl,"buildIssueReferenceHref");function Fn(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=Tt(i[u+1]??"");if(l)return{identifier:l}}return null}r(Fn,"parseIssueReferenceHref");var zt={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};zt.node;var kl=xn(zt);function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(Y,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),Rn=ce(/[#-'*+\--9=?A-Z^-~]/);function Pe(e){return e!==null&&(e<32||e===127)}r(Pe,"asciiControl");var Oe=ce(/\d/),Mn=ce(/[\dA-Fa-f]/),Bn=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Dn=ce(new RegExp("\\p{P}|\\p{S}","u")),Pn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Pn(e))return 1;if(Dn(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function xl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(xl,"gfmStrikethrough");var On=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_t.peek=Nn;function dl(){return{canContainEols:["delete"],enter:{strikethrough:$n},exit:{strikethrough:Hn}}}r(dl,"gfmStrikethroughFromMarkdown");function bl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:On}],handlers:{delete:_t}}}r(bl,"gfmStrikethroughToMarkdown");function $n(e){this.enter({type:"delete",children:[]},e)}r($n,"enterStrikethrough");function Hn(e){this.exit(e)}r(Hn,"exitStrikethrough");function _t(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(_t,"handleDelete");function Nn(){return"~"}r(Nn,"peekDelete");function yl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(yl,"ccount");function wl(){}r(wl,"ok$1");function Il(){}r(Il,"unreachable");var nt=document.createElement("i");function Ne(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(Ne,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?$e(e):""}r(Se,"stringifyPosition");function $e(e){return it(e&&e.line)+":"+it(e&&e.column)}r($e,"point$1");function rt(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}r(rt,"position");function it(e){return e&&typeof e=="number"?e:1}r(it,"index");var X=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;var jn=/[$_\p{ID_Start}]/u,qn=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Vn=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Un=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,At={};function Sl(e){return e?jn.test(String.fromCodePoint(e)):!1}r(Sl,"start");function Cl(e,n){const t=(n||At).jsx?Vn:qn;return e?t.test(String.fromCodePoint(e)):!1}r(Cl,"cont");function vl(e,n){return((n||At).jsx?Qn:Un).test(e)}r(vl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Wn(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),Gn);return u(),a}r(Wn,"blockquote");function Gn(e,n,t){return">"+(t?"":" ")+e}r(Gn,"map$1");function Kn(e,n){return ut(e,n.inConstruct,!0)&&!ut(e,n.notInConstruct,!1)}r(Kn,"patternInScope");function ut(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(ut,"listInScope");function lt(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
2
+ `&&Kn(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
3
+ `}r(lt,"hardBreak");function Xn(e,n){const t=String(e);let i=t.indexOf(n),u=i,l=0,a=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++l>a&&(a=l):l=1,u=i+n.length,i=t.indexOf(n,u);return a}r(Xn,"longestStreak");function Yn(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}r(Yn,"formatCodeAsIndented");function Zn(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Zn,"checkFence");function Jn(e,n,t,i){const u=Zn(t),l=e.value||"",a=u==="`"?"GraveAccent":"Tilde";if(Yn(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(l,er);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Xn(l,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${a}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
4
+ `,encode:["`"],...o.current()})),f()}return p+=o.move(`
5
+ `),l&&(p+=o.move(l+`
6
+ `)),p+=o.move(s),c(),p}r(Jn,"code");function er(e,n,t){return(t?"":" ")+e}r(er,"map");function je(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}r(je,"checkQuote");function tr(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("definition");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
7
+ `,...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),a(),c}r(tr,"definition$1");function nr(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}r(nr,"checkEmphasis");function ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}r(ve,"encodeCharacterReference");function ze(e,n,t){const i=de(e),u=de(n);return i===void 0?u===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r(ze,"encodeInfo");Lt.peek=rr;function Lt(e,n,t,i){const u=nr(t),l=t.enter("emphasis"),a=t.createTracker(i),o=a.move(u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Lt,"emphasis");function rr(e,n,t){return t.options.emphasis||"*"}r(rr,"emphasisPeek");var qe=r((function(e){if(e==null)return ar;if(typeof e=="function")return Ae(e);if(typeof e=="object")return Array.isArray(e)?ir(e):ur(e);if(typeof e=="string")return lr(e);throw new Error("Expected function, string, or object as test")}),"convert");function ir(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=qe(e[t]);return Ae(i);function i(...u){let l=-1;for(;++l<n.length;)if(n[l].apply(this,u))return!0;return!1}}r(ir,"anyFactory");function ur(e){const n=e;return Ae(t);function t(i){const u=i;let l;for(l in e)if(u[l]!==n[l])return!1;return!0}}r(ur,"propertiesFactory");function lr(e){return Ae(n);function n(t){return t&&t.type===e}}r(lr,"typeFactory");function Ae(e){return n;function n(t,i,u){return!!(or(t)&&e.call(this,t,typeof i=="number"?i:void 0,u||void 0))}}r(Ae,"castFactory");function ar(){return!0}r(ar,"ok");function or(e){return e!==null&&typeof e=="object"&&"type"in e}r(or,"looksLikeANode");var Ft=[];function sr(e,n,t,i){let u;typeof n=="function"&&typeof t!="function"?(i=t,t=n):u=n;const l=qe(u),a=i?-1:1;o(e,void 0,[])();function o(s,c,p){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return k;function k(){let h=Ft,w,C,v;if((!n||l(s,c,p[p.length-1]||void 0))&&(h=cr(t(s,p)),h[0]===!1))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!=="skip")for(C=(i?b.children.length:-1)+a,v=p.concat(b);C>-1&&C<b.children.length;){const _=b.children[C];if(w=o(_,C,v)(),w[0]===!1)return w;C=typeof w[1]=="number"?w[1]:C+a}}return h}}r(o,"factory")}r(sr,"visitParents");function cr(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Ft:[e]}r(cr,"toResult");function hr(e,n,t,i){let u,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,u=t):(l=n,a=t,u=i),sr(e,l,o,u);function o(s,c){const p=c[c.length-1],f=p?p.children.indexOf(s):void 0;return a(s,f,p)}r(o,"overload")}r(hr,"visit");var fr={};function Ve(e,n){const t=n||fr;return Rt(e,typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,typeof t.includeHtml=="boolean"?t.includeHtml:!0)}r(Ve,"toString");function Rt(e,n,t){if(pr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return at(e.children,n,t)}return Array.isArray(e)?at(e,n,t):""}r(Rt,"one");function at(e,n,t){const i=[];let u=-1;for(;++u<e.length;)i[u]=Rt(e[u],n,t);return i.join("")}r(at,"all");function pr(e){return!!(e&&typeof e=="object")}r(pr,"node");function mr(e,n){let t=!1;return hr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,!1}),!!((!e.depth||e.depth<3)&&Ve(e)&&(n.options.setext||t))}r(mr,"formatHeadingAsSetext");function gr(e,n,t,i){const u=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(i);if(mr(e,t)){const p=t.enter("headingSetext"),f=t.enter("phrasing"),k=t.containerPhrasing(e,{...l.current(),before:`
8
+ `,after:`
9
+ `});return f(),p(),k+`
10
+ `+(u===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
11
+ `))+1))}const a="#".repeat(u),o=t.enter("headingAtx"),s=t.enter("phrasing");l.move(a+" ");let c=t.containerPhrasing(e,{before:"# ",after:`
12
+ `,...l.current()});return/^[\t ]/.test(c)&&(c=ve(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,t.options.closeAtx&&(c+=" "+a),s(),o(),c}r(gr,"heading");Mt.peek=kr;function Mt(e){return e.value||""}r(Mt,"html");function kr(){return"<"}r(kr,"htmlPeek");Bt.peek=xr;function Bt(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),a(),c}r(Bt,"image");function xr(){return"!"}r(xr,"imagePeek");Dt.peek=dr;function Dt(e,n,t,i){const u=e.referenceType,l=t.enter("imageReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Dt,"imageReference");function dr(){return"!"}r(dr,"imageReferencePeek");Pt.peek=br;function Pt(e,n,t){let i=e.value||"",u="`",l=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<t.unsafe.length;){const a=t.unsafe[l],o=t.compilePattern(a);let s;if(a.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r(Pt,"inlineCode");function br(){return"`"}r(br,"inlineCodePeek");function Ot(e,n){const t=Ve(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r(Ot,"formatLinkAsAutolink");$t.peek=yr;function $t(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.createTracker(i);let o,s;if(Ot(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=a.move("<");return f+=a.move(t.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=a.move("[");return c+=a.move(t.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(t.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=t.enter("destinationRaw"),c+=a.move(t.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=t.enter(`title${l}`),c+=a.move(" "+u),c+=a.move(t.safe(e.title,{before:c,after:u,...a.current()})),c+=a.move(u),s()),c+=a.move(")"),o(),c}r($t,"link");function yr(e,n,t){return Ot(e,t)?"<":"["}r(yr,"linkPeek");Ht.peek=wr;function Ht(e,n,t,i){const u=e.referenceType,l=t.enter("linkReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Ht,"linkReference");function wr(){return"["}r(wr,"linkReferencePeek");function Ue(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}r(Ue,"checkBullet");function Ir(e){const n=Ue(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}r(Ir,"checkBulletOther");function Sr(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(Sr,"checkBulletOrdered");function Nt(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}r(Nt,"checkRule");function Cr(e,n,t,i){const u=t.enter("list"),l=t.bulletCurrent;let a=e.ordered?Sr(t):Ue(t);const o=e.ordered?a==="."?")":".":Ir(t);let s=n&&t.bulletLastUsed?a===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&p&&(!p.children||!p.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Nt(t)===a&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=o),t.bulletCurrent=a;const c=t.containerFlow(e,i);return t.bulletLastUsed=a,t.bulletCurrent=l,u(),c}r(Cr,"list$1");function vr(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}r(vr,"checkListItemIndent");function Er(e,n,t,i){const u=vr(t);let l=t.bulletCurrent||Ue(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let a=l.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=t.createTracker(i);o.move(l+" ".repeat(a-l.length)),o.shift(a);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(a))+f:(h?l:l+" ".repeat(a-l.length))+f}r(p,"map")}r(Er,"listItem");function Tr(e,n,t,i){const u=t.enter("paragraph"),l=t.enter("phrasing"),a=t.containerPhrasing(e,i);return l(),u(),a}r(Tr,"paragraph");var zr=qe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _r(e,n,t,i){return(e.children.some(function(u){return zr(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(_r,"root");function Ar(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(Ar,"checkStrong");jt.peek=Lr;function jt(e,n,t,i){const u=Ar(t),l=t.enter("strong"),a=t.createTracker(i),o=a.move(u+u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u+u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(jt,"strong");function Lr(e,n,t){return t.options.strong||"*"}r(Lr,"strongPeek");function Fr(e,n,t,i){return t.safe(e.value,i)}r(Fr,"text$2");function Rr(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}r(Rr,"checkRuleRepetition");function Mr(e,n,t){const i=(Nt(t)+(t.options.ruleSpaces?" ":"")).repeat(Rr(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(Mr,"thematicBreak$1");var qt={blockquote:Wn,break:lt,code:Jn,definition:tr,emphasis:Lt,hardBreak:lt,heading:gr,html:Mt,image:Bt,imageReference:Dt,inlineCode:Pt,link:$t,linkReference:Ht,list:Cr,listItem:Er,paragraph:Tr,root:_r,strong:jt,text:Fr,thematicBreak:Mr};function Vt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}r(Vt,"decodeNumericCharacterReference");var Br=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dr(e){return e.replace(Br,Pr)}r(Dr,"decodeString");function Pr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return Vt(t.slice(u?2:1),u?16:10)}return Ne(t)||e}r(Pr,"decode");var ot={}.hasOwnProperty;function Or(e){const n={};let t=-1;for(;++t<e.length;)$r(n,e[t]);return n}r(Or,"combineExtensions");function $r(e,n){let t;for(t in n){const i=(ot.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let l;if(u)for(l in u){ot.call(i,l)||(i[l]=[]);const a=u[l];Hr(i[l],Array.isArray(a)?a:a?[a]:[])}}}r($r,"syntaxExtension");function Hr(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Hr,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var Nr={tokenize:jr};function jr(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}r(jr,"initializeContent");var qr={tokenize:Vr},st={tokenize:Ur};function Vr(e){const n=this,t=[];let i=0,u,l,a;return o;function o(S){if(i<t.length){const R=t[i];return n.containerState=R[1],e.attempt(R[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const R=n.events.length;let F=R,y;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){y=n.events[F][1].end;break}b(i);let M=R;for(;M<n.events.length;)n.events[M][1].end={...y},M++;return K(n.events,F+1,0,n.events.slice(R)),n.events.length=M,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,a=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(st,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:l}),C(S)}function C(S){if(S===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),v(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),C)}function v(S,R){const F=n.sliceStream(S);if(R&&F.push(null),S.previous=l,l&&(l.next=S),l=S,u.defineSkip(S.start),u.write(F),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<a&&(!u.events[y][1].end||u.events[y][1].end.offset>a))return;const M=n.events.length;let $=M,P,x;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(P){x=n.events[$][1].end;break}P=!0}for(b(i),y=M;y<n.events.length;)n.events[y][1].end={...x},y++;K(n.events,$+1,0,n.events.slice(M)),n.events.length=y}}function b(S){let R=t.length;for(;R-- >S;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),l=void 0,u=void 0,n.containerState._closeFlow=void 0}}r(Vr,"initializeDocument");function Ur(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(Ur,"tokenizeContainer");var He={name:"attention",resolveAll:Qr,tokenize:Wr};function Qr(e,n){let t=-1,i,u,l,a,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ct(f,-s),ct(k,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},l={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[i][1].end={...a.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Y(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=Y(c,[["enter",u,n],["enter",a,n],["exit",a,n],["enter",l,n]]),c=Y(c,_e(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=Y(c,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=Y(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(Qr,"resolveAllAttention");function Wr(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=de(i);let l;return a;function a(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const c=e.exit("attentionSequence"),p=de(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(l===42?f:f&&(u||!k)),c._close=!!(l===42?k:k&&(p||!f)),n(s)}}r(Wr,"tokenizeAttention");function ct(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ct,"movePoint");var Gr={name:"autolink",tokenize:Kr};function Kr(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ee(h)?(e.consume(h),a):h===64?t(h):c(h)}function a(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Pe(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):Rn(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Kr,"tokenizeAutolink");var Le={partial:!0,tokenize:Xr};function Xr(e,n,t){return i;function i(l){return L(l)?D(e,u,"linePrefix")(l):u(l)}function u(l){return l===null||z(l)?n(l):t(l)}}r(Xr,"tokenizeBlankLine");var Ut={continuation:{tokenize:Zr},exit:Jr,name:"blockQuote",tokenize:Yr};function Yr(e,n,t){const i=this;return u;function u(a){if(a===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return L(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}r(Yr,"tokenizeBlockQuoteStart");function Zr(e,n,t){const i=this;return u;function u(a){return L(a)?D(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Ut,n,t)(a)}}r(Zr,"tokenizeBlockQuoteContinuation");function Jr(e){e.exit("blockQuote")}r(Jr,"exit$1");var Qt={name:"characterEscape",tokenize:ei};function ei(e,n,t){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),u}function u(l){return Bn(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}r(ei,"tokenizeCharacterEscape");var Wt={name:"characterReference",tokenize:ti};function ti(e,n,t){const i=this;let u=0,l,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Mn,p):(e.enter("characterReferenceValue"),l=7,a=Oe,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return a===J&&!Ne(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&u++<l?(e.consume(f),p):t(f)}}r(ti,"tokenizeCharacterReference");var ht={partial:!0,tokenize:ri},ft={concrete:!0,name:"codeFenced",tokenize:ni};function ni(e,n,t){const i=this,u={partial:!0,tokenize:F};let l=0,a=0,o;return s;function s(y){return c(y)}function c(y){const M=i.events[i.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(a++,e.consume(y),p):a<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(ht,C,R)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function C(y){return e.attempt(u,R,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&L(y)?D(e,_,"linePrefix",l+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(ht,C,R)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function R(y){return e.exit("codeFenced"),n(y)}function F(y,M,$){let P=0;return x;function x(B){return y.enter("lineEnding"),y.consume(B),y.exit("lineEnding"),E}function E(B){return y.enter("codeFencedFence"),L(B)?D(y,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):T(B)}function T(B){return B===o?(y.enter("codeFencedFenceSequence"),O(B)):$(B)}function O(B){return B===o?(P++,y.consume(B),O):P>=a?(y.exit("codeFencedFenceSequence"),L(B)?D(y,j,"whitespace")(B):j(B)):$(B)}function j(B){return B===null||z(B)?(y.exit("codeFencedFence"),M(B)):$(B)}}}r(ni,"tokenizeCodeFenced");function ri(e,n,t){const i=this;return u;function u(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(ri,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:ui},ii={partial:!0,tokenize:li};function ui(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,l,"linePrefix",5)(c)}function l(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?s(c):z(c)?e.attempt(ii,a,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(ui,"tokenizeCodeIndented");function li(e,n,t){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?t(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):D(e,l,"linePrefix",5)(a)}function l(a){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):z(a)?u(a):t(a)}}r(li,"tokenizeFurtherStart");var ai={name:"codeText",previous:si,resolve:oi,tokenize:ci};function oi(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(oi,"resolveCodeText");function si(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(si,"previous");function ci(e,n,t){let i=0,u,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",c(f))}}r(ci,"tokenizeCodeText");var hi=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Ie(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ie(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ie(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Ie(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ie(this.left,n.reverse())}}};function Ie(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}r(Ie,"chunkedPush");function Gt(e){const n={};let t=-1,i,u,l,a,o,s,c;const p=new hi(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,fi(p,t)),t=n[t],c=!0);else if(i[1]._container){for(l=t,u=void 0;l--;)if(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),a[1].type="lineEnding",u=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(Gt,"subtokenize");function fi(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const l=[];let a=t._tokenizer;a||(a=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],c={};let p,f,k=-1,h=t,w=0,C=0;const v=[C];for(;h;){for(;e.get(++u)[1]!==h;);l.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(C=k+1,v.push(C),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),k=v.length;k--;){const b=o.slice(v[k],v[k+1]),_=l.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(fi,"subcontent");var pi={resolve:gi,tokenize:ki},mi={partial:!0,tokenize:xi};function gi(e){return Gt(e),e}r(gi,"resolveContent");function ki(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?l(o):z(o)?e.check(mi,a,l)(o):(e.consume(o),u)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(ki,"tokenizeContent");function xi(e,n,t){const i=this;return u;function u(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),D(e,l,"linePrefix")}function l(a){if(a===null||z(a))return t(a);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(i.parser.constructs.flow,t,n)(a)}}r(xi,"tokenizeContinuation");function Kt(e,n,t,i,u,l,a,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(l),e.consume(b),e.exit(l),k):b===null||b===32||b===41||Pe(b)?t(b):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(b))}function k(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function C(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,C):b===41?(e.consume(b),p--,C):b===null||b===32||b===40||Pe(b)?t(b):(e.consume(b),b===92?v:C)}function v(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}r(Kt,"factoryDestination");function Xt(e,n,t,i,u,l){const a=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(l),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(h):h===93?(e.exit(l),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Xt,"factoryLabel");function Yt(e,n,t,i,u,l){let a;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),a=k===40?41:k,s):t(k)}function s(k){return k===a?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(l),c(k))}function c(k){return k===a?(e.exit(l),s(a)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===a||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===a||k===92?(e.consume(k),p):p(k)}}r(Yt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var di={name:"definition",tokenize:yi},bi={partial:!0,tokenize:wi};function yi(e,n,t){const i=this;let u;return l;function l(h){return e.enter("definition"),a(h)}function a(h){return Xt.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Kt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(bi,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(yi,"tokenizeDefinition");function wi(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Yt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return L(o)?D(e,a,"whitespace")(o):a(o)}function a(o){return o===null||z(o)?n(o):t(o)}}r(wi,"tokenizeTitleBefore");var Ii={name:"hardBreakEscape",tokenize:Si};function Si(e,n,t){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),u}function u(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}r(Si,"tokenizeHardBreakEscape");var Ci={name:"headingAtx",resolve:vi,tokenize:Ei};function vi(e,n){let t=e.length-2,i=3,u,l;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},l={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",l,n],["exit",l,n],["exit",u,n]])),e}r(vi,"resolveHeadingAtx");function Ei(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(e.consume(p),a):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(Ei,"tokenizeHeadingAtx");var Ti=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],pt=["pre","script","style","textarea"],zi={concrete:!0,name:"htmlFlow",resolveTo:Li,tokenize:Fi},_i={partial:!0,tokenize:Mi},Ai={partial:!0,tokenize:Ri};function Li(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}r(Li,"resolveToHtmlFlow");function Fi(e,n,t){const i=this;let u,l,a,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),l=!0,C):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:T:w):t(g)}function C(g){return ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function v(g){if(g===null||g===47||g===62||U(g)){const ae=g===47,he=a.toLowerCase();return!ae&&!l&&pt.includes(he)?(u=1,i.interrupt?n(g):T(g)):Ti.includes(a.toLowerCase())?(u=6,ae?(e.consume(g),b):i.interrupt?n(g):T(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):l?_(g):S(g))}return g===45||J(g)?(e.consume(g),a+=String.fromCharCode(g),v):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:T):t(g)}function _(g){return L(g)?(e.consume(g),_):x(g)}function S(g){return g===47?(e.consume(g),x):g===58||g===95||ee(g)?(e.consume(g),R):L(g)?(e.consume(g),S):x(g)}function R(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),R):F(g)}function F(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),F):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,M):L(g)?(e.consume(g),y):$(g)}function M(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),M)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?F(g):(e.consume(g),$)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function x(g){return g===62?(e.consume(g),E):t(g)}function E(g){return g===null||z(g)?T(g):L(g)?(e.consume(g),E):t(g)}function T(g){return g===45&&u===2?(e.consume(g),Q):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),le):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(_i,ne,O)(g)):g===null||z(g)?(e.exit("htmlFlowData"),O(g)):(e.consume(g),T)}function O(g){return e.check(Ai,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||z(g)?O(g):(e.enter("htmlFlowData"),T(g))}function Q(g){return g===45?(e.consume(g),m):T(g)}function q(g){return g===47?(e.consume(g),a="",Z):T(g)}function Z(g){if(g===62){const ae=a.toLowerCase();return pt.includes(ae)?(e.consume(g),le):T(g)}return ee(g)&&a.length<8?(e.consume(g),a+=String.fromCharCode(g),Z):T(g)}function te(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),le):g===45&&u===2?(e.consume(g),m):T(g)}function le(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),le)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(Fi,"tokenizeHtmlFlow");function Ri(e,n,t){const i=this;return u;function u(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(Ri,"tokenizeNonLazyContinuationStart");function Mi(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Le,n,t)}}r(Mi,"tokenizeBlankLineBefore");var Bi={name:"htmlText",tokenize:Di};function Di(e,n,t){const i=this;let u,l,a;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),F):m===63?(e.consume(m),S):ee(m)?(e.consume(m),$):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),l=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(a=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(l++)?(e.consume(m),l===6?C:w):t(m)}function C(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(a=C,q(m)):(e.consume(m),C)}function v(m){return m===93?(e.consume(m),b):C(m)}function b(m){return m===62?Q(m):m===93?(e.consume(m),b):C(m)}function _(m){return m===null||m===62?Q(m):z(m)?(a=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),R):z(m)?(a=S,q(m)):(e.consume(m),S)}function R(m){return m===62?Q(m):S(m)}function F(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):M(m)}function M(m){return z(m)?(a=M,q(m)):L(m)?(e.consume(m),M):Q(m)}function $(m){return m===45||J(m)?(e.consume(m),$):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),Q):m===58||m===95||ee(m)?(e.consume(m),x):z(m)?(a=P,q(m)):L(m)?(e.consume(m),P):Q(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):E(m)}function E(m){return m===61?(e.consume(m),T):z(m)?(a=E,q(m)):L(m)?(e.consume(m),E):P(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):z(m)?(a=T,q(m)):L(m)?(e.consume(m),T):(e.consume(m),j)}function O(m){return m===u?(e.consume(m),u=void 0,B):m===null?t(m):z(m)?(a=O,q(m)):(e.consume(m),O)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function B(m){return m===47||m===62||U(m)?P(m):t(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),a(m)}}r(Di,"tokenizeHtmlText");var Qe={name:"labelEnd",resolveAll:Hi,resolveTo:Ni,tokenize:ji},Pi={tokenize:qi},Oi={tokenize:Vi},$i={tokenize:Ui};function Hi(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Hi,"resolveAllLabelEnd");function Ni(e,n){let t=e.length,i=0,u,l,a,o;for(;t--;)if(u=e[t][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(a=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=Y(o,e.slice(l+1,l+i+3)),o=Y(o,[["enter",p,n]]),o=Y(o,_e(n.parser.constructs.insideSpan.null,e.slice(l+i+4,a-3),n)),o=Y(o,[["exit",p,n],e[a-2],e[a-1],["exit",c,n]]),o=Y(o,e.slice(a+1)),o=Y(o,[["exit",s,n]]),K(e,l,e.length,o),e}r(Ni,"resolveToLabelEnd");function ji(e,n,t){const i=this;let u=i.events.length,l,a;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){l=i.events[u][1];break}return o;function o(k){return l?l._inactive?f(k):(a=i.parser.defined.includes(xe(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Pi,p,a?p:f)(k):k===91?e.attempt(Oi,p,a?c:f)(k):a?p(k):f(k)}function c(k){return e.attempt($i,p,f)(k)}function p(k){return n(k)}function f(k){return l._balanced=!0,t(k)}}r(ji,"tokenizeLabelEnd");function qi(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,l)(f):l(f)}function l(f){return f===41?p(f):Kt(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Yt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(qi,"tokenizeResource");function Vi(e,n,t){const i=this;return u;function u(o){return Xt.call(i,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}r(Vi,"tokenizeReferenceFull");function Ui(e,n,t){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),u}function u(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}r(Ui,"tokenizeReferenceCollapsed");var Qi={name:"labelStartImage",resolveAll:Qe.resolveAll,tokenize:Wi};function Wi(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(Wi,"tokenizeLabelStartImage");var Gi={name:"labelStartLink",resolveAll:Qe.resolveAll,tokenize:Ki};function Ki(e,n,t){const i=this;return u;function u(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(a):n(a)}}r(Ki,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Xi};function Xi(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Xi,"tokenizeLineEnding");var Te={name:"thematicBreak",tokenize:Yi};function Yi(e,n,t){let i=0,u;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Yi,"tokenizeThematicBreak");var W={continuation:{tokenize:tu},exit:ru,name:"list",tokenize:eu},Zi={partial:!0,tokenize:iu},Ji={partial:!0,tokenize:nu};function eu(e,n,t){const i=this,u=i.events[i.events.length-1];let l=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Oe(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Te,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Oe(h)&&++a<10?(e.consume(h),s):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Le,i.interrupt?t:p,e.attempt(Zi,k,f))}function p(h){return i.containerState.initialBlankLine=!0,l++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(eu,"tokenizeListStart");function tu(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Le,u,l);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function l(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Ji,n,a)(o))}r(l,"notBlank");function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(W,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(a,"notInCurrentItem")}r(tu,"tokenizeListContinuation");function nu(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(l){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?n(l):t(l)}}r(nu,"tokenizeIndent");function ru(e){e.exit(this.containerState.type)}r(ru,"tokenizeListEnd");function iu(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(l){const a=i.events[i.events.length-1];return!L(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}r(iu,"tokenizeListItemPrefixWhitespace");var mt={name:"setextUnderline",resolveTo:uu,tokenize:lu};function uu(e,n){let t=e.length,i,u,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",l?(e.splice(u,0,["enter",a,n]),e.splice(l+1,0,["exit",e[i][1],n]),e[i][1].end={...e[l][1].end}):e[i][1]=a,e.push(["exit",a,n]),e}r(uu,"resolveToSetextUnderline");function lu(e,n,t){const i=this;let u;return l;function l(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(lu,"tokenizeSetextUnderline");var au={tokenize:ou};function ou(e){const n=this,t=e.attempt(Le,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(pi,u)),"linePrefix")));return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(ou,"initializeFlow");var su={resolveAll:Jt()},cu=Zt("string"),hu=Zt("text");function Zt(e){return{resolveAll:Jt(e==="text"?fu:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],l=t.attempt(u,a,o);return a;function a(p){return c(p)?l(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),l(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(Zt,"initializeFactory");function Jt(e){return n;function n(t,i){let u=-1,l;for(;++u<=t.length;)l===void 0?t[u]&&t[u][1].type==="data"&&(l=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==l+2&&(t[l][1].end=t[u-1][1].end,t.splice(l+2,u-l-2),u=l+2),l=void 0);return e?e(t,i):t}}r(Jt,"createResolver");function fu(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const i=e[t-1][1],u=n.sliceStream(i);let l=u.length,a=-1,o=0,s;for(;l--;){const c=u[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)s=!0,o++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(fu,"resolveAllLineSuffixes");var pu=mn({attentionMarkers:r(()=>wu,"attentionMarkers"),contentInitial:r(()=>gu,"contentInitial"),disable:r(()=>Iu,"disable"),document:r(()=>mu,"document"),flow:r(()=>xu,"flow"),flowInitial:r(()=>ku,"flowInitial"),insideSpan:r(()=>yu,"insideSpan"),string:r(()=>du,"string"),text:r(()=>bu,"text")}),mu={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:Ut},gu={91:di},ku={[-2]:Fe,[-1]:Fe,32:Fe},xu={35:Ci,42:Te,45:[mt,Te],60:zi,61:mt,95:Te,96:ft,126:ft},du={38:Wt,92:Qt},bu={[-5]:Re,[-4]:Re,[-3]:Re,33:Qi,38:Wt,42:He,60:[Gr,Bi],91:Gi,92:[Ii,Qt],93:Qe,95:He,96:ai},yu={null:[He,su]},wu={null:[42,95]},Iu={null:[]};function Su(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},l=[];let a=[],o=[];const s={attempt:M(F),check:M(y),consume:_,enter:S,exit:R,interrupt:M(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&l.push(n),c;function f(E){return a=Y(a,E),v(),a[a.length-1]!==null?[]:($(n,0),c.events=_e(l,c.events,c),c.events)}r(f,"write");function k(E,T){return vu(h(E),T)}r(k,"sliceSerialize");function h(E){return Cu(a,E)}r(h,"sliceStream");function w(){const{_bufferIndex:E,_index:T,line:O,column:j,offset:B}=i;return{_bufferIndex:E,_index:T,line:O,column:j,offset:B}}r(w,"now");function C(E){u[E.line]=E.column,x()}r(C,"defineSkip");function v(){let E;for(;i._index<a.length;){const T=a[i._index];if(typeof T=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<T.length;)b(T.charCodeAt(i._bufferIndex));else b(T)}}r(v,"main");function b(E){p=p(E)}r(b,"go");function _(E){z(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=E}r(_,"consume");function S(E,T){const O=T||{};return O.type=E,O.start=w(),c.events.push(["enter",O,c]),o.push(O),O}r(S,"enter");function R(E){const T=o.pop();return T.end=w(),c.events.push(["exit",T,c]),T}r(R,"exit");function F(E,T){$(E,T.from)}r(F,"onsuccessfulconstruct");function y(E,T){T.restore()}r(y,"onsuccessfulcheck");function M(E,T){return O;function O(j,B,Q){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):le(j);function le(V){return be;function be(re){const fe=re!==null&&V[re],pe=re!==null&&V.null;return ne([...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?Q:g(V[Z])}function g(V){return be;function be(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?he(re):V.tokenize.call(T?Object.assign(Object.create(c),T):c,s,ae,he)(re)}}function ae(V){return E(te,m),B}function he(V){return m.restore(),++Z<q.length?g(q[Z]):Q}}}r(M,"constructFactory");function $(E,T){E.resolveAll&&!l.includes(E)&&l.push(E),E.resolve&&K(c.events,T,c.events.length-T,E.resolve(c.events.slice(T),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}r($,"addResult");function P(){const E=w(),T=c.previous,O=c.currentConstruct,j=c.events.length,B=Array.from(o);return{from:j,restore:Q};function Q(){i=E,c.previous=T,c.currentConstruct=O,c.events.length=j,o=B,x()}}r(P,"store");function x(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(x,"accountForPotentialSkip")}r(Su,"createTokenizer");function Cu(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,l=n.end._bufferIndex;let a;if(t===u)a=[e[t].slice(i,l)];else{if(a=e.slice(t,u),i>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}l>0&&a.push(e[u].slice(0,l))}return a}r(Cu,"sliceChunks");function vu(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:a="\r";break;case-4:a=`
13
+ `;break;case-3:a=`\r
14
+ `;break;case-2:a=n?" ":" ";break;case-1:if(!n&&u)continue;a=" ";break;default:a=String.fromCharCode(l)}u=l===-2,i.push(a)}return i.join("")}r(vu,"serializeChunks");function Eu(e){const n={constructs:Or([pu,...(e||{}).extensions||[]]),content:t(Nr),defined:[],document:t(qr),flow:t(au),lazy:{},string:t(cu),text:t(hu)};return n;function t(i){return u;function u(l){return Su(n,i,l)}}}r(Eu,"parse");function Tu(e){for(;!Gt(e););return e}r(Tu,"postprocess");var gt=/[\0\t\n\r]/g;function zu(){let e=1,n="",t=!0,i;return u;function u(l,a,o){const s=[];let c,p,f,k,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,c=gt.exec(l),k=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(k),!c){n=l.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(l.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(zu,"preprocess");var en={}.hasOwnProperty;function El(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),_u(t)(Tu(Eu(t).document().write(zu()(e,n,!0))))}r(El,"fromMarkdown");function _u(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ye),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Ge),blockQuote:l(pe),characterEscape:P,characterReference:P,codeFenced:l(We),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(We,a),codeText:l(rn,a),codeTextData:P,data:P,codeFlowValue:P,definition:l(un),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(ln),hardBreakEscape:l(Ke),hardBreakTrailing:l(Ke),htmlFlow:l(Xe,a),htmlFlowData:P,htmlText:l(Xe,a),htmlTextData:P,image:l(an),label:a,link:l(Ye),listItem:l(on),listItemValue:k,listOrdered:l(Ze,f),listUnordered:l(Ze),paragraph:l(sn),reference:g,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Ge),strong:l(cn),thematicBreak:l(fn)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:fe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:V,characterReference:be,codeFenced:s(v),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:x,codeIndented:s(b),codeText:s(B),codeTextData:x,data:x,definition:s(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(O),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:le,resource:ne,setextHeading:s($),setextHeadingLineSequence:M,setextHeadingText:y,strong:s(),thematicBreak:s()}};tn(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(d){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:p,data:t},H=[];let N=-1;for(;++N<d.length;)(d[N][1].type==="listOrdered"||d[N][1].type==="listUnordered")&&(d[N][0]==="enter"?H.push(N):N=u(d,H.pop(),N));for(N=-1;++N<d.length;){const oe=n[d[N][0]];en.call(oe,d[N][1].type)&&oe[d[N][1].type].call(Object.assign({sliceSerialize:d[N][2].sliceSerialize},A),d[N][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||kt).call(A,void 0,oe[0])}for(I.position={start:se(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:se(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<n.transforms.length;)I=n.transforms[N](I)||I;return I}function u(d,I,A){let H=I-1,N=-1,oe=!1,me,ie,ye,we;for(;++H<=A;){const G=d[H];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?N++:N--,we=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(me&&!we&&!N&&!ye&&(ye=H),we=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:we=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(me){let ge=H;for(ie=void 0;ge--;){const ue=d[ge];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(d[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ge}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}ye&&(!ie||ye<ie)&&(me._spread=!0),me.end=Object.assign({},ie?d[ie][1].start:G[1].end),d.splice(ie||H,0,["exit",me,G[2]]),H++,A++}if(G[1].type==="listItemPrefix"){const ge={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};me=ge,d.splice(H,0,["enter",ge,G[2]]),H++,A++,ye=void 0,we=!0}}}return d[I][1]._spread=oe,A}function l(d,I){return A;function A(H){o.call(this,d(H),H),I&&I.call(this,H)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(d,I,A){this.stack[this.stack.length-1].children.push(d),this.stack.push(d),this.tokenStack.push([I,A||void 0]),d.position={start:se(I.start),end:void 0}}function s(d){return I;function I(A){d&&d.call(this,A),c.call(this,A)}}function c(d,I){const A=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==d.type&&(I?I.call(this,d,H[0]):(H[1]||kt).call(this,d,H[0]));else throw new Error("Cannot close `"+d.type+"` ("+Se({start:d.start,end:d.end})+"): it’s not open");A.position.end=se(d.end)}function p(){return Ve(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(d){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(d),10),this.data.expectingFirstListItemValue=void 0}}function h(){const d=this.resume(),I=this.stack[this.stack.length-1];I.lang=d}function w(){const d=this.resume(),I=this.stack[this.stack.length-1];I.meta=d}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/(\r?\n|\r)$/g,"")}function _(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase()}function S(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function R(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function F(d){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(d).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function M(d){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(d).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function P(d){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=hn(),A.position={start:se(d.start),end:void 0},I.push(A)),this.stack.push(A)}function x(d){const I=this.stack.pop();I.value+=this.sliceSerialize(d),I.position.end=se(d.end)}function E(d){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(d.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,d),x.call(this,d))}function T(){this.data.atHardBreak=!0}function O(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function j(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function B(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function Q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function Z(d){const I=this.sliceSerialize(d),A=this.stack[this.stack.length-2];A.label=Dr(I),A.identifier=xe(I).toLowerCase()}function te(){const d=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=d.children:A.alt=I}function m(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function le(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase(),this.data.referenceType="full"}function he(d){this.data.characterReferenceType=d.type}function V(d){const I=this.sliceSerialize(d),A=this.data.characterReferenceType;let H;A?(H=Vt(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ne(I);const N=this.stack[this.stack.length-1];N.value+=H}function be(d){const I=this.stack.pop();I.position.end=se(d.end)}function re(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(d)}function fe(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(d)}function pe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function rn(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ke(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function an(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function Ze(d){return{type:"list",ordered:d.type==="listOrdered",start:null,spread:d._spread,children:[]}}function on(d){return{type:"listItem",spread:d._spread,checked:null,children:[]}}function sn(){return{type:"paragraph",children:[]}}function cn(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function fn(){return{type:"thematicBreak"}}}r(_u,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function tn(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?tn(e,i):Au(e,i)}}r(tn,"configure");function Au(e,n){let t;for(t in n)if(en.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(Au,"extension");function kt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}r(kt,"defaultOnError");var Lu={name:"tasklistCheck",tokenize:Fu};function Tl(){return{text:{91:Lu}}}r(Tl,"gfmTaskListItem");function Fu(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):t(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:Ru},n,t)(s):t(s)}}r(Fu,"tokenizeTasklistCheck");function Ru(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(Ru,"spaceThenNonSpace");function zl(){return{exit:{taskListCheckValueChecked:xt,taskListCheckValueUnchecked:xt,paragraph:Mu}}}r(zl,"gfmTaskListItemFromMarkdown");function _l(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bu}}}r(_l,"gfmTaskListItemToMarkdown");function xt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(xt,"exitCheck");function Mu(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const u=n.children;let l=-1,a;for(;++l<u.length;){const o=u[l];if(o.type==="paragraph"){a=o;break}}a===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(Mu,"exitParagraphWithTaskListItem");function Bu(e,n,t,i){const u=e.children[0],l=typeof e.checked=="boolean"&&u&&u.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);l&&o.move(a);let s=qt.listItem(e,n,t,{...i,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+a}r(c,"check")}r(Bu,"listItemWithTaskListItem");function Du(e){return e.length}r(Du,"defaultStringLength");function Pu(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Du,l=[],a=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const C=[],v=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Ou(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);v[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}C.push(_)}a[p]=C,o[p]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)l[f]=dt(i[f]);else{const C=dt(i);for(;++f<c;)l[f]=C}f=-1;const k=[],h=[];for(;++f<c;){const C=l[f];let v="",b="";C===99?(v=":",b=":"):C===108?v=":":C===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-b.length);const S=v+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=v.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}a.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<a.length;){const C=a[p],v=o[p];f=-1;const b=[];for(;++f<c;){const _=C[f]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[f]-(v[f]||0),y=l[f];y===114?S=" ".repeat(F):y===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
15
+ `)}r(Pu,"markdownTable");function Ou(e){return e==null?"":String(e)}r(Ou,"serialize");function dt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}r(dt,"toAlignment");function Al(){return{enter:{table:$u,tableData:bt,tableHeader:bt,tableRow:Nu},exit:{codeText:ju,table:Hu,tableData:Me,tableHeader:Me,tableRow:Me}}}r(Al,"gfmTableFromMarkdown");function $u(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}r($u,"enterTable");function Hu(e){this.exit(e),this.data.inTable=void 0}r(Hu,"exitTable");function Nu(e){this.enter({type:"tableRow",children:[]},e)}r(Nu,"enterRow");function Me(e){this.exit(e)}r(Me,"exit");function bt(e){this.enter({type:"tableCell",children:[]},e)}r(bt,"enterCell");function ju(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,qu));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(ju,"exitCodeText");function qu(e,n){return n==="|"?n:e}r(qu,"replace");function Ll(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
16
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:a,tableCell:s,tableRow:o}};function a(h,w,C,v){return c(p(h,C,v),h.align)}function o(h,w,C,v){const b=c([f(h,C,v)]);return b.slice(0,b.indexOf(`
17
+ `))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Pu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=qt.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(Ll,"gfmTableToMarkdown");var Vu=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){Uu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function Uu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(Uu,"addImplementation");function Qu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Qu,"gfmTableAlign");function Fl(){return{flow:{null:{name:"table",tokenize:Wu,resolveAll:Gu}}}}r(Fl,"gfmTable");function Wu(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),M(x)}function M(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),M):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,M,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),M(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(Wu,"tokenizeTable");function Gu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new Vu;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(yt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&yt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Qu(n.events,t))}return e}r(Gu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function yt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(yt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");var Ku={r:24,g:24,b:27},Xu={r:255,g:255,b:255};function nn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(nn,"hexToRgb");function Be(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(Be,"relativeLuminanceChannel");function De(e,n,t){return .2126*Be(e)+.7152*Be(n)+.0722*Be(t)}r(De,"relativeLuminance");function wt(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(wt,"contrastRatio");function Yu(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Yu,"isDarkMode");function Zu(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Zu,"composite");var Ju="#f8fafc",el="#111827",It=Ju,tl=el;function nl(e,n=.22){const t=nn(e);if(!t)return It;const i=Zu(t,Yu()?Ku:Xu,n),u=De(i.r,i.g,i.b),l=De(248,250,252),a=De(17,24,39);return wt(u,l)>=wt(u,a)?It:tl}r(nl,"pickTextColorForPillBg");function Rl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=Fn(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Ct(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=Tn(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=zn(e);if(u)return{kind:"user",userId:u.userId};const l=_n(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=An(e);return a?{kind:"routine",routineId:a.routineId}:null}r(Rl,"parseMentionChipHref");function rl(e){const n={};if(e.kind==="project"&&e.color){const t=ul(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=kn(e.appearance,e.agentId);n["--paperclip-mention-avatar-image"]=`url("${gn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(rl,"mentionChipInlineStyle");function Ml(e,n){il(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=rl(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Ml,"applyMentionChipDecoration");function il(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask"),e.style.removeProperty("--paperclip-mention-avatar-image")}r(il,"clearMentionChipDecoration");function ul(e){const n=nn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:nl(e)}:{}}r(ul,"projectMentionColors");export{cl as $,Sl as A,_e as B,qe as C,D,Kn as E,Il as F,z as G,ee as H,yl as I,Dn as J,U as K,dl as L,Se as M,Ne as N,Cl as O,wl as P,gl as Q,bl as R,sr as S,Yn as T,J as U,de as V,Pe as W,K as X,Pn as Y,kl as Z,Or as _,el as a,Ct as at,mr as b,Fl as c,zl as d,sl as et,_l as f,xe as g,Le as h,Rl as i,ml as it,X as j,vl as k,Al as l,El as m,il as n,fl as nt,Ju as o,Tl as p,L as q,rl as r,hl as rt,nl as s,Ml as t,pl as tt,Ll as u,Dr as v,ve as w,hr as x,qt as y,xl as z};