@inkeep/open-knowledge 0.49.0 → 0.49.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 (834) hide show
  1. package/dist/abnfDiagram-VRR7QNED-DWDzSKGM.mjs +2 -0
  2. package/dist/acp-harness-probe-O9BEMpdb.mjs +3 -0
  3. package/dist/alias-JE7RI5QX-BLuOrjl2.mjs +7 -0
  4. package/dist/alias-JE7RI5QX-VxEqWoTW.mjs +1 -0
  5. package/dist/arc-DXUbbcxK.mjs +2 -0
  6. package/dist/architecture-TIHT7OUA-Bl3hpxt3.mjs +1 -0
  7. package/dist/architectureDiagram-ZJ3FMSHR-HYEpY7T3.mjs +37 -0
  8. package/dist/array-BbgQa93P.mjs +2 -0
  9. package/dist/awk2-BBAGSFUB-ClUuupKf.mjs +21 -0
  10. package/dist/awk2-BBAGSFUB-Dq-YdAGA.mjs +1 -0
  11. package/dist/banner-Be20aAVc.mjs +3 -0
  12. package/dist/base64-4YMZCVJ5-CtkujsXK.mjs +6 -0
  13. package/dist/base64-4YMZCVJ5-dXz6vbV-.mjs +1 -0
  14. package/dist/basename-AA2KJYZQ-BhoOTAHi.mjs +1 -0
  15. package/dist/basename-AA2KJYZQ-CEdH80GO.mjs +6 -0
  16. package/dist/bash-IJWYRKFO-BDtU-lTC.mjs +6 -0
  17. package/dist/bash-IJWYRKFO-jaJEvAZe.mjs +1 -0
  18. package/dist/blockDiagram-677ZJIJ3-yJugV29e.mjs +133 -0
  19. package/dist/c4Diagram-LMCZKHZV-BFQQLctA.mjs +11 -0
  20. package/dist/cat-RDUMLXKC-D1H4LA3Z.mjs +6 -0
  21. package/dist/cat-RDUMLXKC-DFuXWxVq.mjs +1 -0
  22. package/dist/channel-Cjp51EO_.mjs +2 -0
  23. package/dist/chmod-SYMGL4JA-ByMUk130.mjs +1 -0
  24. package/dist/chmod-SYMGL4JA-lEGJICyB.mjs +8 -0
  25. package/dist/chokidar-dh8zokRd.mjs +4 -0
  26. package/dist/chunk-24IMIIXA-RjlBWJtr.mjs +2 -0
  27. package/dist/chunk-2Q5K7J3B-Ck8oGqYt.mjs +2 -0
  28. package/dist/chunk-2TRDZQLB-AH-I_6yN.mjs +18 -0
  29. package/dist/chunk-2TRDZQLB-ZoW1EBbl.mjs +18 -0
  30. package/dist/chunk-32BRIVSS-Dwq69mnI.mjs +2 -0
  31. package/dist/chunk-3BS5SKQH-DpdUzS0R.mjs +140 -0
  32. package/dist/chunk-3H6UQG3A-BWCaN15a.mjs +9 -0
  33. package/dist/chunk-3THT3N7L-DYkTD3HD.mjs +2 -0
  34. package/dist/chunk-3ZUFRYJ4-H1A1hWy1.mjs +2 -0
  35. package/dist/chunk-3ZUFRYJ4-ekaYB_vG.mjs +2 -0
  36. package/dist/chunk-44UOCSGV-D1FZHMOP.mjs +2 -0
  37. package/dist/chunk-4GTNDTRF-Cx89i2Y1.mjs +8 -0
  38. package/dist/chunk-4HHKTUW3-Dk2l1S8J.mjs +3 -0
  39. package/dist/chunk-4Q4SM6WR-CGuvvBWe.mjs +5 -0
  40. package/dist/chunk-52WLFC77-Cn-qt8h-.mjs +11 -0
  41. package/dist/chunk-55VFSPNA-D2U7n2ka.mjs +3 -0
  42. package/dist/chunk-5FCAYU7R-DszODYLe.mjs +2 -0
  43. package/dist/chunk-5HE753X5-DDnyF29o.mjs +2 -0
  44. package/dist/chunk-5JV3BV7I-BkeVAZnj.mjs +2 -0
  45. package/dist/chunk-5QMZ5MUS-C5NTf5Rj.mjs +5 -0
  46. package/dist/chunk-5QVNJEHU-DS9zA_YV.mjs +9 -0
  47. package/dist/chunk-5TONJI2A-CzUNHQPX.mjs +3 -0
  48. package/dist/chunk-5V6VZH6T-DBFenjXz.mjs +2 -0
  49. package/dist/chunk-5VM5RSS4-C8vNNqW0.mjs +16 -0
  50. package/dist/chunk-62RKD26F-C4qK_fA-.mjs +21 -0
  51. package/dist/chunk-64BAICW3-BupSxcu5.mjs +2 -0
  52. package/dist/chunk-6Z5SFZXK-Cz0C4bhB.mjs +288 -0
  53. package/dist/chunk-74CEPOFO-BUVWiXkJ.mjs +23 -0
  54. package/dist/chunk-74CEPOFO-BYrCYxKO.mjs +23 -0
  55. package/dist/chunk-7BUUIJ7U-D7hE25H9.mjs +2 -0
  56. package/dist/chunk-7L36YK2X-CGwYuotX.mjs +3 -0
  57. package/dist/chunk-7L36YK2X-DAp-upAs.mjs +3 -0
  58. package/dist/chunk-7TSDKFEO-CE_P23TY.mjs +2 -0
  59. package/dist/chunk-7TSDKFEO-DBB10vPw.mjs +2 -0
  60. package/dist/chunk-A4HU7SVR-BZJ8xDMo.mjs +3 -0
  61. package/dist/chunk-A4JSPFCI-Dej71yGP.mjs +7 -0
  62. package/dist/chunk-A5O5YHGN-CczwCZ4d.mjs +2 -0
  63. package/dist/chunk-A65PWWJC-C-0S-s_f.mjs +3 -0
  64. package/dist/chunk-A7A2DBEE-DCXJ1xmx.mjs +7 -0
  65. package/dist/chunk-A7ICOL4V-BQZ9JZ1A.mjs +14 -0
  66. package/dist/chunk-ALLTKNUZ-D2ZOfcEz.mjs +6 -0
  67. package/dist/chunk-APT7OOP2-D-DaFB7K.mjs +2 -0
  68. package/dist/chunk-B74TABJS-BJwhrR8a.mjs +34 -0
  69. package/dist/chunk-BIQX33UG-Bmho6v3L.mjs +2 -0
  70. package/dist/chunk-C7G6YPKG-BAX_SClW.mjs +2 -0
  71. package/dist/chunk-CQNSW5MT-FekKjn0i.mjs +2 -0
  72. package/dist/chunk-CWQS3NFK-CcBWgb8o.mjs +2 -0
  73. package/dist/chunk-CYSBUYHQ-BftsYwRW.mjs +2 -0
  74. package/dist/chunk-D4J545R4-Br_5qOnE.mjs +12 -0
  75. package/dist/chunk-D6CWQ5DW-3AWPydfx.mjs +6 -0
  76. package/dist/chunk-D7MEQ3VN-Df6An2jd.mjs +5 -0
  77. package/dist/chunk-DBKNVD4L-B3hX287s.mjs +10 -0
  78. package/dist/chunk-DBKNVD4L-DNQP2COw.mjs +10 -0
  79. package/dist/chunk-DCAAORBQ-BDLVpBG2.mjs +2 -0
  80. package/dist/chunk-DHbaKqs-.mjs +1 -0
  81. package/dist/chunk-DXB73IDG-BBwE27jK.mjs +2 -0
  82. package/dist/chunk-EEXR5ZDP-CE452hsE.mjs +3 -0
  83. package/dist/chunk-EEXR5ZDP-Df-EPnbj.mjs +3 -0
  84. package/dist/chunk-EIZGF4BS-86nrMkyt.mjs +9 -0
  85. package/dist/chunk-EIZGF4BS-CSFp0aUh.mjs +9 -0
  86. package/dist/chunk-EMLP6XTP-C2yfLzVC.mjs +2 -0
  87. package/dist/chunk-EX3LRPZG-Chp9b-Lc.mjs +232 -0
  88. package/dist/chunk-F23WWYKW-qKke1WqP.mjs +17 -0
  89. package/dist/chunk-FWX5IMBZ-Cn1xNcn5.mjs +2 -0
  90. package/dist/chunk-GCTKCWKD-D0obXRun.mjs +4 -0
  91. package/dist/chunk-GFQRA5P5-XqPO4cim.mjs +3 -0
  92. package/dist/chunk-GOV5EKKI-CDovwI7Z.mjs +10 -0
  93. package/dist/chunk-GXVXFKBA-D-BGCybM.mjs +6 -0
  94. package/dist/chunk-HDQ56CKY-CI8IkhlS.mjs +16 -0
  95. package/dist/chunk-HDQ56CKY-Pa-7c4rC.mjs +16 -0
  96. package/dist/chunk-HJQJAYMS-BHzb4Ncl.mjs +3 -0
  97. package/dist/chunk-HJWBQKYG-B-KESSoV.mjs +6 -0
  98. package/dist/chunk-HKLCLINH-Bgw53oZd.mjs +63 -0
  99. package/dist/chunk-HL6NGDO2-CftrHAlX.mjs +24 -0
  100. package/dist/chunk-HOUHSVGY-C3h3PdhC.mjs +2 -0
  101. package/dist/chunk-HWKDQ44K-CGcvROg-.mjs +4 -0
  102. package/dist/chunk-HWKDQ44K-D3ZbaPl8.mjs +4 -0
  103. package/dist/chunk-I57KEIP3-_HYA-njf.mjs +11 -0
  104. package/dist/chunk-I57KEIP3-iiTO2OC-.mjs +11 -0
  105. package/dist/chunk-ICXQ74PX-DbJy3VdO.mjs +3 -0
  106. package/dist/chunk-IPJHKYVM-3ANqAo3C.mjs +2 -0
  107. package/dist/chunk-JG7HCLWE-lUInQ_44.mjs +3 -0
  108. package/dist/chunk-JVPRLUMK-FzUEFQw9.mjs +8 -0
  109. package/dist/chunk-JWPE2WC7-iDbhfJR-.mjs +2 -0
  110. package/dist/chunk-K6LIBGJA-BXxOXTjI.mjs +12 -0
  111. package/dist/chunk-KEIR6QF5-BLwvtFl6.mjs +176 -0
  112. package/dist/chunk-KMEYNNUA-1KiUKBQV.mjs +16 -0
  113. package/dist/chunk-KRBPSX3W-DeaaVEij.mjs +6 -0
  114. package/dist/chunk-KRBPSX3W-YDdgrCmf.mjs +6 -0
  115. package/dist/chunk-LL3S3NLB-D0lLKwVi.mjs +2 -0
  116. package/dist/chunk-LTZRCH7N-DpPs5vSq.mjs +32 -0
  117. package/dist/chunk-LWEGUNWT-DOK-XWMd.mjs +8 -0
  118. package/dist/chunk-MDDMCKUK-CTA6qEdN.mjs +7 -0
  119. package/dist/chunk-MDLLFABN-B2tA3LLA.mjs +73 -0
  120. package/dist/chunk-MHTUABJP-CrR3MfDw.mjs +9 -0
  121. package/dist/chunk-MIZPJHVH-d3bhRfh4.mjs +8 -0
  122. package/dist/chunk-MLXIYONF-C0S_CKb1.mjs +16 -0
  123. package/dist/chunk-MOJQB5TN-CUt4IiNv.mjs +89 -0
  124. package/dist/chunk-MOZMSUNE-DCxwDKn7.mjs +2 -0
  125. package/dist/chunk-MYE6AGBJ-CMoRJzYM.mjs +17 -0
  126. package/dist/chunk-NAERJDUW-Ck-SZ2Ps.mjs +9 -0
  127. package/dist/chunk-NCNPKYJZ-BxqfYu6d.mjs +3 -0
  128. package/dist/chunk-NUYSJFDK-DfaBzW-k.mjs +8 -0
  129. package/dist/chunk-OCLXQMOG-DC3689MV.mjs +7 -0
  130. package/dist/chunk-OCS6LSEM-BY3_3dNt.mjs +14 -0
  131. package/dist/chunk-OGEWGWER-DgPAesMA.mjs +2 -0
  132. package/dist/chunk-OJDRYQWQ-B9KRyRFZ.mjs +2 -0
  133. package/dist/chunk-OSBZ3O6U-BVpvamr7.mjs +2 -0
  134. package/dist/chunk-PBXLG62G-C12xrBbG.mjs +9 -0
  135. package/dist/chunk-PP6PSHAB-tlM6YKyg.mjs +5 -0
  136. package/dist/chunk-PUDLZKDR-CIWYIjrF.mjs +157 -0
  137. package/dist/chunk-PXTK5WE2-DNbfUrIy.mjs +22 -0
  138. package/dist/chunk-PXTK5WE2-e9kxtsgu.mjs +22 -0
  139. package/dist/chunk-PYSFUGCK-DqdcBhD4.mjs +11 -0
  140. package/dist/chunk-Q4XR5HBZ-jWirJQsj.mjs +71 -0
  141. package/dist/chunk-QBLGF6JB-hMrl9lGc.mjs +2 -0
  142. package/dist/chunk-QCDB2VPH-Cv7mIZWG.mjs +7 -0
  143. package/dist/chunk-QJ7O6ZN3-BRN048sn.mjs +6 -0
  144. package/dist/chunk-R6QSAL5T-CxzbKF59.mjs +2 -0
  145. package/dist/chunk-R6VWJ2ZL-DmUcUF0z.mjs +2 -0
  146. package/dist/chunk-R7FJI6CG-bmCS8vOS.mjs +2 -0
  147. package/dist/chunk-RPNGRAAP-BTpXCNpb.mjs +8 -0
  148. package/dist/chunk-RYQCIY6F-Dt7I2-Oy.mjs +2 -0
  149. package/dist/chunk-SDNKECQQ-BNRfy-15.mjs +6 -0
  150. package/dist/chunk-SNN4IESC-CZPQ88bY.mjs +2 -0
  151. package/dist/chunk-SNN4IESC-oXVGT9qo.mjs +2 -0
  152. package/dist/chunk-T56QNPHK-lY6QjpkL.mjs +15 -0
  153. package/dist/chunk-TLSUDHID-BP7dARSe.mjs +7 -0
  154. package/dist/chunk-TOMNU26N-BFsBBT9j.mjs +5 -0
  155. package/dist/chunk-TP4BZANS-C6KGxaUf.mjs +21 -0
  156. package/dist/chunk-TXBZCHCQ-DxPX5PCF.mjs +6 -0
  157. package/dist/chunk-U6XO7XAA-BHty90wb.mjs +3 -0
  158. package/dist/chunk-V5MWI2OL-DApVl_z4.mjs +5 -0
  159. package/dist/chunk-V7JOEXUC-DNM56rwe.mjs +207 -0
  160. package/dist/chunk-V7TAPXDL-CrGsULIH.mjs +28 -0
  161. package/dist/chunk-VAUOI2AC-BdotBBDE.mjs +2 -0
  162. package/dist/chunk-VJFXDYWH-DXnppZsu.mjs +11 -0
  163. package/dist/chunk-VOBGTVA6-_4QbVbSJ.mjs +7 -0
  164. package/dist/chunk-VR4S4FIN-RUJ5PgRH.mjs +2 -0
  165. package/dist/chunk-VYOJP4TV-DG_cm0JM.mjs +14 -0
  166. package/dist/chunk-WKFATFPP-DygaP6No.mjs +5 -0
  167. package/dist/chunk-WYO6CB5R-DN1R0VLx.mjs +130 -0
  168. package/dist/chunk-X2AJGDEF-BXjUENXL.mjs +2 -0
  169. package/dist/chunk-X2AJGDEF-ivzQBp_p.mjs +2 -0
  170. package/dist/chunk-XKQRETAK-CYJSOFLN.mjs +2 -0
  171. package/dist/chunk-XKWWSDBF-BTj39eCO.mjs +37 -0
  172. package/dist/chunk-XVDPCNWR-BSVT7Ttz.mjs +12 -0
  173. package/dist/chunk-XXDRQBXY-D1gFTzjI.mjs +2 -0
  174. package/dist/chunk-Y2CYZVJY-acXC9Sbb.mjs +2 -0
  175. package/dist/chunk-YMMW5UAP-CE-EQ2Is.mjs +33 -0
  176. package/dist/chunk-YOTPTUD7-63S9b4Z2.mjs +2 -0
  177. package/dist/chunk-YTNYSM6T-DFPh_641.mjs +12 -0
  178. package/dist/chunk-YULBWSET-B6FKJjk9.mjs +14 -0
  179. package/dist/chunk-Z6LRHWXI-BCgawaNX.mjs +14 -0
  180. package/dist/chunk-Z7JVV2SM-CTUpikzI.mjs +12 -0
  181. package/dist/chunk-ZGVPDNZ5-CyyHBEs2.mjs +63 -0
  182. package/dist/chunk-ZIRB5QZD-K23GvNu-.mjs +39 -0
  183. package/dist/chunk-ZZO3UDB3-MiEiJy8J.mjs +100 -0
  184. package/dist/classDiagram-OUVF2IWQ-0ApI9cDS.mjs +2 -0
  185. package/dist/classDiagram-v2-EOCWNBFH-DfQYJWNe.mjs +2 -0
  186. package/dist/clear-5CZ5X4YR-9EZyt4MH.mjs +2 -0
  187. package/dist/clear-5CZ5X4YR-BICGLF_r.mjs +1 -0
  188. package/dist/cli.mjs +22 -22
  189. package/dist/column-WLPMMSTS-D0I9TpQ2.mjs +1 -0
  190. package/dist/column-WLPMMSTS-Do8HgL6q.mjs +8 -0
  191. package/dist/comm-5SLSESQG-0igXzBnl.mjs +12 -0
  192. package/dist/comm-5SLSESQG-D2Rs9Jmo.mjs +1 -0
  193. package/dist/constants-C3InsrBS.mjs +2 -0
  194. package/dist/cose-bilkent-JH36ORCC-B1gjUwU3.mjs +2 -0
  195. package/dist/cp-XOYR4ABJ-CpnwcT2f.mjs +8 -0
  196. package/dist/cp-XOYR4ABJ-OfwEEWhR.mjs +1 -0
  197. package/dist/curl-47BFPSFW-Ko1BcK_R.mjs +26 -0
  198. package/dist/cut-OPC3VAGB-BAhJz0Qh.mjs +1 -0
  199. package/dist/cut-OPC3VAGB-nJAw1cEp.mjs +6 -0
  200. package/dist/cynefin-VYW2F7L2-C-aICrN-.mjs +1 -0
  201. package/dist/cynefinDiagram-TSTJHNR4-CoESbhp4.mjs +63 -0
  202. package/dist/cytoscape.esm-D6l9Lhue.mjs +332 -0
  203. package/dist/dagre-BkPA5x_w.mjs +2 -0
  204. package/dist/dagre-VKFMJZFB-BhCtWAkc.mjs +5 -0
  205. package/dist/date-DD7FVA2V-BGJ9-l0O.mjs +1 -0
  206. package/dist/date-DD7FVA2V-W_sbdO4n.mjs +5 -0
  207. package/dist/defaultLocale-DN4qDyCE.mjs +2 -0
  208. package/dist/diagram-FQU43EPY-BdshpOzp.mjs +4 -0
  209. package/dist/diagram-G47NLZAW-Lw1fB9_w.mjs +25 -0
  210. package/dist/diagram-NH7WQ7WH-DnzwFaQq.mjs +25 -0
  211. package/dist/diagram-OA4YK3LP-BXU-URV1.mjs +31 -0
  212. package/dist/diagram-WEI45ONY-CD_Zpcvk.mjs +42 -0
  213. package/dist/diff-HJF2MPDN-CQAaA8lM.mjs +1 -0
  214. package/dist/diff-HJF2MPDN-EjmLU95d.mjs +7 -0
  215. package/dist/dirname-LEMTZZFS-BG01-R4_.mjs +1 -0
  216. package/dist/dirname-LEMTZZFS-Dg3ijqjM.mjs +5 -0
  217. package/dist/dist-CMZz8-Ge.mjs +2 -0
  218. package/dist/du-WO2ENHXQ-jqWYqk_n.mjs +8 -0
  219. package/dist/du-WO2ENHXQ-oQRVbsEF.mjs +1 -0
  220. package/dist/ebnfDiagram-CCIWWBDH-D-647A1u.mjs +2 -0
  221. package/dist/echo-O45JWWI2-BPosfKdD.mjs +1 -0
  222. package/dist/echo-O45JWWI2-gk6mEMAU.mjs +4 -0
  223. package/dist/env-5EPCWSXR-BU5zTNDV.mjs +9 -0
  224. package/dist/env-5EPCWSXR-DygzVPiG.mjs +1 -0
  225. package/dist/erDiagram-Q63AITRT-DviwoNdm.mjs +86 -0
  226. package/dist/eventmodeling-45OFAUF4-CJqJ2hnR.mjs +1 -0
  227. package/dist/execAsync-BLKHjfg7.mjs +2 -0
  228. package/dist/execAsync-C5ympCkf.mjs +2 -0
  229. package/dist/expand-DTNXU4LQ-D2bEx87V.mjs +11 -0
  230. package/dist/expand-DTNXU4LQ-XU44HrWp.mjs +1 -0
  231. package/dist/expr-YYCVMXE3-DI2glLwn.mjs +1 -0
  232. package/dist/expr-YYCVMXE3-wI0boF3e.mjs +5 -0
  233. package/dist/file-IGDTDPLG-DkYMcmTl.mjs +24 -0
  234. package/dist/file-IGDTDPLG-sPfWVy9T.mjs +1 -0
  235. package/dist/find-DH2ALKQS-B6bMjuwo.mjs +12 -0
  236. package/dist/find-DH2ALKQS-CEKaRkgJ.mjs +1 -0
  237. package/dist/flag-coverage-6JEX67RU-QmoBigPs.mjs +2 -0
  238. package/dist/flowDiagram-23GEKE2U-Dhi3SNHm.mjs +1 -0
  239. package/dist/fold-LDSORVYE-Dhx0k6vg.mjs +12 -0
  240. package/dist/fold-LDSORVYE-DumfsCQO.mjs +1 -0
  241. package/dist/fs-traced-DVpoNaQJ.mjs +12 -0
  242. package/dist/fs-traced-_QGcVmcb.mjs +1 -0
  243. package/dist/ganttDiagram-NO4QXBWP-DnN5cTGV.mjs +293 -0
  244. package/dist/getMachineId-bsd-B_NuwbXS.mjs +2 -0
  245. package/dist/getMachineId-bsd-neTWr-l3.mjs +2 -0
  246. package/dist/getMachineId-darwin-BP4aVKkL.mjs +3 -0
  247. package/dist/getMachineId-darwin-DKDl-xYO.mjs +3 -0
  248. package/dist/getMachineId-linux-Bexb2iRT.mjs +2 -0
  249. package/dist/getMachineId-linux-YTb5epZX.mjs +2 -0
  250. package/dist/getMachineId-unsupported-Ddv20ynQ.mjs +2 -0
  251. package/dist/getMachineId-unsupported-DdwXS_Q3.mjs +2 -0
  252. package/dist/getMachineId-win-BNx0EbPq.mjs +2 -0
  253. package/dist/getMachineId-win-D8cNuBNk.mjs +2 -0
  254. package/dist/git-handle-DBSzQutT.mjs +1 -0
  255. package/dist/git-handle-r3d7s3VF.mjs +10 -0
  256. package/dist/gitGraph-TEB2WS4Q-_V7TMkJv.mjs +1 -0
  257. package/dist/gitGraphDiagram-IHSO6WYX-Bs2N855t.mjs +107 -0
  258. package/dist/graphlib-DXQPHTiH.mjs +2 -0
  259. package/dist/grep-2HUTXO5U-9G7xEEms.mjs +9 -0
  260. package/dist/grep-2HUTXO5U-DG5Ulinc.mjs +1 -0
  261. package/dist/gzip-AQXSGOVS-BcGYw5wM.mjs +32 -0
  262. package/dist/gzip-AQXSGOVS-D6UYmM0C.mjs +1 -0
  263. package/dist/head-HT2B6D2J-B5ybc-my.mjs +2 -0
  264. package/dist/head-HT2B6D2J-CHIR76LI.mjs +1 -0
  265. package/dist/help-VVWX7SA5-Bb8T3djf.mjs +16 -0
  266. package/dist/help-VVWX7SA5-BbK0QLPX.mjs +1 -0
  267. package/dist/history-J4QRNGRO-5XgHJL_Q.mjs +1 -0
  268. package/dist/history-J4QRNGRO-DesXbqi2.mjs +3 -0
  269. package/dist/hostname-BK6HG2DE-Clwz043m.mjs +1 -0
  270. package/dist/hostname-BK6HG2DE-DTiGP5th.mjs +3 -0
  271. package/dist/html-to-markdown-TFCECAGV-BsVwcc4T.mjs +1 -0
  272. package/dist/html-to-markdown-TFCECAGV-DLUGt6pW.mjs +73 -0
  273. package/dist/index.d.mts +6867 -242
  274. package/dist/index.mjs +1521 -1
  275. package/dist/info-DKCQHKI2-DIsEz1l_.mjs +1 -0
  276. package/dist/infoDiagram-FWYZ7A6U-CD5T72Pd.mjs +3 -0
  277. package/dist/init-Cg1MczGq.mjs +638 -0
  278. package/dist/init-D8OKme52.mjs +2 -0
  279. package/dist/init-DnqdKHDS.mjs +1 -0
  280. package/dist/ishikawaDiagram-FXEZZL3T-CzHEtbdq.mjs +71 -0
  281. package/dist/join-GG2LDHE5-7k4Syl20.mjs +14 -0
  282. package/dist/join-GG2LDHE5-BIH_-8vD.mjs +1 -0
  283. package/dist/journeyDiagram-5HDEW3XC-BywkQV2b.mjs +140 -0
  284. package/dist/jq-LYZFFBZB-BZ4XP29I.mjs +14 -0
  285. package/dist/jq-LYZFFBZB-Dlyx6Y7w.mjs +1 -0
  286. package/dist/js-exec-VXN6TZ7U-BrugyKqi.mjs +97 -0
  287. package/dist/js-exec-VXN6TZ7U-Ds5SsewK.mjs +97 -0
  288. package/dist/kanban-definition-HUTT4EX6-DIgH0tMg.mjs +90 -0
  289. package/dist/launch-json-removal-DFF5AXyX.mjs +2 -0
  290. package/dist/lib-B2tLN_O_.mjs +2 -0
  291. package/dist/lib-DuDqLKFD.mjs +195 -0
  292. package/dist/lib-ozx_WsjS.mjs +2 -0
  293. package/dist/libesm-qUf-Au5c.mjs +14 -0
  294. package/dist/line-eTDW_zUy.mjs +2 -0
  295. package/dist/linear-Cn1royVQ.mjs +2 -0
  296. package/dist/ln-4TRFBYAT-B0hi-FAf.mjs +1 -0
  297. package/dist/ln-4TRFBYAT-DGrhTL40.mjs +9 -0
  298. package/dist/loader-4hXM3EID.mjs +1 -0
  299. package/dist/loader-CJynt8EV.mjs +2 -0
  300. package/dist/logger-DFxEUjvj.mjs +39 -0
  301. package/dist/ls-KSXFZCWH-C_kbnNdU.mjs +1 -0
  302. package/dist/ls-KSXFZCWH-GOWXktO9.mjs +28 -0
  303. package/dist/lzma-CD6C2vYw.mjs +2 -0
  304. package/dist/lzma-CG6o9sq-.mjs +2 -0
  305. package/dist/map-bDB3k8vA.mjs +2 -0
  306. package/dist/md-manager-BbSzMHHE.mjs +2 -0
  307. package/dist/md5sum-INMIK4DX-BlgGpdCD.mjs +2 -0
  308. package/dist/md5sum-INMIK4DX-DGvi_A-E.mjs +1 -0
  309. package/dist/mermaid-parser.core-uwQfwzUX.mjs +4 -0
  310. package/dist/mermaid.core-BgpKViY0.mjs +16 -0
  311. package/dist/mindmap-definition-LN4V7U3C-H3p7uT-G.mjs +97 -0
  312. package/dist/mkdir-TDEMSB6C-BVcgITXm.mjs +7 -0
  313. package/dist/mkdir-TDEMSB6C-CMOt1jIT.mjs +1 -0
  314. package/dist/mv-Z6MORUFL-CqyCV_Ze.mjs +1 -0
  315. package/dist/mv-Z6MORUFL-El0zMsEA.mjs +7 -0
  316. package/dist/nl-U5YJDM32-BO1kUpkn.mjs +1 -0
  317. package/dist/nl-U5YJDM32-Y_hGSMac.mjs +17 -0
  318. package/dist/od-VJEF2UR5-CueTpZ68.mjs +5 -0
  319. package/dist/od-VJEF2UR5-DxUGtlve.mjs +1 -0
  320. package/dist/open-browser-BgReR_t5.mjs +2 -0
  321. package/dist/ordinal-BFK2XMXf.mjs +2 -0
  322. package/dist/packet-7NZHBO7P-B64OS2eJ.mjs +1 -0
  323. package/dist/parse-worker.d.mts +6626 -1
  324. package/dist/parse-worker.mjs +1 -1
  325. package/dist/paste-7N6AFSDS-BJHZcYXH.mjs +1 -0
  326. package/dist/paste-7N6AFSDS-BnqApCW_.mjs +8 -0
  327. package/dist/path-CIoCsClp.mjs +2 -0
  328. package/dist/pegDiagram-2B236MQR-PBU61CXk.mjs +2 -0
  329. package/dist/pie-RZYD4A2V-B313HDTA.mjs +1 -0
  330. package/dist/pieDiagram-ENE6RG2P-ClZWrO6e.mjs +40 -0
  331. package/dist/preview-BnqROnAm.mjs +1 -0
  332. package/dist/preview-Dnob-x-p.mjs +3 -0
  333. package/dist/printf-CX64KX2P-841sNxew.mjs +1 -0
  334. package/dist/printf-CX64KX2P-B_vWcqAL.mjs +15 -0
  335. package/dist/public/assets/ActivityModeContent-H-D1VX7m.js +1 -0
  336. package/dist/public/assets/AgentDiffPane-B-gK5PsE.js +2 -0
  337. package/dist/public/assets/ChangedOutsideBadge-D741mWRP.js +1 -0
  338. package/dist/public/assets/DocumentContext-CIVf31K9.js +38 -0
  339. package/dist/public/assets/FeedbackForm-YmqhKCxZ.js +1 -0
  340. package/dist/public/assets/ImportSkillDialog-DQBS4ypC.js +1 -0
  341. package/dist/public/assets/ManagedArtifactProperties-CE_UbtEZ.js +1 -0
  342. package/dist/public/assets/ManagedArtifactProperties-CawqG1nH.js +2 -0
  343. package/dist/public/assets/SessionsHost-Bp7gQA1o.js +2 -0
  344. package/dist/public/assets/SettingsDialogBody-BLpulm10.js +12 -0
  345. package/dist/public/assets/SkillToolbarControls-oKXEehFt.js +1 -0
  346. package/dist/public/assets/SourceEditor-C6NdTjpn.js +1 -0
  347. package/dist/public/assets/TerminalWindowApp-DDnvJYMu.js +1 -0
  348. package/dist/public/assets/ThreadView-CGjBIs53.js +10 -0
  349. package/dist/public/assets/TimelineDiffPane-BWfU5B2x.js +2 -0
  350. package/dist/public/assets/agent-diff-store-CwO6mhOq.js +1 -0
  351. package/dist/public/assets/auth-state-cache-BBgW3LTD.js +11 -0
  352. package/dist/public/assets/comment-chips-h8GZFVHH.js +5 -0
  353. package/dist/public/assets/follow-file-CJHokzM7.js +1 -0
  354. package/dist/public/assets/index-B6VepqFk.js +2097 -0
  355. package/dist/public/assets/selection-context-iNNNmmJS.js +4 -0
  356. package/dist/public/assets/skill-actions-8q8e7e5S.js +2 -0
  357. package/dist/public/assets/typing-burst-detector-D_ygX_hf.js +8 -0
  358. package/dist/public/assets/use-activity-panel-pkBl8bMj.js +1 -0
  359. package/dist/public/assets/use-open-skill-Mk41LRxd.js +1 -0
  360. package/dist/public/assets/use-skill-directory-Dzvfx2id.js +1 -0
  361. package/dist/public/assets/use-timeline-entry-diff-Dk10Z55V.js +6 -0
  362. package/dist/public/index.html +13 -13
  363. package/dist/pwd-D4OZ7N27-C41v1g3B.mjs +1 -0
  364. package/dist/pwd-D4OZ7N27-NYST_A3S.mjs +3 -0
  365. package/dist/python3-DNGS4G3E-DaBJervu.mjs +12 -0
  366. package/dist/python3-DNGS4G3E-OzxoFG34.mjs +12 -0
  367. package/dist/quadrantDiagram-ABIIQ3AL-Z4PbVL1N.mjs +8 -0
  368. package/dist/radar-I7S5WNFK-BdiwGd2_.mjs +1 -0
  369. package/dist/railroad-3IZDKUUU-O4nBw7jb.mjs +1 -0
  370. package/dist/railroad-abnf-AHOZXSZD-CDaO5Dcu.mjs +1 -0
  371. package/dist/railroad-ebnf-EBAXGLYW-CS4l_gpR.mjs +1 -0
  372. package/dist/railroad-peg-LSFZ7HO6-bbLhALeS.mjs +1 -0
  373. package/dist/railroadDiagram-RFXS5EU6-ZSRYpY_p.mjs +2 -0
  374. package/dist/readlink-MI4GCHJF-CQlQ03aa.mjs +1 -0
  375. package/dist/readlink-MI4GCHJF-Dl1Uxmrf.mjs +6 -0
  376. package/dist/repair-launch-json-DF-pHfel.mjs +2 -0
  377. package/dist/repair-mcp-configs-Cr9jCNwk.mjs +2 -0
  378. package/dist/repair-skills-DADI6iaT.mjs +4 -0
  379. package/dist/repair-skills-DKwDAoHc.mjs +1 -0
  380. package/dist/requirementDiagram-TGXJPOKE-H6OWjjJE.mjs +85 -0
  381. package/dist/rev-XOSYPP45-BYe7prl1.mjs +1 -0
  382. package/dist/rev-XOSYPP45-D6eJxPKd.mjs +7 -0
  383. package/dist/rg-XNF3R3II-CmxxmmUf.mjs +1 -0
  384. package/dist/rg-XNF3R3II-vKB7djPZ.mjs +33 -0
  385. package/dist/rm-RTZG23RL-Bl5s9ltJ.mjs +1 -0
  386. package/dist/rm-RTZG23RL-sCMTtbxP.mjs +8 -0
  387. package/dist/rmdir-XTQXT7RK-C1ccje2_.mjs +1 -0
  388. package/dist/rmdir-XTQXT7RK-DZfv6Zfz.mjs +14 -0
  389. package/dist/rough.cjs-BGkc0Naf.mjs +2 -0
  390. package/dist/sankeyDiagram-HTMAVEWB-CtBVJJox.mjs +41 -0
  391. package/dist/sed-JAPPVBEU-C7wh6RxT.mjs +100 -0
  392. package/dist/sed-JAPPVBEU-D9bYEx2I.mjs +1 -0
  393. package/dist/seq-RN5ZUASB-CFySG-xk.mjs +1 -0
  394. package/dist/seq-RN5ZUASB-R5HjEVux.mjs +7 -0
  395. package/dist/sequenceDiagram-DBY2YBRQ-DDLm4Ak_.mjs +163 -0
  396. package/dist/server-lock-U8YDpJpq.mjs +1 -0
  397. package/dist/server-lock-aXnDVUI8.mjs +2 -0
  398. package/dist/sha1sum-VJPNLNU6-DfzpfxJ-.mjs +2 -0
  399. package/dist/sha1sum-VJPNLNU6-DgLJCjAg.mjs +1 -0
  400. package/dist/sha256sum-PI32XWXY-DZ42pgY3.mjs +1 -0
  401. package/dist/sha256sum-PI32XWXY-DrKtnAPK.mjs +2 -0
  402. package/dist/sizeCapture-X5ZJPWSS-Izaz24Pi.mjs +2 -0
  403. package/dist/skill-teardown-onVYT1VF.mjs +2 -0
  404. package/dist/sleep-VZFPZFWA-5fZFI3Vy.mjs +1 -0
  405. package/dist/sleep-VZFPZFWA-CBARUnrz.mjs +10 -0
  406. package/dist/sort-DCNRDA7U-RFl0HYBr.mjs +1 -0
  407. package/dist/sort-DCNRDA7U-vT57Mw8o.mjs +16 -0
  408. package/dist/split-SITCSYCZ-BdATfTxU.mjs +1 -0
  409. package/dist/split-SITCSYCZ-Ci_IfVPT.mjs +17 -0
  410. package/dist/sqlite3-TE5AIOTF-BIRMe0xz.mjs +1 -0
  411. package/dist/sqlite3-TE5AIOTF-BhXSdz7U.mjs +37 -0
  412. package/dist/src-BPVU4Y0o.mjs +2 -0
  413. package/dist/src-BmS3oGY4.mjs +1 -0
  414. package/dist/src-Dt5dAyFQ.mjs +2032 -0
  415. package/dist/src-TKCctdpc.mjs +348 -0
  416. package/dist/src-cRpQSbXB.mjs +1 -0
  417. package/dist/src-pUQbXiSN.mjs +20 -0
  418. package/dist/start-DQdc8wXO.mjs +4 -0
  419. package/dist/start-XIVqnuqY.mjs +1 -0
  420. package/dist/stat-BT5A227F-CEZPXJ9_.mjs +9 -0
  421. package/dist/stat-BT5A227F-Dd-OyLQQ.mjs +1 -0
  422. package/dist/stateDiagram-2N3HPSRC-pAn2bDnn.mjs +2 -0
  423. package/dist/stateDiagram-v2-6OUMAXLB-DCmVVpGm.mjs +2 -0
  424. package/dist/strings-7PLOGTPD-CiVw0Uh4.mjs +14 -0
  425. package/dist/strings-7PLOGTPD-v3qEuUEm.mjs +1 -0
  426. package/dist/swimlanes-5IMT3BWC-nSsjdSnj.mjs +2 -0
  427. package/dist/swimlanesDiagram-G3AALYLV-CdQlHesp.mjs +9 -0
  428. package/dist/tac-SJGXQ4T2-BL4Xd7y6.mjs +9 -0
  429. package/dist/tac-SJGXQ4T2-DphHfCAY.mjs +1 -0
  430. package/dist/tail-S5ULNTJU-Cfa1pDQZ.mjs +2 -0
  431. package/dist/tail-S5ULNTJU-D6qRQZwV.mjs +1 -0
  432. package/dist/tar-MZQD7NO4-HJsWmzu9.mjs +63 -0
  433. package/dist/tar-MZQD7NO4-oAQoyk28.mjs +1 -0
  434. package/dist/tee-O7VXZDCO-D95l5L5Z.mjs +3 -0
  435. package/dist/tee-O7VXZDCO-odVO6Wjw.mjs +1 -0
  436. package/dist/time-DEUO3QV2-CviQF55F.mjs +1 -0
  437. package/dist/time-DEUO3QV2-DwnT4FOS.mjs +14 -0
  438. package/dist/timeline-definition-FHXFAJF6-CnTXJoEq.mjs +121 -0
  439. package/dist/timeout-VRKMCG72-DFU5EkCe.mjs +12 -0
  440. package/dist/timeout-VRKMCG72-jeMAkAMc.mjs +1 -0
  441. package/dist/touch-DX2IJOQ4-CRX6GYeb.mjs +7 -0
  442. package/dist/touch-DX2IJOQ4-CyiMRd7b.mjs +1 -0
  443. package/dist/tr-2HXZRDSW-ByYmbFae.mjs +21 -0
  444. package/dist/tr-2HXZRDSW-CCce6lU_.mjs +1 -0
  445. package/dist/tree-LYXBS7DC-Dq6aWetx.mjs +12 -0
  446. package/dist/tree-LYXBS7DC-pAC77Hbt.mjs +1 -0
  447. package/dist/treeView-QDETBFTQ-BCAjffnq.mjs +1 -0
  448. package/dist/treemap-6X3UGDF4-Dv-54pyt.mjs +1 -0
  449. package/dist/true-WHJNXCHG-Dzdq7R5f.mjs +1 -0
  450. package/dist/true-WHJNXCHG-XC4ZnbBw.mjs +2 -0
  451. package/dist/unexpand-RGTMIGZM-B06mOUPB.mjs +1 -0
  452. package/dist/unexpand-RGTMIGZM-BL5sZ5_Z.mjs +11 -0
  453. package/dist/uniq-SUNANL47-BIgIOFSf.mjs +1 -0
  454. package/dist/uniq-SUNANL47-DBRSkw7j.mjs +5 -0
  455. package/dist/vennDiagram-L72KCM5P-CqTzYRfa.mjs +35 -0
  456. package/dist/wardley-OPB4EBWU-DSvo57UC.mjs +1 -0
  457. package/dist/wardleyDiagram-EHGQE667-WhxG-nRT.mjs +79 -0
  458. package/dist/wc-TQB3VNOX-9RyJlZXB.mjs +1 -0
  459. package/dist/wc-TQB3VNOX-DqHFY4jy.mjs +6 -0
  460. package/dist/which-XZHEH76L-CbmRVw8E.mjs +3 -0
  461. package/dist/which-XZHEH76L-SMFjHhz2.mjs +1 -0
  462. package/dist/whoami-DGKU3D2X-BDJh39KM.mjs +3 -0
  463. package/dist/whoami-DGKU3D2X-BIUooLXE.mjs +1 -0
  464. package/dist/write-project-skill-DOogyZge.mjs +56 -0
  465. package/dist/xan-UD7JYIL2-DAuAMQ0H.mjs +1 -0
  466. package/dist/xan-UD7JYIL2-DQo9f-1a.mjs +140 -0
  467. package/dist/xan-view-OW2TB7Z3-BhVOL6hm.mjs +1 -0
  468. package/dist/xan-view-OW2TB7Z3-CwG0zS53.mjs +1 -0
  469. package/dist/xargs-I6EZUCYF-C_ZtmUCd.mjs +5 -0
  470. package/dist/xargs-I6EZUCYF-INAdKqnR.mjs +1 -0
  471. package/dist/xychartDiagram-FW5EYKEG-DDE7TRrw.mjs +8 -0
  472. package/dist/yazl-BlMyAOcT.mjs +2 -0
  473. package/dist/yq-OAKYHSXH-C1fFFHD4.mjs +1 -0
  474. package/dist/yq-OAKYHSXH-COzSqY4J.mjs +288 -0
  475. package/package.json +7 -6
  476. package/dist/abnfDiagram-VRR7QNED-DQjgDcgA.mjs +0 -2
  477. package/dist/acp-harness-probe-DOXp9Wx4.mjs +0 -3
  478. package/dist/alias-JE7RI5QX-BfILuEvo.mjs +0 -1
  479. package/dist/arc-CO8jsQkL.mjs +0 -2
  480. package/dist/architecture-TIHT7OUA-CScIhnar.mjs +0 -1
  481. package/dist/architectureDiagram-ZJ3FMSHR-CkUIG8wd.mjs +0 -37
  482. package/dist/array-Cerc_8W3.mjs +0 -2
  483. package/dist/awk2-BBAGSFUB-BH8WxyhW.mjs +0 -1
  484. package/dist/banner-CIK2GwPx.mjs +0 -3
  485. package/dist/base64-4YMZCVJ5-CDuRvFBG.mjs +0 -1
  486. package/dist/basename-AA2KJYZQ-sv8gJZXS.mjs +0 -1
  487. package/dist/bash-IJWYRKFO-DKUaUgF9.mjs +0 -1
  488. package/dist/blockDiagram-677ZJIJ3-sLhYyPCr.mjs +0 -133
  489. package/dist/c4Diagram-LMCZKHZV-Cg6dfUXU.mjs +0 -11
  490. package/dist/cat-RDUMLXKC-BtNo16C3.mjs +0 -1
  491. package/dist/channel-DRk0OEK0.mjs +0 -2
  492. package/dist/chmod-SYMGL4JA-B15Xlp42.mjs +0 -1
  493. package/dist/chokidar-CVNrjmRM.mjs +0 -4
  494. package/dist/chunk-2Q5K7J3B-2Es1K_NO.mjs +0 -2
  495. package/dist/chunk-2TRDZQLB-G1LvPXqq.mjs +0 -18
  496. package/dist/chunk-32BRIVSS-ok2xg0Je.mjs +0 -2
  497. package/dist/chunk-3BS5SKQH-CFcrGLDG.mjs +0 -140
  498. package/dist/chunk-3H6UQG3A-Dx5ykWR0.mjs +0 -9
  499. package/dist/chunk-3ZUFRYJ4-DzbWfyzV.mjs +0 -2
  500. package/dist/chunk-4GTNDTRF-COTPYeV6.mjs +0 -8
  501. package/dist/chunk-4HHKTUW3-BkuKGebe.mjs +0 -3
  502. package/dist/chunk-4Q4SM6WR-i8tiQRv3.mjs +0 -5
  503. package/dist/chunk-52WLFC77-BaT5_S-q.mjs +0 -11
  504. package/dist/chunk-55VFSPNA-Ct9maI6O.mjs +0 -3
  505. package/dist/chunk-5FCAYU7R-of7BBDNL.mjs +0 -2
  506. package/dist/chunk-5HE753X5-9kILZ5Nr.mjs +0 -2
  507. package/dist/chunk-5JV3BV7I-BKVVlFxh.mjs +0 -2
  508. package/dist/chunk-5QVNJEHU-CvZ-NmqQ.mjs +0 -9
  509. package/dist/chunk-5TONJI2A-CGHpmUrS.mjs +0 -3
  510. package/dist/chunk-5V6VZH6T-DdeqP2TW.mjs +0 -2
  511. package/dist/chunk-5VM5RSS4-COK1ErrI.mjs +0 -16
  512. package/dist/chunk-62RKD26F-RtrcFE7S.mjs +0 -21
  513. package/dist/chunk-64BAICW3-0h-yIc1e.mjs +0 -2
  514. package/dist/chunk-6Z5SFZXK-C5owNg1o.mjs +0 -288
  515. package/dist/chunk-74CEPOFO--xsxhUFC.mjs +0 -23
  516. package/dist/chunk-7BUUIJ7U-_1oXd84C.mjs +0 -2
  517. package/dist/chunk-7L36YK2X-VlH7dlrD.mjs +0 -3
  518. package/dist/chunk-7TSDKFEO-BjOrsK6M.mjs +0 -2
  519. package/dist/chunk-A4HU7SVR-oMNSpej4.mjs +0 -3
  520. package/dist/chunk-A4JSPFCI-DtnWqT5O.mjs +0 -7
  521. package/dist/chunk-A65PWWJC-LctFeUxK.mjs +0 -3
  522. package/dist/chunk-A7A2DBEE-DuuhuGG1.mjs +0 -7
  523. package/dist/chunk-A7ICOL4V-CzYDHdxM.mjs +0 -14
  524. package/dist/chunk-ALLTKNUZ-BnLIZXEI.mjs +0 -6
  525. package/dist/chunk-APT7OOP2-DESh647P.mjs +0 -2
  526. package/dist/chunk-BIQX33UG-BVtPexox.mjs +0 -2
  527. package/dist/chunk-C7G6YPKG-DpNJWc2e.mjs +0 -2
  528. package/dist/chunk-CQNSW5MT-B6mAd0WS.mjs +0 -2
  529. package/dist/chunk-CYSBUYHQ-CTWbbsmm.mjs +0 -2
  530. package/dist/chunk-D4J545R4-Dy3lcp_X.mjs +0 -12
  531. package/dist/chunk-D6CWQ5DW-Dl4tJcwX.mjs +0 -6
  532. package/dist/chunk-D7MEQ3VN-B-Qyxyo5.mjs +0 -5
  533. package/dist/chunk-DBKNVD4L-Y2Mnp5lC.mjs +0 -10
  534. package/dist/chunk-DCAAORBQ-BxtVrSMT.mjs +0 -2
  535. package/dist/chunk-EEXR5ZDP-BcjEP2wd.mjs +0 -3
  536. package/dist/chunk-EIZGF4BS-DYiqM1Ss.mjs +0 -9
  537. package/dist/chunk-EMLP6XTP-AFimKO17.mjs +0 -2
  538. package/dist/chunk-EX3LRPZG-BYcqQlY8.mjs +0 -232
  539. package/dist/chunk-F23WWYKW-BuCITNd6.mjs +0 -17
  540. package/dist/chunk-FWX5IMBZ-BFNo8SGu.mjs +0 -2
  541. package/dist/chunk-GCTKCWKD-jz3yOk3f.mjs +0 -4
  542. package/dist/chunk-GOV5EKKI-IRzA9ik3.mjs +0 -10
  543. package/dist/chunk-GXVXFKBA-CGc4vqMu.mjs +0 -6
  544. package/dist/chunk-HDQ56CKY-Svz-iz8m.mjs +0 -16
  545. package/dist/chunk-HJQJAYMS-SgZmT_QE.mjs +0 -3
  546. package/dist/chunk-HJWBQKYG-BqFDM0xp.mjs +0 -6
  547. package/dist/chunk-HKLCLINH-DKx243zB.mjs +0 -63
  548. package/dist/chunk-HL6NGDO2-B9GCn41X.mjs +0 -24
  549. package/dist/chunk-HOUHSVGY-Cg_2_CUd.mjs +0 -2
  550. package/dist/chunk-HWKDQ44K-CVxg-h0V.mjs +0 -4
  551. package/dist/chunk-I57KEIP3-FVl4IVXz.mjs +0 -11
  552. package/dist/chunk-ICXQ74PX-CewdqzeE.mjs +0 -3
  553. package/dist/chunk-JG7HCLWE-BgiWVzAI.mjs +0 -3
  554. package/dist/chunk-JVPRLUMK-CH7w4zyh.mjs +0 -8
  555. package/dist/chunk-JWPE2WC7-cMhWwV9I.mjs +0 -2
  556. package/dist/chunk-K6LIBGJA-DI9ZkJey.mjs +0 -12
  557. package/dist/chunk-KEIR6QF5-BhaMJNB5.mjs +0 -176
  558. package/dist/chunk-KMEYNNUA-CabTsa7P.mjs +0 -16
  559. package/dist/chunk-KRBPSX3W-ciCGjpAL.mjs +0 -6
  560. package/dist/chunk-LL3S3NLB-r8mDpVuz.mjs +0 -2
  561. package/dist/chunk-LTZRCH7N-Cj1hz7m7.mjs +0 -32
  562. package/dist/chunk-LWEGUNWT-C3ON4AHi.mjs +0 -8
  563. package/dist/chunk-MDDMCKUK-D3MZs3FF.mjs +0 -7
  564. package/dist/chunk-MDLLFABN-DgTeOfIY.mjs +0 -73
  565. package/dist/chunk-MHTUABJP-BbSobv_U.mjs +0 -9
  566. package/dist/chunk-MIZPJHVH-CzqfuBdK.mjs +0 -8
  567. package/dist/chunk-MLXIYONF-BcM04nM_.mjs +0 -16
  568. package/dist/chunk-MOJQB5TN-CidbQQ7m.mjs +0 -89
  569. package/dist/chunk-MOZMSUNE-DTiZcqZ1.mjs +0 -2
  570. package/dist/chunk-MYE6AGBJ-B3ukegXT.mjs +0 -17
  571. package/dist/chunk-NAERJDUW-CoAYVGR3.mjs +0 -9
  572. package/dist/chunk-NCNPKYJZ-C1KcgrGe.mjs +0 -3
  573. package/dist/chunk-NUYSJFDK-sPbPxu4W.mjs +0 -8
  574. package/dist/chunk-OCLXQMOG-BdLZfp3D.mjs +0 -7
  575. package/dist/chunk-OCS6LSEM-7beNWT9m.mjs +0 -14
  576. package/dist/chunk-OGEWGWER-B-Vr80Fa.mjs +0 -2
  577. package/dist/chunk-OSBZ3O6U-DwDyo3Ly.mjs +0 -2
  578. package/dist/chunk-PBXLG62G-ww-bn-Tp.mjs +0 -9
  579. package/dist/chunk-PP6PSHAB-xKRHmmOd.mjs +0 -5
  580. package/dist/chunk-PUDLZKDR-CI0pacGF.mjs +0 -157
  581. package/dist/chunk-PXTK5WE2-Dfi2FrE5.mjs +0 -22
  582. package/dist/chunk-PYSFUGCK-BHwvxY2Q.mjs +0 -11
  583. package/dist/chunk-Q4XR5HBZ-4H-m7p0G.mjs +0 -71
  584. package/dist/chunk-QBLGF6JB-B_tvtCRO.mjs +0 -2
  585. package/dist/chunk-QCDB2VPH-DHsQu4h6.mjs +0 -7
  586. package/dist/chunk-QJ7O6ZN3-CTKdWbns.mjs +0 -6
  587. package/dist/chunk-R6QSAL5T-DA60heK6.mjs +0 -2
  588. package/dist/chunk-R7FJI6CG-BVR1ae7y.mjs +0 -2
  589. package/dist/chunk-RPNGRAAP-df7FdhI4.mjs +0 -8
  590. package/dist/chunk-RYQCIY6F-C8F82Uai.mjs +0 -2
  591. package/dist/chunk-SDNKECQQ-BuTL-ot2.mjs +0 -6
  592. package/dist/chunk-SNN4IESC-DVqEOGsL.mjs +0 -2
  593. package/dist/chunk-T56QNPHK-COZC2A_r.mjs +0 -15
  594. package/dist/chunk-TLSUDHID-DAREQN9J.mjs +0 -7
  595. package/dist/chunk-TOMNU26N-C3JZDC96.mjs +0 -5
  596. package/dist/chunk-TP4BZANS-C2Z-CHHA.mjs +0 -21
  597. package/dist/chunk-TXBZCHCQ-DOaoE5TV.mjs +0 -6
  598. package/dist/chunk-U6XO7XAA-BpjdcG5R.mjs +0 -3
  599. package/dist/chunk-V5MWI2OL-D8SKWVO_.mjs +0 -5
  600. package/dist/chunk-V7JOEXUC-CdEIYYNc.mjs +0 -207
  601. package/dist/chunk-V7TAPXDL-CQbB1mLa.mjs +0 -28
  602. package/dist/chunk-VAUOI2AC-Ds6ZNp2p.mjs +0 -2
  603. package/dist/chunk-VJFXDYWH-C7Lg-Yts.mjs +0 -11
  604. package/dist/chunk-VOBGTVA6-CKl2LR-K.mjs +0 -7
  605. package/dist/chunk-VR4S4FIN-mH-q10Uq.mjs +0 -2
  606. package/dist/chunk-VYOJP4TV-DFxaC5Uc.mjs +0 -14
  607. package/dist/chunk-WKFATFPP-R7B51gCW.mjs +0 -5
  608. package/dist/chunk-WYO6CB5R-Cg1RXhAT.mjs +0 -130
  609. package/dist/chunk-X2AJGDEF-D97qevlv.mjs +0 -2
  610. package/dist/chunk-XKQRETAK-BTmmMuta.mjs +0 -2
  611. package/dist/chunk-XKWWSDBF-BGzAOrO3.mjs +0 -37
  612. package/dist/chunk-XVDPCNWR-3ajbQWzU.mjs +0 -12
  613. package/dist/chunk-XXDRQBXY-BvbdToKZ.mjs +0 -2
  614. package/dist/chunk-Y2CYZVJY-C7FmC3Cl.mjs +0 -2
  615. package/dist/chunk-YMMW5UAP-DbBgrudQ.mjs +0 -33
  616. package/dist/chunk-YOTPTUD7-BSOqhRr-.mjs +0 -2
  617. package/dist/chunk-YTNYSM6T-CoxqCaLl.mjs +0 -12
  618. package/dist/chunk-YULBWSET-CuKhTv4j.mjs +0 -14
  619. package/dist/chunk-Z6LRHWXI-CujGXDs8.mjs +0 -14
  620. package/dist/chunk-Z7JVV2SM-CiJwkxuY.mjs +0 -12
  621. package/dist/chunk-ZGVPDNZ5-BE_qYP6z.mjs +0 -63
  622. package/dist/chunk-ZIRB5QZD-mhYZnDzb.mjs +0 -39
  623. package/dist/chunk-ZZO3UDB3-DCkJjNN2.mjs +0 -100
  624. package/dist/classDiagram-OUVF2IWQ-rKP7gcsT.mjs +0 -2
  625. package/dist/classDiagram-v2-EOCWNBFH-BoWf4tYI.mjs +0 -2
  626. package/dist/clear-5CZ5X4YR-BNXs_KRD.mjs +0 -1
  627. package/dist/column-WLPMMSTS-BrY1gQI1.mjs +0 -1
  628. package/dist/comm-5SLSESQG-aGB098lH.mjs +0 -1
  629. package/dist/constants-J4-mibQ1.mjs +0 -2
  630. package/dist/cose-bilkent-JH36ORCC-CMfIp4st.mjs +0 -2
  631. package/dist/cp-XOYR4ABJ-D0LUaMQT.mjs +0 -1
  632. package/dist/curl-47BFPSFW-d1TMPUJw.mjs +0 -26
  633. package/dist/cut-OPC3VAGB-FXZX1WQM.mjs +0 -1
  634. package/dist/cynefin-VYW2F7L2-DtazLHUs.mjs +0 -1
  635. package/dist/cynefinDiagram-TSTJHNR4-CFbt5v4d.mjs +0 -63
  636. package/dist/cytoscape.esm-Dq6ZD9GH.mjs +0 -332
  637. package/dist/dagre-CbI1Ylqw.mjs +0 -2
  638. package/dist/dagre-VKFMJZFB-BWP36rMX.mjs +0 -5
  639. package/dist/date-DD7FVA2V-7hk1aW9g.mjs +0 -1
  640. package/dist/defaultLocale-9SlCuWEL.mjs +0 -2
  641. package/dist/diagram-FQU43EPY-D2pf7IBH.mjs +0 -4
  642. package/dist/diagram-G47NLZAW-BlOXaBe6.mjs +0 -25
  643. package/dist/diagram-NH7WQ7WH-DOwRNWDI.mjs +0 -25
  644. package/dist/diagram-OA4YK3LP-uyGYHUoX.mjs +0 -31
  645. package/dist/diagram-WEI45ONY-CmW1X9Kx.mjs +0 -42
  646. package/dist/diff-HJF2MPDN-bcOaHvDo.mjs +0 -1
  647. package/dist/dirname-LEMTZZFS-RRQ5Ar_Z.mjs +0 -1
  648. package/dist/dist-BmYngy7b.mjs +0 -2
  649. package/dist/du-WO2ENHXQ-Cg71FvLi.mjs +0 -1
  650. package/dist/ebnfDiagram-CCIWWBDH-BpBYlrRH.mjs +0 -2
  651. package/dist/echo-O45JWWI2-BacOdfFs.mjs +0 -1
  652. package/dist/env-5EPCWSXR-T8XCKOX_.mjs +0 -1
  653. package/dist/erDiagram-Q63AITRT-ChoKKmxG.mjs +0 -86
  654. package/dist/eventmodeling-45OFAUF4-BIXp-P6z.mjs +0 -1
  655. package/dist/execAsync-BKp2jujj.mjs +0 -2
  656. package/dist/execAsync-BuUKdKlz.mjs +0 -2
  657. package/dist/expand-DTNXU4LQ-BD32VJaK.mjs +0 -1
  658. package/dist/expr-YYCVMXE3-CgQib9F9.mjs +0 -1
  659. package/dist/file-IGDTDPLG-BAlm5q29.mjs +0 -1
  660. package/dist/find-DH2ALKQS-z-G7VPmU.mjs +0 -1
  661. package/dist/flag-coverage-6JEX67RU-Cj_NycUm.mjs +0 -2
  662. package/dist/flowDiagram-23GEKE2U-B4VrCGdr.mjs +0 -1
  663. package/dist/fold-LDSORVYE-CDU-6eOS.mjs +0 -1
  664. package/dist/fs-traced-By5aY-RE.mjs +0 -12
  665. package/dist/fs-traced-CkLhqsEn.mjs +0 -1
  666. package/dist/ganttDiagram-NO4QXBWP-Cv7sGb-R.mjs +0 -293
  667. package/dist/getMachineId-bsd-DtFrm1Uy.mjs +0 -2
  668. package/dist/getMachineId-bsd-GFl1-Bje.mjs +0 -2
  669. package/dist/getMachineId-darwin--IR8MP8d.mjs +0 -3
  670. package/dist/getMachineId-darwin-28jQHa_N.mjs +0 -3
  671. package/dist/getMachineId-linux-BZgyplQ5.mjs +0 -2
  672. package/dist/getMachineId-linux-Bzx3S652.mjs +0 -2
  673. package/dist/getMachineId-unsupported-CyTjujlI.mjs +0 -2
  674. package/dist/getMachineId-unsupported-DuB0leRF.mjs +0 -2
  675. package/dist/getMachineId-win-BmvAZEMa.mjs +0 -2
  676. package/dist/getMachineId-win-CuOFQQ73.mjs +0 -2
  677. package/dist/git-handle-BDmbIWwd.mjs +0 -1
  678. package/dist/git-handle-BHe1p04S.mjs +0 -10
  679. package/dist/gitGraph-TEB2WS4Q-BaTdqV7-.mjs +0 -1
  680. package/dist/gitGraphDiagram-IHSO6WYX-DxsFHicP.mjs +0 -107
  681. package/dist/graphlib-DKEQBDTz.mjs +0 -2
  682. package/dist/grep-2HUTXO5U-CsEE08ya.mjs +0 -1
  683. package/dist/gzip-AQXSGOVS-CmMf6H0r.mjs +0 -1
  684. package/dist/head-HT2B6D2J-DSBJixLD.mjs +0 -1
  685. package/dist/help-VVWX7SA5-BncYWg0B.mjs +0 -1
  686. package/dist/history-J4QRNGRO-CULSDkzp.mjs +0 -1
  687. package/dist/hostname-BK6HG2DE-CaZb-T_R.mjs +0 -1
  688. package/dist/html-to-markdown-TFCECAGV-CF0t8_d3.mjs +0 -1
  689. package/dist/index-1MIt1xrM.d.mts +0 -6628
  690. package/dist/info-DKCQHKI2-BxlpeeVn.mjs +0 -1
  691. package/dist/infoDiagram-FWYZ7A6U-CbPpTq2x.mjs +0 -3
  692. package/dist/init-Buw5jj4Q.mjs +0 -2
  693. package/dist/init-DDwncQha.mjs +0 -1
  694. package/dist/init-ZOWQ1Th4.mjs +0 -643
  695. package/dist/ishikawaDiagram-FXEZZL3T-Dd5BEpOv.mjs +0 -71
  696. package/dist/join-GG2LDHE5-kABASDPB.mjs +0 -1
  697. package/dist/journeyDiagram-5HDEW3XC-W6Nbr96_.mjs +0 -140
  698. package/dist/jq-LYZFFBZB-CIwp4u6h.mjs +0 -1
  699. package/dist/js-exec-VXN6TZ7U-1yyCDQqM.mjs +0 -97
  700. package/dist/kanban-definition-HUTT4EX6-xcwe5vNg.mjs +0 -90
  701. package/dist/launch-json-removal-CcFuFFS1.mjs +0 -2
  702. package/dist/lib-BCIeHFfP.mjs +0 -2
  703. package/dist/lib-TLTWf9qr.mjs +0 -195
  704. package/dist/line-Cq-NoiNn.mjs +0 -2
  705. package/dist/linear-DPbvcrPk.mjs +0 -2
  706. package/dist/ln-4TRFBYAT-Dhr3hBr6.mjs +0 -1
  707. package/dist/loader-BcwbnY_K.mjs +0 -1
  708. package/dist/loader-ji3pPcXi.mjs +0 -2
  709. package/dist/logger-BZPV1wv8.mjs +0 -39
  710. package/dist/ls-KSXFZCWH-BEv3e7-2.mjs +0 -1
  711. package/dist/lzma-Dh_aFpqW.mjs +0 -2
  712. package/dist/map-CFzSl60r.mjs +0 -2
  713. package/dist/md-manager-B4-M0hXs.mjs +0 -2
  714. package/dist/md5sum-INMIK4DX-CJ1G9gTe.mjs +0 -1
  715. package/dist/mermaid-parser.core-DejmtVwC.mjs +0 -4
  716. package/dist/mermaid.core-CB8v9A8r.mjs +0 -16
  717. package/dist/mindmap-definition-LN4V7U3C-BiYp6fzL.mjs +0 -97
  718. package/dist/mkdir-TDEMSB6C-BY7IIkok.mjs +0 -1
  719. package/dist/mv-Z6MORUFL-C4m2WG8E.mjs +0 -1
  720. package/dist/nl-U5YJDM32-CrNZhLtI.mjs +0 -1
  721. package/dist/od-VJEF2UR5-5RFpmlxK.mjs +0 -1
  722. package/dist/open-browser-CxnOIVsL.mjs +0 -2
  723. package/dist/ordinal-D5S_JXYv.mjs +0 -2
  724. package/dist/packet-7NZHBO7P-DJoR1MQJ.mjs +0 -1
  725. package/dist/paste-7N6AFSDS-DQNANxpk.mjs +0 -1
  726. package/dist/path-D4ahAhVD.mjs +0 -2
  727. package/dist/pegDiagram-2B236MQR-DMP1ng8V.mjs +0 -2
  728. package/dist/pie-RZYD4A2V-Ba8iL0H-.mjs +0 -1
  729. package/dist/pieDiagram-ENE6RG2P-CSKXRjGQ.mjs +0 -40
  730. package/dist/preview-2rQXoRuM.mjs +0 -3
  731. package/dist/preview-MV-qHfzy.mjs +0 -1
  732. package/dist/printf-CX64KX2P-CKuJk-Cs.mjs +0 -1
  733. package/dist/public/assets/ActivityModeContent-C08FYohG.js +0 -1
  734. package/dist/public/assets/AgentDiffPane-T499-ugv.js +0 -2
  735. package/dist/public/assets/ChangedOutsideBadge-GeQfL_b-.js +0 -1
  736. package/dist/public/assets/DocumentContext-C-Lo65-_.js +0 -38
  737. package/dist/public/assets/FeedbackForm-CmdTz11F.js +0 -1
  738. package/dist/public/assets/ImportSkillDialog-ChsGV6eb.js +0 -1
  739. package/dist/public/assets/ManagedArtifactProperties-B1ZA0ofn.js +0 -2
  740. package/dist/public/assets/ManagedArtifactProperties-B_ecuboX.js +0 -1
  741. package/dist/public/assets/SessionsHost-BobZkNwc.js +0 -2
  742. package/dist/public/assets/SettingsDialogBody-COTbFRqi.js +0 -12
  743. package/dist/public/assets/SkillToolbarControls-PvRY_LHn.js +0 -1
  744. package/dist/public/assets/SourceEditor-Duqpede9.js +0 -1
  745. package/dist/public/assets/TerminalWindowApp-CgWp2eC-.js +0 -1
  746. package/dist/public/assets/ThreadView-VqdgemBS.js +0 -10
  747. package/dist/public/assets/TimelineDiffPane-DnaRcvCk.js +0 -2
  748. package/dist/public/assets/agent-diff-store-B7oQn7l7.js +0 -1
  749. package/dist/public/assets/auth-state-cache-BUYyIMUZ.js +0 -11
  750. package/dist/public/assets/comment-chips-BhvfCPCk.js +0 -5
  751. package/dist/public/assets/follow-file-CWSsUd-S.js +0 -1
  752. package/dist/public/assets/index-Dmlpu4P1.js +0 -2097
  753. package/dist/public/assets/selection-context-CSP8zK1H.js +0 -4
  754. package/dist/public/assets/skill-actions-98H3SnCL.js +0 -2
  755. package/dist/public/assets/typing-burst-detector-BOmjXV-P.js +0 -8
  756. package/dist/public/assets/use-activity-panel-BwANCYjg.js +0 -1
  757. package/dist/public/assets/use-open-skill-DCSEJ3jJ.js +0 -1
  758. package/dist/public/assets/use-skill-directory-D9S5f8By.js +0 -1
  759. package/dist/public/assets/use-timeline-entry-diff-CB_cI1yy.js +0 -6
  760. package/dist/pwd-D4OZ7N27-CSTLotxZ.mjs +0 -1
  761. package/dist/python3-DNGS4G3E-BZ5fPY5e.mjs +0 -12
  762. package/dist/quadrantDiagram-ABIIQ3AL-Do93EPf_.mjs +0 -8
  763. package/dist/radar-I7S5WNFK-HP72Fmhl.mjs +0 -1
  764. package/dist/railroad-3IZDKUUU-DC3PWo_6.mjs +0 -1
  765. package/dist/railroad-abnf-AHOZXSZD-Vgpa9_KI.mjs +0 -1
  766. package/dist/railroad-ebnf-EBAXGLYW-B4SmMMsT.mjs +0 -1
  767. package/dist/railroad-peg-LSFZ7HO6-DLlDiUuB.mjs +0 -1
  768. package/dist/railroadDiagram-RFXS5EU6-BBHONGQu.mjs +0 -2
  769. package/dist/readlink-MI4GCHJF-V9fwXBrg.mjs +0 -1
  770. package/dist/repair-launch-json-Cq9ghST3.mjs +0 -2
  771. package/dist/repair-mcp-configs-DY0FS2-y.mjs +0 -2
  772. package/dist/repair-skills-CkZZbtNk.mjs +0 -4
  773. package/dist/repair-skills-l9Id0gzv.mjs +0 -1
  774. package/dist/requirementDiagram-TGXJPOKE-CAGy_wFo.mjs +0 -85
  775. package/dist/rev-XOSYPP45-G2PvMYC2.mjs +0 -1
  776. package/dist/rg-XNF3R3II-CuFYIwNn.mjs +0 -1
  777. package/dist/rm-RTZG23RL-BOvMrhon.mjs +0 -1
  778. package/dist/rmdir-XTQXT7RK-Dk19R-p8.mjs +0 -1
  779. package/dist/rough.cjs-LxmwwhvT.mjs +0 -2
  780. package/dist/sankeyDiagram-HTMAVEWB-B59ayZ_U.mjs +0 -41
  781. package/dist/sed-JAPPVBEU-BUaK4riL.mjs +0 -1
  782. package/dist/seq-RN5ZUASB-D5aLn_so.mjs +0 -1
  783. package/dist/sequenceDiagram-DBY2YBRQ-BqY5gm2k.mjs +0 -163
  784. package/dist/server-lock-BleUv9m0.mjs +0 -2
  785. package/dist/server-lock-uucDARDL.mjs +0 -1
  786. package/dist/sha1sum-VJPNLNU6-DnTKth9v.mjs +0 -1
  787. package/dist/sha256sum-PI32XWXY-Z-xtGDHc.mjs +0 -1
  788. package/dist/sizeCapture-X5ZJPWSS-D7Nqbe-W.mjs +0 -2
  789. package/dist/skill-teardown-CZnemDLF.mjs +0 -2
  790. package/dist/sleep-VZFPZFWA-DcISab6N.mjs +0 -1
  791. package/dist/sort-DCNRDA7U-C1gRzOOY.mjs +0 -1
  792. package/dist/split-SITCSYCZ-D4U2N_sH.mjs +0 -1
  793. package/dist/sqlite3-TE5AIOTF-DcjYN7WW.mjs +0 -1
  794. package/dist/src-9BFQh559.mjs +0 -348
  795. package/dist/src-9I3GiOoK.mjs +0 -2032
  796. package/dist/src-BuBt_xnY.mjs +0 -2
  797. package/dist/src-Dl8P6sfz.mjs +0 -20
  798. package/dist/src-h5dDPK2z.mjs +0 -1
  799. package/dist/start-BYY0acPS.mjs +0 -1
  800. package/dist/start-C4KuZHu5.mjs +0 -4
  801. package/dist/stat-BT5A227F-B4qwqNn_.mjs +0 -1
  802. package/dist/stateDiagram-2N3HPSRC-BD1FBZi9.mjs +0 -2
  803. package/dist/stateDiagram-v2-6OUMAXLB-CqmBRdZY.mjs +0 -2
  804. package/dist/strings-7PLOGTPD-BJ6vWsQi.mjs +0 -1
  805. package/dist/swimlanes-5IMT3BWC-D2eO0gTx.mjs +0 -2
  806. package/dist/swimlanesDiagram-G3AALYLV-BiRCZWbo.mjs +0 -9
  807. package/dist/tac-SJGXQ4T2-D-bfDFKg.mjs +0 -1
  808. package/dist/tail-S5ULNTJU-CWnyTuXg.mjs +0 -1
  809. package/dist/tar-MZQD7NO4-Cx5bpVMY.mjs +0 -1
  810. package/dist/tee-O7VXZDCO-B_duU1hV.mjs +0 -1
  811. package/dist/time-DEUO3QV2-CekCKA2I.mjs +0 -1
  812. package/dist/timeline-definition-FHXFAJF6-DZHpuaV_.mjs +0 -121
  813. package/dist/timeout-VRKMCG72-DaJVXXR3.mjs +0 -1
  814. package/dist/touch-DX2IJOQ4-CZteiICw.mjs +0 -1
  815. package/dist/tr-2HXZRDSW-D4XuTGWg.mjs +0 -1
  816. package/dist/tree-LYXBS7DC-CUIzQKTG.mjs +0 -1
  817. package/dist/treeView-QDETBFTQ-C9yOsbGY.mjs +0 -1
  818. package/dist/treemap-6X3UGDF4-iowse2nY.mjs +0 -1
  819. package/dist/true-WHJNXCHG-BzxCUQFd.mjs +0 -1
  820. package/dist/unexpand-RGTMIGZM-x3XCmR3I.mjs +0 -1
  821. package/dist/uniq-SUNANL47-DpupkNiO.mjs +0 -1
  822. package/dist/vennDiagram-L72KCM5P-CGoW4QcS.mjs +0 -35
  823. package/dist/wardley-OPB4EBWU-BL1Dan_S.mjs +0 -1
  824. package/dist/wardleyDiagram-EHGQE667-DHS8jBWZ.mjs +0 -79
  825. package/dist/wc-TQB3VNOX-D8llmcL9.mjs +0 -1
  826. package/dist/which-XZHEH76L-imZgNd5x.mjs +0 -1
  827. package/dist/whoami-DGKU3D2X-CzLNG51j.mjs +0 -1
  828. package/dist/write-project-skill-WXZSbQlg.mjs +0 -56
  829. package/dist/xan-UD7JYIL2-_38Iv1cI.mjs +0 -1
  830. package/dist/xan-view-OW2TB7Z3-RT-IKMgr.mjs +0 -1
  831. package/dist/xargs-I6EZUCYF-Bu8VhXV_.mjs +0 -1
  832. package/dist/xychartDiagram-FW5EYKEG-CG0DSvm_.mjs +0 -8
  833. package/dist/yq-OAKYHSXH-BcCBaLJN.mjs +0 -1
  834. /package/dist/{expansion-VBDYWVZR-CeY6vkty.mjs → expansion-VBDYWVZR-CpX0YZMb.mjs} +0 -0
@@ -0,0 +1,140 @@
1
+ import{t as e}from"./chunk-B74TABJS-BSazPoW8.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-q-dGnwlc.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{n as s}from"./chunk-7L36YK2X-CGwYuotX.mjs";import{t as c}from"./chunk-PXTK5WE2-DNbfUrIy.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-DBB10vPw.mjs";import{n as d}from"./chunk-KRBPSX3W-YDdgrCmf.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-DBKNVD4L-DNQP2COw.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
2
+ `||e===`\r`)this.pos++;else if(e===`#`)for(;this.pos<this.input.length&&this.input[this.pos]!==`
3
+ `;)this.pos++;else break}}nextToken(){let e=this.pos,t=this.input[this.pos];if(t>=`0`&&t<=`9`)return this.readNumber();if(t===`"`||t===`'`||t==="`")return this.readString(t);if(t===`b`&&this.pos+1<this.input.length){let e=this.input[this.pos+1];if(e===`"`||e===`'`||e==="`")return this.pos++,this.readString(e)}if(t===`/`){let t=this.tokens[this.tokens.length-1];return t&&(t.type===`int`||t.type===`float`||t.type===`string`||t.type===`ident`||t.type===`)`||t.type===`]`)?this.input[this.pos+1]===`/`?(this.pos+=2,{type:`//`,value:`//`,pos:e}):(this.pos++,{type:`/`,value:`/`,pos:e}):this.readRegex()}if(this.match(`not in`))return{type:`not in`,value:`not in`,pos:e};if(this.match(`=>`))return{type:`=>`,value:`=>`,pos:e};if(this.match(`**`))return{type:`**`,value:`**`,pos:e};if(this.match(`++`))return{type:`++`,value:`++`,pos:e};if(this.match(`//`))return{type:`//`,value:`//`,pos:e};if(this.match(`==`))return{type:`==`,value:`==`,pos:e};if(this.match(`!=`))return{type:`!=`,value:`!=`,pos:e};if(this.match(`<=`))return{type:`<=`,value:`<=`,pos:e};if(this.match(`>=`))return{type:`>=`,value:`>=`,pos:e};if(this.match(`&&`))return{type:`&&`,value:`&&`,pos:e};if(this.match(`||`))return{type:`||`,value:`||`,pos:e};let n=new Map([[`(`,`(`],[`)`,`)`],[`[`,`[`],[`]`,`]`],[`{`,`{`],[`}`,`}`],[`,`,`,`],[`:`,`:`],[`;`,`;`],[`+`,`+`],[`-`,`-`],[`*`,`*`],[`%`,`%`],[`<`,`<`],[`>`,`>`],[`!`,`!`],[`.`,`.`],[`|`,`|`],[`=`,`=`]]).get(t);if(n!==void 0)return this.pos++,{type:n,value:t,pos:e};if(this.isIdentStart(t))return this.readIdentifier();throw Error(`Unexpected character '${t}' at position ${this.pos}`)}match(e){if(this.input.slice(this.pos,this.pos+e.length)===e){if(/^[a-zA-Z]/.test(e)){let t=this.input[this.pos+e.length];if(t&&this.isIdentChar(t))return!1}return this.pos+=e.length,!0}return!1}isIdentStart(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`}isIdentChar(e){return this.isIdentStart(e)||e>=`0`&&e<=`9`}readNumber(){let e=this.pos,t=!1,n=!1;for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e>=`0`&&e<=`9`)this.pos++;else if(e===`_`)this.pos++;else if(e===`.`&&!t&&!n)t=!0,this.pos++;else if((e===`e`||e===`E`)&&!n)n=!0,t=!0,this.pos++,this.pos<this.input.length&&(this.input[this.pos]===`+`||this.input[this.pos]===`-`)&&this.pos++;else break}let r=this.input.slice(e,this.pos).replace(/_/g,``);return{type:t?`float`:`int`,value:r,pos:e}}readString(e){let t=this.pos;this.pos++;let n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===e)return this.pos++,{type:`string`,value:n,pos:t};if(r===`\\`){if(this.pos++,this.pos<this.input.length){let e=this.input[this.pos];switch(e){case`n`:n+=`
4
+ `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;case`\\`:n+=`\\`;break;case`"`:n+=`"`;break;case`'`:n+=`'`;break;case"`":n+="`";break;case`0`:n+=`\0`;break;default:n+=e}this.pos++}}else n+=r,this.pos++}throw Error(`Unterminated string starting at position ${t}`)}readRegex(){let e=this.pos;this.pos++;let t=``,n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===`/`){for(this.pos++;this.pos<this.input.length&&this.input[this.pos]===`i`;)n+=this.input[this.pos],this.pos++;return{type:`regex`,value:t+(n?`/${n}`:``),pos:e}}r===`\\`?(t+=r,this.pos++,this.pos<this.input.length&&(t+=this.input[this.pos],this.pos++)):(t+=r,this.pos++)}throw Error(`Unterminated regex starting at position ${e}`)}readIdentifier(){let e=this.pos;for(;this.pos<this.input.length&&this.isIdentChar(this.input[this.pos]);)this.pos++;let t=!1;this.pos<this.input.length&&this.input[this.pos]===`?`&&(t=!0,this.pos++);let n=this.input.slice(e,t?this.pos-1:this.pos);t&&(n+=`?`);let r=new Map([[`true`,`true`],[`false`,`false`],[`null`,`null`],[`and`,`and`],[`or`,`or`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`in`,`in`],[`as`,`as`],[`_`,`_`]]),i=n.replace(/\?$/,``),a=r.get(i);return a!==void 0&&!t?{type:a,value:i,pos:e}:{type:`ident`,value:n,pos:e}}}}),S={};n(S,{parseMoonblade:()=>w,parseNamedExpressions:()=>C});function C(e){let t=[],n=new b(e).tokenize(),r=0,i=()=>n[r]||{type:`eof`,value:``,pos:0},a=()=>n[r++];for(;i().type!==`eof`;){if(i().type===`,`&&t.length>0){a();continue}let o=[],s=0,c=r;for(;i().type!==`eof`;){let e=i();if((e.type===`,`||e.type===`as`)&&s===0)break;(e.type===`(`||e.type===`[`||e.type===`{`)&&s++,(e.type===`)`||e.type===`]`||e.type===`}`)&&s--,o.push(a())}o.push({type:`eof`,value:``,pos:0});let l=new E(o).parse(),u;if(i().type===`as`)if(a(),i().type===`(`){a();let e=[];for(;i().type!==`)`&&i().type!==`eof`;)(i().type===`ident`||i().type===`string`)&&(e.push(i().value),a()),i().type===`,`&&a();i().type===`)`&&a(),u=e}else if(i().type===`ident`||i().type===`string`)u=i().value,a();else throw Error(`Expected name after 'as', got ${i().type}`);else u=e.slice(n[c].pos,n[r-1]?.pos||e.length).trim(),l.type===`identifier`&&(u=l.name);t.push({expr:l,name:u})}return t}function w(e){let t=new b(e).tokenize();return new E(t).parse()}var T,E,D=r(()=>{x(),T={PIPE:1,OR:2,AND:3,EQUALITY:4,COMPARISON:5,ADDITIVE:6,MULTIPLICATIVE:7,POWER:8,UNARY:9,POSTFIX:10},E=class{pos=0;tokens;constructor(e){this.tokens=e}parse(){let e=this.parseExpr(0);if(this.peek().type!==`eof`)throw Error(`Unexpected token: ${this.peek().value}`);return e}parseExpr(e){let t=this.parsePrefix();for(;;){let n=this.peek(),r=this.getInfixPrec(n.type);if(r<e)break;t=this.parseInfix(t,r)}return t}parsePrefix(){let e=this.peek();switch(e.type){case`int`:return this.advance(),{type:`int`,value:Number.parseInt(e.value,10)};case`float`:return this.advance(),{type:`float`,value:Number.parseFloat(e.value)};case`string`:return this.advance(),{type:`string`,value:e.value};case`regex`:{this.advance();let t=e.value.split(`/`),n=t.length>1?t[t.length-1]:``;return{type:`regex`,pattern:t.slice(0,-1).join(`/`)||e.value,caseInsensitive:n.includes(`i`)}}case`true`:return this.advance(),{type:`bool`,value:!0};case`false`:return this.advance(),{type:`bool`,value:!1};case`null`:return this.advance(),{type:`null`};case`_`:return this.advance(),{type:`underscore`};case`ident`:{let t=e.value,n=t.endsWith(`?`),r=n?t.slice(0,-1):t;if(this.advance(),this.peek().type===`(`)return this.parseFunctionCall(r);if(this.peek().type===`=>`){this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:[r],body:e},[r])}return{type:`identifier`,name:r,unsure:n}}case`(`:{this.advance();let e=this.pos;if(this.peek().type===`)`){if(this.advance(),this.peek().type===`=>`)return this.advance(),{type:`lambda`,params:[],body:this.parseExpr(0)};throw Error(`Empty parentheses not allowed`)}if(this.peek().type===`ident`){let t=[this.peek().value];this.advance();let n=!0;for(;this.peek().type===`,`;)if(this.advance(),this.peek().type===`ident`)t.push(this.peek().value),this.advance();else{n=!1;break}if(n&&this.peek().type===`)`&&this.peekAt(1).type===`=>`){this.advance(),this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:t,body:e},t)}this.pos=e}let t=this.parseExpr(0);return this.expect(`)`),t}case`[`:return this.parseList();case`{`:return this.parseMap();case`-`:{this.advance();let e=this.parseExpr(T.UNARY);return e.type===`int`?{type:`int`,value:-e.value}:e.type===`float`?{type:`float`,value:-e.value}:{type:`func`,name:`neg`,args:[{expr:e}]}}case`!`:return this.advance(),{type:`func`,name:`not`,args:[{expr:this.parseExpr(T.UNARY)}]};default:throw Error(`Unexpected token: ${e.type} (${e.value})`)}}parseFunctionCall(e){this.expect(`(`);let t=[];if(this.peek().type!==`)`)do{t.length>0&&this.peek().type===`,`&&this.advance();let e;if(this.peek().type===`ident`){let t=this.peek().value,n=this.pos+1;n<this.tokens.length&&this.tokens[n].type===`=`&&(e=t,this.advance(),this.advance())}let n=this.parseExpr(0);t.push({name:e,expr:n})}while(this.peek().type===`,`);return this.expect(`)`),{type:`func`,name:e.toLowerCase(),args:t}}parseList(){this.expect(`[`);let e=[];if(this.peek().type!==`]`)do e.length>0&&this.peek().type===`,`&&this.advance(),e.push(this.parseExpr(0));while(this.peek().type===`,`);return this.expect(`]`),{type:`list`,elements:e}}parseMap(){this.expect(`{`);let e=[];if(this.peek().type!==`}`)do{e.length>0&&this.peek().type===`,`&&this.advance();let t;if(this.peek().type===`ident`)t=this.peek().value,this.advance();else if(this.peek().type===`string`)t=this.peek().value,this.advance();else throw Error(`Expected map key, got ${this.peek().type}`);this.expect(`:`);let n=this.parseExpr(0);e.push({key:t,value:n})}while(this.peek().type===`,`);return this.expect(`}`),{type:`map`,entries:e}}parseInfix(e,t){let n=this.peek(),r=new Map([[`+`,`add`],[`-`,`sub`],[`*`,`mul`],[`/`,`div`],[`//`,`idiv`],[`%`,`mod`],[`**`,`pow`],[`++`,`concat`],[`==`,`==`],[`!=`,`!=`],[`<`,`<`],[`<=`,`<=`],[`>`,`>`],[`>=`,`>=`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`&&`,`and`],[`and`,`and`],[`||`,`or`],[`or`,`or`]]).get(n.type);if(r!==void 0){this.advance();let i=this.parseExpr(t+ +!this.isRightAssoc(n.type));return{type:`func`,name:r,args:[{expr:e},{expr:i}]}}if(n.type===`|`){this.advance();let n=this.parseExpr(t);return this.handlePipe(e,n)}if(n.type===`.`)return this.advance(),this.handleDot(e);if(n.type===`[`)return this.advance(),this.handleIndexing(e);if(n.type===`in`)return this.advance(),{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]};if(n.type===`not in`)return this.advance(),{type:`func`,name:`not`,args:[{expr:{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]}}]};throw Error(`Unexpected infix token: ${n.type}`)}handlePipe(e,t){if(t.type===`identifier`)return{type:`func`,name:t.name,args:[{expr:e}]};if(t.type===`func`){let n=this.countUnderscores(t);return n===0?t:n===1?this.fillUnderscore(t,e):{type:`pipeline`,exprs:[e,t]}}return this.countUnderscores(t)===1?this.fillUnderscore(t,e):t}handleDot(e){let t=this.peek();if(t.type===`ident`){let n=t.value;if(this.advance(),this.peek().type===`(`){let t=this.parseFunctionCall(n);return t.type===`func`&&t.args.unshift({expr:e}),t}return{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}if(t.type===`int`){let n=Number.parseInt(t.value,10);return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`int`,value:n}}]}}if(t.type===`string`){let n=t.value;return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}throw Error(`Expected identifier, number, or string after dot, got ${t.type}`)}handleIndexing(e){if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e}]};let t=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:{type:`int`,value:0}},{expr:t}]}}let t=this.parseExpr(0);if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e},{expr:t}]};let n=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:t},{expr:n}]}}return this.expect(`]`),{type:`func`,name:`get`,args:[{expr:e},{expr:t}]}}countUnderscores(e){return e.type===`underscore`?1:e.type===`func`?e.args.reduce((e,t)=>e+this.countUnderscores(t.expr),0):e.type===`list`?e.elements.reduce((e,t)=>e+this.countUnderscores(t),0):e.type===`map`?e.entries.reduce((e,t)=>e+this.countUnderscores(t.value),0):0}fillUnderscore(e,t){return e.type===`underscore`?t:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.fillUnderscore(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.fillUnderscore(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.fillUnderscore(e.value,t)}))}:e}bindLambdaArgs(e,t){return{...e,body:this.bindLambdaArgsInExpr(e.body,t)}}bindLambdaArgsInExpr(e,t){return e.type===`identifier`&&t.includes(e.name)?{type:`lambdaBinding`,name:e.name}:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.bindLambdaArgsInExpr(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.bindLambdaArgsInExpr(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.bindLambdaArgsInExpr(e.value,t)}))}:e}getInfixPrec(e){switch(e){case`|`:return T.PIPE;case`||`:case`or`:return T.OR;case`&&`:case`and`:return T.AND;case`==`:case`!=`:case`eq`:case`ne`:return T.EQUALITY;case`<`:case`<=`:case`>`:case`>=`:case`lt`:case`le`:case`gt`:case`ge`:case`in`:case`not in`:return T.COMPARISON;case`+`:case`-`:case`++`:return T.ADDITIVE;case`*`:case`/`:case`//`:case`%`:return T.MULTIPLICATIVE;case`**`:return T.POWER;case`.`:case`[`:return T.POSTFIX;default:return-1}}isRightAssoc(e){return e===`**`}peek(){return this.tokens[this.pos]||{type:`eof`,value:``,pos:0}}peekAt(e){return this.tokens[this.pos+e]||{type:`eof`,value:``,pos:0}}advance(){return this.tokens[this.pos++]}expect(e){let t=this.peek();if(t.type!==e)throw Error(`Expected ${e}, got ${t.type}`);return this.advance()}}});D();function O(e,t){return t.length===0?j(e,[]):t.length===1?{type:`Pipe`,left:t[0],right:j(e,[])}:{type:`Pipe`,left:t[0],right:j(e,t.slice(1))}}var k={add:e=>A(`+`,e[0],e[1]),sub:e=>A(`-`,e[0],e[1]),mul:e=>A(`*`,e[0],e[1]),div:e=>A(`/`,e[0],e[1]),mod:e=>A(`%`,e[0],e[1]),idiv:e=>j(`floor`,[A(`/`,e[0],e[1])]),pow:e=>O(`pow`,e),neg:e=>({type:`UnaryOp`,op:`-`,operand:e[0]}),"==":e=>A(`==`,e[0],e[1]),"!=":e=>A(`!=`,e[0],e[1]),"<":e=>A(`<`,e[0],e[1]),"<=":e=>A(`<=`,e[0],e[1]),">":e=>A(`>`,e[0],e[1]),">=":e=>A(`>=`,e[0],e[1]),eq:e=>A(`==`,P(e[0]),P(e[1])),ne:e=>A(`!=`,P(e[0]),P(e[1])),lt:e=>A(`<`,P(e[0]),P(e[1])),le:e=>A(`<=`,P(e[0]),P(e[1])),gt:e=>A(`>`,P(e[0]),P(e[1])),ge:e=>A(`>=`,P(e[0]),P(e[1])),and:e=>A(`and`,e[0],e[1]),or:e=>A(`or`,e[0],e[1]),not:e=>({type:`UnaryOp`,op:`not`,operand:e[0]}),len:e=>O(`length`,e),length:e=>O(`length`,e),upper:e=>O(`ascii_upcase`,e),lower:e=>O(`ascii_downcase`,e),trim:e=>O(`trim`,e),ltrim:e=>e.length===0?j(`ltrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`ltrimstr`,[{type:`Literal`,value:` `}])},rtrim:e=>e.length===0?j(`rtrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`rtrimstr`,[{type:`Literal`,value:` `}])},split:e=>O(`split`,e),join:e=>e.length===1?j(`join`,[{type:`Literal`,value:``}]):O(`join`,e),concat:e=>A(`+`,e[0],e[1]),startswith:e=>O(`startswith`,e),endswith:e=>O(`endswith`,e),contains:e=>O(`contains`,e),replace:e=>O(`gsub`,e),substr:e=>e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:A(`+`,e[1],e[2])},abs:e=>O(`fabs`,e),floor:e=>O(`floor`,e),ceil:e=>O(`ceil`,e),round:e=>O(`round`,e),sqrt:e=>O(`sqrt`,e),log:e=>O(`log`,e),log10:e=>O(`log10`,e),log2:e=>O(`log2`,e),exp:e=>O(`exp`,e),sin:e=>O(`sin`,e),cos:e=>O(`cos`,e),tan:e=>O(`tan`,e),asin:e=>O(`asin`,e),acos:e=>O(`acos`,e),atan:e=>O(`atan`,e),min:e=>O(`min`,e),max:e=>O(`max`,e),first:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:0}}:{type:`Index`,index:{type:`Literal`,value:0},base:e[0]},last:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:-1}}:{type:`Index`,index:{type:`Literal`,value:-1},base:e[0]},get:e=>e.length===1?{type:`Index`,index:e[0]}:{type:`Index`,index:e[1],base:e[0]},slice:e=>e.length===1?{type:`Slice`,base:e[0]}:e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:e[2]},keys:`keys`,values:`values`,entries:e=>j(`to_entries`,e),from_entries:`from_entries`,reverse:`reverse`,sort:`sort`,sort_by:`sort_by`,group_by:`group_by`,unique:`unique`,unique_by:`unique_by`,flatten:`flatten`,map:e=>({type:`Pipe`,left:e[0],right:{type:`Array`,elements:e[1]}}),select:e=>j(`select`,e),empty:()=>j(`empty`,[]),count:()=>j(`length`,[]),sum:e=>e.length===0?j(`add`,[]):{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:j(`add`,[])},mean:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},avg:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},type:`type`,isnull:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:null}):A(`==`,e[0],{type:`Literal`,value:null}),isempty:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:``}):A(`==`,e[0],{type:`Literal`,value:``}),tonumber:e=>e.length===0?j(`tonumber`,[]):j(`tonumber`,e),tostring:e=>e.length===0?j(`tostring`,[]):j(`tostring`,e),if:e=>N(e[0],e[1],e[2]),coalesce:e=>{if(e.length===0)return{type:`Literal`,value:null};if(e.length===1)return e[0];let[t,...n]=e;return N(A(`and`,A(`!=`,t,{type:`Literal`,value:null}),A(`!=`,t,{type:`Literal`,value:``})),t,n.length===1?n[0]:k.coalesce(n))},index:()=>({type:`Field`,name:`_row_index`}),now:()=>j(`now`,[]),fmt:e=>j(`tostring`,e),format:e=>j(`tostring`,e)};Object.setPrototypeOf(k,null);function A(e,t,n){return{type:`BinaryOp`,op:e,left:t,right:n}}function j(e,t){return{type:`Call`,name:e,args:t}}var M=`then`;function N(e,t,n){let r=u({type:`Cond`,cond:e,elifs:[],else:n||{type:`Literal`,value:null}});return r[M]=t,r}function P(e){return{type:`Pipe`,left:e,right:{type:`Call`,name:`tostring`,args:[]}}}function F(e,t=!0){switch(e.type){case`int`:case`float`:return{type:`Literal`,value:e.value};case`string`:return{type:`Literal`,value:e.value};case`bool`:return{type:`Literal`,value:e.value};case`null`:return{type:`Literal`,value:null};case`underscore`:return{type:`Index`,base:{type:`Identity`},index:{type:`Literal`,value:`_`}};case`identifier`:return t?{type:`Field`,name:e.name}:{type:`VarRef`,name:e.name};case`lambdaBinding`:return{type:`VarRef`,name:e.name};case`func`:{let n=e.args.map(e=>F(e.expr,t)),r=Object.hasOwn(k,e.name)?k[e.name]:void 0;return typeof r==`function`?r(n):j(typeof r==`string`?r:e.name,n)}case`list`:return e.elements.length===0?{type:`Array`}:{type:`Array`,elements:e.elements.reduce((e,n,r)=>{let i=F(n,t);return r===0?i:{type:`Comma`,left:e,right:i}},null)};case`map`:return{type:`Object`,entries:e.entries.map(e=>({key:e.key,value:F(e.value,t)}))};case`regex`:return{type:`Literal`,value:e.pattern};case`slice`:return{type:`Slice`,start:e.start?F(e.start,t):void 0,end:e.end?F(e.end,t):void 0};case`lambda`:return F(e.body,t);case`pipeline`:return{type:`Identity`};default:throw Error(`Unknown moonblade expression type: ${e.type}`)}}function I(e){let t=[],n=0;for(;n<e.length;){for(;n<e.length&&(e[n]===` `||e[n]===`,`);)n++;if(n>=e.length)break;let r=n;for(;n<e.length&&/\w/.test(e[n]);)n++;let i=e.slice(r,n);for(;n<e.length&&e[n]===` `;)n++;if(e[n]!==`(`)break;n++;let a=1,o=n;for(;n<e.length&&a>0;)e[n]===`(`?a++:e[n]===`)`&&a--,a>0&&n++;let s=e.slice(o,n).trim();for(n++;n<e.length&&e[n]===` `;)n++;let c=``;if(e.slice(n,n+3).toLowerCase()===`as `){for(n+=3;n<e.length&&e[n]===` `;)n++;let t=n;for(;n<e.length&&/\w/.test(e[n]);)n++;c=e.slice(t,n)}c||=s?`${i}(${s})`:`${i}()`,t.push({func:i,expr:s,alias:c})}return t}function L(e){return/^\w+$/.test(e)}function R(e,t,n){let r=d(e,F(w(t)),n);return r.length>0?r[0]:null}function z(e,t,n={}){let{func:r,expr:i}=t;if(r===`count`&&!i)return e.length;let a;switch(a=L(i)?e.map(e=>e[i]).filter(e=>e!=null):e.map(e=>R(e,i,n)).filter(e=>e!=null),r){case`count`:return L(i)?a.length:a.filter(e=>!!e).length;case`sum`:return a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).reduce((e,t)=>e+t,0);case`mean`:case`avg`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?e.reduce((e,t)=>e+t,0)/e.length:0}case`min`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.min(...e):null}case`max`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.max(...e):null}case`first`:return a.length>0?a[0]:null;case`last`:return a.length>0?a[a.length-1]:null;case`median`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t);if(e.length===0)return null;let t=Math.floor(e.length/2);return e.length%2==0?(e[t-1]+e[t])/2:e[t]}case`mode`:{let e=new Map;for(let t of a){let n=String(t);e.set(n,(e.get(n)||0)+1)}let t=0,n=null;for(let[r,i]of e)i>t&&(t=i,n=r);return n}case`cardinality`:return new Set(a.map(e=>String(e))).size;case`values`:return a.map(e=>String(e)).join(`|`);case`distinct_values`:return[...new Set(a.map(e=>String(e)))].sort().join(`|`);case`all`:if(e.length===0)return!0;for(let t of e)if(!R(t,i,n))return!1;return!0;case`any`:for(let t of e)if(R(t,i,n))return!0;return!1;default:return null}}function ee(e,t,n={}){let r=v();for(let i of t)_(r,i.alias,z(e,i,n));return r}async function te(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan agg: no aggregation expression
5
+ `,exitCode:1};let{data:i,error:a}=await g(r,t);if(a)return a;let o={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},s=I(n);return{stdout:h(s.map(e=>e.alias),[ee(i,s,o)]),stderr:``,exitCode:0}}async function ne(e,t){let n=``,r=``,i=[];for(let t=0;t<e.length;t++){let a=e[t];a===`--sorted`||a.startsWith(`-`)||(n?r?i.push(a):r=a:n=a)}if(!n||!r)return{stdout:``,stderr:`xan groupby: usage: xan groupby COLS EXPR [FILE]
6
+ `,exitCode:1};let{data:a,error:o}=await g(i,t);if(o)return o;let s={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},c=n.split(`,`),l=I(r),u=[],d=new Map;for(let e of a){let t=c.map(t=>String(e[t])).join(`\0`);d.has(t)||(d.set(t,[]),u.push(t)),d.get(t)?.push(e)}let f=[...c,...l.map(e=>e.alias)],p=[];for(let e of u){let t=d.get(e);if(!t)continue;let n=v();for(let e of c)_(n,e,t[0][e]);for(let e of l)_(n,e.alias,z(t,e,s));p.push(n)}return{stdout:h(f,p),stderr:``,exitCode:0}}async function re(e,t){let n=[],r=``,i=10,a=!1,o=[];for(let t=0;t<e.length;t++){let s=e[t];(s===`-s`||s===`--select`)&&t+1<e.length?n=e[++t].split(`,`):(s===`-g`||s===`--groupby`)&&t+1<e.length?r=e[++t]:(s===`-l`||s===`--limit`)&&t+1<e.length?i=Number.parseInt(e[++t],10):s===`--no-extra`?a=!0:s===`-A`||s===`--all`?i=0:s.startsWith(`-`)||o.push(s)}let{headers:s,data:c,error:l}=await g(o,t);if(l)return l;let u=n.length>0?n:s.filter(e=>e!==r);r&&n.length===0&&(u=s.filter(e=>e!==r));let d=[],f=r?[`field`,r,`value`,`count`]:[`field`,`value`,`count`];if(r){let e=new Map;for(let t of c){let n=String(t[r]??``);e.has(n)||e.set(n,[]),e.get(n)?.push(t)}for(let t of u)for(let[n,o]of e){let e=new Map;for(let n of o){let r=n[t],i=r===``||r==null?``:String(r);e.set(i,(e.get(i)||0)+1)}let s=[...e.entries()].sort((e,t)=>t[1]===e[1]?e[0].localeCompare(t[0]):t[1]-e[1]);a&&(s=s.filter(([e])=>e!==``)),i>0&&(s=s.slice(0,i));for(let[e,i]of s)d.push({field:t,[r]:n,value:e===``?`<empty>`:e,count:i})}}else for(let e of u){let t=new Map;for(let n of c){let r=n[e],i=r===``||r==null?``:String(r);t.set(i,(t.get(i)||0)+1)}let n=[...t.entries()].sort((e,t)=>t[1]===e[1]?e[0].localeCompare(t[0]):t[1]-e[1]);a&&(n=n.filter(([e])=>e!==``)),i>0&&(n=n.slice(0,i));for(let[t,r]of n)d.push({field:e,value:t===``?`<empty>`:t,count:r})}return{stdout:h(f,d),stderr:``,exitCode:0}}async function ie(e,t){let n=[],r=[];for(let t=0;t<e.length;t++){let i=e[t];i===`-s`&&t+1<e.length?n=e[++t].split(`,`):i.startsWith(`-`)||r.push(i)}let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=n.length>0?n:i,c=[`field`,`type`,`count`,`min`,`max`,`mean`],l=[];for(let e of s){let t=a.map(t=>t[e]).filter(e=>e!=null),n=t.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e)),r=n.length===t.length&&n.length>0;l.push({field:e,type:r?`Number`:`String`,count:t.length,min:r?Math.min(...n):``,max:r?Math.max(...n):``,mean:r?Math.round(n.reduce((e,t)=>e+t,0)/n.length*1e10)/1e10:``})}return{stdout:h(c,l),stderr:``,exitCode:0}}D();function ae(e){return F(w(e))}function B(t){return e(`^${t.replace(/[.+?^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`)}$`)}function V(e,t){let n=[],r=new Set;for(let i of e.split(`,`)){let e=i.trim();if(e.startsWith(`!`)){let n=V(e.slice(1),t);for(let e of n)r.add(e);continue}if(e===`*`){for(let e of t)n.includes(e)||n.push(e);continue}if(e.includes(`*`)){let r=B(e);for(let e of t)r.test(e)&&!n.includes(e)&&n.push(e);continue}let a=e.match(/^([^:]*):([^:]*)$/);if(a&&(a[1]||a[2])){let e=a[1],r=a[2],i=e?t.indexOf(e):0,o=r?t.indexOf(r):t.length-1;if(i!==-1&&o!==-1){let e=i<=o?1:-1;for(let r=i;e>0?r<=o:r>=o;r+=e)n.includes(t[r])||n.push(t[r])}continue}let o=e.match(/^(\d+)-(\d+)$/);if(o){let e=Number.parseInt(o[1],10),r=Number.parseInt(o[2],10);for(let i=e;i<=r&&i<t.length;i++)n.push(t[i]);continue}let s=Number.parseInt(e,10);if(!Number.isNaN(s)&&s>=0&&s<t.length){n.push(t[s]);continue}t.includes(e)&&n.push(e)}return r.size>0?n.filter(e=>!r.has(e)):n}async function H(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan select: no columns specified
7
+ `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=V(n,i);return{stdout:h(s,a.map(e=>{let t=v();for(let n of s)_(t,n,e[n]);return t})),stderr:``,exitCode:0}}async function U(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan drop: no columns specified
8
+ `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=new Set(V(n,i)),c=i.filter(e=>!s.has(e));return{stdout:h(c,a.map(e=>{let t=v();for(let n of c)_(t,n,e[n]);return t})),stderr:``,exitCode:0}}async function W(e,t){let n=``,r=``,i=[];for(let t=0;t<e.length;t++){let a=e[t];a===`-s`&&t+1<e.length?r=e[++t]:a.startsWith(`-`)||(n?i.push(a):n=a)}if(!n)return{stdout:``,stderr:`xan rename: no new name(s) specified
9
+ `,exitCode:1};let{headers:a,data:o,error:s}=await g(i,t);if(s)return s;let c;if(r){let e=r.split(`,`),t=n.split(`,`),i=new Map;for(let n=0;n<e.length&&n<t.length;n++)i.set(e[n],t[n]);c=a.map(e=>i.get(e)||e)}else{let e=n.split(`,`);c=a.map((t,n)=>n<e.length?e[n]:t)}let l=o.map(e=>{let t=v();for(let n=0;n<a.length;n++)_(t,c[n],e[a[n]]);return t});return{stdout:h(c,l),stderr:``,exitCode:0}}async function G(e,t){let n=`index`,r=[];for(let t=0;t<e.length;t++)e[t]===`-c`&&t+1<e.length?n=e[++t]:r.push(e[t]);let{headers:i,data:a,error:o}=await g(r,t);return o||{stdout:h([n,...i],a.map((e,t)=>{let r=v();_(r,n,t);for(let t of i)_(r,t,e[t]);return r})),stderr:``,exitCode:0}}async function K(e,t){let n=e.includes(`-j`)||e.includes(`--just-names`),{headers:r,error:i}=await g(e.filter(e=>e!==`-j`&&e!==`--just-names`),t);return i||{stdout:n?`${r.map(e=>e).join(`
10
+ `)}
11
+ `:`${r.map((e,t)=>`${t} ${e}`).join(`
12
+ `)}
13
+ `,stderr:``,exitCode:0}}async function q(e,t){let{data:n,error:r}=await g(e,t);return r||{stdout:`${n.length}
14
+ `,stderr:``,exitCode:0}}async function J(e,t){let n=10,r=[];for(let t=0;t<e.length;t++)(e[t]===`-l`||e[t]===`-n`)&&t+1<e.length?n=Number.parseInt(e[++t],10):r.push(e[t]);let{headers:i,data:a,error:o}=await g(r,t);return o||{stdout:h(i,a.slice(0,n)),stderr:``,exitCode:0}}async function oe(e,t){let n=10,r=[];for(let t=0;t<e.length;t++)(e[t]===`-l`||e[t]===`-n`)&&t+1<e.length?n=Number.parseInt(e[++t],10):r.push(e[t]);let{headers:i,data:a,error:o}=await g(r,t);return o||{stdout:h(i,a.slice(-n)),stderr:``,exitCode:0}}async function se(e,t){let n,r,i,a=[];for(let t=0;t<e.length;t++){let o=e[t];(o===`-s`||o===`--start`)&&t+1<e.length?n=Number.parseInt(e[++t],10):(o===`-e`||o===`--end`)&&t+1<e.length?r=Number.parseInt(e[++t],10):(o===`-l`||o===`--len`)&&t+1<e.length?i=Number.parseInt(e[++t],10):o.startsWith(`-`)||a.push(o)}let{headers:o,data:s,error:c}=await g(a,t);if(c)return c;let l=n??0,u;return u=i===void 0?r===void 0?s.length:r:l+i,{stdout:h(o,s.slice(l,u)),stderr:``,exitCode:0}}async function ce(e,t){let{headers:n,data:r,error:i}=await g(e,t);return i||{stdout:h(n,[...r].reverse()),stderr:``,exitCode:0}}var Y=t(c(),1);async function le(e,t){let{headers:n,data:r,error:i}=await g(e.filter(e=>!e.startsWith(`-`)),t);if(i)return i;if(r.length===0)return{stdout:h([`column`],n.map(e=>({column:e}))),stderr:``,exitCode:0};let a=n[0],o=[a,...r.map((e,t)=>String(e[a]??`row_${t}`))],s=[];for(let e=1;e<n.length;e++){let t=n[e],i=v();_(i,a,t);for(let e=0;e<r.length;e++)_(i,o[e+1],r[e][t]);s.push(i)}return{stdout:h(o,s),stderr:``,exitCode:0}}async function ue(e,t){let n=null,r=[];for(let t=0;t<e.length;t++){let i=e[t];i===`--seed`&&t+1<e.length?n=Number.parseInt(e[++t],10):i.startsWith(`-`)||r.push(i)}let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=n===null?Date.now():n,c=()=>(s=s*1103515245+12345&2147483647,s/2147483647),l=[...a];for(let e=l.length-1;e>0;e--){let t=Math.floor(c()*(e+1));[l[e],l[t]]=[l[t],l[e]]}return{stdout:h(i,l),stderr:``,exitCode:0}}async function de(e,t){let n=null,r=``,i=[];for(let t=0;t<e.length;t++){let a=e[t];(a===`-l`||a===`--length`)&&t+1<e.length?n=Number.parseInt(e[++t],10):(a===`-d`||a===`--default`)&&t+1<e.length?r=e[++t]:a.startsWith(`-`)||i.push(a)}let a=i[0],o;if(!a||a===`-`)o=t.stdin;else try{let e=t.fs.resolvePath(t.cwd,a);o=await t.fs.readFile(e)}catch{return{stdout:``,stderr:`xan fixlengths: ${a}: No such file or directory
15
+ `,exitCode:1}}let s=Y.default.parse(o.trim(),{header:!1,skipEmptyLines:!0}).data;if(s.length===0)return{stdout:``,stderr:``,exitCode:0};let c=Math.max(...s.map(e=>e.length)),l=n??c,u=s.map(e=>e.length===l?e:e.length<l?[...e,...Array(l-e.length).fill(r)]:e.slice(0,l));return{stdout:`${Y.default.unparse(u).replace(/\r\n/g,`
16
+ `)}
17
+ `,stderr:``,exitCode:0}}async function fe(e,t){let n=null,r=null,i=`.`,a=[];for(let t=0;t<e.length;t++){let o=e[t];(o===`-c`||o===`--chunks`)&&t+1<e.length?n=Number.parseInt(e[++t],10):(o===`-S`||o===`--size`)&&t+1<e.length?r=Number.parseInt(e[++t],10):(o===`-o`||o===`--output`)&&t+1<e.length?i=e[++t]:o.startsWith(`-`)||a.push(o)}if(!n&&!r)return{stdout:``,stderr:`xan split: must specify -c or -S
18
+ `,exitCode:1};let{headers:o,data:s,error:c}=await g(a,t);if(c)return c;let l=[];if(n){let e=Math.ceil(s.length/n);for(let t=0;t<n;t++)l.push(s.slice(t*e,(t+1)*e))}else if(r)for(let e=0;e<s.length;e+=r)l.push(s.slice(e,e+r));let u=l.filter(e=>e.length>0),d=a[0]?.replace(/\.csv$/,``)||`part`;try{let e=t.fs.resolvePath(t.cwd,i);for(let n=0;n<u.length;n++){let r=`${d}_${String(n+1).padStart(3,`0`)}.csv`,i=t.fs.resolvePath(e,r);await t.fs.writeFile(i,h(o,u[n]))}return{stdout:`Split into ${u.length} parts
19
+ `,stderr:``,exitCode:0}}catch{return{stdout:`${u.map((e,t)=>`Part ${t+1}: ${e.length} rows`).join(`
20
+ `)}
21
+ `,stderr:``,exitCode:0}}}function X(e){return e.replace(/[^a-zA-Z0-9_-]/g,`_`)||`empty`}function pe(e){let t=2166136261;for(let n=0;n<e.length;n++)t=(t^e.charCodeAt(n))*16777619>>>0;return t.toString(36).padStart(6,`0`).slice(0,6)}async function me(e,t){let n=``,r=`.`,i=[];for(let t=0;t<e.length;t++){let a=e[t];(a===`-o`||a===`--output`)&&t+1<e.length?r=e[++t]:a.startsWith(`-`)||(n?i.push(a):n=a)}if(!n)return{stdout:``,stderr:`xan partition: usage: xan partition COLUMN [FILE]
22
+ `,exitCode:1};let{headers:a,data:o,error:s}=await g(i,t);if(s)return s;if(!a.includes(n))return{stdout:``,stderr:`xan partition: column '${n}' not found
23
+ `,exitCode:1};let c=new Map;for(let e of o){let t=String(e[n]??``);c.has(t)||c.set(t,[]),c.get(t)?.push(e)}let l=new Map;for(let e of c.keys()){let t=X(e);l.set(t,(l.get(t)??0)+1)}let u=new Set,d=new Map;for(let e of c.keys()){let t=X(e),n=(l.get(t)??0)>1?`${t}_${pe(e)}`:t,r=`${n}.csv`,i=1;for(;u.has(r);)r=`${n}_${i}.csv`,i++;u.add(r),d.set(e,r)}try{let e=t.fs.resolvePath(t.cwd,r);for(let[n,r]of c){let i=d.get(n);if(!i)continue;let o=t.fs.resolvePath(e,i);await t.fs.writeFile(o,h(a,r))}return{stdout:`Partitioned into ${c.size} files by '${n}'
24
+ `,stderr:``,exitCode:0}}catch{return{stdout:`${Array.from(c.entries()).map(([e,t])=>`${e}: ${t.length} rows`).join(`
25
+ `)}
26
+ `,stderr:``,exitCode:0}}}async function he(e,t){if(e.length===0)return{stdout:``,stderr:`xan to: usage: xan to <format> [FILE]
27
+ `,exitCode:1};let n=e[0],r=e.slice(1);return n===`json`?ge(r,t):{stdout:``,stderr:`xan to: unsupported format '${n}'
28
+ `,exitCode:1}}async function ge(e,t){let{data:n,error:r}=await g(e.filter(e=>!e.startsWith(`-`)),t);return r||{stdout:`${JSON.stringify(n,null,2)}
29
+ `,stderr:``,exitCode:0}}async function _e(e,t){let n=``,r=[];for(let t=0;t<e.length;t++){let i=e[t];(i===`-f`||i===`--format`)&&t+1<e.length?n=e[++t]:i.startsWith(`-`)||r.push(i)}return n?n===`json`?ve(r,t):{stdout:``,stderr:`xan from: unsupported format '${n}'
30
+ `,exitCode:1}:{stdout:``,stderr:`xan from: usage: xan from -f <format> [FILE]
31
+ `,exitCode:1}}async function ve(e,t){let n=e[0],r;if(!n||n===`-`)r=t.stdin;else try{let e=t.fs.resolvePath(t.cwd,n);r=await t.fs.readFile(e)}catch{return{stdout:``,stderr:`xan from: ${n}: No such file or directory
32
+ `,exitCode:1}}try{let e=JSON.parse(r.trim());if(!Array.isArray(e))return{stdout:``,stderr:`xan from: JSON input must be an array
33
+ `,exitCode:1};if(e.length===0)return{stdout:`
34
+ `,stderr:``,exitCode:0};if(Array.isArray(e[0])){let[t,...n]=e;return{stdout:h(t,n.map(e=>{let n=v();for(let r=0;r<t.length;r++)_(n,t[r],e[r]);return n})),stderr:``,exitCode:0}}return{stdout:h(Object.keys(e[0]).sort(),e),stderr:``,exitCode:0}}catch{return{stdout:``,stderr:`xan from: invalid JSON input
35
+ `,exitCode:1}}}async function ye(e,t){let n=!1,r=0,i=``,o=[];for(let t=0;t<e.length;t++){let s=e[t];if(s===`-v`||s===`--invert`)n=!0;else if((s===`-l`||s===`--limit`)&&t+1<e.length)r=Number.parseInt(e[++t],10);else{if(s===`--help`)return a({name:`xan filter`,summary:`Filter rows by expression`,usage:`xan filter [OPTIONS] EXPR [FILE]`,description:`Filter CSV rows using moonblade expressions.`,options:[`-v, --invert invert match`,`-l, --limit N limit output to N rows`,` --help display help`]});s.startsWith(`-`)||(i?o.push(s):i=s)}}if(!i)return{stdout:``,stderr:`xan filter: no expression specified
36
+ `,exitCode:1};let{headers:s,data:c,error:l}=await g(o,t);if(l)return l;let u={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},f=ae(i),p=[];for(let e of c){if(r>0&&p.length>=r)break;let t=d(e,f,u),i=t.length>0&&t.some(e=>!!e);(n?!i:i)&&p.push(e)}return{stdout:h(s,p),stderr:``,exitCode:0}}async function be(e,t){let n=``,r=!1,i=!1,a=[];for(let t=0;t<e.length;t++){let o=e[t];o===`-N`||o===`--numeric`?r=!0:o===`-R`||o===`-r`||o===`--reverse`?i=!0:o===`-s`&&t+1<e.length?n=e[++t]:o.startsWith(`-`)||a.push(o)}let{headers:o,data:s,error:c}=await g(a,t);return c||(!n&&o.length>0&&(n=o[0]),{stdout:h(o,[...s].sort((e,t)=>{let a=e[n],o=t[n],s;return s=r?(typeof a==`number`?a:Number.parseFloat(String(a)))-(typeof o==`number`?o:Number.parseFloat(String(o))):String(a).localeCompare(String(o)),i?-s:s})),stderr:``,exitCode:0})}async function xe(e,t){let n=``,r=[];for(let t=0;t<e.length;t++){let i=e[t];i===`-s`&&t+1<e.length?n=e[++t]:i.startsWith(`-`)||r.push(i)}let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=new Set;return{stdout:h(i,a.filter(e=>{let t=n?String(e[n]):JSON.stringify(e);return s.has(t)?!1:(s.add(t),!0)})),stderr:``,exitCode:0}}async function Se(e,t){let n=10,r=``,i=!1,a=[];for(let t=0;t<e.length;t++){let o=e[t];(o===`-l`||o===`-n`)&&t+1<e.length?n=Number.parseInt(e[++t],10):o===`-R`||o===`-r`||o===`--reverse`?i=!0:o.startsWith(`-`)||(r?a.push(o):r=o)}let{headers:o,data:s,error:c}=await g(a,t);return c||(!r&&o.length>0&&(r=o[0]),{stdout:h(o,[...s].sort((e,t)=>{let n=e[r],a=t[r],o=typeof n==`number`?n:Number.parseFloat(String(n)),s=typeof a==`number`?a:Number.parseFloat(String(a));return i?o-s:s-o}).slice(0,n)),stderr:``,exitCode:0})}D();async function Ce(e,t){let n=``,r=!1,i=!1,a=[];for(let t=0;t<e.length;t++){let o=e[t];o===`-O`||o===`--overwrite`?r=!0:o===`--filter`?i=!0:o.startsWith(`-`)||(n?a.push(o):n=o)}if(!n)return{stdout:``,stderr:`xan map: no expression specified
37
+ `,exitCode:1};let{headers:o,data:s,error:c}=await g(a,t);if(c)return c;let u=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),f={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},p;if(r){p=[...o];for(let e of u)o.includes(e.alias)||p.push(e.alias)}else p=[...o,...u.map(e=>e.alias)];let m=[];for(let e=0;e<s.length;e++){let t=s[e],n=y(t),r=!1,a=Object.assign(l(t),{_row_index:e});for(let e of u){let t=d(a,e.ast,f),o=t.length>0?t[0]:null;if(i&&o==null){r=!0;break}_(n,e.alias,o)}r||m.push(n)}return{stdout:h(p,m),stderr:``,exitCode:0}}async function we(e,t){let n=``,r=``,a=``,o=[];for(let t=0;t<e.length;t++){let i=e[t];(i===`-r`||i===`--rename`)&&t+1<e.length?a=e[++t]:i.startsWith(`-`)||(n?r?o.push(i):r=i:n=i)}if(!n||!r)return{stdout:``,stderr:`xan transform: usage: xan transform COLUMN EXPR [FILE]
38
+ `,exitCode:1};let{headers:s,data:c,error:u}=await g(o,t);if(u)return u;let f=n.split(`,`).map(e=>e.trim()),p=a?a.split(`,`).map(e=>e.trim()):[];for(let e of f)if(!s.includes(e))return{stdout:``,stderr:`xan transform: column '${e}' not found
39
+ `,exitCode:1};let m=F(C(r)[0]?.expr||(D(),i(S)).parseMoonblade(r)),v={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},b=s.map(e=>{let t=f.indexOf(e);return t!==-1&&p[t]?p[t]:e}),x=[];for(let e of c){let t=y(e);for(let n=0;n<f.length;n++){let r=f[n],i=d(Object.assign(l(e),{_:e[r]}),m,v),a=i.length>0?i[0]:null,o=p[n]||r;o!==r&&delete t[r],_(t,o,a)}x.push(t)}return{stdout:h(b,x),stderr:``,exitCode:0}}async function Te(e,t){let n=``,r=`|`,i=!1,a=``,o=[];for(let t=0;t<e.length;t++){let s=e[t];(s===`-s`||s===`--separator`)&&t+1<e.length?r=e[++t]:s===`--drop-empty`?i=!0:(s===`-r`||s===`--rename`)&&t+1<e.length?a=e[++t]:s.startsWith(`-`)||(n?o.push(s):n=s)}if(!n)return{stdout:``,stderr:`xan explode: usage: xan explode COLUMN [FILE]
40
+ `,exitCode:1};let{headers:s,data:c,error:l}=await g(o,t);if(l)return l;if(!s.includes(n))return{stdout:``,stderr:`xan explode: column '${n}' not found
41
+ `,exitCode:1};let u=a?s.map(e=>e===n?a:e):s,d=a||n,f=[];for(let e of c){let t=e[n],o=t==null?``:String(t);if(o===``){if(!i){let t=y(e);a&&(delete t[n],_(t,d,``)),f.push(t)}}else{let t=o.split(r);for(let r of t){let t=y(e);a&&delete t[n],_(t,d,r),f.push(t)}}}return{stdout:h(u,f),stderr:``,exitCode:0}}async function Ee(e,t){let n=``,r=`|`,i=``,a=[];for(let t=0;t<e.length;t++){let o=e[t];(o===`-s`||o===`--sep`)&&t+1<e.length?r=e[++t]:(o===`-r`||o===`--rename`)&&t+1<e.length?i=e[++t]:o.startsWith(`-`)||(n?a.push(o):n=o)}if(!n)return{stdout:``,stderr:`xan implode: usage: xan implode COLUMN [FILE]
42
+ `,exitCode:1};let{headers:o,data:s,error:c}=await g(a,t);if(c)return c;if(!o.includes(n))return{stdout:``,stderr:`xan implode: column '${n}' not found
43
+ `,exitCode:1};let l=o.filter(e=>e!==n),u=i?o.map(e=>e===n?i:e):o,d=i||n,f=[],p=null,m=[],v=null;for(let e of s){let t=l.map(t=>String(e[t]??``)).join(`\0`),a=e[n],o=a==null?``:String(a);if(t!==p){if(v!==null){let e=y(v);i&&delete e[n],_(e,d,m.join(r)),f.push(e)}p=t,m=[o],v=e}else m.push(o)}if(v!==null){let e=y(v);i&&delete e[n],_(e,d,m.join(r)),f.push(e)}return{stdout:h(u,f),stderr:``,exitCode:0}}async function De(e,t){let n=``,r=``,i=``,a=``,o=`inner`,s=``,c=0;for(let t=0;t<e.length;t++){let l=e[t];l===`--left`?o=`left`:l===`--right`?o=`right`:l===`--full`?o=`full`:(l===`-D`||l===`--default`)&&t+1<e.length?s=e[++t]:l.startsWith(`-`)||(c++,c===1?n=l:c===2?r=l:c===3?i=l:c===4&&(a=l))}if(!n||!r||!i||!a)return{stdout:``,stderr:`xan join: usage: xan join KEY1 FILE1 KEY2 FILE2 [OPTIONS]
44
+ `,exitCode:1};let l=await g([r],t);if(l.error)return l.error;let u=await g([a],t);if(u.error)return u.error;let{headers:d,data:f}=l,{headers:p,data:m}=u;if(!d.includes(n))return{stdout:``,stderr:`xan join: column '${n}' not found in first file
45
+ `,exitCode:1};if(!p.includes(i))return{stdout:``,stderr:`xan join: column '${i}' not found in second file
46
+ `,exitCode:1};let y=new Map;for(let e of m){let t=String(e[i]??``);y.has(t)||y.set(t,[]),y.get(t)?.push(e)}let b=new Set(d),x=p.filter(e=>!b.has(e)),S=[...d,...x],C=[],w=new Set;for(let e of f){let t=String(e[n]??``),r=y.get(t);if(r&&r.length>0){w.add(t);for(let t of r){let n=v();for(let t of d)_(n,t,e[t]);for(let e of x)_(n,e,t[e]);C.push(n)}}else if(o===`left`||o===`full`){let t=v();for(let n of d)_(t,n,e[n]);for(let e of x)_(t,e,s);C.push(t)}}if(o===`right`||o===`full`)for(let e of m){let t=String(e[i]??``);if(!w.has(t)){let t=v();for(let n of d)_(t,n,p.includes(n)?e[n]:s);for(let n of x)_(t,n,e[n]);C.push(t)}}return{stdout:h(S,C),stderr:``,exitCode:0}}async function Oe(e,t){let n=``,r=``,i=[],a=[];for(let t=0;t<e.length;t++){let o=e[t];(o===`-g`||o===`--groupby`)&&t+1<e.length?i=e[++t].split(`,`).map(e=>e.trim()):o.startsWith(`-`)||(n?r?a.push(o):r=o:n=o)}if(!n||!r)return{stdout:``,stderr:`xan pivot: usage: xan pivot COLUMN AGG_EXPR [OPTIONS] [FILE]
47
+ `,exitCode:1};let{headers:o,data:s,error:c}=await g(a,t);if(c)return c;if(!o.includes(n))return{stdout:``,stderr:`xan pivot: column '${n}' not found
48
+ `,exitCode:1};let l=r.match(/^(\w+)\((\w+)\)$/);if(!l)return{stdout:``,stderr:`xan pivot: invalid aggregation expression '${r}'
49
+ `,exitCode:1};let[,u,d]=l;i.length===0&&(i=o.filter(e=>e!==n&&e!==d));let f=[];for(let e of s){let t=String(e[n]??``);f.includes(t)||f.push(t)}let p=new Map,m=[];for(let e of s){let t=i.map(t=>String(e[t]??``)).join(`\0`),r=String(e[n]??``),a=e[d];p.has(t)||(p.set(t,new Map),m.push(t));let o=p.get(t);o&&(o.has(r)||o.set(r,[]),o.get(r)?.push(a))}let y=[...i,...f],b=[];for(let e of m){let t=e.split(`\0`),n=p.get(e);if(!n)continue;let r=v();for(let e=0;e<i.length;e++)_(r,i[e],t[e]);for(let e of f)_(r,e,ke(u,n.get(e)||[]));b.push(r)}return{stdout:h(y,b),stderr:``,exitCode:0}}function ke(e,t){let n=t.filter(e=>e!=null).map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e));switch(e){case`count`:return t.length;case`sum`:return n.reduce((e,t)=>e+t,0);case`mean`:case`avg`:return n.length>0?n.reduce((e,t)=>e+t,0)/n.length:null;case`min`:return n.length>0?Math.min(...n):null;case`max`:return n.length>0?Math.max(...n):null;case`first`:return t.length>0?String(t[0]??``):null;case`last`:return t.length>0?String(t[t.length-1]??``):null;default:return null}}async function Z(e,t){let n=``,r=[];for(let t=0;t<e.length;t++){let i=e[t];(i===`-s`||i===`--sort`)&&t+1<e.length?n=e[++t]:i.startsWith(`-`)||r.push(i)}if(r.length<2)return{stdout:``,stderr:`xan merge: usage: xan merge [OPTIONS] FILE1 FILE2 ...
50
+ `,exitCode:1};let i=[],a=null;for(let e of r){let n=await g([e],t);if(n.error)return n.error;if(a===null)a=n.headers;else if(JSON.stringify(a)!==JSON.stringify(n.headers))return{stdout:``,stderr:`xan merge: all files must have the same headers
51
+ `,exitCode:1};i.push({headers:n.headers,data:n.data})}if(!a)return{stdout:``,stderr:``,exitCode:0};let o=[];for(let{data:e}of i)o=o.concat(e);if(n){if(!a.includes(n))return{stdout:``,stderr:`xan merge: column '${n}' not found
52
+ `,exitCode:1};o.sort((e,t)=>{let r=e[n],i=t[n],a=typeof r==`number`?r:Number.parseFloat(String(r)),o=typeof i==`number`?i:Number.parseFloat(String(i));return!Number.isNaN(a)&&!Number.isNaN(o)?a-o:String(r??``).localeCompare(String(i??``))})}return{stdout:h(a,o),stderr:``,exitCode:0}}D();async function Ae(e,t){let{headers:n,data:r,error:i}=await g(e.filter(e=>!e.startsWith(`-`)),t);return i||(r.length===0?{stdout:``,stderr:``,exitCode:0}:{stdout:r.map(e=>n.map(t=>e[t])).map(e=>e.map(e=>je(e)).join(`,`)).join(`
53
+ `)+`
54
+ `,stderr:``,exitCode:0})}function je(e){if(e==null)return``;let t=String(e);return t.includes(`,`)||t.includes(`"`)||t.includes(`
55
+ `)?`"${t.replace(/"/g,`""`)}"`:t}async function Me(e,t){let n=null,r=null,i=[];for(let t=0;t<e.length;t++){let a=e[t];if(a===`--seed`&&t+1<e.length)r=Number.parseInt(e[++t],10);else if(!a.startsWith(`-`)){let e=Number.parseInt(a,10);n===null&&!Number.isNaN(e)&&e>0?n=e:i.push(a)}}if(n===null)return{stdout:``,stderr:`xan sample: usage: xan sample <sample-size> [FILE]
56
+ `,exitCode:1};let{headers:a,data:o,error:s}=await g(i,t);if(s)return s;if(o.length<=n)return{stdout:h(a,o),stderr:``,exitCode:0};let c=r===null?Date.now():r,l=()=>(c=c*1103515245+12345&2147483647,c/2147483647),u=o.map((e,t)=>t);for(let e=u.length-1;e>0;e--){let t=Math.floor(l()*(e+1));[u[e],u[t]]=[u[t],u[e]]}return{stdout:h(a,u.slice(0,n).sort((e,t)=>e-t).map(e=>o[e])),stderr:``,exitCode:0}}async function Ne(e,t){let n=!1,r=[];for(let t=0;t<e.length;t++){let i=e[t];i===`-p`||i===`--pad`?n=!0:i.startsWith(`-`)||r.push(i)}if(r.length===0)return{stdout:``,stderr:`xan cat: no files specified
57
+ `,exitCode:1};let i=await s(t,r,{cmdName:`xan cat`,stopOnError:!0});if(i.exitCode!==0)return{stdout:``,stderr:i.stderr,exitCode:i.exitCode};let a=[],o=[];for(let{content:e}of i.files){let{headers:t,data:n}=f(e);a.push({headers:t,data:n});for(let e of t)o.includes(e)||o.push(e)}if(!n){let e=JSON.stringify(a[0].headers);for(let t=1;t<a.length;t++)if(JSON.stringify(a[t].headers)!==e)return{stdout:``,stderr:`xan cat: headers do not match (use -p to pad)
58
+ `,exitCode:1};o=a[0].headers}let c=[];for(let{headers:e,data:t}of a)for(let n of t){let t=v();for(let r of o)_(t,r,e.includes(r)?n[r]:``);c.push(t)}return{stdout:h(o,c),stderr:``,exitCode:0}}async function Pe(t,n){let r=``,i=[],a=!1,o=!1,s=[];for(let e=0;e<t.length;e++){let n=t[e];(n===`-s`||n===`--select`)&&e+1<t.length?i=t[++e].split(`,`):n===`-v`||n===`--invert`?a=!0:n===`-i`||n===`--ignore-case`?o=!0:n===`-r`||n===`--regex`||n.startsWith(`-`)||(r?s.push(n):r=n)}if(!r)return{stdout:``,stderr:`xan search: no pattern specified
59
+ `,exitCode:1};let{headers:c,data:l,error:u}=await g(s,n);if(u)return u;let d=i.length>0?i:c,f;try{f=e(r,o?`i`:``)}catch{return{stdout:``,stderr:`xan search: invalid regex pattern '${r}'
60
+ `,exitCode:1}}return{stdout:h(c,l.filter(e=>{let t=d.some(t=>{let n=e[t];return n!=null&&f.test(String(n))});return a?!t:t})),stderr:``,exitCode:0}}async function Fe(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan flatmap: no expression specified
61
+ `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Ie(e,t){let{cmdView:n}=await import(`./xan-view-OW2TB7Z3-CwG0zS53.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Le=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
62
+ It provides a simple, ergonomic interface for common data operations.
63
+
64
+ COMMANDS:
65
+ Core:
66
+ headers Show column names
67
+ count Count rows
68
+ head Show first N rows
69
+ tail Show last N rows
70
+ slice Extract row range
71
+ reverse Reverse row order
72
+ behead Remove header row
73
+ sample Random sample of rows
74
+
75
+ Column operations:
76
+ select Select columns (supports glob, ranges, negation)
77
+ drop Drop columns
78
+ rename Rename columns
79
+ enum Add row index column
80
+
81
+ Row operations:
82
+ filter Filter rows by expression
83
+ search Filter rows by regex match
84
+ sort Sort rows
85
+ dedup Remove duplicates
86
+ top Get top N by column
87
+
88
+ Transformations:
89
+ map Add computed columns
90
+ transform Modify existing columns
91
+ explode Split column into multiple rows
92
+ implode Combine rows, join column values
93
+ flatmap Map returning multiple rows
94
+ pivot Reshape rows into columns
95
+ transpose Swap rows and columns
96
+
97
+ Aggregation:
98
+ agg Aggregate values
99
+ groupby Group and aggregate
100
+ frequency Count value occurrences
101
+ stats Show column statistics
102
+
103
+ Multi-file:
104
+ cat Concatenate CSV files
105
+ join Join two CSV files on key
106
+ merge Merge sorted CSV files
107
+ split Split into multiple files
108
+ partition Split by column value
109
+
110
+ Data conversion:
111
+ to Convert CSV to other formats (json)
112
+ from Convert other formats to CSV (json)
113
+ shuffle Randomly reorder rows
114
+ fixlengths Fix ragged CSV files
115
+
116
+ Output:
117
+ view Pretty print as table
118
+ flatten Display records vertically (alias: f)
119
+ fmt Format output
120
+
121
+ EXAMPLES:
122
+ xan headers data.csv
123
+ xan count data.csv
124
+ xan head -n 5 data.csv
125
+ xan select name,email data.csv
126
+ xan select 'vec_*' data.csv # glob pattern
127
+ xan select 'a:c' data.csv # column range
128
+ xan filter 'age > 30' data.csv
129
+ xan search -r '^foo' data.csv
130
+ xan sort -N price data.csv
131
+ xan agg 'sum(amount) as total' data.csv
132
+ xan groupby region 'count() as n' data.csv
133
+ xan explode tags data.csv
134
+ xan join id file1.csv id file2.csv
135
+ xan pivot year 'sum(sales)' data.csv`,options:[` --help display this help and exit`]},Re={headers:{name:`xan headers`,summary:`Show column names`,usage:`xan headers [OPTIONS] [FILE]`,description:`Display column names from a CSV file.`,options:[`-j, --just-names show names only (no index)`]},count:{name:`xan count`,summary:`Count rows`,usage:`xan count [FILE]`,description:`Count the number of data rows (excluding header).`,options:[]},filter:{name:`xan filter`,summary:`Filter rows by expression`,usage:`xan filter [OPTIONS] EXPR [FILE]`,description:`Filter CSV rows using moonblade expressions.`,options:[`-v, --invert invert match`,`-l, --limit N limit output rows`]},search:{name:`xan search`,summary:`Filter rows by regex`,usage:`xan search [OPTIONS] PATTERN [FILE]`,description:`Filter CSV rows by regex match on columns.`,options:[`-s, --select COLS search only these columns`,`-v, --invert invert match`,`-i, --ignore-case case insensitive`]},select:{name:`xan select`,summary:`Select columns`,usage:`xan select COLS [FILE]`,description:`Select columns by name, index, glob, or range.`,options:[`Supports: col names, indices (0,1), ranges (a:c), globs (vec_*), negation (!col)`]},explode:{name:`xan explode`,summary:`Split column into rows`,usage:`xan explode COLUMN [OPTIONS] [FILE]`,description:`Split delimited column values into multiple rows.`,options:[`-s, --separator SEP separator (default: |)`,`--drop-empty drop empty values`,`-r, --rename NAME rename column`]},implode:{name:`xan implode`,summary:`Combine rows`,usage:`xan implode COLUMN [OPTIONS] [FILE]`,description:`Combine consecutive rows, joining column values.`,options:[`-s, --sep SEP separator (default: |)`,`-r, --rename NAME rename column`]},join:{name:`xan join`,summary:`Join CSV files`,usage:`xan join KEY1 FILE1 KEY2 FILE2 [OPTIONS]`,description:`Join two CSV files on key columns.`,options:[`--left left outer join`,`--right right outer join`,`--full full outer join`,`-D, --default VAL default for missing`]},pivot:{name:`xan pivot`,summary:`Reshape to columns`,usage:`xan pivot COLUMN AGG_EXPR [OPTIONS] [FILE]`,description:`Turn row values into columns.`,options:[`-g, --groupby COLS group by columns`]}},ze={name:`xan`,async execute(e,t){if(e.length===0||o(e))return a($);let n=e[0],r=e.slice(1);if(o(r)){let e=Re[n];return a(e||$)}if(Q.has(n))return{stdout:``,stderr:`xan ${n}: not yet implemented
136
+ `,exitCode:1};switch(n){case`headers`:return K(r,t);case`count`:return q(r,t);case`head`:return J(r,t);case`tail`:return oe(r,t);case`slice`:return se(r,t);case`reverse`:return ce(r,t);case`behead`:return Ae(r,t);case`sample`:return Me(r,t);case`select`:return H(r,t);case`drop`:return U(r,t);case`rename`:return W(r,t);case`enum`:return G(r,t);case`filter`:return ye(r,t);case`search`:return Pe(r,t);case`sort`:return be(r,t);case`dedup`:return xe(r,t);case`top`:return Se(r,t);case`map`:return Ce(r,t);case`transform`:return we(r,t);case`explode`:return Te(r,t);case`implode`:return Ee(r,t);case`flatmap`:return Fe(r,t);case`pivot`:return Oe(r,t);case`agg`:return te(r,t);case`groupby`:return ne(r,t);case`frequency`:case`freq`:return re(r,t);case`stats`:return ie(r,t);case`cat`:return Ne(r,t);case`join`:return De(r,t);case`merge`:return Z(r,t);case`split`:return fe(r,t);case`partition`:return me(r,t);case`to`:return he(r,t);case`from`:return _e(r,t);case`transpose`:return le(r,t);case`shuffle`:return ue(r,t);case`fixlengths`:return de(r,t);case`view`:return p(r,t);case`flatten`:case`f`:return m(r,t);case`fmt`:return Ie(r,t);default:return Le.has(n)?{stdout:``,stderr:`xan ${n}: not yet implemented
137
+ `,exitCode:1}:{stdout:``,stderr:`xan: unknown command '${n}'
138
+ Run 'xan --help' for usage.
139
+ `,exitCode:1}}}},Be={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Be as n,ze as t};
140
+ //# sourceMappingURL=chunk-3BS5SKQH-DpdUzS0R.mjs.map
@@ -0,0 +1,9 @@
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as r}from"./chunk-SNN4IESC-oXVGT9qo.mjs";import{n as i,t as a}from"./chunk-2TRDZQLB-AH-I_6yN.mjs";var o={name:`grep`,summary:`print lines that match patterns`,usage:`grep [OPTION]... PATTERN [FILE]...`,options:[`-E, --extended-regexp PATTERN is an extended regular expression`,`-P, --perl-regexp PATTERN is a Perl regular expression`,`-F, --fixed-strings PATTERN is a set of newline-separated strings`,`-i, --ignore-case ignore case distinctions`,`-v, --invert-match select non-matching lines`,`-w, --word-regexp match only whole words`,`-x, --line-regexp match only whole lines`,`-c, --count print only a count of matching lines`,`-l, --files-with-matches print only names of files with matches`,`-L, --files-without-match print names of files with no matches`,`-m NUM, --max-count=NUM stop after NUM matches`,`-n, --line-number print line number with output lines`,`-h, --no-filename suppress the file name prefix on output`,`-o, --only-matching show only nonempty parts of lines that match`,`-q, --quiet, --silent suppress all normal output`,`-r, -R, --recursive search directories recursively`,`-A NUM print NUM lines of trailing context`,`-B NUM print NUM lines of leading context`,`-C NUM print NUM lines of context`,`-e PATTERN use PATTERN for matching`,` --include=GLOB search only files matching GLOB`,` --exclude=GLOB skip files matching GLOB`,` --exclude-dir=DIR skip directories matching DIR`,` --help display this help and exit`]},s={name:`grep`,async execute(s,c){if(n(s))return t(o);let l=!1,f=!1,p=!1,m=!1,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E=0,D=0,O=0,k=[],A=[],j=[],M=null,N=[];for(let t=0;t<s.length;t++){let n=s[t];if(n.startsWith(`-`)&&n!==`-`){if(n===`-e`&&t+1<s.length){M=s[++t];continue}if(n.startsWith(`--include=`)){k.push(n.slice(10));continue}if(n.startsWith(`--exclude=`)){A.push(n.slice(10));continue}if(n.startsWith(`--exclude-dir=`)){j.push(n.slice(14));continue}if(n.startsWith(`--max-count=`)){E=parseInt(n.slice(12),10);continue}let r=n.match(/^-m(\d+)$/);if(r){E=parseInt(r[1],10);continue}if(n===`-m`&&t+1<s.length){E=parseInt(s[++t],10);continue}let i=n.match(/^-([ABC])(\d+)$/);if(i){let e=parseInt(i[2],10);i[1]===`A`?O=e:i[1]===`B`?D=e:i[1]===`C`&&(D=e,O=e);continue}if((n===`-A`||n===`-B`||n===`-C`)&&t+1<s.length){let e=parseInt(s[++t],10);n===`-A`?O=e:n===`-B`?D=e:(D=e,O=e);continue}let a=n.startsWith(`--`)?[n]:n.slice(1).split(``);for(let t of a)if(t===`i`||t===`--ignore-case`)l=!0;else if(t===`n`||t===`--line-number`)f=!0;else if(t===`v`||t===`--invert-match`)p=!0;else if(t===`c`||t===`--count`)m=!0;else if(t===`l`||t===`--files-with-matches`)h=!0;else if(t===`L`||t===`--files-without-match`)g=!0;else if(t===`r`||t===`R`||t===`--recursive`)_=!0;else if(t===`w`||t===`--word-regexp`)v=!0;else if(t===`x`||t===`--line-regexp`)y=!0;else if(t===`E`||t===`--extended-regexp`)b=!0;else if(t===`P`||t===`--perl-regexp`)x=!0;else if(t===`F`||t===`--fixed-strings`)S=!0;else if(t===`o`||t===`--only-matching`)C=!0;else if(t===`h`||t===`--no-filename`)w=!0;else if(t===`q`||t===`--quiet`||t===`--silent`)T=!0;else{if(t.startsWith(`--`))return e(`grep`,t);if(t.length===1)return e(`grep`,`-${t}`)}}else M===null?M=n:N.push(n)}if(M===null)return{stdout:``,stderr:`grep: missing pattern
2
+ `,exitCode:2};let P=S?`fixed`:b?`extended`:x?`perl`:`basic`,F,I,L;try{let e=a(M,{mode:P,ignoreCase:l,wholeWord:v,lineRegexp:y});F=e.regex,I=e.kResetGroup,L=e.preFilter}catch{return{stdout:``,stderr:`grep: invalid regular expression: ${M}
3
+ `,exitCode:2}}if(N.length===0&&c.stdin!==void 0){let e=i(c.stdin,F,{invertMatch:p,showLineNumbers:f,countOnly:m,filename:``,onlyMatching:C,beforeContext:D,afterContext:O,maxCount:E,kResetGroup:I,preFilter:L});return T?{stdout:``,stderr:``,exitCode:+!e.matched}:{stdout:e.output,stderr:``,exitCode:+!e.matched}}if(N.length===0)return{stdout:``,stderr:`grep: no input files
4
+ `,exitCode:2};let R=``,z=``,B=!1,V=!1,H=[];for(let e of N)if(e.includes(`*`)||e.includes(`?`)||e.includes(`[`)){let t=await u(e,c);if(_)for(let e of t){let t=await d(e.path,c,k,A,j,e.isFile);H.push(...t)}else H.push(...t)}else if(_){let t=await d(e,c,k,A,j);H.push(...t)}else H.push({path:e});let U=(H.length>1||_)&&!w;for(let e=0;e<H.length;e+=50){let t=H.slice(e,e+50),n=await Promise.all(t.map(async e=>{let t=e.path,n=t.split(`/`).pop()||t;if(A.length>0&&!_&&A.some(e=>r(n,e,{stripQuotes:!0}))||k.length>0&&!_&&!k.some(e=>r(n,e,{stripQuotes:!0})))return null;try{let n=c.fs.resolvePath(c.cwd,t),r=!1;return r=e.isFile===void 0?(await c.fs.stat(n)).isDirectory:!e.isFile,r?_?null:{error:`grep: ${t}: Is a directory
5
+ `}:{file:t,result:i(await c.fs.readFile(n),F,{invertMatch:p,showLineNumbers:f,countOnly:m,filename:U?t:``,onlyMatching:C,beforeContext:D,afterContext:O,maxCount:E,kResetGroup:I,preFilter:L})}}catch{return{error:`grep: ${t}: No such file or directory
6
+ `}}}));for(let e of n){if(e===null)continue;if(`error`in e&&e.error){z+=e.error,e.error.includes(`Is a directory`)||(V=!0);continue}if(!(`file`in e)||!e.result)continue;let{file:t,result:n}=e;if(n.matched){if(B=!0,T)return{stdout:``,stderr:``,exitCode:0};h?R+=`${t}
7
+ `:g||(R+=n.output)}else g?R+=`${t}
8
+ `:m&&!h&&(R+=n.output)}}let W;return W=V?2:g?R.length>0?0:1:+!B,T?{stdout:``,stderr:``,exitCode:W}:{stdout:R,stderr:z,exitCode:W}}},c=256;async function l(e,t,n,i,a=0){if(a>=c)return;let o=n.fs.resolvePath(n.cwd,e);try{if(!(await n.fs.stat(o)).isDirectory){let n=e.split(`/`).pop()||``;t&&r(n,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(e);return}let s=await n.fs.readdir(o);for(let o of s){let s=e===`.`?o:`${e}/${o}`,c=n.fs.resolvePath(n.cwd,s);(await n.fs.stat(c)).isDirectory?await l(s,t,n,i,a+1):t&&r(o,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(s)}}catch{}}async function u(e,t){let n=[],i=e.lastIndexOf(`/`),a,o;if(i===-1?(a=t.cwd,o=e):(a=e.slice(0,i)||`/`,o=e.slice(i+1)),e.includes(`**`)){let n=[],r=e.split(`**`);return await l(r[0].replace(/\/$/,``)||`.`,r[1]||``,t,n),n.map(e=>({path:e}))}let s=t.fs.resolvePath(t.cwd,a);try{if(t.fs.readdirWithFileTypes){let e=await t.fs.readdirWithFileTypes(s);for(let t of e)if(r(t.name,o,{stripQuotes:!0})){let e=i===-1?t.name:`${a}/${t.name}`;n.push({path:e,isFile:t.isFile})}}else{let e=await t.fs.readdir(s);for(let t of e)if(r(t,o,{stripQuotes:!0})){let e=i===-1?t:`${a}/${t}`;n.push({path:e})}}}catch{}return n.sort((e,t)=>e.path.localeCompare(t.path))}async function d(e,t,n=[],i=[],a=[],o,s=0){if(s>=c)return[];let l=t.fs.resolvePath(t.cwd,e),u=[];try{let c,f;if(o!==void 0)c=o,f=!o;else{let e=await t.fs.stat(l);c=e.isFile,f=e.isDirectory}if(c){let t=e.split(`/`).pop()||e;return i.length>0&&i.some(e=>r(t,e,{stripQuotes:!0}))||n.length>0&&!n.some(e=>r(t,e,{stripQuotes:!0}))?[]:[{path:e,isFile:!0}]}if(!f)return[];let p=e.split(`/`).pop()||e;if(a.length>0&&a.some(e=>r(p,e,{stripQuotes:!0})))return[];if(t.fs.readdirWithFileTypes){let r=await t.fs.readdirWithFileTypes(l);for(let o of r){if(o.name.startsWith(`.`))continue;let r=await d(e===`.`?o.name:`${e}/${o.name}`,t,n,i,a,o.isFile,s+1);u.push(...r)}}else{let r=await t.fs.readdir(l);for(let o of r){if(o.startsWith(`.`))continue;let r=await d(e===`.`?o:`${e}/${o}`,t,n,i,a,void 0,s+1);u.push(...r)}}}catch{}return u}var f={name:`fgrep`,async execute(e,t){return s.execute([`-F`,...e],t)}},p={name:`egrep`,async execute(e,t){return s.execute([`-E`,...e],t)}},m={name:`grep`,flags:[{flag:`-E`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-P`,type:`boolean`},{flag:`-i`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-L`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-o`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-m`,type:`value`,valueHint:`number`},{flag:`-A`,type:`value`,valueHint:`number`},{flag:`-B`,type:`value`,valueHint:`number`},{flag:`-C`,type:`value`,valueHint:`number`},{flag:`-e`,type:`value`,valueHint:`pattern`}],stdinType:`text`,needsArgs:!0},h={name:`fgrep`,flags:[],stdinType:`text`,needsArgs:!0},g={name:`egrep`,flags:[],stdinType:`text`,needsArgs:!0};export{h as a,g as i,m as n,p as o,f as r,s as t};
9
+ //# sourceMappingURL=chunk-3H6UQG3A-BWCaN15a.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e,t,n){if(!e)return e;let r=e.replace(/\n\s+at\s.*/g,``);return n&&(r=r.replace(/\bfile:\/\/\/?[^\s'",)}\]:]+/g,`<path>`)),r=r.replace(t?/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap|workspace|root|srv|mnt|app))\b[^\s'",)}\]:]*/g:/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap))\b[^\s'",)}\]:]*/g,`<path>`),r=r.replace(/node:internal\/[^\s'",)}\]:]+/g,`<internal>`),r=r.replace(/[A-Z]:\\[^\s'",)}\]:]+/g,`<path>`),n&&(r=r.replace(/\\\\[^\s\\]+\\[^\s'",)}\]:]+/g,`<path>`)),r}function t(t){return e(t,!1,!1)}function n(t){return e(t,!0,!0)}export{t as n,n as t};
2
+ //# sourceMappingURL=chunk-3THT3N7L-DYkTD3HD.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e){let t=e.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!t)return null;let n=parseFloat(t[1]);switch(t[2]||`s`){case`s`:return n*1e3;case`m`:return n*60*1e3;case`h`:return n*60*60*1e3;case`d`:return n*24*60*60*1e3;default:return null}}export{e as t};
2
+ //# sourceMappingURL=chunk-3ZUFRYJ4-H1A1hWy1.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e){let t=e.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!t)return null;let n=parseFloat(t[1]);switch(t[2]||`s`){case`s`:return n*1e3;case`m`:return n*60*1e3;case`h`:return n*60*60*1e3;case`d`:return n*24*60*60*1e3;default:return null}}export{e as t};
2
+ //# sourceMappingURL=chunk-3ZUFRYJ4-ekaYB_vG.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e){return e instanceof Error?e.message:String(e)}export{e as t};
2
+ //# sourceMappingURL=chunk-44UOCSGV-D1FZHMOP.mjs.map
@@ -0,0 +1,8 @@
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var r={name:`chmod`,summary:`change file mode bits`,usage:`chmod [OPTIONS] MODE FILE...`,options:[`-R change files recursively`,`-v output a diagnostic for every file processed`,` --help display this help and exit`]},i={name:`chmod`,async execute(i,s){if(n(i))return t(r);if(i.length<2)return{stdout:``,stderr:`chmod: missing operand
2
+ `,exitCode:1};let c=!1,l=!1,u=0;for(;u<i.length&&i[u].startsWith(`-`);){let t=i[u];if(t===`-R`||t===`--recursive`)c=!0,u++;else if(t===`-v`||t===`--verbose`)l=!0,u++;else if(t===`--`){u++;break}else{if(/^[+-]?[rwxugo]+/.test(t)||/^\d+$/.test(t))break;if(/^-[Rv]+$/.test(t)){t.includes(`R`)&&(c=!0),t.includes(`v`)&&(l=!0),u++;continue}return e(`chmod`,t)}}if(i.length-u<2)return{stdout:``,stderr:`chmod: missing operand
3
+ `,exitCode:1};let d=i[u],f=i.slice(u+1),p=/^[0-7]+$/.test(d),m;if(p)m=parseInt(d,8);else try{o(d,420)}catch{return{stdout:``,stderr:`chmod: invalid mode: '${d}'
4
+ `,exitCode:1}}let h=``,g=``,_=!1;for(let e of f){let t=s.fs.resolvePath(s.cwd,e);try{let n;if(n=p&&m!==void 0?m:o(d,(await s.fs.stat(t)).mode),await s.fs.chmod(t,n),l&&(h+=`mode of '${e}' changed to ${n.toString(8).padStart(4,`0`)}
5
+ `),c&&(await s.fs.stat(t)).isDirectory){let e=await a(s,t,p?m:void 0,p?void 0:d,l);h+=e}}catch{g+=`chmod: cannot access '${e}': No such file or directory
6
+ `,_=!0}}return{stdout:h,stderr:g,exitCode:+!!_}}};async function a(e,t,n,r,i){let s=``,c=await e.fs.readdir(t);for(let l of c){let c=t===`/`?`/${l}`:`${t}/${l}`,u;u=n===void 0?r===void 0?420:o(r,(await e.fs.stat(c)).mode):n,await e.fs.chmod(c,u),i&&(s+=`mode of '${c}' changed to ${u.toString(8).padStart(4,`0`)}
7
+ `),(await e.fs.stat(c)).isDirectory&&(s+=await a(e,c,n,r,i))}return s}function o(e,t=420){if(/^[0-7]+$/.test(e))return parseInt(e,8);let n=t&4095,r=e.split(`,`);for(let t of r){let r=t.match(/^([ugoa]*)([+\-=])([rwxXst]*)$/);if(!r)throw Error(`Invalid mode: ${e}`);let i=r[1]||`a`,a=r[2],o=r[3];(i===`a`||i===``)&&(i=`ugo`);let s=0;o.includes(`r`)&&(s|=4),o.includes(`w`)&&(s|=2),(o.includes(`x`)||o.includes(`X`))&&(s|=1);let c=0;o.includes(`s`)&&(i.includes(`u`)&&(c|=2048),i.includes(`g`)&&(c|=1024)),o.includes(`t`)&&(c|=512);for(let e of i){let t=0;e===`u`?t=6:e===`g`?t=3:e===`o`&&(t=0);let r=s<<t;a===`+`?n|=r:a===`-`?n&=~r:a===`=`&&(n&=~(7<<t),n|=r)}a===`+`?n|=c:a===`-`?n&=~c:a===`=`&&(o.includes(`s`)&&(i.includes(`u`)&&(n&=-2049,n|=c&2048),i.includes(`g`)&&(n&=-1025,n|=c&1024)),o.includes(`t`)&&(n&=-513,n|=c&512))}return n}var s={name:`chmod`,flags:[{flag:`-R`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,i as t};
8
+ //# sourceMappingURL=chunk-4GTNDTRF-Cx89i2Y1.mjs.map
@@ -0,0 +1,3 @@
1
+ async function e(e,t){return{stdout:`localhost
2
+ `,stderr:``,exitCode:0}}var t={name:`hostname`,execute:e},n={name:`hostname`,flags:[]};export{n,t};
3
+ //# sourceMappingURL=chunk-4HHKTUW3-Dk2l1S8J.mjs.map
@@ -0,0 +1,5 @@
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var n={name:`dirname`,summary:`strip last component from file name`,usage:`dirname [OPTION] NAME...`,options:[` --help display this help and exit`]},r={name:`dirname`,async execute(r,i){if(t(r))return e(n);let a=r.filter(e=>!e.startsWith(`-`));if(a.length===0)return{stdout:``,stderr:`dirname: missing operand
2
+ `,exitCode:1};let o=[];for(let e of a){let t=e.replace(/\/+$/,``),n=t.lastIndexOf(`/`);n===-1?o.push(`.`):n===0?o.push(`/`):o.push(t.slice(0,n))}return{stdout:`${o.join(`
3
+ `)}
4
+ `,stderr:``,exitCode:0}}},i={name:`dirname`,flags:[],needsArgs:!0};export{r as n,i as t};
5
+ //# sourceMappingURL=chunk-4Q4SM6WR-CGuvvBWe.mjs.map
@@ -0,0 +1,11 @@
1
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{n as t}from"./chunk-Y2CYZVJY-acXC9Sbb.mjs";import{m as n,p as r}from"./src-BPVU4Y0o.mjs";import{T as i,b as a,x as o}from"./chunk-WYO6CB5R-DN1R0VLx.mjs";import{$ as s,J as c,K as l,Q as u,X as d,Y as f,Z as p,et as m,g as h,nt as g,q as _,rt as v,tt as y,u as b}from"./chunk-ICXQ74PX-DbJy3VdO.mjs";import{t as x}from"./line-eTDW_zUy.mjs";import{n as S}from"./chunk-Q4XR5HBZ-jWirJQsj.mjs";import{i as C,n as ee,r as w,t as T}from"./chunk-7BUUIJ7U-D7hE25H9.mjs";import{n as E}from"./chunk-OGEWGWER-DgPAesMA.mjs";import{i as D,n as te}from"./chunk-C7G6YPKG-BAX_SClW.mjs";import{t as O}from"./rough.cjs-BGkc0Naf.mjs";import{r as k}from"./chunk-ZGVPDNZ5-CyyHBEs2.mjs";var ne=e(O(),1),A=t((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&N(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&N(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),j={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},M=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],N=t((e,t,r,i,a,o,s=!1,c)=>{let l=j[r],u=l&&M.includes(l.type);if(!l){n.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${t===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let n=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${i}#${n})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},`addEdgeMarker`),re=t(e=>typeof e==`string`?e:o()?.flowchart?.curve,`resolveEdgeCurveType`),P=new Map,F=new Map,I=t(()=>{P.clear(),F.clear()},`clear`),L=t(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),R=t(async(e,t)=>{let a=o(),s=i(a),{labelStyles:c}=D(t);t.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),d=t.labelType===`markdown`,f=await S(e,t.label,{style:L(t.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},a);u.node().appendChild(f),n.info(`abc82`,t,t.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=r(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=r(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,T(m,s)),P.set(t.id,l),t.width=p.width,t.height=p.height;let h;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(i,t.startLabelLeft,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).startLeft=n,z(h,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(i,t.startLabelRight,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).startRight=n,z(h,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(n,t.endLabelLeft,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).endLeft=n,z(h,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(n,t.endLabelRight,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).endRight=n,z(h,t.endLabelRight)}return f},`insertEdgeLabel`);function z(e,t){i(o())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}t(z,`setTerminalWidth`);var B=t((e,t)=>{n.debug(`Moving label abc88 `,e.id,e.label,P.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:i}=E(o());if(e.label){let a=P.get(e.id),o=e.x,s=e.y;if(r){let i=h.calcLabelPosition(r);n.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),t.updatedPath&&(o=i.x,s=i.y)}a.attr(`transform`,`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let t=F.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=F.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=F.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=F.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),ie=t((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),V=t((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),H=t((e,t,r)=>{n.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(r)}
4
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<t.x?s-o:s+o,l=e.height/2,u=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(a-t.y)*s>Math.abs(i-t.x)*l){let e=r.y<t.y?t.y-l-a:a-l-t.y;c=d*e/u;let i={x:r.x<t.x?r.x+c:r.x-d+c,y:r.y<t.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=t.x,i.y=t.y),d===0&&(i.x=t.x),u===0&&(i.y=t.y),n.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<t.x?t.x-s-i:i-s-t.x;let e=u*c/d,a=r.x<t.x?r.x+d-c:r.x-d+c,o=r.y<t.y?r.y+e:r.y-e;return n.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=t.x,o=t.y),d===0&&(a=t.x),u===0&&(o=t.y),{x:a,y:o}}},`intersection`),U=t((e,t)=>{n.warn(`abc88 cutPathAtIntersect`,e,t);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(n.info(`abc88 checking point`,e,t),!V(t,e)&&!a){let o=H(t,i,e);n.debug(`abc88 inside`,e,i,o),n.debug(`abc88 intersection`,o,t);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?n.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else n.warn(`abc88 outside`,e,i),i=e,a||r.push(e)}),n.debug(`returning points`,r),r},`cutPathAtIntersect`);function W(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}t(W,`extractCornerPoints`);var G=t(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),ae=t(function(e){let{cornerPointPositions:t}=W(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){let t=e[i-1],a=e[i+1],o=e[i],s=G(t,o,5),c=G(a,o,5),l=c.x-s.x,u=c.y-s.y;r.push(s);let d=Math.sqrt(2)*2,f={x:o.x,y:o.y};Math.abs(a.x-t.x)>10&&Math.abs(a.y-t.y)>=10?(n.debug(`Corner point fixing`,Math.abs(a.x-t.x),Math.abs(a.y-t.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):n.debug(`Corner point skipping fixing`,Math.abs(a.x-t.x),Math.abs(a.y-t.y)),r.push(f,c)}else r.push(e[i]);return r},`fixCorners`),oe=t((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),K=t(function(e,t,i,a,S,w,T,E=!1){if(!T)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:D,layout:O}=o(),k=t.points,j=!1,M=S;var N=w;let P=[];for(let e in t.cssCompiledStyles)te(e)||P.push(t.cssCompiledStyles[e]);if(O===`swimlane`){if(N.intersect&&M.intersect&&Array.isArray(k)&&k.length>=2)if(k.length===2)k=[M.intersect(k[0]),N.intersect(k[1])];else{let e=k.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(k[k.length-1].x-n.x)<r&&Math.abs(k[k.length-1].y-n.y)<r,a=M.intersect(t),o=i?n:N.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,c=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],l=s?[]:[o];k=[...c,...e,...l]}k=ie(t,k)}else N.intersect&&M.intersect&&!E&&(k=k.slice(1,t.points.length-1),k.unshift(M.intersect(k[0])),k.push(N.intersect(k[k.length-1])));let F=btoa(JSON.stringify(k));t.toCluster&&(n.info(`to cluster abc88`,i.get(t.toCluster)),k=U(t.points,i.get(t.toCluster).node),j=!0),t.fromCluster&&(n.debug(`from cluster abc88`,i.get(t.fromCluster),JSON.stringify(k,null,2)),k=U(k.reverse(),i.get(t.fromCluster).node).reverse(),j=!0);let I=k.filter(e=>!Number.isNaN(e.y)),L=re(t.curve);L!==`rounded`&&(I=ae(I));let R=v;switch(L){case`linear`:R=v;break;case`basis`:R=m;break;case`cardinal`:R=s;break;case`bumpX`:R=y;break;case`bumpY`:R=g;break;case`catmullRom`:R=u;break;case`monotoneX`:R=d;break;case`monotoneY`:R=p;break;case`natural`:R=f;break;case`step`:R=c;break;case`stepAfter`:R=l;break;case`stepBefore`:R=_;break;case`rounded`:R=v;break;default:R=m}let{x:z,y:B}=ee(t),V=x().x(z).y(B).curve(R),H;switch(t.thickness){case`normal`:H=`edge-thickness-normal`;break;case`thick`:H=`edge-thickness-thick`;break;case`invisible`:H=`edge-thickness-invisible`;break;default:H=`edge-thickness-normal`}switch(t.pattern){case`solid`:H+=` edge-pattern-solid`;break;case`dotted`:H+=` edge-pattern-dotted`;break;case`dashed`:H+=` edge-pattern-dashed`;break;default:H+=` edge-pattern-solid`}let W,G=L===`rounded`?q(Y(I,t),5):V(I),K=Array.isArray(t.style)?t.style:[t.style],J=K.find(e=>e?.startsWith(`stroke:`)),X=``;t.animate&&(X=`edge-animation-fast`),t.animation&&(X=`edge-animation-`+t.animation);let Z=!1;if(t.look===`handDrawn`){let n=ne.default.svg(e);Object.assign([],I);let i=n.path(G,{roughness:.3,seed:D});H+=` transition`,W=r(i).select(`path`).attr(`id`,`${T}-${t.id}`).attr(`class`,` `+H+(t.classes?` `+t.classes:``)+(X?` `+X:``)).attr(`style`,K?K.reduce((e,t)=>e+`;`+t,``):``);let a=W.attr(`d`);W.attr(`d`,a),e.node().appendChild(W.node())}else{let n=P.join(`;`),r=K?K.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(K?K.reduce((e,t)=>e+`;`+t,``):``);W=e.append(`path`).attr(`d`,G).attr(`id`,`${T}-${t.id}`).attr(`class`,` `+H+(t.classes?` `+t.classes:``)+(X?` `+X:``)).attr(`style`,i),J=i.match(/stroke:([^;]+)/)?.[1],Z=t.animate===!0||!!t.animation||n.includes(`animation`);let a=W.node(),o=typeof a.getTotalLength==`function`?a.getTotalLength():0,s=C[t.arrowTypeStart]||0,c=C[t.arrowTypeEnd]||0;if(t.look===`neo`&&!Z){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?oe(o,s,c):`0 ${s} ${o-s-c} ${c}`}; stroke-dashoffset: 0;`;W.attr(`style`,e+W.attr(`style`))}}W.attr(`data-edge`,!0),W.attr(`data-et`,`edge`),W.attr(`data-id`,t.id),W.attr(`data-points`,F),W.attr(`data-look`,b(t.look)),t.showPoints&&I.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let Q=``;(o().flowchart.arrowMarkerAbsolute||o().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),n.info(`arrowTypeStart`,t.arrowTypeStart),n.info(`arrowTypeEnd`,t.arrowTypeEnd);let se=!Z&&t?.look===`neo`;A(W,t,Q,T,a,se,J);let ce=Math.floor(k.length/2),le=k[ce];h.isLabelCoordinateInPath(le,W.attr(`d`))||(j=!0);let $={};return j&&($.updatedPath=k),$.originalPath=t.points,$},`insertEdge`);function q(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}t(q,`generateRoundedPath`);function J(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}t(J,`calculateDeltaAndAngle`);function Y(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&w[t.arrowTypeStart]){let r=w[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=J(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&w[t.arrowTypeEnd]){let i=w[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=J(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}t(Y,`applyMarkerOffsetsToPoints`);var X=t((e,t,n,r)=>{t.forEach(t=>{Z[t](e,n,r)})},`insertMarkers`),Z={extension:t((e,t,r)=>{n.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,r+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:t((e,t,n)=>{let{themeVariables:r}=a(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i,mainBkg:o}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i,mainBkg:o}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},`requirement_arrow`),requirement_contains:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);o.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),o.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),o.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),o.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},Q=X;export{Q as a,R as i,P as n,B as o,K as r,F as s,I as t};
11
+ //# sourceMappingURL=chunk-52WLFC77-Cn-qt8h-.mjs.map
@@ -0,0 +1,3 @@
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var r={name:`tee`,summary:`read from stdin and write to stdout and files`,usage:`tee [OPTION]... [FILE]...`,options:[`-a, --append append to the given FILEs, do not overwrite`,` --help display this help and exit`]},i={append:{short:`a`,long:`append`,type:`boolean`}},a={name:`tee`,async execute(a,o){if(t(a))return e(r);let s=n(`tee`,a,i);if(!s.ok)return s.error;let{append:c}=s.result.flags,l=s.result.positional,u=o.stdin,d=``,f=0;for(let e of l)try{let t=o.fs.resolvePath(o.cwd,e);c?await o.fs.appendFile(t,u):await o.fs.writeFile(t,u)}catch{d+=`tee: ${e}: No such file or directory
2
+ `,f=1}return{stdout:u,stderr:d,exitCode:f}}},o={name:`tee`,flags:[{flag:`-a`,type:`boolean`}],stdinType:`text`,needsArgs:!0};export{a as n,o as t};
3
+ //# sourceMappingURL=chunk-55VFSPNA-D2U7n2ka.mjs.map
@@ -0,0 +1,2 @@
1
+ import{C as e,S as t,b as n,n as r,o as i,u as a,w as o,x as s}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var c=class extends r{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:s(()=>new c,`ValueConverter`)}};function u(r=i){let s=o(e(r),a),c=o(t({shared:s}),n,l);return s.ServiceRegistry.register(c),{shared:s,Wardley:c}}s(u,`createWardleyServices`);export{u as n,l as t};
2
+ //# sourceMappingURL=chunk-5FCAYU7R-DszODYLe.mjs.map
@@ -0,0 +1,2 @@
1
+ import{C as e,S as t,m as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var l=class extends a{static{c(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},u=class extends r{static{c(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},d={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new u,`ValueConverter`)}};function f(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,d);return a.ServiceRegistry.register(c),{shared:a,RailroadAbnf:c}}c(f,`createRailroadAbnfServices`);export{f as n,d as t};
2
+ //# sourceMappingURL=chunk-5HE753X5-DDnyF29o.mjs.map
@@ -0,0 +1,2 @@
1
+ import{C as e,S as t,i as n,o as r,s as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var l=class extends a{static{c(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},u=new Set([`cmd`,`command`]),d=new Set([`evt`,`event`]),f=new Set([`rmo`,`readmodel`]),p=new Set([`pcr`,`processor`]),m=new Set([`ui`]);function h(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}c(h,`registerValidationChecks`);var g=class{static{c(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(u.has(e.modelEntityType)?this.validateSources(e,new Set([...m,...p]),`command`,`ui or processor`,t):d.has(e.modelEntityType)?this.validateSources(e,u,`event`,`command`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`read model`,`event`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`processor`,`read model`,t):m.has(e.modelEntityType)&&this.validateSources(e,f,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},_={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)},validation:{EventModelingValidator:c(()=>new g,`EventModelingValidator`)}};function v(n=r){let a=s(e(n),o),c=s(t({shared:a}),i,_);return a.ServiceRegistry.register(c),h(c),{shared:a,EventModel:c}}c(v,`createEventModelingServices`);export{v as n,_ as t};
2
+ //# sourceMappingURL=chunk-5JV3BV7I-BkeVAZnj.mjs.map
@@ -0,0 +1,5 @@
1
+ import{t as e}from"./chunk-DXB73IDG-BBwE27jK.mjs";function t(){let e=[{prop:`Function`,target:globalThis,violationType:`function_constructor`,strategy:`throw`,reason:`Function constructor allows arbitrary code execution`},{prop:`eval`,target:globalThis,violationType:`eval`,strategy:`throw`,reason:`eval() allows arbitrary code execution`},{prop:`setTimeout`,target:globalThis,violationType:`setTimeout`,strategy:`throw`,reason:`setTimeout with string argument allows code execution`},{prop:`setInterval`,target:globalThis,violationType:`setInterval`,strategy:`throw`,reason:`setInterval with string argument allows code execution`},{prop:`setImmediate`,target:globalThis,violationType:`setImmediate`,strategy:`throw`,reason:`setImmediate could be used to escape sandbox context`},{prop:`env`,target:process,violationType:`process_env`,strategy:`throw`,reason:`process.env could leak sensitive environment variables`,allowedKeys:new Set([`NODE_V8_COVERAGE`,`NODE_DEBUG`,`NODE_DEBUG_NATIVE`,`NODE_COMPILE_CACHE`,`WATCH_REPORT_DEPENDENCIES`,`FORCE_COLOR`,`DEBUG`,`UNDICI_NO_FG`,`JEST_WORKER_ID`,`__MINIMATCH_TESTING_PLATFORM__`,`LOG_TOKENS`,`LOG_STREAM`])},{prop:`binding`,target:process,violationType:`process_binding`,strategy:`throw`,reason:`process.binding provides access to native Node.js modules`},{prop:`_linkedBinding`,target:process,violationType:`process_binding`,strategy:`throw`,reason:`process._linkedBinding provides access to native Node.js modules`},{prop:`dlopen`,target:process,violationType:`process_dlopen`,strategy:`throw`,reason:`process.dlopen allows loading native addons`},{prop:`getBuiltinModule`,target:process,violationType:`process_get_builtin_module`,strategy:`throw`,reason:`process.getBuiltinModule allows loading native Node.js modules (fs, child_process, vm)`},{prop:`exit`,target:process,violationType:`process_exit`,strategy:`throw`,reason:`process.exit could terminate the interpreter`},{prop:`abort`,target:process,violationType:`process_exit`,strategy:`throw`,reason:`process.abort could crash the interpreter`},{prop:`kill`,target:process,violationType:`process_kill`,strategy:`throw`,reason:`process.kill could signal other processes`},{prop:`setuid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setuid could escalate privileges`},{prop:`setgid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setgid could escalate privileges`},{prop:`seteuid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.seteuid could escalate effective user privileges`},{prop:`setegid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setegid could escalate effective group privileges`},{prop:`initgroups`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.initgroups could modify supplementary group IDs`},{prop:`setgroups`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setgroups could modify supplementary group IDs`},{prop:`umask`,target:process,violationType:`process_umask`,strategy:`throw`,reason:`process.umask could modify file creation permissions`},{prop:`argv`,target:process,violationType:`process_argv`,strategy:`throw`,reason:`process.argv may contain secrets in CLI arguments`},{prop:`cwd`,target:process,violationType:`process_chdir`,strategy:`throw`,reason:`process.cwd could disclose real host working directory path`},{prop:`chdir`,target:process,violationType:`process_chdir`,strategy:`throw`,reason:`process.chdir could confuse the interpreter's CWD tracking`},{prop:`report`,target:process,violationType:`process_report`,strategy:`throw`,reason:`process.report could disclose full environment, host paths, and system info`},{prop:`loadEnvFile`,target:process,violationType:`process_env`,strategy:`throw`,reason:`process.loadEnvFile could load env files bypassing env proxy`},{prop:`setUncaughtExceptionCaptureCallback`,target:process,violationType:`process_exception_handler`,strategy:`throw`,reason:`setUncaughtExceptionCaptureCallback could intercept security errors`},{prop:`send`,target:process,violationType:`process_send`,strategy:`throw`,reason:`process.send could communicate with parent process in IPC contexts`},{prop:`channel`,target:process,violationType:`process_channel`,strategy:`throw`,reason:`process.channel could access IPC channel to parent process`},{prop:`cpuUsage`,target:process,violationType:`process_timing`,strategy:`throw`,reason:`process.cpuUsage could enable timing side-channel attacks`},{prop:`memoryUsage`,target:process,violationType:`process_timing`,strategy:`throw`,reason:`process.memoryUsage could enable timing side-channel attacks`},{prop:`hrtime`,target:process,violationType:`process_timing`,strategy:`throw`,reason:`process.hrtime could enable timing side-channel attacks`},{prop:`WeakRef`,target:globalThis,violationType:`weak_ref`,strategy:`throw`,reason:`WeakRef could be used to leak references outside sandbox`},{prop:`FinalizationRegistry`,target:globalThis,violationType:`finalization_registry`,strategy:`throw`,reason:`FinalizationRegistry could be used to leak references outside sandbox`},{prop:`Reflect`,target:globalThis,violationType:`reflect`,strategy:`freeze`,reason:`Reflect provides introspection capabilities`},{prop:`Proxy`,target:globalThis,violationType:`proxy`,strategy:`throw`,reason:`Proxy allows intercepting and modifying object behavior`},{prop:`WebAssembly`,target:globalThis,violationType:`webassembly`,strategy:`throw`,reason:`WebAssembly allows executing arbitrary compiled code`},{prop:`SharedArrayBuffer`,target:globalThis,violationType:`shared_array_buffer`,strategy:`throw`,reason:`SharedArrayBuffer could enable side-channel communication or timing attacks`},{prop:`Atomics`,target:globalThis,violationType:`atomics`,strategy:`throw`,reason:`Atomics could enable side-channel communication or timing attacks`},{prop:`performance`,target:globalThis,violationType:`performance_timing`,strategy:`throw`,reason:`performance.now() provides sub-millisecond timing for side-channel attacks`},{prop:`stdout`,target:process,violationType:`process_stdout`,strategy:`throw`,reason:`process.stdout could bypass interpreter output to write to host stdout`},{prop:`stderr`,target:process,violationType:`process_stderr`,strategy:`throw`,reason:`process.stderr could bypass interpreter output to write to host stderr`},{prop:`__defineGetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__defineGetter__ allows prototype pollution via getter injection`},{prop:`__defineSetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__defineSetter__ allows prototype pollution via setter injection`},{prop:`__lookupGetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__lookupGetter__ enables introspection for prototype pollution attacks`},{prop:`__lookupSetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__lookupSetter__ enables introspection for prototype pollution attacks`},{prop:`JSON`,target:globalThis,violationType:`json_mutation`,strategy:`freeze`,reason:`Freeze JSON to prevent mutation of parsing/serialization`},{prop:`Math`,target:globalThis,violationType:`math_mutation`,strategy:`freeze`,reason:`Freeze Math to prevent mutation of math utilities`}];try{let t=Object.getPrototypeOf(async()=>{}).constructor;t&&t!==Function&&e.push({prop:`constructor`,target:Object.getPrototypeOf(async()=>{}),violationType:`async_function_constructor`,strategy:`throw`,reason:`AsyncFunction constructor allows arbitrary async code execution`})}catch{}try{let t=Object.getPrototypeOf(function*(){}).constructor;t&&t!==Function&&e.push({prop:`constructor`,target:Object.getPrototypeOf(function*(){}),violationType:`generator_function_constructor`,strategy:`throw`,reason:`GeneratorFunction constructor allows arbitrary generator code execution`})}catch{}try{let t=Object.getPrototypeOf(async function*(){}).constructor;t&&t!==Function&&t!==Object.getPrototypeOf(async()=>{}).constructor&&e.push({prop:`constructor`,target:Object.getPrototypeOf(async function*(){}),violationType:`async_generator_function_constructor`,strategy:`throw`,reason:`AsyncGeneratorFunction constructor allows arbitrary async generator code execution`})}catch{}return e.filter(e=>{try{return e.target[e.prop]!==void 0}catch{return!1}})}var n=typeof __BROWSER__<`u`&&__BROWSER__;function r(){return typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var i=null;if(!n)try{let{AsyncLocalStorage:t}=e(`node:async_hooks`);i=t}catch{}var a=`
2
+
3
+ This is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com`,o=class extends Error{violation;constructor(e,t){super(e+a),this.violation=t,this.name=`SecurityViolationError`}},s=!n&&i?new i:null,c=1e3;function l(e,t,...n){return s.run(e,()=>t(...n))}var u={enabled:!0,auditMode:!1};function d(e){return e===void 0?{...u,enabled:!1}:typeof e==`boolean`?{...u,enabled:e}:{...u,...e}}var f=class i{static instance=null;static importHooksRegistered=!1;static trustedExecutionDepth=new Map;config;refCount=0;patchFailures=[];activeExecutionIds=new Set;contextCache=new Map;originalDescriptors=[];violations=[];activationTime=0;totalActiveTimeMs=0;constructor(e){this.config=e}static getInstance(e){let t=d(e);if(!i.instance)i.instance=new i(t);else{let e=i.instance.config;if(t.enabled!==e.enabled||t.auditMode!==e.auditMode)throw Error(`DefenseInDepthBox config conflict: requested {enabled: ${t.enabled}, auditMode: ${t.auditMode}} but singleton already has {enabled: ${e.enabled}, auditMode: ${e.auditMode}}. All Bash instances must use the same defense-in-depth security settings, or call DefenseInDepthBox.resetInstance() between incompatible configurations.`)}return i.instance}static resetInstance(){i.instance&&=(i.instance.forceDeactivate(),null),i.trustedExecutionDepth.clear()}static isInSandboxedContext(){return s?s?.getStore()?.sandboxActive===!0:!1}static getCurrentExecutionId(){if(s)return s?.getStore()?.executionId}static enterTrustedScope(e){let t=i.trustedExecutionDepth.get(e)??0;i.trustedExecutionDepth.set(e,t+1)}static leaveTrustedScope(e){let t=i.trustedExecutionDepth.get(e);if(t){if(t===1){i.trustedExecutionDepth.delete(e);return}i.trustedExecutionDepth.set(e,t-1)}}static isTrustedScopeActive(e){return e?(i.trustedExecutionDepth.get(e)??0)>0:!1}isExecutionIdActive(e){return this.activeExecutionIds.has(e)}getCachedContext(e){let t=this.contextCache.get(e);return t||(t={sandboxActive:!0,executionId:e},this.contextCache.set(e,t)),t}getPreferredActiveExecutionId(){if(this.activeExecutionIds.size!==0)for(let e of this.activeExecutionIds)return e}static bindCurrentContext(e){if(!s)return e;let t=i.instance,n=s.getStore(),r=n?.sandboxActive===!0?n.executionId:t?.getPreferredActiveExecutionId();if(!r)return e;let a=t?.getCachedContext(r)??{sandboxActive:!0,executionId:r};return((...t)=>{let n=i.instance;if(!(n&&!n.isExecutionIdActive(r)&&(n.recordViolation(`bound_callback_after_deactivate`,`bound callback`,`Bound callback blocked after originating execution was deactivated`),!n.config.auditMode)))return l(a,e,...t)})}isEnabled(){return this.config.enabled===!0&&s!==null&&!n}updateConfig(e){this.config={...this.config,...e}}activate(){if(n||!this.config.enabled||!s){let e=r(),t=!1;return{run:e=>t?Promise.reject(Error(`DefenseInDepthBox handle is deactivated and cannot run new work`)):e(),deactivate:()=>{t=!0},executionId:e}}this.refCount++,this.refCount===1&&(this.applyPatches(),this.activationTime=Date.now());let e=r(),t=!1;return{run:n=>t?Promise.reject(Error(`DefenseInDepthBox handle is deactivated and cannot run new work`)):(this.activeExecutionIds.add(e),s.run({sandboxActive:!0,executionId:e},n)),deactivate:()=>{t||(t=!0,this.activeExecutionIds.delete(e),this.contextCache.delete(e),this.refCount--,this.refCount===0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.refCount<0&&(this.refCount=0))},executionId:e}}forceDeactivate(){this.refCount>0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.activeExecutionIds.clear(),this.contextCache.clear(),this.refCount=0}isActive(){return this.refCount>0}getStats(){return{violationsBlocked:this.violations.length,violations:[...this.violations],activeTimeMs:this.totalActiveTimeMs+(this.refCount>0?Date.now()-this.activationTime:0),refCount:this.refCount}}getPatchFailures(){return[...this.patchFailures]}clearViolations(){this.violations=[]}getPathForTarget(e,t){return e===globalThis?`globalThis.${t}`:e===process?`process.${t}`:e===Error?`Error.${t}`:e===Function.prototype?`Function.prototype.${t}`:e===Object.prototype?`Object.prototype.${t}`:`<object>.${t}`}static runTrusted(e){if(!s)return e();let t=s.getStore();if(!t)return e();let{executionId:n}=t;return s.run({...t,trusted:!0},()=>{i.enterTrustedScope(n);try{let t=e();return typeof t==`object`&&t&&`finally`in t&&typeof t.finally==`function`?t.finally(()=>{i.leaveTrustedScope(n)}):(i.leaveTrustedScope(n),t)}catch(e){throw i.leaveTrustedScope(n),e}})}static async runTrustedAsync(e){if(!s)return e();let t=s.getStore();if(!t)return e();let{executionId:n}=t;return s.run({...t,trusted:!0},async()=>{i.enterTrustedScope(n);try{return await e()}finally{i.leaveTrustedScope(n)}})}shouldBlock(){if(n||this.config.auditMode||!s)return!1;let e=s?.getStore();return!(e?.sandboxActive!==!0||e.trusted||i.isTrustedScopeActive(e.executionId))}recordViolation(e,t,n){let r={timestamp:Date.now(),type:e,message:n,path:t,stack:Error().stack,executionId:s?.getStore()?.executionId};if(this.violations.length<c&&this.violations.push(r),this.config.onViolation)try{this.config.onViolation(r)}catch(e){console.debug(`[DefenseInDepthBox] onViolation callback threw:`,e instanceof Error?e.message:e)}return r}createBlockingProxy(e,t,n){let r=this;return new Proxy(e,{apply(e,i,a){if(r.shouldBlock()){let e=`${t} is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}return r.config.auditMode&&s?.getStore()?.sandboxActive===!0&&r.recordViolation(n,t,`${t} called (audit mode)`),Reflect.apply(e,i,a)},construct(e,i,a){if(r.shouldBlock()){let e=`${t} constructor is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}return r.config.auditMode&&s?.getStore()?.sandboxActive===!0&&r.recordViolation(n,t,`${t} constructor called (audit mode)`),Reflect.construct(e,i,a)}})}createBlockingObjectProxy(e,t,n,r){let i=this;return new Proxy(e,{get(e,a,c){if(i.shouldBlock()){if(r&&typeof a==`string`&&r.has(a))return Reflect.get(e,a,c);let s=`${t}.${String(a)}`,l=`${s} is blocked during script execution`;throw new o(l,i.recordViolation(n,s,l))}if(i.config.auditMode&&s?.getStore()?.sandboxActive===!0){let e=`${t}.${String(a)}`;i.recordViolation(n,e,`${e} accessed (audit mode)`)}return Reflect.get(e,a,c)},set(e,r,a,s){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} modification is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.set(e,r,a,s)},ownKeys(e){if(i.shouldBlock()){let e=`${t} enumeration is blocked during script execution`;throw new o(e,i.recordViolation(n,t,e))}return Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,r){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} descriptor access is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.getOwnPropertyDescriptor(e,r)},has(e,r){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} existence check is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.has(e,r)},deleteProperty(e,r){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} deletion is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.deleteProperty(e,r)},setPrototypeOf(e,r){if(i.shouldBlock()){let e=`${t} setPrototypeOf is blocked during script execution`;throw new o(e,i.recordViolation(n,t,e))}return Reflect.setPrototypeOf(e,r)},defineProperty(e,r,a){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} defineProperty is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.defineProperty(e,r,a)}})}applyPatches(){this.patchFailures=[];let e=t(),n=new Set([`process_send`,`process_channel`,`process_stdout`,`process_stderr`]);for(let t of e)n.has(t.violationType)||this.applyPatch(t);this.protectConstructorChain(),this.protectErrorPrepareStackTrace(),this.protectPromiseThen(),this.protectDynamicImport(),this.protectModuleLoad(),this.protectModuleResolveFilename(),this.protectProcessMainModule(),this.protectProcessExecPath(),this.lockWellKnownSymbols(),this.protectProxyRevocable();let r=[`Function.prototype.constructor`,`Module._load`],i=this.patchFailures.filter(e=>r.includes(e));if(i.length>0)throw this.restorePatches(),Error(`DefenseInDepthBox: critical patches failed: ${i.join(`, `)}`)}protectConstructorChain(){this.patchPrototypeConstructor(Function.prototype,`Function.prototype.constructor`,`function_constructor`);try{let e=Object.getPrototypeOf(async()=>{}).constructor;e&&e!==Function&&this.patchPrototypeConstructor(e.prototype,`AsyncFunction.prototype.constructor`,`async_function_constructor`)}catch(e){this.patchFailures.push(`AsyncFunction.prototype.constructor`),console.debug(`[DefenseInDepthBox] Could not patch AsyncFunction.prototype.constructor:`,e instanceof Error?e.message:e)}try{let e=Object.getPrototypeOf(function*(){}).constructor;e&&e!==Function&&this.patchPrototypeConstructor(e.prototype,`GeneratorFunction.prototype.constructor`,`generator_function_constructor`)}catch(e){this.patchFailures.push(`GeneratorFunction.prototype.constructor`),console.debug(`[DefenseInDepthBox] Could not patch GeneratorFunction.prototype.constructor:`,e instanceof Error?e.message:e)}try{let e=Object.getPrototypeOf(async function*(){}).constructor,t=Object.getPrototypeOf(async()=>{}).constructor;e&&e!==Function&&e!==t&&this.patchPrototypeConstructor(e.prototype,`AsyncGeneratorFunction.prototype.constructor`,`async_generator_function_constructor`)}catch(e){this.patchFailures.push(`AsyncGeneratorFunction.prototype.constructor`),console.debug(`[DefenseInDepthBox] Could not patch AsyncGeneratorFunction.prototype.constructor:`,e instanceof Error?e.message:e)}}protectErrorPrepareStackTrace(){let e=this;try{let t=Object.getOwnPropertyDescriptor(Error,`prepareStackTrace`);this.originalDescriptors.push({target:Error,prop:`prepareStackTrace`,descriptor:t});let n=t?.value;Object.defineProperty(Error,`prepareStackTrace`,{get(){return n},set(t){if(e.shouldBlock()){let t=`Error.prepareStackTrace modification is blocked during script execution`;throw new o(t,e.recordViolation(`error_prepare_stack_trace`,`Error.prepareStackTrace`,t))}e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`error_prepare_stack_trace`,`Error.prepareStackTrace`,`Error.prepareStackTrace set (audit mode)`),n=t},configurable:!0})}catch(e){this.patchFailures.push(`Error.prepareStackTrace`),console.debug(`[DefenseInDepthBox] Could not protect Error.prepareStackTrace:`,e instanceof Error?e.message:e)}}protectPromiseThen(){let e=this;try{let t=function(...e){return s.run(this.captured,()=>{if(!this.box.isExecutionIdActive(this.executionId)){if(this.box.recordViolation(`promise_then_after_deactivate`,`Promise.then`,`Promise.then callback is blocked after defense deactivation`),this.box.config.auditMode)return Reflect.apply(this.cb,void 0,e);if(this.kind===`fulfilled`)return e[0];throw e[0]}return Reflect.apply(this.cb,void 0,e)})},n=Object.getOwnPropertyDescriptor(Promise.prototype,`then`);this.originalDescriptors.push({target:Promise.prototype,prop:`then`,descriptor:n});let r=n?.value;if(typeof r!=`function`)return;Object.defineProperty(Promise.prototype,`then`,{value:function(n,i){if(!s)return Reflect.apply(r,this,[n,i]);let a=s.getStore(),o=a?.sandboxActive===!0&&a.trusted!==!0?a.executionId:void 0;if(!o)return Reflect.apply(r,this,[n,i]);let c=e.getCachedContext(o),l=(n,r)=>typeof n==`function`?t.bind({box:e,executionId:o,captured:c,cb:n,kind:r}):n;return Reflect.apply(r,this,[l(n,`fulfilled`),l(i,`rejected`)])},writable:!0,configurable:!0})}catch(e){this.patchFailures.push(`Promise.prototype.then`),console.debug(`[DefenseInDepthBox] Could not protect Promise.prototype.then:`,e instanceof Error?e.message:e)}}patchPrototypeConstructor(e,t,n){let r=this;try{let i=Object.getOwnPropertyDescriptor(e,`constructor`);this.originalDescriptors.push({target:e,prop:`constructor`,descriptor:i});let a=i?.value;Object.defineProperty(e,`constructor`,{get(){if(r.shouldBlock()){let e=`${t} access is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}return r.config.auditMode&&s?.getStore()?.sandboxActive===!0&&r.recordViolation(n,t,`${t} accessed (audit mode)`),a},set(e){if(r.shouldBlock()){let e=`${t} modification is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}Object.defineProperty(this,`constructor`,{value:e,writable:!0,configurable:!0})},configurable:!0})}catch(e){this.patchFailures.push(t),console.debug(`[DefenseInDepthBox] Could not patch ${t}:`,e instanceof Error?e.message:e)}}protectProcessMainModule(){if(typeof process>`u`)return;let e=this;try{let t=Object.getOwnPropertyDescriptor(process,`mainModule`);this.originalDescriptors.push({target:process,prop:`mainModule`,descriptor:t});let n=t?.value;n!==void 0&&Object.defineProperty(process,`mainModule`,{get(){if(e.shouldBlock()){let t=`process.mainModule access is blocked during script execution`;throw new o(t,e.recordViolation(`process_main_module`,`process.mainModule`,t))}return e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`process_main_module`,`process.mainModule`,`process.mainModule accessed (audit mode)`),n},set(t){if(e.shouldBlock()){let t=`process.mainModule modification is blocked during script execution`;throw new o(t,e.recordViolation(`process_main_module`,`process.mainModule`,t))}Object.defineProperty(process,`mainModule`,{value:t,writable:!0,configurable:!0})},configurable:!0})}catch(e){this.patchFailures.push(`process.mainModule`),console.debug(`[DefenseInDepthBox] Could not protect process.mainModule:`,e instanceof Error?e.message:e)}}protectProcessExecPath(){if(typeof process>`u`)return;let e=this;try{let t=Object.getOwnPropertyDescriptor(process,`execPath`);this.originalDescriptors.push({target:process,prop:`execPath`,descriptor:t});let n=t?.value??process.execPath;Object.defineProperty(process,`execPath`,{get(){if(e.shouldBlock()){let t=`process.execPath access is blocked during script execution`;throw new o(t,e.recordViolation(`process_exec_path`,`process.execPath`,t))}return e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`process_exec_path`,`process.execPath`,`process.execPath accessed (audit mode)`),n},set(t){if(e.shouldBlock()){let t=`process.execPath modification is blocked during script execution`;throw new o(t,e.recordViolation(`process_exec_path`,`process.execPath`,t))}Object.defineProperty(process,`execPath`,{value:t,writable:!0,configurable:!0})},configurable:!0})}catch(e){this.patchFailures.push(`process.execPath`),console.debug(`[DefenseInDepthBox] Could not protect process.execPath:`,e instanceof Error?e.message:e)}}lockWellKnownSymbols(){let e=(e,t)=>{try{let n=Object.getOwnPropertyDescriptor(e,t);if(n?.configurable){if(`value`in n){Object.defineProperty(e,t,{...n,configurable:!1,writable:!1});return}Object.defineProperty(e,t,{...n,configurable:!1})}}catch{}};for(let t of[Array,Map,Set,RegExp,Promise])e(t,Symbol.species);for(let t of[Array.prototype,String.prototype,Map.prototype,Set.prototype])e(t,Symbol.iterator);e(Symbol.prototype,Symbol.toPrimitive),e(Date.prototype,Symbol.toPrimitive);for(let t of[Symbol.match,Symbol.matchAll,Symbol.replace,Symbol.search,Symbol.split])e(RegExp.prototype,t);e(Function.prototype,Symbol.hasInstance),e(Array.prototype,Symbol.unscopables);for(let t of[Map.prototype,Set.prototype,Promise.prototype,ArrayBuffer.prototype])e(t,Symbol.toStringTag);try{let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);this.originalDescriptors.push({target:Error,prop:`stackTraceLimit`,descriptor:e}),Object.defineProperty(Error,`stackTraceLimit`,{value:Error.stackTraceLimit,writable:!1,configurable:!0})}catch{}}protectProxyRevocable(){let e=this;try{let t=Proxy.revocable;if(typeof t!=`function`)return;let n=Object.getOwnPropertyDescriptor(Proxy,`revocable`);this.originalDescriptors.push({target:Proxy,prop:`revocable`,descriptor:n}),Object.defineProperty(Proxy,`revocable`,{value:function(n,r){if(e.shouldBlock()){let t=`Proxy.revocable is blocked during script execution`;throw new o(t,e.recordViolation(`proxy`,`Proxy.revocable`,t))}return e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`proxy`,`Proxy.revocable`,`Proxy.revocable called (audit mode)`),t(n,r)},writable:!1,configurable:!0})}catch(e){this.patchFailures.push(`Proxy.revocable`),console.debug(`[DefenseInDepthBox] Could not protect Proxy.revocable:`,e instanceof Error?e.message:e)}}protectDynamicImport(){if(!(n||i.importHooksRegistered))try{let t=this,n=e(`node:module`),r=new Set;for(let e of n.builtinModules??[]){let t=e.startsWith(`node:`)?e.slice(5):e;r.add(t);let n=t.indexOf(`/`);n>0&&r.add(t.slice(0,n))}let a=e=>{if(e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`/`)||e.startsWith(`file:`)||e.startsWith(`data:`)||e.startsWith(`blob:`)||e.startsWith(`http:`)||e.startsWith(`https:`))return!1;let t=e.startsWith(`node:`)?e.slice(5):e;if(!t)return!1;if(typeof n.isBuiltin==`function`&&n.isBuiltin(t)||r.has(t))return!0;let i=t.indexOf(`/`);return i>0&&r.has(t.slice(0,i))},c=()=>{let e=s?.getStore();return t.config.auditMode===!0&&e?.sandboxActive===!0&&e.trusted!==!0&&!i.isTrustedScopeActive(e.executionId)};if(typeof n.registerHooks==`function`){n.registerHooks({resolve(e,n,r){if(e.startsWith(`data:`)||e.startsWith(`blob:`))throw Error(`dynamic import of ${e.startsWith(`data:`)?`data:`:`blob:`} URLs is blocked by defense-in-depth`);if(a(e)){let n=`import(${e})`,r=`dynamic import of Node.js builtin '${e}' is blocked during script execution`;if(t.shouldBlock())throw new o(r,t.recordViolation(`dynamic_import_builtin`,n,r));c()&&t.recordViolation(`dynamic_import_builtin`,n,`dynamic import of Node.js builtin '${e}' called (audit mode)`)}return r(e,n)}}),i.importHooksRegistered=!0;return}if(typeof n.register==`function`){let e=[`export async function resolve(specifier, context, nextResolve) {`,` if (specifier.startsWith("data:") || specifier.startsWith("blob:")) {`,` throw new Error("dynamic import of " + (specifier.startsWith("data:") ? "data:" : "blob:") + " URLs is blocked by defense-in-depth");`,` }`,` return nextResolve(specifier, context);`,`}`].join(`
4
+ `);n.register(`data:text/javascript,${encodeURIComponent(e)}`),i.importHooksRegistered=!0}}catch(e){console.debug(`[DefenseInDepthBox] Could not register import() hooks:`,e instanceof Error?e.message:e)}}protectModuleLoad(){if(!n)try{let t=null;if(typeof process<`u`){let e=process.mainModule;e&&typeof e==`object`&&(t=e.constructor)}if(!t&&typeof e<`u`&&typeof e.main<`u`&&(t=e.main.constructor),!t||typeof t._load!=`function`)return;let n=t._load,r=Object.getOwnPropertyDescriptor(t,`_load`);this.originalDescriptors.push({target:t,prop:`_load`,descriptor:r});let i=this.createBlockingProxy(n,`Module._load`,`module_load`);Object.defineProperty(t,`_load`,{value:i,writable:!0,configurable:!0})}catch(e){this.patchFailures.push(`Module._load`),console.debug(`[DefenseInDepthBox] Could not protect Module._load:`,e instanceof Error?e.message:e)}}protectModuleResolveFilename(){if(!n)try{let t=null;if(typeof process<`u`){let e=process.mainModule;e&&typeof e==`object`&&(t=e.constructor)}if(!t&&typeof e<`u`&&typeof e.main<`u`&&(t=e.main.constructor),!t||typeof t._resolveFilename!=`function`)return;let n=t._resolveFilename,r=Object.getOwnPropertyDescriptor(t,`_resolveFilename`);this.originalDescriptors.push({target:t,prop:`_resolveFilename`,descriptor:r});let i=this.createBlockingProxy(n,`Module._resolveFilename`,`module_resolve_filename`);Object.defineProperty(t,`_resolveFilename`,{value:i,writable:!0,configurable:!0})}catch(e){this.patchFailures.push(`Module._resolveFilename`),console.debug(`[DefenseInDepthBox] Could not protect Module._resolveFilename:`,e instanceof Error?e.message:e)}}applyPatch(e){let{target:t,prop:n,violationType:r,strategy:i}=e;try{let a=t[n];if(a===void 0)return;let o=Object.getOwnPropertyDescriptor(t,n);if(this.originalDescriptors.push({target:t,prop:n,descriptor:o}),i===`freeze`)typeof a==`object`&&a&&Object.freeze(a);else{let i=this.getPathForTarget(t,n),o=typeof a==`function`?this.createBlockingProxy(a,i,r):this.createBlockingObjectProxy(a,i,r,e.allowedKeys);Object.defineProperty(t,n,{value:o,writable:!0,configurable:!0})}}catch(e){let r=this.getPathForTarget(t,n);this.patchFailures.push(r),console.debug(`[DefenseInDepthBox] Could not patch ${r}:`,e instanceof Error?e.message:e)}}restorePatches(){for(let e=this.originalDescriptors.length-1;e>=0;e--){let{target:t,prop:n,descriptor:r}=this.originalDescriptors[e];try{r?Object.defineProperty(t,n,r):delete t[n]}catch(e){let r=this.getPathForTarget(t,n);console.debug(`[DefenseInDepthBox] Could not restore ${r}:`,e instanceof Error?e.message:e)}}this.originalDescriptors=[]}};export{o as n,f as t};
5
+ //# sourceMappingURL=chunk-5QMZ5MUS-C5NTf5Rj.mjs.map
@@ -0,0 +1,9 @@
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";import{t as r}from"./chunk-X2AJGDEF-BXjUENXL.mjs";var i={name:`stat`,summary:`display file or file system status`,usage:`stat [OPTION]... FILE...`,options:[`-c FORMAT use the specified FORMAT instead of the default`,` --help display this help and exit`]},a={format:{short:`c`,type:`string`}},o={name:`stat`,async execute(o,s){if(t(o))return e(i);let c=n(`stat`,o,a);if(!c.ok)return c.error;let l=c.result.flags.format??null,u=c.result.positional;if(u.length===0)return{stdout:``,stderr:`stat: missing operand
2
+ `,exitCode:1};let d=``,f=``,p=!1;for(let e of u){let t=s.fs.resolvePath(s.cwd,e);try{let n=await s.fs.stat(t);if(l){let t=l,i=n.mode.toString(8),a=r(n.mode,n.isDirectory);t=t.replace(/%n/g,e),t=t.replace(/%N/g,`'${e}'`),t=t.replace(/%s/g,String(n.size)),t=t.replace(/%F/g,n.isDirectory?`directory`:`regular file`),t=t.replace(/%a/g,i),t=t.replace(/%A/g,a),t=t.replace(/%u/g,`1000`),t=t.replace(/%U/g,`user`),t=t.replace(/%g/g,`1000`),t=t.replace(/%G/g,`group`),d+=`${t}
3
+ `}else{let t=n.mode.toString(8).padStart(4,`0`),i=r(n.mode,n.isDirectory);d+=` File: ${e}
4
+ `,d+=` Size: ${n.size} Blocks: ${Math.ceil(n.size/512)}
5
+ `,d+=`Access: (${t}/${i})
6
+ `,d+=`Modify: ${n.mtime.toISOString()}
7
+ `}}catch{f+=`stat: cannot stat '${e}': No such file or directory
8
+ `,p=!0}}return{stdout:d,stderr:f,exitCode:+!!p}}},s={name:`stat`,flags:[{flag:`-c`,type:`value`,valueHint:`format`},{flag:`-L`,type:`boolean`}],needsArgs:!0};export{s as n,o as t};
9
+ //# sourceMappingURL=chunk-5QVNJEHU-DS9zA_YV.mjs.map
@@ -0,0 +1,3 @@
1
+ import{C as e,S as t,g as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var l=class extends a{static{c(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},u=c(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
2
+ `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),d=class extends r{static{c(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return u(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return u(t)}},f={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new d,`ValueConverter`)}};function p(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,f);return a.ServiceRegistry.register(c),{shared:a,Railroad:c}}c(p,`createRailroadServices`);export{p as n,f as t};
3
+ //# sourceMappingURL=chunk-5TONJI2A-CzUNHQPX.mjs.map
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./chunk-EIZGF4BS-CSFp0aUh.mjs";var t=e(`sha256sum`,`sha256`,`compute SHA256 message digest`),n={name:`sha256sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
2
+ //# sourceMappingURL=chunk-5V6VZH6T-DBFenjXz.mjs.map
@@ -0,0 +1,16 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-acXC9Sbb.mjs";var t=e(()=>`
2
+ /* Font Awesome icon styling - consolidated */
3
+ .label-icon {
4
+ display: inline-block;
5
+ height: 1em;
6
+ overflow: visible;
7
+ vertical-align: -0.125em;
8
+ }
9
+
10
+ .node .label-icon path {
11
+ fill: currentColor;
12
+ stroke: revert;
13
+ stroke-width: revert;
14
+ }
15
+ `,`getIconStyles`);export{t};
16
+ //# sourceMappingURL=chunk-5VM5RSS4-C8vNNqW0.mjs.map
@@ -0,0 +1,21 @@
1
+ import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as r}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var i={name:`tr`,summary:`translate or delete characters`,usage:`tr [OPTION]... SET1 [SET2]`,options:[`-c, -C, --complement use the complement of SET1`,`-d, --delete delete characters in SET1`,`-s, --squeeze-repeats squeeze repeated characters`,` --help display this help and exit`],description:`SET syntax:
2
+ a-z character range
3
+ [:alnum:] all letters and digits
4
+ [:alpha:] all letters
5
+ [:digit:] all digits
6
+ [:lower:] all lowercase letters
7
+ [:upper:] all uppercase letters
8
+ [:space:] all whitespace
9
+ [:blank:] horizontal whitespace
10
+ [:punct:] all punctuation
11
+ [:print:] all printable characters
12
+ [:graph:] all printable characters except space
13
+ [:cntrl:] all control characters
14
+ [:xdigit:] all hexadecimal digits
15
+ \\n, \\t, \\r escape sequences`},a=new Map([[`[:alnum:]`,`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`],[`[:alpha:]`,`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`],[`[:blank:]`,` `],[`[:cntrl:]`,Array.from({length:32},(e,t)=>String.fromCharCode(t)).join(``).concat(``)],[`[:digit:]`,`0123456789`],[`[:graph:]`,Array.from({length:94},(e,t)=>String.fromCharCode(33+t)).join(``)],[`[:lower:]`,`abcdefghijklmnopqrstuvwxyz`],[`[:print:]`,Array.from({length:95},(e,t)=>String.fromCharCode(32+t)).join(``)],[`[:punct:]`,`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`],[`[:space:]`,`
16
+ \r\f\v`],[`[:upper:]`,`ABCDEFGHIJKLMNOPQRSTUVWXYZ`],[`[:xdigit:]`,`0123456789ABCDEFabcdef`]]);function o(e){let t=``,n=0;for(;n<e.length;){if(e[n]===`[`&&e[n+1]===`:`){let r=!1;for(let[i,o]of a)if(e.slice(n).startsWith(i)){t+=o,n+=i.length,r=!0;break}if(r)continue}if(e[n]===`\\`&&n+1<e.length){let r=e[n+1];r===`n`?t+=`
17
+ `:r===`t`?t+=` `:r===`r`?t+=`\r`:t+=r,n+=2;continue}if(n+2<e.length&&e[n+1]===`-`){let r=e.charCodeAt(n),i=e.charCodeAt(n+2);if(i-r>65536)throw Error(`tr: character range too large: '${e[n]}-${e[n+2]}'`);for(let e=r;e<=i;e++)t+=String.fromCharCode(e);n+=3;continue}t+=e[n],n++}return t}var s={complement:{short:`c`,long:`complement`,type:`boolean`},complementUpper:{short:`C`,type:`boolean`},delete:{short:`d`,long:`delete`,type:`boolean`},squeeze:{short:`s`,long:`squeeze-repeats`,type:`boolean`}},c={name:`tr`,async execute(a,c){if(n(a))return t(i);let l=r(`tr`,a,s);if(!l.ok)return l.error;let u=l.result.flags.complement||l.result.flags.complementUpper,d=l.result.flags.delete,f=l.result.flags.squeeze,p=l.result.positional;if(p.length<1)return{stdout:``,stderr:`tr: missing operand
18
+ `,exitCode:1};if(!d&&!f&&p.length<2)return{stdout:``,stderr:`tr: missing operand after SET1
19
+ `,exitCode:1};let m,h;try{m=o(p[0]),h=p.length>1?o(p[1]):``}catch(t){return{stdout:``,stderr:`${e(t.message)}
20
+ `,exitCode:1}}let g=c.stdin,_=e=>{let t=m.includes(e);return u?!t:t},v=``;if(d)for(let e of g)_(e)||(v+=e);else if(f&&p.length===1){let e=``;for(let t of g)_(t)&&t===e||(v+=t,e=t)}else{if(u){let e=h.length>0?h[h.length-1]:``;for(let t of g)m.includes(t)?v+=t:v+=e}else{let e=new Map;for(let t=0;t<m.length;t++){let n=t<h.length?h[t]:h[h.length-1];e.set(m[t],n)}for(let t of g)v+=e.get(t)??t}if(f){let e=``,t=``;for(let n of v)h.includes(n)&&n===t||(e+=n,t=n);v=e}}return{stdout:v,stderr:``,exitCode:0}}},l={name:`tr`,flags:[{flag:`-c`,type:`boolean`},{flag:`-C`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-s`,type:`boolean`}],stdinType:`text`,needsArgs:!0};export{c as n,l as t};
21
+ //# sourceMappingURL=chunk-62RKD26F-C4qK_fA-.mjs.map
@@ -0,0 +1,2 @@
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{n,r,t as i}from"./chunk-HDQ56CKY-CI8IkhlS.mjs";var a={name:`head`,summary:`output the first part of files`,usage:`head [OPTION]... [FILE]...`,options:[`-c, --bytes=NUM print the first NUM bytes`,`-n, --lines=NUM print the first NUM lines (default 10)`,`-q, --quiet never print headers giving file names`,`-v, --verbose always print headers giving file names`,` --help display this help and exit`]},o={name:`head`,async execute(o,s){if(t(o))return e(a);let c=n(o,`head`);if(!c.ok)return c.error;let{lines:l,bytes:u}=c.options;return r(s,c.options,`head`,e=>i(e,l,u))}},s={name:`head`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-c`,type:`value`,valueHint:`number`},{flag:`-q`,type:`boolean`},{flag:`-v`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{o as n,s as t};
2
+ //# sourceMappingURL=chunk-64BAICW3-BupSxcu5.mjs.map