@inkeep/open-knowledge 0.33.0-beta.5 → 0.33.0-beta.7

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 (458) hide show
  1. package/dist/{_baseFor-DgUmPvii.mjs → _baseFor-CMmZqlg4.mjs} +1 -1
  2. package/dist/alias-JE7RI5QX-DUBvIpa7.mjs +1 -0
  3. package/dist/{arc-DeCRbT14.mjs → arc-CQLjZPEs.mjs} +2 -2
  4. package/dist/architecture-YZFGNWBL-BGsYftSC.mjs +1 -0
  5. package/dist/{architectureDiagram-Q4EWVU46-Ddeiwqm4.mjs → architectureDiagram-Q4EWVU46-DGG0IyfP.mjs} +2 -2
  6. package/dist/{array-CB05KhfS.mjs → array-BNmwzyCf.mjs} +1 -1
  7. package/dist/assets/skills/discovery/SKILL.md +1 -1
  8. package/dist/assets/skills/project/SKILL.md +1 -1
  9. package/dist/awk2-BBAGSFUB-BSXvsYKE.mjs +1 -0
  10. package/dist/{banner-BeBA-IMp.mjs → banner-DsGpC-o3.mjs} +2 -2
  11. package/dist/base64-4YMZCVJ5-r5zsLj5P.mjs +1 -0
  12. package/dist/basename-AA2KJYZQ-DlSFPnLd.mjs +1 -0
  13. package/dist/bash-IJWYRKFO-CMwhRejZ.mjs +1 -0
  14. package/dist/{blockDiagram-DXYQGD6D-Cym5AJGx.mjs → blockDiagram-DXYQGD6D-DO_ZPiei.mjs} +2 -2
  15. package/dist/{build-CN003PPg.mjs → build-BGRQ9c88.mjs} +1 -1
  16. package/dist/build-C__Nqi6T.mjs +1 -0
  17. package/dist/{c4Diagram-AHTNJAMY-B7HMnVPk.mjs → c4Diagram-AHTNJAMY-CYnXxcYe.mjs} +2 -2
  18. package/dist/cat-RDUMLXKC-CBoLzbAA.mjs +1 -0
  19. package/dist/channel-Dz_kn09_.mjs +2 -0
  20. package/dist/chmod-SYMGL4JA-L3CtA8Q4.mjs +1 -0
  21. package/dist/{chokidar-C-Jds_Bg.mjs → chokidar-CrFRJt-7.mjs} +1 -1
  22. package/dist/{chunk-24IMIIXA-DaS5XS55.mjs → chunk-24IMIIXA-ByE3n7F5.mjs} +2 -2
  23. package/dist/{chunk-2KRD3SAO-Ci0JL9ng.mjs → chunk-2KRD3SAO-CC8_tMR3.mjs} +2 -2
  24. package/dist/{chunk-2TRDZQLB-Kqh0farN.mjs → chunk-2TRDZQLB-DJYfX1DB.mjs} +2 -2
  25. package/dist/{chunk-336JU56O-MOsDPDtl.mjs → chunk-336JU56O-D5mJPHrS.mjs} +2 -2
  26. package/dist/{chunk-3BS5SKQH-Chc9fv52.mjs → chunk-3BS5SKQH-C7siUFvi.mjs} +3 -3
  27. package/dist/{chunk-3H6UQG3A-B7zoJt1R.mjs → chunk-3H6UQG3A-jehz9Mov.mjs} +2 -2
  28. package/dist/{chunk-3THT3N7L-B1WzJUh4.mjs → chunk-3THT3N7L-DNeAafDi.mjs} +1 -1
  29. package/dist/{chunk-3ZUFRYJ4-DQB4hWDy.mjs → chunk-3ZUFRYJ4-5tUBEJiQ.mjs} +1 -1
  30. package/dist/chunk-426QAEUC-C79-xu4k.mjs +2 -0
  31. package/dist/{chunk-44UOCSGV-BZ6LfyW2.mjs → chunk-44UOCSGV-C07LY83n.mjs} +1 -1
  32. package/dist/{chunk-4BX2VUAB-BXGPfnwm.mjs → chunk-4BX2VUAB-CeLVr99T.mjs} +2 -2
  33. package/dist/{chunk-4GTNDTRF-CexF8C0H.mjs → chunk-4GTNDTRF-C79jHZPW.mjs} +2 -2
  34. package/dist/{chunk-4HHKTUW3-CewYv3NE.mjs → chunk-4HHKTUW3-C9w0lckj.mjs} +1 -1
  35. package/dist/{chunk-4Q4SM6WR-D6TVzfh2.mjs → chunk-4Q4SM6WR-BBf5_ewP.mjs} +2 -2
  36. package/dist/{chunk-4TB4RGXK-B0uHEnHn.mjs → chunk-4TB4RGXK-n_iVg8hq.mjs} +2 -2
  37. package/dist/{chunk-55IACEB6-CWM_Woee.mjs → chunk-55IACEB6-DnxgLkXS.mjs} +2 -2
  38. package/dist/{chunk-55VFSPNA-BoFmUszu.mjs → chunk-55VFSPNA-BI1ZlfMG.mjs} +2 -2
  39. package/dist/{chunk-5FUZZQ4R-BSIWed9s.mjs → chunk-5FUZZQ4R-D0CI_lA3.mjs} +2 -2
  40. package/dist/{chunk-5PVQY5BW-_JlgOiAb.mjs → chunk-5PVQY5BW-CM3DDgan.mjs} +2 -2
  41. package/dist/{chunk-5QMZ5MUS-BwpNU33k.mjs → chunk-5QMZ5MUS-DvwGjmAW.mjs} +2 -2
  42. package/dist/{chunk-5QVNJEHU-DJjin--s.mjs → chunk-5QVNJEHU-BwcO0gX-.mjs} +2 -2
  43. package/dist/{chunk-5V6VZH6T-BEpcJpsv.mjs → chunk-5V6VZH6T-CsG6wUhk.mjs} +2 -2
  44. package/dist/{chunk-62RKD26F-uqVDf3rA.mjs → chunk-62RKD26F-CgKazjAi.mjs} +2 -2
  45. package/dist/{chunk-64BAICW3-BlKhhT3-.mjs → chunk-64BAICW3-DZxI2NVA.mjs} +2 -2
  46. package/dist/{chunk-67CJDMHE-CADkctrU.mjs → chunk-67CJDMHE-CrUJnyQp.mjs} +2 -2
  47. package/dist/{chunk-6Z5SFZXK-DuXsHt84.mjs → chunk-6Z5SFZXK-CqxoPFbR.mjs} +2 -2
  48. package/dist/{chunk-74CEPOFO-CciWp7CZ.mjs → chunk-74CEPOFO-smMq6g2B.mjs} +1 -1
  49. package/dist/{chunk-7L36YK2X-Cok_Mfzv.mjs → chunk-7L36YK2X-BEYeMppm.mjs} +1 -1
  50. package/dist/{chunk-7N4EOEYR-D0VnhW8C.mjs → chunk-7N4EOEYR-qv4-7fqt.mjs} +2 -2
  51. package/dist/{chunk-7TSDKFEO-9ACIOuIO.mjs → chunk-7TSDKFEO-B7rhvhjt.mjs} +1 -1
  52. package/dist/{chunk-A4HU7SVR-DPxgapmK.mjs → chunk-A4HU7SVR-BReRiEUm.mjs} +1 -1
  53. package/dist/{chunk-A4JSPFCI-B_-pySix.mjs → chunk-A4JSPFCI-CzC3HvcT.mjs} +2 -2
  54. package/dist/{chunk-A5O5YHGN-DApqA6Ow.mjs → chunk-A5O5YHGN-0FmmnDn4.mjs} +2 -2
  55. package/dist/{chunk-A65PWWJC-DRkFYIUZ.mjs → chunk-A65PWWJC-DDcfQP9l.mjs} +2 -2
  56. package/dist/{chunk-A7A2DBEE-DGJklf-9.mjs → chunk-A7A2DBEE-DxoLZwYW.mjs} +1 -1
  57. package/dist/{chunk-A7ICOL4V-BSbI3udS.mjs → chunk-A7ICOL4V-DLpBcLKS.mjs} +2 -2
  58. package/dist/{chunk-AA7GKIK3-DiBKA6eA.mjs → chunk-AA7GKIK3-hv3Reau6.mjs} +2 -2
  59. package/dist/{chunk-ALLTKNUZ-B1s5GUUO.mjs → chunk-ALLTKNUZ-8gj-zLqF.mjs} +2 -2
  60. package/dist/{chunk-APT7OOP2-CgGkczFr.mjs → chunk-APT7OOP2-Ba0TjHQy.mjs} +2 -2
  61. package/dist/{chunk-B74TABJS-CM6MrFZT.mjs → chunk-B74TABJS-D6QwMpPz.mjs} +1 -1
  62. package/dist/{chunk-BGSUD5R5-B-rczZvK.mjs → chunk-BGSUD5R5-BfmoQDUK.mjs} +2 -2
  63. package/dist/{chunk-BSJP7CBP-BWUAQGWN.mjs → chunk-BSJP7CBP-C-rdyWiE.mjs} +2 -2
  64. package/dist/{chunk-CIAEETIT-4Fu0r4oG.mjs → chunk-CIAEETIT-B4zNm8L4.mjs} +2 -2
  65. package/dist/{chunk-CWQS3NFK-BkE4vqrf.mjs → chunk-CWQS3NFK-BvSpDizp.mjs} +1 -1
  66. package/dist/{chunk-D4J545R4-DfBhjppa.mjs → chunk-D4J545R4-B2EJq2_m.mjs} +2 -2
  67. package/dist/{chunk-D6CWQ5DW-BEkstiuo.mjs → chunk-D6CWQ5DW-DTkNWXQB.mjs} +2 -2
  68. package/dist/{chunk-D7MEQ3VN-CAw29uK1.mjs → chunk-D7MEQ3VN-Cgm5u94B.mjs} +2 -2
  69. package/dist/{chunk-DBKNVD4L-DMfzef_7.mjs → chunk-DBKNVD4L-UVpSZ5HO.mjs} +2 -2
  70. package/dist/{chunk-DCAAORBQ-3VCdH2yi.mjs → chunk-DCAAORBQ-Dy6elY3j.mjs} +2 -2
  71. package/dist/{chunk-DXB73IDG-F_tmy-Lz.mjs → chunk-DXB73IDG-ByieFnhr.mjs} +1 -1
  72. package/dist/{chunk-EDXVE4YY-COyPi8-X.mjs → chunk-EDXVE4YY-B7-wXBzK.mjs} +2 -2
  73. package/dist/{chunk-EEXR5ZDP-VxEPFle_.mjs → chunk-EEXR5ZDP-Bot_s1lf.mjs} +1 -1
  74. package/dist/{chunk-EIZGF4BS-Dz3f1URh.mjs → chunk-EIZGF4BS-Cce76mbX.mjs} +2 -2
  75. package/dist/{chunk-ENJZ2VHE-DgpEksO3.mjs → chunk-ENJZ2VHE-DswEO8kN.mjs} +2 -2
  76. package/dist/{chunk-F23WWYKW-tJnOwArx.mjs → chunk-F23WWYKW-YV2Ziyrt.mjs} +2 -2
  77. package/dist/{chunk-FMBD7UC4-CFP8EClM.mjs → chunk-FMBD7UC4-DyW29ls9.mjs} +2 -2
  78. package/dist/{chunk-FOC6F5B3-BfuMxJA0.mjs → chunk-FOC6F5B3-Bc3GvhQ3.mjs} +2 -2
  79. package/dist/{chunk-GCTKCWKD-C5P_ff9C.mjs → chunk-GCTKCWKD-DBnk7jcA.mjs} +1 -1
  80. package/dist/{chunk-GFQRA5P5-DbAN9IDm.mjs → chunk-GFQRA5P5-DuNfOQls.mjs} +1 -1
  81. package/dist/{chunk-GOV5EKKI-CnqfYKLU.mjs → chunk-GOV5EKKI-BFLTyBpR.mjs} +2 -2
  82. package/dist/{chunk-GXVXFKBA-BZ5qwuS5.mjs → chunk-GXVXFKBA-C3l1H1PT.mjs} +2 -2
  83. package/dist/{chunk-HDQ56CKY-C2858kAN.mjs → chunk-HDQ56CKY-Cy6yVra7.mjs} +2 -2
  84. package/dist/{chunk-HJQJAYMS-BhX1qT1n.mjs → chunk-HJQJAYMS-yqfBcYOx.mjs} +1 -1
  85. package/dist/{chunk-HJWBQKYG-D9DjORFc.mjs → chunk-HJWBQKYG-C1cifXhx.mjs} +2 -2
  86. package/dist/{chunk-HKLCLINH-DiTtKPWB.mjs → chunk-HKLCLINH-Ch0mauLy.mjs} +3 -3
  87. package/dist/{chunk-HL6NGDO2-FvmjxcsK.mjs → chunk-HL6NGDO2-D41r2_6L.mjs} +2 -2
  88. package/dist/{chunk-HWKDQ44K-Cd9c0ujm.mjs → chunk-HWKDQ44K-CRAflooW.mjs} +2 -2
  89. package/dist/{chunk-I57KEIP3-BsA-zv3k.mjs → chunk-I57KEIP3-BW7G5kxf.mjs} +2 -2
  90. package/dist/{chunk-ICPOFSXX-C2hDlKD_.mjs → chunk-ICPOFSXX-BF2fcu67.mjs} +2 -2
  91. package/dist/{chunk-IPJHKYVM-CUKythEA.mjs → chunk-IPJHKYVM-DDc9WF57.mjs} +1 -1
  92. package/dist/{chunk-JVPRLUMK-D72YT6bi.mjs → chunk-JVPRLUMK-C9zEHB9M.mjs} +2 -2
  93. package/dist/{chunk-K5T4RW27-ChGdeubA.mjs → chunk-K5T4RW27-DLjwaibC.mjs} +2 -2
  94. package/dist/{chunk-K6LIBGJA-CtwqXONG.mjs → chunk-K6LIBGJA-CSZVB574.mjs} +2 -2
  95. package/dist/{chunk-KGLVRYIC-BYA7AJ2g.mjs → chunk-KGLVRYIC-BNQzuSOt.mjs} +2 -2
  96. package/dist/{chunk-KMEYNNUA-C311YB2Q.mjs → chunk-KMEYNNUA-maIN40sk.mjs} +2 -2
  97. package/dist/{chunk-KRBPSX3W-DsaeH-hY.mjs → chunk-KRBPSX3W-CzvY8ZXk.mjs} +2 -2
  98. package/dist/{chunk-KX3P26DQ-D2yWAYlk.mjs → chunk-KX3P26DQ-76goBn6H.mjs} +1 -1
  99. package/dist/{chunk-LIHQZDEY-Du6TmMJL.mjs → chunk-LIHQZDEY-C1QAwaiM.mjs} +2 -2
  100. package/dist/{chunk-LL3S3NLB-xjImIR4A.mjs → chunk-LL3S3NLB-DbugMv6o.mjs} +2 -2
  101. package/dist/{chunk-LTZRCH7N-DQ58So-F.mjs → chunk-LTZRCH7N-BKI5S2SB.mjs} +2 -2
  102. package/dist/{chunk-LWEGUNWT-B1OcC6RH.mjs → chunk-LWEGUNWT-GnqRCIV_.mjs} +2 -2
  103. package/dist/{chunk-MDDMCKUK-CP6l42wf.mjs → chunk-MDDMCKUK-b-Mvbq7g.mjs} +2 -2
  104. package/dist/{chunk-MDLLFABN-DDKgmYs5.mjs → chunk-MDLLFABN-CySM5qrq.mjs} +2 -2
  105. package/dist/{chunk-MHTUABJP-D8l1TTsc.mjs → chunk-MHTUABJP-t1OLW57X.mjs} +1 -1
  106. package/dist/{chunk-MIZPJHVH-BLEhGmNy.mjs → chunk-MIZPJHVH-D-ZDkLZF.mjs} +2 -2
  107. package/dist/{chunk-MLXIYONF-MXi1NN3K.mjs → chunk-MLXIYONF-2Q4Ybi7x.mjs} +2 -2
  108. package/dist/{chunk-MYE6AGBJ-BkwmDIR4.mjs → chunk-MYE6AGBJ-BejewWl1.mjs} +2 -2
  109. package/dist/{chunk-NAERJDUW-Bv2VeaZc.mjs → chunk-NAERJDUW-BeJI_Ack.mjs} +2 -2
  110. package/dist/{chunk-NCNPKYJZ-14dRI8Qm.mjs → chunk-NCNPKYJZ-BjePegaZ.mjs} +2 -2
  111. package/dist/{chunk-NUYSJFDK-BiYXRcxZ.mjs → chunk-NUYSJFDK-DDVtplw1.mjs} +2 -2
  112. package/dist/{chunk-OCLXQMOG-B_jLzNZV.mjs → chunk-OCLXQMOG-DZx1830_.mjs} +2 -2
  113. package/dist/{chunk-OCS6LSEM-D4VLThbM.mjs → chunk-OCS6LSEM-DGnWZEcL.mjs} +2 -2
  114. package/dist/{chunk-OJDRYQWQ-CmrD0Dg2.mjs → chunk-OJDRYQWQ-69O4zmKR.mjs} +1 -1
  115. package/dist/{chunk-ORNJ4GCN-CO4Fc0LT.mjs → chunk-ORNJ4GCN-R61lu8Cm.mjs} +2 -2
  116. package/dist/{chunk-OYMX7WX6-CjnWmW_n.mjs → chunk-OYMX7WX6-BShEu1pf.mjs} +2 -2
  117. package/dist/{chunk-PBXLG62G-aMLWXguv.mjs → chunk-PBXLG62G-DdXtiydY.mjs} +2 -2
  118. package/dist/{chunk-PP6PSHAB-B3XXGg2T.mjs → chunk-PP6PSHAB-B7OGLVba.mjs} +1 -1
  119. package/dist/{chunk-PXTK5WE2-CguJFePc.mjs → chunk-PXTK5WE2-BeCOtT1d.mjs} +2 -2
  120. package/dist/{chunk-PYSFUGCK-BszfAqRG.mjs → chunk-PYSFUGCK-CoGoOEDp.mjs} +2 -2
  121. package/dist/{chunk-QCDB2VPH-D3ULCm4b.mjs → chunk-QCDB2VPH-z4xw9VKe.mjs} +2 -2
  122. package/dist/{chunk-QJ7O6ZN3-Dzcm83Kv.mjs → chunk-QJ7O6ZN3-Dsx1L-CX.mjs} +2 -2
  123. package/dist/{chunk-QZHKN3VN-CczpYV_w.mjs → chunk-QZHKN3VN-4LgLml-S.mjs} +2 -2
  124. package/dist/{chunk-R6QSAL5T-nrEeDNrG.mjs → chunk-R6QSAL5T-CXXlslcl.mjs} +1 -1
  125. package/dist/{chunk-R6VWJ2ZL-BVeTwIsz.mjs → chunk-R6VWJ2ZL-FXX1AKea.mjs} +1 -1
  126. package/dist/{chunk-RPNGRAAP-CajOz2i0.mjs → chunk-RPNGRAAP-D-txoG-N.mjs} +2 -2
  127. package/dist/{chunk-SDNKECQQ-CA2LWAo7.mjs → chunk-SDNKECQQ-sntIQEvc.mjs} +2 -2
  128. package/dist/{chunk-SNN4IESC-D8LPcAwE.mjs → chunk-SNN4IESC-2iQ8MDN3.mjs} +2 -2
  129. package/dist/{chunk-T56QNPHK-CKzBdBMk.mjs → chunk-T56QNPHK-0UWUTTk9.mjs} +2 -2
  130. package/dist/{chunk-TLSUDHID-rdis5pZn.mjs → chunk-TLSUDHID-CbxrNaLS.mjs} +2 -2
  131. package/dist/{chunk-TOMNU26N-BxDnjGjc.mjs → chunk-TOMNU26N-aWRPfXR1.mjs} +2 -2
  132. package/dist/{chunk-TP4BZANS-ClzIzpWm.mjs → chunk-TP4BZANS-DFORxqE5.mjs} +2 -2
  133. package/dist/{chunk-TXBZCHCQ-DnSXwySk.mjs → chunk-TXBZCHCQ-COSdckz7.mjs} +2 -2
  134. package/dist/{chunk-U2HBQHQK-DMRf50i8.mjs → chunk-U2HBQHQK-B6QvDsYx.mjs} +2 -2
  135. package/dist/{chunk-V5MWI2OL-Cjq6zFOH.mjs → chunk-V5MWI2OL-CDs_rm9r.mjs} +2 -2
  136. package/dist/{chunk-V7TAPXDL-BaVJN6c-.mjs → chunk-V7TAPXDL-DbTOoM_I.mjs} +2 -2
  137. package/dist/{chunk-VJFXDYWH-BJjeOIUB.mjs → chunk-VJFXDYWH-oT0f9NSa.mjs} +2 -2
  138. package/dist/{chunk-VOBGTVA6-CLvo1DrK.mjs → chunk-VOBGTVA6-D6oyYm45.mjs} +2 -2
  139. package/dist/{chunk-VYOJP4TV-ySo4pvxO.mjs → chunk-VYOJP4TV-Dh2zBxKQ.mjs} +2 -2
  140. package/dist/{chunk-WKFATFPP-jr5eyHAR.mjs → chunk-WKFATFPP-CoNouDAR.mjs} +2 -2
  141. package/dist/{chunk-X2AJGDEF-Bpyh-CYM.mjs → chunk-X2AJGDEF-13z4tBy7.mjs} +1 -1
  142. package/dist/{chunk-X2U36JSP-B09HbTgU.mjs → chunk-X2U36JSP-BlsQfR26.mjs} +2 -2
  143. package/dist/{chunk-XKQRETAK-CG272cRl.mjs → chunk-XKQRETAK-EkIIjUUl.mjs} +2 -2
  144. package/dist/{chunk-XKWWSDBF-EI7W96Bb.mjs → chunk-XKWWSDBF-B1eAKd2w.mjs} +2 -2
  145. package/dist/{chunk-XPW4576I-B-qTm_Z3.mjs → chunk-XPW4576I-bLLZgym8.mjs} +2 -2
  146. package/dist/{chunk-XVDPCNWR-DDtsDoBd.mjs → chunk-XVDPCNWR-BAt7NxwA.mjs} +2 -2
  147. package/dist/{chunk-YMMW5UAP-jiH3wEeU.mjs → chunk-YMMW5UAP-Bm5rv4x6.mjs} +2 -2
  148. package/dist/{chunk-YTNYSM6T-D6z7D3pz.mjs → chunk-YTNYSM6T-igBSh3M-.mjs} +2 -2
  149. package/dist/{chunk-YULBWSET-sJ_UPhUx.mjs → chunk-YULBWSET-x9ev2Mf1.mjs} +2 -2
  150. package/dist/{chunk-YZCP3GAM-C2dMi590.mjs → chunk-YZCP3GAM-dFAdRCa8.mjs} +2 -2
  151. package/dist/{chunk-Z6LRHWXI-CFEq3s_2.mjs → chunk-Z6LRHWXI-CQxrFjqd.mjs} +2 -2
  152. package/dist/{chunk-Z7JVV2SM-XK1154v3.mjs → chunk-Z7JVV2SM-C7YBwi4Z.mjs} +2 -2
  153. package/dist/{chunk-ZZ45TVLE-DmKznbd-.mjs → chunk-ZZ45TVLE-2q1aFSGq.mjs} +2 -2
  154. package/dist/{chunk-ZZO3UDB3-Jw0Ocy-R.mjs → chunk-ZZO3UDB3-rEua5jnw.mjs} +2 -2
  155. package/dist/classDiagram-6PBFFD2Q-CcylKUUy.mjs +2 -0
  156. package/dist/classDiagram-v2-HSJHXN6E-BuitxA8E.mjs +2 -0
  157. package/dist/clear-5CZ5X4YR-B1WFGbrj.mjs +1 -0
  158. package/dist/cli.mjs +58 -58
  159. package/dist/clone-FnWO_tLO.mjs +2 -0
  160. package/dist/colors-Ct4sdRvQ.mjs +1 -0
  161. package/dist/{colors-DugpbXz6.mjs → colors-DWZN3WbY.mjs} +1 -1
  162. package/dist/column-WLPMMSTS-DkwMR9G7.mjs +1 -0
  163. package/dist/comm-5SLSESQG-CXlq0ETw.mjs +1 -0
  164. package/dist/constants-B18JyjBC.mjs +2 -0
  165. package/dist/{cose-bilkent-S5V4N54A-BNALZCF0.mjs → cose-bilkent-S5V4N54A-x0sjol1e.mjs} +2 -2
  166. package/dist/cp-XOYR4ABJ-DSmenFoy.mjs +1 -0
  167. package/dist/{curl-47BFPSFW-DU0Jc2rS.mjs → curl-47BFPSFW-CLzIjKiW.mjs} +2 -2
  168. package/dist/cut-OPC3VAGB-Bem4Z9r_.mjs +1 -0
  169. package/dist/{cytoscape.esm-5XrS6n0F.mjs → cytoscape.esm-D1nqsWCf.mjs} +1 -1
  170. package/dist/{dagre-C04vaGU3.mjs → dagre-BTsqj5N3.mjs} +2 -2
  171. package/dist/{dagre-KV5264BT-Cbu_HfO4.mjs → dagre-KV5264BT-qU8auIl8.mjs} +2 -2
  172. package/dist/date-DD7FVA2V-BIqG8vnM.mjs +1 -0
  173. package/dist/{defaultLocale-0qNBj5q-.mjs → defaultLocale-DMqLGTir.mjs} +1 -1
  174. package/dist/{diagram-5BDNPKRD--yFFNenY.mjs → diagram-5BDNPKRD-BfaCThqw.mjs} +2 -2
  175. package/dist/{diagram-G4DWMVQ6-DEe2UaOJ.mjs → diagram-G4DWMVQ6-GD__kOTo.mjs} +2 -2
  176. package/dist/{diagram-MMDJMWI5-BEgEPDUN.mjs → diagram-MMDJMWI5-eK_WgeFb.mjs} +2 -2
  177. package/dist/{diagram-TYMM5635-WdKiO0-q.mjs → diagram-TYMM5635-Cw9FE8Ou.mjs} +2 -2
  178. package/dist/diff-HJF2MPDN-QbElik15.mjs +1 -0
  179. package/dist/dirname-LEMTZZFS-DjJGD8wW.mjs +1 -0
  180. package/dist/{dist-Co98vmuK.mjs → dist-B9rR197c.mjs} +1 -1
  181. package/dist/dist-DNDjbkqL.mjs +1 -0
  182. package/dist/{dist-bundle-tsI-uq-K.mjs → dist-bundle-CfcllBeA.mjs} +1 -1
  183. package/dist/dist-bundle-Dnt-gLG8.mjs +1 -0
  184. package/dist/{server-lock-iLcBw_q0-DK2Tcu84.mjs → dist-gqZDYmIG.mjs} +135 -135
  185. package/dist/{dist-0Mfowk3R.mjs → dist-petOQDm6.mjs} +15 -15
  186. package/dist/du-WO2ENHXQ-gLn1L6An.mjs +1 -0
  187. package/dist/echo-O45JWWI2-CHeEVRD-.mjs +1 -0
  188. package/dist/env-5EPCWSXR-nB7iGA4U.mjs +1 -0
  189. package/dist/{erDiagram-SMLLAGMA-BD_bZ9y8.mjs → erDiagram-SMLLAGMA-BQ28NjyR.mjs} +2 -2
  190. package/dist/{esm-BNIW0EH8.mjs → esm-PWRRAk-U.mjs} +1 -1
  191. package/dist/{execAsync-BAuTynbH.mjs → execAsync-Clg2-3AB.mjs} +1 -1
  192. package/dist/{execAsync-CBkkI2Ek.mjs → execAsync-DCzaEYgw.mjs} +1 -1
  193. package/dist/{execAsync-DVDfm08O.mjs → execAsync-Dyv9tAFE.mjs} +1 -1
  194. package/dist/expand-DTNXU4LQ--1KdtI8I.mjs +1 -0
  195. package/dist/expansion-VBDYWVZR-Br5lbiFS.mjs +1 -0
  196. package/dist/expr-YYCVMXE3-D_Mgl3lg.mjs +1 -0
  197. package/dist/file-IGDTDPLG-DJz2lDmW.mjs +1 -0
  198. package/dist/find-DH2ALKQS-BCfNRHeq.mjs +1 -0
  199. package/dist/flag-coverage-6JEX67RU-dAJxSkKl.mjs +2 -0
  200. package/dist/{flatten-DsfHsK9p.mjs → flatten-CMuDMFOE.mjs} +2 -2
  201. package/dist/{flowDiagram-DWJPFMVM-DZgEsdRZ.mjs → flowDiagram-DWJPFMVM-BRXMLmIm.mjs} +2 -2
  202. package/dist/fold-LDSORVYE-X07YByBI.mjs +1 -0
  203. package/dist/{ganttDiagram-T4ZO3ILL-Csm0cHYU.mjs → ganttDiagram-T4ZO3ILL-BkishNK-.mjs} +2 -2
  204. package/dist/{getMachineId-bsd-Bd_aCdAJ.mjs → getMachineId-bsd-BfKl40ww.mjs} +2 -2
  205. package/dist/{getMachineId-bsd-CmfyCGp_.mjs → getMachineId-bsd-CfcvKJtS.mjs} +2 -2
  206. package/dist/{getMachineId-bsd-D_lpr65O.mjs → getMachineId-bsd-DHr_3v7C.mjs} +2 -2
  207. package/dist/{getMachineId-darwin-CFeqXDM9.mjs → getMachineId-darwin-BGSat_hq.mjs} +2 -2
  208. package/dist/{getMachineId-darwin-Ch6Y3434.mjs → getMachineId-darwin-ClWJDgsl.mjs} +2 -2
  209. package/dist/{getMachineId-darwin-DRbP6ZXo.mjs → getMachineId-darwin-kUGmbM-E.mjs} +2 -2
  210. package/dist/{getMachineId-linux-CsnocidZ.mjs → getMachineId-linux-Cb6TG9LG.mjs} +1 -1
  211. package/dist/{getMachineId-linux-n9GZPwcR.mjs → getMachineId-linux-D_xXWtEw.mjs} +1 -1
  212. package/dist/{getMachineId-linux-CbD1lCp_.mjs → getMachineId-linux-vXwObLy3.mjs} +1 -1
  213. package/dist/{getMachineId-unsupported-Bsi0aVMm.mjs → getMachineId-unsupported-B4ElBmKF.mjs} +1 -1
  214. package/dist/{getMachineId-unsupported-D6zswC3_.mjs → getMachineId-unsupported-BALaAmcO.mjs} +1 -1
  215. package/dist/{getMachineId-unsupported-BQuHcTqF.mjs → getMachineId-unsupported-CechcDdc.mjs} +1 -1
  216. package/dist/{getMachineId-win-BsR1lQcH.mjs → getMachineId-win-CwyWxlQ-.mjs} +2 -2
  217. package/dist/{getMachineId-win-Bvo8aUso.mjs → getMachineId-win-D-OyleV_.mjs} +2 -2
  218. package/dist/{getMachineId-win-BpALY-6t.mjs → getMachineId-win-Div5qJyL.mjs} +2 -2
  219. package/dist/gh-detect-DT6DqKGM.mjs +3 -0
  220. package/dist/git-handle-CetHWc5A-BcCPg15N.mjs +1 -0
  221. package/dist/git-handle-dKyep_oZ-B7s7m6CJ.mjs +10 -0
  222. package/dist/gitGraph-7Q5UKJZL-Cb6AI0gQ.mjs +1 -0
  223. package/dist/{gitGraphDiagram-UUTBAWPF-dC1IPshv.mjs → gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs} +2 -2
  224. package/dist/{graphlib-ZUByR7Z1.mjs → graphlib-C8GlDNIO.mjs} +2 -2
  225. package/dist/grep-2HUTXO5U-DF5bN210.mjs +1 -0
  226. package/dist/gzip-AQXSGOVS-Ld4whXAz.mjs +1 -0
  227. package/dist/head-HT2B6D2J-Y8QWoury.mjs +1 -0
  228. package/dist/help-VVWX7SA5-DNTZaSb5.mjs +1 -0
  229. package/dist/history-J4QRNGRO-D8QHmWq3.mjs +1 -0
  230. package/dist/hostname-BK6HG2DE-C229q8IA.mjs +1 -0
  231. package/dist/html-to-markdown-TFCECAGV-EEqkh5Fp.mjs +1 -0
  232. package/dist/index.mjs +1 -1
  233. package/dist/info-OMHHGYJF-DY6XVLHA.mjs +1 -0
  234. package/dist/{infoDiagram-42DDH7IO-HjNjWo06.mjs → infoDiagram-42DDH7IO-BVXbYOHQ.mjs} +2 -2
  235. package/dist/{init-BQKkPl4l.mjs → init-D9nHWIP2.mjs} +1 -1
  236. package/dist/{init-CUBRtkez.mjs → init-KCSJffNW.mjs} +5 -5
  237. package/dist/init-zkouBkiU.mjs +1 -0
  238. package/dist/{is-object-DAC-mmwo.mjs → is-object-DhiFit5j.mjs} +1 -1
  239. package/dist/{isEmpty-jdQphHPa.mjs → isEmpty-B_hy4b7A.mjs} +2 -2
  240. package/dist/{ishikawaDiagram-UXIWVN3A-BlrokJRv.mjs → ishikawaDiagram-UXIWVN3A-Diodefny.mjs} +2 -2
  241. package/dist/join-GG2LDHE5-DJ1L_Ka6.mjs +1 -0
  242. package/dist/{journeyDiagram-VCZTEJTY-Bt5CmS_f.mjs → journeyDiagram-VCZTEJTY-CMQp-Rx9.mjs} +2 -2
  243. package/dist/jq-LYZFFBZB-BItVI6BJ.mjs +1 -0
  244. package/dist/{js-exec-VXN6TZ7U-B_mKz_np.mjs → js-exec-VXN6TZ7U-Bnv5xh7r.mjs} +2 -2
  245. package/dist/{kanban-definition-6JOO6SKY-BH015AU8.mjs → kanban-definition-6JOO6SKY-DhbBoKko.mjs} +2 -2
  246. package/dist/{launch-json-removal--BmJqT87.mjs → launch-json-removal-ZIYJbZtQ.mjs} +2 -2
  247. package/dist/{lib-BWyT_i83.mjs → lib-BFgxfC0m.mjs} +2 -2
  248. package/dist/{lib-BKCY8vrL.mjs → lib-DOas6HiH.mjs} +1 -1
  249. package/dist/{libesm-Ob3yvbRV.mjs → libesm-bRpdkHYn.mjs} +1 -1
  250. package/dist/{line-DiVg83mo.mjs → line-CNrllbcq.mjs} +2 -2
  251. package/dist/{linear-C06cViLu.mjs → linear-CUrVtEYu.mjs} +2 -2
  252. package/dist/ln-4TRFBYAT-1vbMtGss.mjs +1 -0
  253. package/dist/loader-BqECoP19.mjs +4 -0
  254. package/dist/loader-D9ILq_Qj.mjs +1 -0
  255. package/dist/ls-KSXFZCWH-D7XChuCb.mjs +1 -0
  256. package/dist/{lzma-NI_6IIcm.mjs → lzma-kz900pzb.mjs} +1 -1
  257. package/dist/{mcp-migrate-event-BNoOQpLB.mjs → mcp-migrate-event-H4uBxZps.mjs} +1 -1
  258. package/dist/md5sum-INMIK4DX-DebFzK7Y.mjs +1 -0
  259. package/dist/{mermaid-parser.core-DqKkkvo5.mjs → mermaid-parser.core-C4HPipkF.mjs} +2 -2
  260. package/dist/{mermaid.core-BzIdCd91.mjs → mermaid.core-BjaX3aDk.mjs} +3 -3
  261. package/dist/{mindmap-definition-QFDTVHPH-BOkRtwWA.mjs → mindmap-definition-QFDTVHPH-aTvmjjWw.mjs} +2 -2
  262. package/dist/mkdir-TDEMSB6C-yKujfJwH.mjs +1 -0
  263. package/dist/mv-Z6MORUFL-DefDwgs3.mjs +1 -0
  264. package/dist/native/native-config.linux-x64-gnu.node +0 -0
  265. package/dist/nl-U5YJDM32-C4WnOB_Q.mjs +1 -0
  266. package/dist/od-VJEF2UR5-w1NlCkUs.mjs +1 -0
  267. package/dist/{open-browser-CZY2ZKg0.mjs → open-browser-BMVg3r9e.mjs} +2 -2
  268. package/dist/{ordinal-BuFKVuSx.mjs → ordinal-CwNJ0kWp.mjs} +2 -2
  269. package/dist/packet-4T2RLAQJ-Bf6ng-Cf.mjs +1 -0
  270. package/dist/paste-7N6AFSDS-C1xZzPgC.mjs +1 -0
  271. package/dist/{path-Dmj-XcQ6.mjs → path-v4_sOSY9.mjs} +1 -1
  272. package/dist/pie-ZZUOXDRM-B2TN5yZH.mjs +1 -0
  273. package/dist/{pieDiagram-DEJITSTG-Bho_Qp6H.mjs → pieDiagram-DEJITSTG-Bwxzwykf.mjs} +2 -2
  274. package/dist/{preview-BUUT3N0t.mjs → preview-Bmngkbmx.mjs} +2 -2
  275. package/dist/preview-CXetnprU.mjs +1 -0
  276. package/dist/printf-CX64KX2P-mlOOn_9v.mjs +1 -0
  277. package/dist/public/assets/ShareBranchSwitchDialog-DGcSbhKt.js +1 -0
  278. package/dist/public/assets/{index-CzUR_TnM.js → index-CxZGz7om.js} +3 -3
  279. package/dist/public/index.html +1 -1
  280. package/dist/pwd-D4OZ7N27-CT87C-5L.mjs +1 -0
  281. package/dist/{python3-DNGS4G3E-mSuL-4Sg.mjs → python3-DNGS4G3E-CvPRspn0.mjs} +2 -2
  282. package/dist/{quadrantDiagram-34T5L4WZ-Bd7jb1rn.mjs → quadrantDiagram-34T5L4WZ-DNT3MD_9.mjs} +2 -2
  283. package/dist/radar-PYXPWWZC-COiIo4-V.mjs +1 -0
  284. package/dist/readlink-MI4GCHJF-yD7ZCo6I.mjs +1 -0
  285. package/dist/{reduce-CKdE5ppn.mjs → reduce-KkqmWdsg.mjs} +2 -2
  286. package/dist/{repair-launch-json-jpDBAb4m.mjs → repair-launch-json-D73FezU-.mjs} +2 -2
  287. package/dist/{repair-mcp-configs-Bid881e6.mjs → repair-mcp-configs-C2iq9bOP.mjs} +2 -2
  288. package/dist/repair-skills-BSRgI3Qd.mjs +3 -0
  289. package/dist/repair-skills-DMIeifIr.mjs +1 -0
  290. package/dist/{requirementDiagram-MS252O5E-B74qjBRN.mjs → requirementDiagram-MS252O5E-25Z7WGN_.mjs} +2 -2
  291. package/dist/rev-XOSYPP45-DXeN2c_L.mjs +1 -0
  292. package/dist/rg-XNF3R3II-CSW8tOjh.mjs +1 -0
  293. package/dist/rm-RTZG23RL-CdPHUz_A.mjs +1 -0
  294. package/dist/rmdir-XTQXT7RK-B-Hcy2_M.mjs +1 -0
  295. package/dist/{rough.cjs-D5rEDIRO.mjs → rough.cjs-CjMW0p0V.mjs} +1 -1
  296. package/dist/{sankeyDiagram-XADWPNL6-CsDd_Lum.mjs → sankeyDiagram-XADWPNL6-CaXOTYx7.mjs} +2 -2
  297. package/dist/sed-JAPPVBEU-CcOukRYN.mjs +1 -0
  298. package/dist/seq-RN5ZUASB-s6ShRZlK.mjs +1 -0
  299. package/dist/{sequenceDiagram-FGHM5R23-C88m3ajK.mjs → sequenceDiagram-FGHM5R23-BgVYdPUE.mjs} +2 -2
  300. package/dist/server-lock-GuuouVft-mEG_NG6z.mjs +1 -0
  301. package/dist/server-lock-iLcBw_q0-CSsXlPB8.mjs +2 -0
  302. package/dist/sha1sum-VJPNLNU6-DypLzN_7.mjs +1 -0
  303. package/dist/sha256sum-PI32XWXY-DGVRMju7.mjs +1 -0
  304. package/dist/sleep-VZFPZFWA-B9Y3_tNd.mjs +1 -0
  305. package/dist/sort-DCNRDA7U-hsloabcm.mjs +1 -0
  306. package/dist/split-SITCSYCZ-BDulNHyK.mjs +1 -0
  307. package/dist/sqlite3-TE5AIOTF-DjHl_aWc.mjs +1 -0
  308. package/dist/{src-DyEoJGw7.mjs → src-7LGO0Yau.mjs} +6 -6
  309. package/dist/{src-DC_BCes_.mjs → src-BGL-MlNN.mjs} +1 -1
  310. package/dist/start-B3G01qdc.mjs +1 -0
  311. package/dist/start-CGL0pAPp.mjs +3 -0
  312. package/dist/stat-BT5A227F-Bo3rQCLg.mjs +1 -0
  313. package/dist/{stateDiagram-FHFEXIEX-va6AVA_z.mjs → stateDiagram-FHFEXIEX-DQ2iT5iQ.mjs} +2 -2
  314. package/dist/stateDiagram-v2-QKLJ7IA2-BN2cDF-I.mjs +2 -0
  315. package/dist/strings-7PLOGTPD-DzlKcmS-.mjs +1 -0
  316. package/dist/tac-SJGXQ4T2-ByklUqCu.mjs +1 -0
  317. package/dist/tail-S5ULNTJU-4htchzH3.mjs +1 -0
  318. package/dist/tar-MZQD7NO4-BbDCO35a.mjs +1 -0
  319. package/dist/tee-O7VXZDCO-C4h94T7n.mjs +1 -0
  320. package/dist/time-DEUO3QV2-DgbA26hb.mjs +1 -0
  321. package/dist/{timeline-definition-GMOUNBTQ-TPAmdwnH.mjs → timeline-definition-GMOUNBTQ-CN-kJjLP.mjs} +2 -2
  322. package/dist/timeout-VRKMCG72-QNsmkGY4.mjs +1 -0
  323. package/dist/touch-DX2IJOQ4-DCSWORMR.mjs +1 -0
  324. package/dist/tr-2HXZRDSW-ClAtG6KK.mjs +1 -0
  325. package/dist/tree-LYXBS7DC-DY3rkdQ5.mjs +1 -0
  326. package/dist/treeView-SZITEDCU-IxD8BwiZ.mjs +1 -0
  327. package/dist/treemap-W4RFUUIX-Bi83ji26.mjs +1 -0
  328. package/dist/true-WHJNXCHG-D1oYWVZ5.mjs +1 -0
  329. package/dist/unexpand-RGTMIGZM-MOepJcp7.mjs +1 -0
  330. package/dist/uniq-SUNANL47-BTfKD4-0.mjs +1 -0
  331. package/dist/{vennDiagram-DHZGUBPP-CVntpCfR.mjs → vennDiagram-DHZGUBPP-BJ8_Sz54.mjs} +2 -2
  332. package/dist/wardley-RL74JXVD-DxHrvQhH.mjs +1 -0
  333. package/dist/{wardleyDiagram-NUSXRM2D-DlYkmDFQ.mjs → wardleyDiagram-NUSXRM2D-j56ncYAi.mjs} +2 -2
  334. package/dist/wc-TQB3VNOX-CMqYcRvH.mjs +1 -0
  335. package/dist/which-XZHEH76L-CAv7Efsx.mjs +1 -0
  336. package/dist/whoami-DGKU3D2X-CpvaE3LM.mjs +1 -0
  337. package/dist/{wrapper-BZO_sIci.mjs → wrapper-C8gJQl5z.mjs} +1 -1
  338. package/dist/{write-project-skill-D82uNxGO.mjs → write-project-skill-CQSo7jpP.mjs} +3 -3
  339. package/dist/xan-UD7JYIL2-DLOcZDYa.mjs +1 -0
  340. package/dist/xan-view-OW2TB7Z3-dHhPo_bJ.mjs +1 -0
  341. package/dist/xargs-I6EZUCYF-HR9_4d9i.mjs +1 -0
  342. package/dist/{xychartDiagram-5P7HB3ND-CFd6z4Gb.mjs → xychartDiagram-5P7HB3ND-CcUb_B_R.mjs} +2 -2
  343. package/dist/yazl-B1RwDQQs.mjs +1 -0
  344. package/dist/{yazl-Docqgl6q.mjs → yazl-DFMxUgKn.mjs} +1 -1
  345. package/dist/yq-OAKYHSXH-CJLBfTXv.mjs +1 -0
  346. package/package.json +1 -1
  347. package/dist/alias-JE7RI5QX-BODj4Gfj.mjs +0 -1
  348. package/dist/architecture-YZFGNWBL-BJvTzYI9.mjs +0 -1
  349. package/dist/awk2-BBAGSFUB-lHnSCbc-.mjs +0 -1
  350. package/dist/base64-4YMZCVJ5-BTMj5dqF.mjs +0 -1
  351. package/dist/basename-AA2KJYZQ-B1wvwZXV.mjs +0 -1
  352. package/dist/bash-IJWYRKFO-CCnjwjWe.mjs +0 -1
  353. package/dist/build-Ca40rJCO.mjs +0 -1
  354. package/dist/cat-RDUMLXKC-JY2w4DEE.mjs +0 -1
  355. package/dist/channel-BQl_ktPZ.mjs +0 -2
  356. package/dist/chmod-SYMGL4JA-3Hk_1ELN.mjs +0 -1
  357. package/dist/chunk-426QAEUC-B_MzMc_U.mjs +0 -2
  358. package/dist/classDiagram-6PBFFD2Q-L301VcDG.mjs +0 -2
  359. package/dist/classDiagram-v2-HSJHXN6E-CeSqnnqg.mjs +0 -2
  360. package/dist/clear-5CZ5X4YR-BDbutb2U.mjs +0 -1
  361. package/dist/clone-DETmm2Pe.mjs +0 -2
  362. package/dist/colors-C2Tw16G0.mjs +0 -1
  363. package/dist/column-WLPMMSTS-CV6fCKBB.mjs +0 -1
  364. package/dist/comm-5SLSESQG-c_QNAuoh.mjs +0 -1
  365. package/dist/constants-DJC5MEix.mjs +0 -2
  366. package/dist/cp-XOYR4ABJ-Dy7On9-M.mjs +0 -1
  367. package/dist/cut-OPC3VAGB-BuR9R75Y.mjs +0 -1
  368. package/dist/date-DD7FVA2V-ClXjwml9.mjs +0 -1
  369. package/dist/diff-HJF2MPDN-C0H4yjXW.mjs +0 -1
  370. package/dist/dirname-LEMTZZFS-4AT-pFX0.mjs +0 -1
  371. package/dist/dist-ByqNBEyQ.mjs +0 -1
  372. package/dist/dist-bundle-BA0EtAC7.mjs +0 -1
  373. package/dist/du-WO2ENHXQ-Do-4VQ3V.mjs +0 -1
  374. package/dist/echo-O45JWWI2-DdI80aCx.mjs +0 -1
  375. package/dist/env-5EPCWSXR-CDfcyvrs.mjs +0 -1
  376. package/dist/expand-DTNXU4LQ-D-zXh5CC.mjs +0 -1
  377. package/dist/expansion-VBDYWVZR-DTjZRtii.mjs +0 -1
  378. package/dist/expr-YYCVMXE3-C9dGgUU3.mjs +0 -1
  379. package/dist/file-IGDTDPLG-BEwb4MXq.mjs +0 -1
  380. package/dist/find-DH2ALKQS-Dni7700t.mjs +0 -1
  381. package/dist/flag-coverage-6JEX67RU-CMw4W0rs.mjs +0 -2
  382. package/dist/fold-LDSORVYE-g18Hkyqy.mjs +0 -1
  383. package/dist/gh-detect-DDO0PYTq.mjs +0 -3
  384. package/dist/git-handle-BMLM1Bxa-Bic5A31t.mjs +0 -1
  385. package/dist/git-handle-XXj9bu6B-DY30-mw9.mjs +0 -10
  386. package/dist/gitGraph-7Q5UKJZL-D8oR6R4c.mjs +0 -1
  387. package/dist/grep-2HUTXO5U-Dq78Al2p.mjs +0 -1
  388. package/dist/gzip-AQXSGOVS-C9_JolVc.mjs +0 -1
  389. package/dist/head-HT2B6D2J-CdrKE_Tc.mjs +0 -1
  390. package/dist/help-VVWX7SA5-DdmujeOs.mjs +0 -1
  391. package/dist/history-J4QRNGRO-Bm3N_FkO.mjs +0 -1
  392. package/dist/hostname-BK6HG2DE-DdT-PlzJ.mjs +0 -1
  393. package/dist/html-to-markdown-TFCECAGV-D2mzPMGY.mjs +0 -1
  394. package/dist/info-OMHHGYJF-pWbeXW42.mjs +0 -1
  395. package/dist/init-D_2w4_8n.mjs +0 -1
  396. package/dist/join-GG2LDHE5-DV7ilddy.mjs +0 -1
  397. package/dist/jq-LYZFFBZB-DhEnecL2.mjs +0 -1
  398. package/dist/ln-4TRFBYAT-Cg_-SGIL.mjs +0 -1
  399. package/dist/loader-DRR095Jj.mjs +0 -4
  400. package/dist/loader-QudPqlKw.mjs +0 -1
  401. package/dist/ls-KSXFZCWH-RlHCZlxm.mjs +0 -1
  402. package/dist/md5sum-INMIK4DX-BXlXL3Ru.mjs +0 -1
  403. package/dist/mkdir-TDEMSB6C-Cu2DJyfB.mjs +0 -1
  404. package/dist/mv-Z6MORUFL-BsEWL09Z.mjs +0 -1
  405. package/dist/nl-U5YJDM32-BybO7Epu.mjs +0 -1
  406. package/dist/od-VJEF2UR5-OIZrgjg0.mjs +0 -1
  407. package/dist/packet-4T2RLAQJ-BizdrxBC.mjs +0 -1
  408. package/dist/paste-7N6AFSDS-Ch72F0D2.mjs +0 -1
  409. package/dist/pie-ZZUOXDRM-BSULk3pW.mjs +0 -1
  410. package/dist/preview-eYrC9lP5.mjs +0 -1
  411. package/dist/printf-CX64KX2P-DS9NCBYX.mjs +0 -1
  412. package/dist/public/assets/ShareBranchSwitchDialog-uskl1Wv4.js +0 -1
  413. package/dist/pwd-D4OZ7N27-PztYFitl.mjs +0 -1
  414. package/dist/radar-PYXPWWZC-BPIU1oIT.mjs +0 -1
  415. package/dist/readlink-MI4GCHJF-B72qVA05.mjs +0 -1
  416. package/dist/repair-skills-BkNgLJzB.mjs +0 -1
  417. package/dist/repair-skills-g00h1ESt.mjs +0 -3
  418. package/dist/rev-XOSYPP45-ByX-mrLe.mjs +0 -1
  419. package/dist/rg-XNF3R3II-CnMv6YV-.mjs +0 -1
  420. package/dist/rm-RTZG23RL-CEw97Zb0.mjs +0 -1
  421. package/dist/rmdir-XTQXT7RK-BFdmBJEt.mjs +0 -1
  422. package/dist/sed-JAPPVBEU-2bqT53N-.mjs +0 -1
  423. package/dist/seq-RN5ZUASB-DxG4OIr9.mjs +0 -1
  424. package/dist/server-lock-GuuouVft-JSvkXrbf.mjs +0 -1
  425. package/dist/sha1sum-VJPNLNU6-4-wvJ2xb.mjs +0 -1
  426. package/dist/sha256sum-PI32XWXY-BaaxN7Tl.mjs +0 -1
  427. package/dist/sleep-VZFPZFWA-BllHeqyP.mjs +0 -1
  428. package/dist/sort-DCNRDA7U-CuZyvLiY.mjs +0 -1
  429. package/dist/split-SITCSYCZ-_ZnwVuas.mjs +0 -1
  430. package/dist/sqlite3-TE5AIOTF-CNPF-saV.mjs +0 -1
  431. package/dist/start-BZ29iacu.mjs +0 -1
  432. package/dist/start-CC6n9G3S.mjs +0 -3
  433. package/dist/stat-BT5A227F-D9HiKzDi.mjs +0 -1
  434. package/dist/stateDiagram-v2-QKLJ7IA2-Cu9wyPTl.mjs +0 -2
  435. package/dist/strings-7PLOGTPD-kZJh53lS.mjs +0 -1
  436. package/dist/tac-SJGXQ4T2-Eo9pASuo.mjs +0 -1
  437. package/dist/tail-S5ULNTJU-PpwHAjse.mjs +0 -1
  438. package/dist/tar-MZQD7NO4-9e7UblLx.mjs +0 -1
  439. package/dist/tee-O7VXZDCO-CBU43Hsm.mjs +0 -1
  440. package/dist/time-DEUO3QV2-BpiPEFvF.mjs +0 -1
  441. package/dist/timeout-VRKMCG72-COJoI5YN.mjs +0 -1
  442. package/dist/touch-DX2IJOQ4-C4-z30TF.mjs +0 -1
  443. package/dist/tr-2HXZRDSW-C9BbHiUE.mjs +0 -1
  444. package/dist/tree-LYXBS7DC-BSj-bS3l.mjs +0 -1
  445. package/dist/treeView-SZITEDCU-CxDAshOW.mjs +0 -1
  446. package/dist/treemap-W4RFUUIX-Akln3RQv.mjs +0 -1
  447. package/dist/true-WHJNXCHG-BkJIzmUI.mjs +0 -1
  448. package/dist/unexpand-RGTMIGZM-C-to2fwU.mjs +0 -1
  449. package/dist/uniq-SUNANL47-o1tLcwbX.mjs +0 -1
  450. package/dist/wardley-RL74JXVD-Djy_JGGm.mjs +0 -1
  451. package/dist/wc-TQB3VNOX-B-lPuWMt.mjs +0 -1
  452. package/dist/which-XZHEH76L-a4M_VoGw.mjs +0 -1
  453. package/dist/whoami-DGKU3D2X-DJ9OZDEX.mjs +0 -1
  454. package/dist/xan-UD7JYIL2-DqVUhpbk.mjs +0 -1
  455. package/dist/xan-view-OW2TB7Z3-BmNMcZHM.mjs +0 -1
  456. package/dist/xargs-I6EZUCYF-DphRNePs.mjs +0 -1
  457. package/dist/yazl-CQSNnbvt.mjs +0 -1
  458. package/dist/yq-OAKYHSXH-BBrPVcxh.mjs +0 -1
@@ -1,2 +1,2 @@
1
- import{E as e,_ as t,c as n,d as r,f as i,g as a,h as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m,v as ee,x as te,y as h}from"./reduce-CKdE5ppn.mjs";import{D as ne,O as re,T as ie,f as ae,g,h as oe,i as se,n as ce,t as le,u as ue,w as _}from"./_baseFor-DgUmPvii.mjs";import{i as de,n as fe}from"./isEmpty-jdQphHPa.mjs";import{a as v,i as pe,n as y,o as me,r as he,t as b}from"./flatten-DsfHsK9p.mjs";import{C as ge,N as _e,S as ve,T as ye,_ as x,b as be,v as S,x as C,y as xe}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{i as Se,n as w,r as T,t as E}from"./graphlib-ZUByR7Z1.mjs";var Ce=/\s/;function we(e){for(var t=e.length;t--&&Ce.test(e.charAt(t)););return t}var Te=/^\s+/;function Ee(e){return e&&e.slice(0,we(e)+1).replace(Te,``)}var De=NaN,Oe=/^[-+]0x[0-9a-f]+$/i,ke=/^0b[01]+$/i,Ae=/^0o[0-7]+$/i,je=parseInt;function Me(e){if(typeof e==`number`)return e;if(h(e))return De;if(_(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=_(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Ee(e);var n=ke.test(e);return n||Ae.test(e)?je(e.slice(2),n?2:8):Oe.test(e)?De:+e}var Ne=1/0,Pe=17976931348623157e292;function D(e){return e?(e=Me(e),e===Ne||e===-Ne?(e<0?-1:1)*Pe:e===e?e:0):e===0?e:0}function Fe(e){var t=D(e),n=t%1;return t===t?n?t-n:t:0}function Ie(e){return be(ve(e,void 0,b),e+``)}var Le=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Re(e){return Le.test(e)}var ze=1,Be=4;function Ve(e){return Se(e,ze|Be)}var He=function(){return ne.Date.now()},Ue=Object.prototype,We=Ue.hasOwnProperty,Ge=xe(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&S(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=ge(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||re(u,Ue[l])&&!We.call(e,l))&&(e[l]=a[l])}return e});function O(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ke(e){return function(t,n,i){var a=Object(t);if(!se(t)){var o=r(n,3);t=te(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:void 0}}var qe=Math.max;function Je(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:Fe(n);return a<0&&(a=qe(i+a,0)),l(e,r(t,3),a)}var k=Ke(Je);function Ye(e,t){return e==null?e:le(e,d(t),ge)}function Xe(e,t){return e&&m(e,d(t))}function Ze(e,t){return e>t}var Qe=Object.prototype.hasOwnProperty;function $e(e,t){return e!=null&&Qe.call(e,t)}function et(e,t){return e!=null&&s(e,t,$e)}var tt=`[object String]`;function nt(e){return typeof e==`string`||!g(e)&&oe(e)&&ie(e)==tt}function A(e,t){var n={};return t=r(t,3),m(e,function(e,r,i){_e(n,r,t(e,r,i))}),n}function j(e){return e&&e.length?pe(e,ce,Ze):void 0}function M(e,t){return e&&e.length?pe(e,r(t,2),he):void 0}function rt(e,n,r,i){if(!_(e))return e;n=t(n,e);for(var o=-1,s=n.length,c=s-1,l=e;l!=null&&++o<s;){var u=a(n[o]),d=r;if(u===`__proto__`||u===`constructor`||u===`prototype`)return e;if(o!=c){var f=l[u];d=i?i(f,u,l):void 0,d===void 0&&(d=_(f)?f:ae(n[o+1])?[]:{})}ye(l,u,d),l=l[u]}return e}function it(e,n,r){for(var i=-1,a=n.length,s={};++i<a;){var c=n[i],l=o(e,c);r(l,c)&&rt(s,t(c,e),l)}return s}function at(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ot(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=h(e),o=t!==void 0,s=t===null,c=t===t,l=h(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function st(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=ot(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function ct(t,n,i){n=n.length?e(n,function(e){return g(e)?function(t){return o(t,e.length===1?e[0]:e)}:e}):[ce];var a=-1;return n=e(n,ue(r)),at(me(t,function(t,r,i){return{criteria:e(n,function(e){return e(t)}),index:++a,value:t}}),function(e,t){return st(e,t,i)})}var lt=i(`length`),ut=`\\ud800-\\udfff`,dt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,ft=`\\ufe0e\\ufe0f`,pt=`[`+ut+`]`,N=`[`+dt+`]`,P=`\\ud83c[\\udffb-\\udfff]`,mt=`(?:`+N+`|`+P+`)`,ht=`[^`+ut+`]`,gt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,_t=`[\\ud800-\\udbff][\\udc00-\\udfff]`,vt=`\\u200d`,yt=mt+`?`,bt=`[`+ft+`]?`,xt=`(?:`+vt+`(?:`+[ht,gt,_t].join(`|`)+`)`+bt+yt+`)*`,St=bt+yt+xt,Ct=`(?:`+[ht+N+`?`,N,gt,_t,pt].join(`|`)+`)`,wt=RegExp(P+`(?=`+P+`)|`+Ct+St,`g`);function Tt(e){for(var t=wt.lastIndex=0;wt.test(e);)++t;return t}function Et(e){return Re(e)?Tt(e):lt(e)}function Dt(e,t){return it(e,t,function(t,n){return u(e,n)})}var F=Ie(function(e,t){return e==null?{}:Dt(e,t)}),Ot=Math.ceil,kt=Math.max;function At(e,t,n,r){for(var i=-1,a=kt(Ot((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function jt(e){return function(t,n,r){return r&&typeof r!=`number`&&S(t,n,r)&&(n=r=void 0),t=D(t),n===void 0?(n=t,t=0):n=D(n),r=r===void 0?t<n?1:-1:D(r),At(t,n,r,e)}}var I=jt(),Mt=`[object Map]`,Nt=`[object Set]`;function Pt(e){if(e==null)return 0;if(se(e))return nt(e)?Et(e):e.length;var t=fe(e);return t==Mt||t==Nt?e.size:de(e).length}var L=xe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&S(e,t[0],t[1])?t=[]:n>2&&S(t[0],t[1],t[2])&&(t=[t[0]]),ct(e,f(t,1),[])}),Ft=0;function R(e){var t=++Ft;return ee(e)+t}function It(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function Lt(e,t){return It(e||[],t||[],ye)}var Rt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return z(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&z(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Bt=C(1);function Vt(e,t){if(e.nodeCount()<=1)return[];var n=Ut(e,t||Bt);return b(v(Ht(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function Ht(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)B(e,t,n,o);for(;o=i.dequeue();)B(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(B(e,t,n,o,!0));break}}}return r}function B(e,t,n,r,i){var a=i?[]:void 0;return c(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,V(t,n,s)}),c(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,V(t,n,o)}),e.removeNode(r.v),a}function Ut(e,t){var n=new E,r=0,i=0;c(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),c(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=I(i+r+3).map(function(){return new Rt}),o=r+1;return c(n.nodes(),function(e){V(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function V(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Wt(e){c(e.graph().acyclicer===`greedy`?Vt(e,t(e)):Gt(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,R(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function Gt(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,c(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return c(e.nodes(),i),t}function Kt(e){c(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function H(e,t,n,r){var i;do i=R(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function qt(e){var t=new E().setGraph(e.graph());return c(e.nodes(),function(n){t.setNode(n,e.node(n))}),c(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function Jt(e){var t=new E({multigraph:e.isMultigraph()}).setGraph(e.graph());return c(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),c(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Yt(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function U(e){var t=v(I($t(e)+1),function(){return[]});return c(e.nodes(),function(n){var r=e.node(n),i=r.rank;w(i)||(t[i][r.order]=n)}),t}function Xt(e){var t=y(v(e.nodes(),function(t){return e.node(t).rank}));c(e.nodes(),function(n){var r=e.node(n);et(r,`rank`)&&(r.rank-=t)})}function Zt(e){var t=y(v(e.nodes(),function(t){return e.node(t).rank})),n=[];c(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;c(n,function(t,n){w(t)&&n%i!==0?--r:r&&c(t,function(t){e.node(t).rank+=r})})}function Qt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),H(e,`border`,i,t)}function $t(e){return j(v(e.nodes(),function(t){var n=e.node(t).rank;if(!w(n))return n}))}function en(e,t){var n={lhs:[],rhs:[]};return c(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function tn(e,t){var n=He();try{return t()}finally{console.log(e+` time: `+(He()-n)+`ms`)}}function nn(e,t){return t()}function rn(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&c(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)an(e,`borderLeft`,`_bl`,n,i,a),an(e,`borderRight`,`_br`,n,i,a)}}c(e.children(),t)}function an(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=H(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function on(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&cn(e)}function sn(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&un(e),(t===`lr`||t===`rl`)&&(dn(e),cn(e))}function cn(e){c(e.nodes(),function(t){ln(e.node(t))}),c(e.edges(),function(t){ln(e.edge(t))})}function ln(e){var t=e.width;e.width=e.height,e.height=t}function un(e){c(e.nodes(),function(t){W(e.node(t))}),c(e.edges(),function(t){var n=e.edge(t);c(n.points,W),Object.prototype.hasOwnProperty.call(n,`y`)&&W(n)})}function W(e){e.y=-e.y}function dn(e){c(e.nodes(),function(t){G(e.node(t))}),c(e.edges(),function(t){var n=e.edge(t);c(n.points,G),Object.prototype.hasOwnProperty.call(n,`x`)&&G(n)})}function G(e){var t=e.x;e.x=e.y,e.y=t}function fn(e){e.graph().dummyChains=[],c(e.edges(),function(t){pn(e,t)})}function pn(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=H(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function mn(e){c(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function K(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=y(v(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}c(e.sources(),n)}function q(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function hn(e){var t=new E({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;gn(t,e)<r;)i=_n(t,e),a=t.hasNode(i.v)?q(e,i):-q(e,i),vn(t,e,a);return t}function gn(e,t){function n(r){c(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!q(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return c(e.nodes(),n),e.nodeCount()}function _n(e,t){return M(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return q(t,n)})}function vn(e,t,n){c(e.nodes(),function(e){t.node(e).rank+=n})}C(1),C(1),yn.CycleException=J;function yn(e){var t={},n={},r=[];function i(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new J;Object.prototype.hasOwnProperty.call(t,a)||(n[a]=!0,t[a]=!0,c(e.predecessors(a),i),delete n[a],r.push(a))}if(c(e.sinks(),i),Pt(t)!==e.nodeCount())throw new J;return r}function J(){}J.prototype=Error();function bn(e,t,n){g(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return c(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);xn(e,t,n===`post`,a,r,i)}),i}function xn(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),c(i(t),function(t){xn(e,t,n,r,i,a)}),n&&a.push(t))}function Sn(e,t){return bn(e,t,`post`)}function Cn(e,t){return bn(e,t,`pre`)}Y.initLowLimValues=Z,Y.initCutValues=X,Y.calcCutValue=Tn,Y.leaveEdge=Dn,Y.enterEdge=On,Y.exchangeEdges=kn;function Y(e){e=qt(e),K(e);var t=hn(e);Z(t),X(t,e);for(var n,r;n=Dn(t);)r=On(t,e,n),kn(t,e,n,r)}function X(e,t){var n=Sn(e,e.nodes());n=n.slice(0,n.length-1),c(n,function(n){wn(e,t,n)})}function wn(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Tn(e,t,n)}function Tn(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,c(t.nodeEdges(n),function(a){var s=a.v===n,c=s?a.w:a.v;if(c!==r){var l=s===i,u=t.edge(a).weight;if(o+=l?u:-u,jn(e,n,c)){var d=e.edge(n,c).cutvalue;o+=l?-d:d}}}),o}function Z(e,t){arguments.length<2&&(t=e.nodes()[0]),En(e,{},1,t)}function En(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,c(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=En(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Dn(e){return k(e.edges(),function(t){return e.edge(t).cutvalue<0})}function On(e,t,r){var i=r.v,a=r.w;t.hasEdge(i,a)||(i=r.w,a=r.v);var o=e.node(i),s=e.node(a),c=o,l=!1;return o.lim>s.lim&&(c=s,l=!0),M(n(t.edges(),function(t){return l===Mn(e,e.node(t.v),c)&&l!==Mn(e,e.node(t.w),c)}),function(e){return q(t,e)})}function kn(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Z(e),X(e,t),An(e,t)}function An(e,t){var n=Cn(e,k(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),c(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function jn(e,t,n){return e.hasEdge(t,n)}function Mn(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Nn(e){switch(e.graph().ranker){case`network-simplex`:In(e);break;case`tight-tree`:Fn(e);break;case`longest-path`:Pn(e);break;default:In(e)}}var Pn=K;function Fn(e){K(e),hn(e)}function In(e){Y(e)}function Ln(e){var t=H(e,`root`,{},`_root`),n=zn(e),r=j(T(n))-1,i=2*r+1;e.graph().nestingRoot=t,c(e.edges(),function(t){e.edge(t).minlen*=i});var a=Bn(e)+1;c(e.children(),function(o){Rn(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function Rn(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var l=Qt(e,`_bt`),u=Qt(e,`_bb`),d=e.node(o);e.setParent(l,o),d.borderTop=l,e.setParent(u,o),d.borderBottom=u,c(s,function(s){Rn(e,t,n,r,i,a,s);var c=e.node(s),d=c.borderTop?c.borderTop:s,f=c.borderBottom?c.borderBottom:s,p=c.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(l,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,u,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,l,{weight:0,minlen:i+a[o]})}function zn(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&c(a,function(e){n(e,i+1)}),t[r]=i}return c(e.children(),function(e){n(e,1)}),t}function Bn(e){return p(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Vn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,c(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Hn(e,t,n){var r={},i;c(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function Un(e,t,n){var r=Wn(e),i=new E({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return c(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),c(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=w(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function Wn(e){for(var t;e.hasNode(t=R(`_root`)););return t}function Gn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Kn(e,t[r-1],t[r]);return n}function Kn(e,t,n){for(var r=Lt(n,v(n,function(e,t){return t})),i=b(v(t,function(t){return L(v(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),`pos`)})),a=1;a<n.length;)a<<=1;var o=2*a-1;--a;var s=v(Array(o),function(){return 0}),l=0;return c(i.forEach(function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;l+=e.weight*n})),l}function qn(e){var t={},r=n(e.nodes(),function(t){return!e.children(t).length}),i=v(I(j(v(r,function(t){return e.node(t).rank}))+1),function(){return[]});function a(n){et(t,n)||(t[n]=!0,i[e.node(n).rank].push(n),c(e.successors(n),a))}return c(L(r,function(t){return e.node(t).rank}),a),i}function Jn(e,t){return v(t,function(t){var n=e.inEdges(t);if(n.length){var r=p(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}function Yn(e,t){var r={};return c(e,function(e,t){var n=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};w(e.barycenter)||(n.barycenter=e.barycenter,n.weight=e.weight)}),c(t.edges(),function(e){var t=r[e.v],n=r[e.w];!w(t)&&!w(n)&&(n.indegree++,t.out.push(r[e.w]))}),Xn(n(r,function(e){return!e.indegree}))}function Xn(e){var t=[];function r(e){return function(t){t.merged||(w(t.barycenter)||w(e.barycenter)||t.barycenter>=e.barycenter)&&Zn(e,t)}}function i(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var a=e.pop();t.push(a),c(a.in.reverse(),r(a)),c(a.out,i(a))}return v(n(t,function(e){return!e.merged}),function(e){return F(e,[`vs`,`i`,`barycenter`,`weight`])})}function Zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Qn(e,t){var n=en(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=L(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,l=0;r.sort(er(!!t)),l=$n(a,i,l),c(r,function(e){l+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,l=$n(a,i,l)});var u={vs:b(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function $n(e,t,n){for(var r;t.length&&(r=O(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function er(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function tr(e,t,r,i){var a=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,l=o?o.borderRight:void 0,u={};s&&(a=n(a,function(e){return e!==s&&e!==l}));var d=Jn(e,a);c(d,function(t){if(e.children(t.v).length){var n=tr(e,t.v,r,i);u[t.v]=n,Object.prototype.hasOwnProperty.call(n,`barycenter`)&&rr(t,n)}});var f=Yn(d,r);nr(f,u);var p=Qn(f,i);if(s&&(p.vs=b([s,p.vs,l]),e.predecessors(s).length)){var m=e.node(e.predecessors(s)[0]),ee=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(p,`barycenter`)||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+m.order+ee.order)/(p.weight+2),p.weight+=2}return p}function nr(e,t){c(e,function(e){e.vs=b(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rr(e,t){w(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function ir(e){var t=$t(e),n=ar(e,I(1,t+1),`inEdges`),r=ar(e,I(t-1,-1,-1),`outEdges`),i=qn(e);sr(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){or(s%2?n:r,s%4>=2),i=U(e);var l=Gn(e,i);l<a&&(c=0,o=Ve(i),a=l)}sr(e,o)}function ar(e,t,n){return v(t,function(t){return Un(e,t,n)})}function or(e,t){var n=new E;c(e,function(e){var r=e.graph().root,i=tr(e,r,n,t);c(i.vs,function(t,n){e.node(t).order=n}),Hn(e,n,i.vs)})}function sr(e,t){c(t,function(t){c(t,function(t,n){e.node(t).order=n})})}function cr(e){var t=ur(e);c(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=lr(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function lr(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function ur(e){var t={},n=0;function r(i){var a=n;c(e.children(i),r),t[i]={low:a,lim:n++}}return c(e.children(),r),t}function dr(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=O(r);return c(r,function(t,l){var u=pr(e,t),d=u?e.node(u).order:o;(u||t===s)&&(c(r.slice(a,l+1),function(t){c(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(o<i||d<o)&&!(a.dummy&&e.node(t).dummy)&&mr(n,r,t)})}),a=l+1,i=d)}),r}return p(t,r),n}function fr(e,t){var n={};function r(t,r,i,a,o){var s;c(I(r,i),function(r){s=t[r],e.node(s).dummy&&c(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&mr(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return c(n,function(s,c){if(e.node(s).dummy===`border`){var l=e.predecessors(s);l.length&&(a=e.node(l[0]).order,r(n,o,c,i,a),o=c,i=a)}r(n,o,n.length,a,t.length)}),n}return p(t,i),n}function pr(e,t){if(e.node(t).dummy)return k(e.predecessors(t),function(t){return e.node(t).dummy})}function mr(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function gr(e,t,n,r){var i={},a={},o={};return c(t,function(e){c(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),c(t,function(e){var t=-1;c(e,function(e){var s=r(e);if(s.length){s=L(s,function(e){return o[e]});for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=s[l];a[e]===e&&t<o[d]&&!hr(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=o[d])}}})}),{root:i,align:a}}function _r(e,t,n,r,i){var a={},o=vr(e,t,n,i),s=i?`borderLeft`:`borderRight`;function l(e,t){for(var n=o.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){a[e]=o.inEdges(e).reduce(function(e,t){return Math.max(e,a[t.v]+o.edge(t))},0)}function d(t){var n=o.outEdges(t).reduce(function(e,t){return Math.min(e,a[t.w]-o.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==s&&(a[t]=Math.max(a[t],n))}return l(u,o.predecessors.bind(o)),l(d,o.successors.bind(o)),c(r,function(e){a[e]=a[n[e]]}),a}function vr(e,t,n,r){var i=new E,a=e.graph(),o=Cr(a.nodesep,a.edgesep,r);return c(t,function(t){var r;c(t,function(t){var a=n[t];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),c||0))}r=t})}),i}function yr(e,t){return M(T(t),function(t){var n=-1/0,r=1/0;return Ye(t,function(t,i){var a=wr(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function br(e,t){var n=T(t),r=y(n),i=j(n);c([`u`,`d`],function(n){c([`l`,`r`],function(a){var o=n+a,s=e[o],c;if(s!==t){var l=T(s);c=a===`l`?r-y(l):i-j(l),c&&(e[o]=A(s,function(e){return e+c}))}})})}function xr(e,t){return A(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=L(v(e,r));return(i[1]+i[2])/2})}function Sr(e){var t=U(e),n=x(dr(e,t),fr(e,t)),r={},i;return c([`u`,`d`],function(a){i=a===`u`?t:T(t).reverse(),c([`l`,`r`],function(t){t===`r`&&(i=v(i,function(e){return T(e).reverse()}));var o=(a===`u`?e.predecessors:e.successors).bind(e),s=gr(e,i,n,o),c=_r(e,i,s.root,s.align,t===`r`);t===`r`&&(c=A(c,function(e){return-e})),r[a+t]=c})}),br(r,yr(e,r)),xr(r,e.graph().align)}function Cr(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function wr(e,t){return e.node(t).width}function Tr(e){e=Jt(e),Er(e),Xe(Sr(e),function(t,n){e.node(n).x=t})}function Er(e){var t=U(e),n=e.graph().ranksep,r=0;c(t,function(t){var i=j(v(t,function(t){return e.node(t).height}));c(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}function Dr(e,t){var n=t&&t.debugTiming?tn:nn;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Rr(e));n(` runLayout`,()=>Or(t,n)),n(` updateInputGraph`,()=>kr(e,t))})}function Or(e,t){t(` makeSpaceForEdgeLabels`,()=>zr(e)),t(` removeSelfEdges`,()=>Jr(e)),t(` acyclic`,()=>Wt(e)),t(` nestingGraph.run`,()=>Ln(e)),t(` rank`,()=>Nn(Jt(e))),t(` injectEdgeLabelProxies`,()=>Br(e)),t(` removeEmptyRanks`,()=>Zt(e)),t(` nestingGraph.cleanup`,()=>Vn(e)),t(` normalizeRanks`,()=>Xt(e)),t(` assignRankMinMax`,()=>Vr(e)),t(` removeEdgeLabelProxies`,()=>Hr(e)),t(` normalize.run`,()=>fn(e)),t(` parentDummyChains`,()=>cr(e)),t(` addBorderSegments`,()=>rn(e)),t(` order`,()=>ir(e)),t(` insertSelfEdges`,()=>Yr(e)),t(` adjustCoordinateSystem`,()=>on(e)),t(` position`,()=>Tr(e)),t(` positionSelfEdges`,()=>Xr(e)),t(` removeBorderNodes`,()=>qr(e)),t(` normalize.undo`,()=>mn(e)),t(` fixupEdgeLabelCoords`,()=>Gr(e)),t(` undoCoordinateSystem`,()=>sn(e)),t(` translateGraph`,()=>Ur(e)),t(` assignNodeIntersects`,()=>Wr(e)),t(` reversePoints`,()=>Kr(e)),t(` acyclic.undo`,()=>Kt(e))}function kr(e,t){c(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),c(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Ar=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mr=[`acyclicer`,`ranker`,`rankdir`,`align`],Nr=[`width`,`height`],Pr={width:0,height:0},Fr=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ir={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Lr=[`labelpos`];function Rr(e){var t=new E({multigraph:!0,compound:!0}),n=$(e.graph());return t.setGraph(x({},jr,Q(n,Ar),F(n,Mr))),c(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,Ge(Q(r,Nr),Pr)),t.setParent(n,e.parent(n))}),c(e.edges(),function(n){var r=$(e.edge(n));t.setEdge(n,x({},Ir,Q(r,Fr),F(r,Lr)))}),t}function zr(e){var t=e.graph();t.ranksep/=2,c(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Br(e){c(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);H(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Vr(e){var t=0;c(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=j(t,r.maxRank))}),e.graph().maxRank=t}function Hr(e){c(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function Ur(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function l(e){var a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}c(e.nodes(),function(t){l(e.node(t))}),c(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=o,r-=s,c(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),c(e.edges(),function(n){var i=e.edge(n);c(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function Wr(e){c(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(Yt(r,a)),n.points.push(Yt(i,o))})}function Gr(e){c(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function Kr(e){c(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function qr(e){c(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(O(n.borderLeft)),o=e.node(O(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),c(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Jr(e){c(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Yr(e){c(U(e),function(t){var n=0;c(t,function(t,r){var i=e.node(t);i.order=r+n,c(i.selfEdges,function(t){H(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Xr(e){c(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return A(F(e,t),Number)}function $(e){var t={};return c(e,function(e,n){t[n.toLowerCase()]=e}),t}export{Dr as t};
2
- //# sourceMappingURL=dagre-C04vaGU3.mjs.map
1
+ import{E as e,_ as t,c as n,d as r,f as i,g as a,h as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m,v as ee,x as te,y as h}from"./reduce-KkqmWdsg.mjs";import{D as ne,O as re,T as ie,f as ae,g,h as oe,i as se,n as ce,t as le,u as ue,w as _}from"./_baseFor-CMmZqlg4.mjs";import{i as de,n as fe}from"./isEmpty-B_hy4b7A.mjs";import{a as v,i as pe,n as y,o as me,r as he,t as b}from"./flatten-CMuDMFOE.mjs";import{C as ge,N as _e,S as ve,T as ye,_ as x,b as be,v as S,x as C,y as xe}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{i as Se,n as w,r as T,t as E}from"./graphlib-C8GlDNIO.mjs";var Ce=/\s/;function we(e){for(var t=e.length;t--&&Ce.test(e.charAt(t)););return t}var Te=/^\s+/;function Ee(e){return e&&e.slice(0,we(e)+1).replace(Te,``)}var De=NaN,Oe=/^[-+]0x[0-9a-f]+$/i,ke=/^0b[01]+$/i,Ae=/^0o[0-7]+$/i,je=parseInt;function Me(e){if(typeof e==`number`)return e;if(h(e))return De;if(_(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=_(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Ee(e);var n=ke.test(e);return n||Ae.test(e)?je(e.slice(2),n?2:8):Oe.test(e)?De:+e}var Ne=1/0,Pe=17976931348623157e292;function D(e){return e?(e=Me(e),e===Ne||e===-Ne?(e<0?-1:1)*Pe:e===e?e:0):e===0?e:0}function Fe(e){var t=D(e),n=t%1;return t===t?n?t-n:t:0}function Ie(e){return be(ve(e,void 0,b),e+``)}var Le=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Re(e){return Le.test(e)}var ze=1,Be=4;function Ve(e){return Se(e,ze|Be)}var He=function(){return ne.Date.now()},Ue=Object.prototype,We=Ue.hasOwnProperty,Ge=xe(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&S(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=ge(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||re(u,Ue[l])&&!We.call(e,l))&&(e[l]=a[l])}return e});function O(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ke(e){return function(t,n,i){var a=Object(t);if(!se(t)){var o=r(n,3);t=te(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:void 0}}var qe=Math.max;function Je(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:Fe(n);return a<0&&(a=qe(i+a,0)),l(e,r(t,3),a)}var k=Ke(Je);function Ye(e,t){return e==null?e:le(e,d(t),ge)}function Xe(e,t){return e&&m(e,d(t))}function Ze(e,t){return e>t}var Qe=Object.prototype.hasOwnProperty;function $e(e,t){return e!=null&&Qe.call(e,t)}function et(e,t){return e!=null&&s(e,t,$e)}var tt=`[object String]`;function nt(e){return typeof e==`string`||!g(e)&&oe(e)&&ie(e)==tt}function A(e,t){var n={};return t=r(t,3),m(e,function(e,r,i){_e(n,r,t(e,r,i))}),n}function j(e){return e&&e.length?pe(e,ce,Ze):void 0}function M(e,t){return e&&e.length?pe(e,r(t,2),he):void 0}function rt(e,n,r,i){if(!_(e))return e;n=t(n,e);for(var o=-1,s=n.length,c=s-1,l=e;l!=null&&++o<s;){var u=a(n[o]),d=r;if(u===`__proto__`||u===`constructor`||u===`prototype`)return e;if(o!=c){var f=l[u];d=i?i(f,u,l):void 0,d===void 0&&(d=_(f)?f:ae(n[o+1])?[]:{})}ye(l,u,d),l=l[u]}return e}function it(e,n,r){for(var i=-1,a=n.length,s={};++i<a;){var c=n[i],l=o(e,c);r(l,c)&&rt(s,t(c,e),l)}return s}function at(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ot(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=h(e),o=t!==void 0,s=t===null,c=t===t,l=h(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function st(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=ot(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function ct(t,n,i){n=n.length?e(n,function(e){return g(e)?function(t){return o(t,e.length===1?e[0]:e)}:e}):[ce];var a=-1;return n=e(n,ue(r)),at(me(t,function(t,r,i){return{criteria:e(n,function(e){return e(t)}),index:++a,value:t}}),function(e,t){return st(e,t,i)})}var lt=i(`length`),ut=`\\ud800-\\udfff`,dt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,ft=`\\ufe0e\\ufe0f`,pt=`[`+ut+`]`,N=`[`+dt+`]`,P=`\\ud83c[\\udffb-\\udfff]`,mt=`(?:`+N+`|`+P+`)`,ht=`[^`+ut+`]`,gt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,_t=`[\\ud800-\\udbff][\\udc00-\\udfff]`,vt=`\\u200d`,yt=mt+`?`,bt=`[`+ft+`]?`,xt=`(?:`+vt+`(?:`+[ht,gt,_t].join(`|`)+`)`+bt+yt+`)*`,St=bt+yt+xt,Ct=`(?:`+[ht+N+`?`,N,gt,_t,pt].join(`|`)+`)`,wt=RegExp(P+`(?=`+P+`)|`+Ct+St,`g`);function Tt(e){for(var t=wt.lastIndex=0;wt.test(e);)++t;return t}function Et(e){return Re(e)?Tt(e):lt(e)}function Dt(e,t){return it(e,t,function(t,n){return u(e,n)})}var F=Ie(function(e,t){return e==null?{}:Dt(e,t)}),Ot=Math.ceil,kt=Math.max;function At(e,t,n,r){for(var i=-1,a=kt(Ot((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function jt(e){return function(t,n,r){return r&&typeof r!=`number`&&S(t,n,r)&&(n=r=void 0),t=D(t),n===void 0?(n=t,t=0):n=D(n),r=r===void 0?t<n?1:-1:D(r),At(t,n,r,e)}}var I=jt(),Mt=`[object Map]`,Nt=`[object Set]`;function Pt(e){if(e==null)return 0;if(se(e))return nt(e)?Et(e):e.length;var t=fe(e);return t==Mt||t==Nt?e.size:de(e).length}var L=xe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&S(e,t[0],t[1])?t=[]:n>2&&S(t[0],t[1],t[2])&&(t=[t[0]]),ct(e,f(t,1),[])}),Ft=0;function R(e){var t=++Ft;return ee(e)+t}function It(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function Lt(e,t){return It(e||[],t||[],ye)}var Rt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return z(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&z(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Bt=C(1);function Vt(e,t){if(e.nodeCount()<=1)return[];var n=Ut(e,t||Bt);return b(v(Ht(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function Ht(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)B(e,t,n,o);for(;o=i.dequeue();)B(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(B(e,t,n,o,!0));break}}}return r}function B(e,t,n,r,i){var a=i?[]:void 0;return c(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,V(t,n,s)}),c(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,V(t,n,o)}),e.removeNode(r.v),a}function Ut(e,t){var n=new E,r=0,i=0;c(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),c(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=I(i+r+3).map(function(){return new Rt}),o=r+1;return c(n.nodes(),function(e){V(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function V(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Wt(e){c(e.graph().acyclicer===`greedy`?Vt(e,t(e)):Gt(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,R(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function Gt(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,c(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return c(e.nodes(),i),t}function Kt(e){c(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function H(e,t,n,r){var i;do i=R(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function qt(e){var t=new E().setGraph(e.graph());return c(e.nodes(),function(n){t.setNode(n,e.node(n))}),c(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function Jt(e){var t=new E({multigraph:e.isMultigraph()}).setGraph(e.graph());return c(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),c(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Yt(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function U(e){var t=v(I($t(e)+1),function(){return[]});return c(e.nodes(),function(n){var r=e.node(n),i=r.rank;w(i)||(t[i][r.order]=n)}),t}function Xt(e){var t=y(v(e.nodes(),function(t){return e.node(t).rank}));c(e.nodes(),function(n){var r=e.node(n);et(r,`rank`)&&(r.rank-=t)})}function Zt(e){var t=y(v(e.nodes(),function(t){return e.node(t).rank})),n=[];c(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;c(n,function(t,n){w(t)&&n%i!==0?--r:r&&c(t,function(t){e.node(t).rank+=r})})}function Qt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),H(e,`border`,i,t)}function $t(e){return j(v(e.nodes(),function(t){var n=e.node(t).rank;if(!w(n))return n}))}function en(e,t){var n={lhs:[],rhs:[]};return c(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function tn(e,t){var n=He();try{return t()}finally{console.log(e+` time: `+(He()-n)+`ms`)}}function nn(e,t){return t()}function rn(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&c(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)an(e,`borderLeft`,`_bl`,n,i,a),an(e,`borderRight`,`_br`,n,i,a)}}c(e.children(),t)}function an(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=H(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function on(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&cn(e)}function sn(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&un(e),(t===`lr`||t===`rl`)&&(dn(e),cn(e))}function cn(e){c(e.nodes(),function(t){ln(e.node(t))}),c(e.edges(),function(t){ln(e.edge(t))})}function ln(e){var t=e.width;e.width=e.height,e.height=t}function un(e){c(e.nodes(),function(t){W(e.node(t))}),c(e.edges(),function(t){var n=e.edge(t);c(n.points,W),Object.prototype.hasOwnProperty.call(n,`y`)&&W(n)})}function W(e){e.y=-e.y}function dn(e){c(e.nodes(),function(t){G(e.node(t))}),c(e.edges(),function(t){var n=e.edge(t);c(n.points,G),Object.prototype.hasOwnProperty.call(n,`x`)&&G(n)})}function G(e){var t=e.x;e.x=e.y,e.y=t}function fn(e){e.graph().dummyChains=[],c(e.edges(),function(t){pn(e,t)})}function pn(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=H(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function mn(e){c(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function K(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=y(v(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}c(e.sources(),n)}function q(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function hn(e){var t=new E({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;gn(t,e)<r;)i=_n(t,e),a=t.hasNode(i.v)?q(e,i):-q(e,i),vn(t,e,a);return t}function gn(e,t){function n(r){c(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!q(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return c(e.nodes(),n),e.nodeCount()}function _n(e,t){return M(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return q(t,n)})}function vn(e,t,n){c(e.nodes(),function(e){t.node(e).rank+=n})}C(1),C(1),yn.CycleException=J;function yn(e){var t={},n={},r=[];function i(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new J;Object.prototype.hasOwnProperty.call(t,a)||(n[a]=!0,t[a]=!0,c(e.predecessors(a),i),delete n[a],r.push(a))}if(c(e.sinks(),i),Pt(t)!==e.nodeCount())throw new J;return r}function J(){}J.prototype=Error();function bn(e,t,n){g(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return c(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);xn(e,t,n===`post`,a,r,i)}),i}function xn(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),c(i(t),function(t){xn(e,t,n,r,i,a)}),n&&a.push(t))}function Sn(e,t){return bn(e,t,`post`)}function Cn(e,t){return bn(e,t,`pre`)}Y.initLowLimValues=Z,Y.initCutValues=X,Y.calcCutValue=Tn,Y.leaveEdge=Dn,Y.enterEdge=On,Y.exchangeEdges=kn;function Y(e){e=qt(e),K(e);var t=hn(e);Z(t),X(t,e);for(var n,r;n=Dn(t);)r=On(t,e,n),kn(t,e,n,r)}function X(e,t){var n=Sn(e,e.nodes());n=n.slice(0,n.length-1),c(n,function(n){wn(e,t,n)})}function wn(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Tn(e,t,n)}function Tn(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,c(t.nodeEdges(n),function(a){var s=a.v===n,c=s?a.w:a.v;if(c!==r){var l=s===i,u=t.edge(a).weight;if(o+=l?u:-u,jn(e,n,c)){var d=e.edge(n,c).cutvalue;o+=l?-d:d}}}),o}function Z(e,t){arguments.length<2&&(t=e.nodes()[0]),En(e,{},1,t)}function En(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,c(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=En(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Dn(e){return k(e.edges(),function(t){return e.edge(t).cutvalue<0})}function On(e,t,r){var i=r.v,a=r.w;t.hasEdge(i,a)||(i=r.w,a=r.v);var o=e.node(i),s=e.node(a),c=o,l=!1;return o.lim>s.lim&&(c=s,l=!0),M(n(t.edges(),function(t){return l===Mn(e,e.node(t.v),c)&&l!==Mn(e,e.node(t.w),c)}),function(e){return q(t,e)})}function kn(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Z(e),X(e,t),An(e,t)}function An(e,t){var n=Cn(e,k(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),c(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function jn(e,t,n){return e.hasEdge(t,n)}function Mn(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Nn(e){switch(e.graph().ranker){case`network-simplex`:In(e);break;case`tight-tree`:Fn(e);break;case`longest-path`:Pn(e);break;default:In(e)}}var Pn=K;function Fn(e){K(e),hn(e)}function In(e){Y(e)}function Ln(e){var t=H(e,`root`,{},`_root`),n=zn(e),r=j(T(n))-1,i=2*r+1;e.graph().nestingRoot=t,c(e.edges(),function(t){e.edge(t).minlen*=i});var a=Bn(e)+1;c(e.children(),function(o){Rn(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function Rn(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var l=Qt(e,`_bt`),u=Qt(e,`_bb`),d=e.node(o);e.setParent(l,o),d.borderTop=l,e.setParent(u,o),d.borderBottom=u,c(s,function(s){Rn(e,t,n,r,i,a,s);var c=e.node(s),d=c.borderTop?c.borderTop:s,f=c.borderBottom?c.borderBottom:s,p=c.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(l,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,u,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,l,{weight:0,minlen:i+a[o]})}function zn(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&c(a,function(e){n(e,i+1)}),t[r]=i}return c(e.children(),function(e){n(e,1)}),t}function Bn(e){return p(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Vn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,c(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Hn(e,t,n){var r={},i;c(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function Un(e,t,n){var r=Wn(e),i=new E({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return c(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),c(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=w(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function Wn(e){for(var t;e.hasNode(t=R(`_root`)););return t}function Gn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Kn(e,t[r-1],t[r]);return n}function Kn(e,t,n){for(var r=Lt(n,v(n,function(e,t){return t})),i=b(v(t,function(t){return L(v(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),`pos`)})),a=1;a<n.length;)a<<=1;var o=2*a-1;--a;var s=v(Array(o),function(){return 0}),l=0;return c(i.forEach(function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;l+=e.weight*n})),l}function qn(e){var t={},r=n(e.nodes(),function(t){return!e.children(t).length}),i=v(I(j(v(r,function(t){return e.node(t).rank}))+1),function(){return[]});function a(n){et(t,n)||(t[n]=!0,i[e.node(n).rank].push(n),c(e.successors(n),a))}return c(L(r,function(t){return e.node(t).rank}),a),i}function Jn(e,t){return v(t,function(t){var n=e.inEdges(t);if(n.length){var r=p(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}function Yn(e,t){var r={};return c(e,function(e,t){var n=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};w(e.barycenter)||(n.barycenter=e.barycenter,n.weight=e.weight)}),c(t.edges(),function(e){var t=r[e.v],n=r[e.w];!w(t)&&!w(n)&&(n.indegree++,t.out.push(r[e.w]))}),Xn(n(r,function(e){return!e.indegree}))}function Xn(e){var t=[];function r(e){return function(t){t.merged||(w(t.barycenter)||w(e.barycenter)||t.barycenter>=e.barycenter)&&Zn(e,t)}}function i(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var a=e.pop();t.push(a),c(a.in.reverse(),r(a)),c(a.out,i(a))}return v(n(t,function(e){return!e.merged}),function(e){return F(e,[`vs`,`i`,`barycenter`,`weight`])})}function Zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Qn(e,t){var n=en(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=L(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,l=0;r.sort(er(!!t)),l=$n(a,i,l),c(r,function(e){l+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,l=$n(a,i,l)});var u={vs:b(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function $n(e,t,n){for(var r;t.length&&(r=O(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function er(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function tr(e,t,r,i){var a=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,l=o?o.borderRight:void 0,u={};s&&(a=n(a,function(e){return e!==s&&e!==l}));var d=Jn(e,a);c(d,function(t){if(e.children(t.v).length){var n=tr(e,t.v,r,i);u[t.v]=n,Object.prototype.hasOwnProperty.call(n,`barycenter`)&&rr(t,n)}});var f=Yn(d,r);nr(f,u);var p=Qn(f,i);if(s&&(p.vs=b([s,p.vs,l]),e.predecessors(s).length)){var m=e.node(e.predecessors(s)[0]),ee=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(p,`barycenter`)||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+m.order+ee.order)/(p.weight+2),p.weight+=2}return p}function nr(e,t){c(e,function(e){e.vs=b(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rr(e,t){w(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function ir(e){var t=$t(e),n=ar(e,I(1,t+1),`inEdges`),r=ar(e,I(t-1,-1,-1),`outEdges`),i=qn(e);sr(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){or(s%2?n:r,s%4>=2),i=U(e);var l=Gn(e,i);l<a&&(c=0,o=Ve(i),a=l)}sr(e,o)}function ar(e,t,n){return v(t,function(t){return Un(e,t,n)})}function or(e,t){var n=new E;c(e,function(e){var r=e.graph().root,i=tr(e,r,n,t);c(i.vs,function(t,n){e.node(t).order=n}),Hn(e,n,i.vs)})}function sr(e,t){c(t,function(t){c(t,function(t,n){e.node(t).order=n})})}function cr(e){var t=ur(e);c(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=lr(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function lr(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function ur(e){var t={},n=0;function r(i){var a=n;c(e.children(i),r),t[i]={low:a,lim:n++}}return c(e.children(),r),t}function dr(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=O(r);return c(r,function(t,l){var u=pr(e,t),d=u?e.node(u).order:o;(u||t===s)&&(c(r.slice(a,l+1),function(t){c(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(o<i||d<o)&&!(a.dummy&&e.node(t).dummy)&&mr(n,r,t)})}),a=l+1,i=d)}),r}return p(t,r),n}function fr(e,t){var n={};function r(t,r,i,a,o){var s;c(I(r,i),function(r){s=t[r],e.node(s).dummy&&c(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&mr(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return c(n,function(s,c){if(e.node(s).dummy===`border`){var l=e.predecessors(s);l.length&&(a=e.node(l[0]).order,r(n,o,c,i,a),o=c,i=a)}r(n,o,n.length,a,t.length)}),n}return p(t,i),n}function pr(e,t){if(e.node(t).dummy)return k(e.predecessors(t),function(t){return e.node(t).dummy})}function mr(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function gr(e,t,n,r){var i={},a={},o={};return c(t,function(e){c(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),c(t,function(e){var t=-1;c(e,function(e){var s=r(e);if(s.length){s=L(s,function(e){return o[e]});for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=s[l];a[e]===e&&t<o[d]&&!hr(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=o[d])}}})}),{root:i,align:a}}function _r(e,t,n,r,i){var a={},o=vr(e,t,n,i),s=i?`borderLeft`:`borderRight`;function l(e,t){for(var n=o.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){a[e]=o.inEdges(e).reduce(function(e,t){return Math.max(e,a[t.v]+o.edge(t))},0)}function d(t){var n=o.outEdges(t).reduce(function(e,t){return Math.min(e,a[t.w]-o.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==s&&(a[t]=Math.max(a[t],n))}return l(u,o.predecessors.bind(o)),l(d,o.successors.bind(o)),c(r,function(e){a[e]=a[n[e]]}),a}function vr(e,t,n,r){var i=new E,a=e.graph(),o=Cr(a.nodesep,a.edgesep,r);return c(t,function(t){var r;c(t,function(t){var a=n[t];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),c||0))}r=t})}),i}function yr(e,t){return M(T(t),function(t){var n=-1/0,r=1/0;return Ye(t,function(t,i){var a=wr(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function br(e,t){var n=T(t),r=y(n),i=j(n);c([`u`,`d`],function(n){c([`l`,`r`],function(a){var o=n+a,s=e[o],c;if(s!==t){var l=T(s);c=a===`l`?r-y(l):i-j(l),c&&(e[o]=A(s,function(e){return e+c}))}})})}function xr(e,t){return A(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=L(v(e,r));return(i[1]+i[2])/2})}function Sr(e){var t=U(e),n=x(dr(e,t),fr(e,t)),r={},i;return c([`u`,`d`],function(a){i=a===`u`?t:T(t).reverse(),c([`l`,`r`],function(t){t===`r`&&(i=v(i,function(e){return T(e).reverse()}));var o=(a===`u`?e.predecessors:e.successors).bind(e),s=gr(e,i,n,o),c=_r(e,i,s.root,s.align,t===`r`);t===`r`&&(c=A(c,function(e){return-e})),r[a+t]=c})}),br(r,yr(e,r)),xr(r,e.graph().align)}function Cr(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function wr(e,t){return e.node(t).width}function Tr(e){e=Jt(e),Er(e),Xe(Sr(e),function(t,n){e.node(n).x=t})}function Er(e){var t=U(e),n=e.graph().ranksep,r=0;c(t,function(t){var i=j(v(t,function(t){return e.node(t).height}));c(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}function Dr(e,t){var n=t&&t.debugTiming?tn:nn;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Rr(e));n(` runLayout`,()=>Or(t,n)),n(` updateInputGraph`,()=>kr(e,t))})}function Or(e,t){t(` makeSpaceForEdgeLabels`,()=>zr(e)),t(` removeSelfEdges`,()=>Jr(e)),t(` acyclic`,()=>Wt(e)),t(` nestingGraph.run`,()=>Ln(e)),t(` rank`,()=>Nn(Jt(e))),t(` injectEdgeLabelProxies`,()=>Br(e)),t(` removeEmptyRanks`,()=>Zt(e)),t(` nestingGraph.cleanup`,()=>Vn(e)),t(` normalizeRanks`,()=>Xt(e)),t(` assignRankMinMax`,()=>Vr(e)),t(` removeEdgeLabelProxies`,()=>Hr(e)),t(` normalize.run`,()=>fn(e)),t(` parentDummyChains`,()=>cr(e)),t(` addBorderSegments`,()=>rn(e)),t(` order`,()=>ir(e)),t(` insertSelfEdges`,()=>Yr(e)),t(` adjustCoordinateSystem`,()=>on(e)),t(` position`,()=>Tr(e)),t(` positionSelfEdges`,()=>Xr(e)),t(` removeBorderNodes`,()=>qr(e)),t(` normalize.undo`,()=>mn(e)),t(` fixupEdgeLabelCoords`,()=>Gr(e)),t(` undoCoordinateSystem`,()=>sn(e)),t(` translateGraph`,()=>Ur(e)),t(` assignNodeIntersects`,()=>Wr(e)),t(` reversePoints`,()=>Kr(e)),t(` acyclic.undo`,()=>Kt(e))}function kr(e,t){c(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),c(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Ar=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mr=[`acyclicer`,`ranker`,`rankdir`,`align`],Nr=[`width`,`height`],Pr={width:0,height:0},Fr=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ir={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Lr=[`labelpos`];function Rr(e){var t=new E({multigraph:!0,compound:!0}),n=$(e.graph());return t.setGraph(x({},jr,Q(n,Ar),F(n,Mr))),c(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,Ge(Q(r,Nr),Pr)),t.setParent(n,e.parent(n))}),c(e.edges(),function(n){var r=$(e.edge(n));t.setEdge(n,x({},Ir,Q(r,Fr),F(r,Lr)))}),t}function zr(e){var t=e.graph();t.ranksep/=2,c(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Br(e){c(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);H(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Vr(e){var t=0;c(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=j(t,r.maxRank))}),e.graph().maxRank=t}function Hr(e){c(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function Ur(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function l(e){var a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}c(e.nodes(),function(t){l(e.node(t))}),c(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=o,r-=s,c(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),c(e.edges(),function(n){var i=e.edge(n);c(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function Wr(e){c(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(Yt(r,a)),n.points.push(Yt(i,o))})}function Gr(e){c(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function Kr(e){c(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function qr(e){c(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(O(n.borderLeft)),o=e.node(O(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),c(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Jr(e){c(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Yr(e){c(U(e),function(t){var n=0;c(t,function(t,r){var i=e.node(t);i.order=r+n,c(i.selfEdges,function(t){H(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Xr(e){c(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return A(F(e,t),Number)}function $(e){var t={};return c(e,function(e,n){t[n.toLowerCase()]=e}),t}export{Dr as t};
2
+ //# sourceMappingURL=dagre-BTsqj5N3.mjs.map
@@ -1,5 +1,5 @@
1
- import{a as e}from"./flatten-DsfHsK9p.mjs";import{T as t,w as n}from"./src-DC_BCes_.mjs";import{b as r}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import"./chunk-5PVQY5BW-_JlgOiAb.mjs";import"./chunk-U2HBQHQK-DMRf50i8.mjs";import"./chunk-BSJP7CBP-BWUAQGWN.mjs";import{n as i}from"./chunk-ZZ45TVLE-DmKznbd-.mjs";import{n as a,t as o}from"./graphlib-ZUByR7Z1.mjs";import{t as s}from"./clone-DETmm2Pe.mjs";import{t as c}from"./dagre-C04vaGU3.mjs";import"./chunk-X2U36JSP-B09HbTgU.mjs";import{a as l,c as u,i as d,l as f,n as p,t as m,u as h}from"./chunk-5FUZZQ4R-BSIWed9s.mjs";import{a as g,i as _,n as v,r as y,t as b}from"./chunk-ENJZ2VHE-DgpEksO3.mjs";function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:S(e),edges:C(e)};return a(e.graph())||(t.value=s(e.graph())),t}function S(t){return e(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return a(n)||(i.value=n),a(r)||(i.parent=r),i})}function C(t){return e(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return a(e.name)||(r.name=e.name),a(n)||(r.value=n),r})}var w=new Map,T=new Map,E=new Map,D=n(()=>{T.clear(),E.clear(),w.clear()},`clear`),O=n((e,n)=>{let r=T.get(n)||[];return t.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),k=n((e,n)=>{let r=T.get(n)||[];return t.info(`Descendants of `,n,` is `,r),t.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||O(e.v,n)||O(e.w,n)||r.includes(e.w):(t.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),A=n((e,n,r,i)=>{t.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)A(a,n,r,i);else{let o=n.node(a);t.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.debug(`Copying Edges`,s),s.forEach(a=>{t.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.info(`Edge data`,o,i);try{k(a,i)?(t.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.error(e)}})}t.debug(`Removing node`,a),n.removeNode(a)})},`copy`),j=n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)E.set(i,e),r=[...r,...j(i,t)];return r},`extractDescendants`),M=n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),N=n((e,n,r)=>{let i=n.children(e);if(t.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=N(e,n,r),i=M(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),P=n(e=>!w.has(e)||!w.get(e).externalConnections?e:w.has(e)?w.get(e).id:e,`getAnchorId`),F=n((e,n)=>{if(!e||n>10){t.debug(`Opting out, no graph `);return}else t.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.warn(`Cluster identified`,n,` Replacement id in edges: `,N(n,e,n)),T.set(n,j(n,e)),w.set(n,{id:N(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.debug(`Cluster identified`,n,T),i.forEach(e=>{O(e.v,n)^O(e.w,n)&&(t.warn(`Edge: `,e,` leaves cluster `,n),t.warn(`Descendants of XXX `,n,`: `,T.get(n)),w.get(n).externalConnections=!0)})):t.debug(`Not a cluster `,n,T)});for(let t of w.keys()){let n=w.get(t).id,r=e.parent(n);r!==t&&w.has(r)&&!w.get(r).externalConnections&&(w.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.warn(`Fix XXX`,w,`ids:`,n.v,n.w,`Translating: `,w.get(n.v),` --- `,w.get(n.w)),w.get(n.v)||w.get(n.w)){if(t.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=P(n.v),a=P(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);w.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);w.get(t).externalConnections=!0,r.toCluster=n.w}t.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.warn(`Adjusted Graph`,x(e)),I(e,0),t.trace(w)},`adjustClustersAndEdges`),I=n((e,n)=>{if(t.warn(`extractor - `,n,x(e),e.children(`D`)),n>10){t.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.debug(`Done, no node has children`,e.nodes());return}t.debug(`Nodes = `,r,n);for(let i of r)if(t.debug(`Extracting node`,i,w,w.has(i)&&!w.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!w.has(i))t.debug(`Not a cluster`,i,n);else if(!w.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;w.get(i)?.clusterData?.dir&&(r=w.get(i).clusterData.dir,t.warn(`Fixing dir`,w.get(i).clusterData.dir,r));let a=new o({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.warn(`Old graph before copy`,x(e)),A(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:w.get(i).clusterData,label:w.get(i).label,graph:a}),t.warn(`New graph after copy node: (`,i,`)`,x(a)),t.debug(`Old graph after copy`,x(e))}else t.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!w.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.debug(w);r=e.nodes(),t.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.warn(` Now next level`,i,r),r?.clusterNode&&I(r.graph,n+1)}},`extractor`),L=n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=L(e,e.children(t));n=[...n,...r]}),n},`sorter`),R=n(e=>L(e,e.children()),`sortNodesByHierarchy`),z=n(async(e,r,a,o,s,p)=>{t.warn(`Graph in recursive render:XAX`,x(r),s);let m=r.graph().rankdir;t.trace(`Dir in recursive render - dir:`,m);let _=e.insert(`g`).attr(`class`,`root`);r.nodes()?t.info(`Recursive render XXX`,r.nodes()):t.info(`No nodes found for`,r),r.edges().length>0&&t.info(`Recursive edges`,r.edge(r.edges()[0]));let b=_.insert(`g`).attr(`class`,`clusters`),S=_.insert(`g`).attr(`class`,`edgePaths`),C=_.insert(`g`).attr(`class`,`edgeLabels`),T=_.insert(`g`).attr(`class`,`nodes`);await Promise.all(r.nodes().map(async function(e){let n=r.node(e);if(s!==void 0){let n=JSON.parse(JSON.stringify(s.clusterData));t.trace(`Setting data for parent cluster XXX
1
+ import{a as e}from"./flatten-CMuDMFOE.mjs";import{T as t,w as n}from"./src-BGL-MlNN.mjs";import{b as r}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import"./chunk-5PVQY5BW-CM3DDgan.mjs";import"./chunk-U2HBQHQK-B6QvDsYx.mjs";import"./chunk-BSJP7CBP-C-rdyWiE.mjs";import{n as i}from"./chunk-ZZ45TVLE-2q1aFSGq.mjs";import{n as a,t as o}from"./graphlib-C8GlDNIO.mjs";import{t as s}from"./clone-FnWO_tLO.mjs";import{t as c}from"./dagre-BTsqj5N3.mjs";import"./chunk-X2U36JSP-BlsQfR26.mjs";import{a as l,c as u,i as d,l as f,n as p,t as m,u as h}from"./chunk-5FUZZQ4R-D0CI_lA3.mjs";import{a as g,i as _,n as v,r as y,t as b}from"./chunk-ENJZ2VHE-DswEO8kN.mjs";function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:S(e),edges:C(e)};return a(e.graph())||(t.value=s(e.graph())),t}function S(t){return e(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return a(n)||(i.value=n),a(r)||(i.parent=r),i})}function C(t){return e(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return a(e.name)||(r.name=e.name),a(n)||(r.value=n),r})}var w=new Map,T=new Map,E=new Map,D=n(()=>{T.clear(),E.clear(),w.clear()},`clear`),O=n((e,n)=>{let r=T.get(n)||[];return t.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),k=n((e,n)=>{let r=T.get(n)||[];return t.info(`Descendants of `,n,` is `,r),t.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||O(e.v,n)||O(e.w,n)||r.includes(e.w):(t.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),A=n((e,n,r,i)=>{t.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)A(a,n,r,i);else{let o=n.node(a);t.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.debug(`Copying Edges`,s),s.forEach(a=>{t.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.info(`Edge data`,o,i);try{k(a,i)?(t.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.error(e)}})}t.debug(`Removing node`,a),n.removeNode(a)})},`copy`),j=n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)E.set(i,e),r=[...r,...j(i,t)];return r},`extractDescendants`),M=n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),N=n((e,n,r)=>{let i=n.children(e);if(t.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=N(e,n,r),i=M(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),P=n(e=>!w.has(e)||!w.get(e).externalConnections?e:w.has(e)?w.get(e).id:e,`getAnchorId`),F=n((e,n)=>{if(!e||n>10){t.debug(`Opting out, no graph `);return}else t.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.warn(`Cluster identified`,n,` Replacement id in edges: `,N(n,e,n)),T.set(n,j(n,e)),w.set(n,{id:N(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.debug(`Cluster identified`,n,T),i.forEach(e=>{O(e.v,n)^O(e.w,n)&&(t.warn(`Edge: `,e,` leaves cluster `,n),t.warn(`Descendants of XXX `,n,`: `,T.get(n)),w.get(n).externalConnections=!0)})):t.debug(`Not a cluster `,n,T)});for(let t of w.keys()){let n=w.get(t).id,r=e.parent(n);r!==t&&w.has(r)&&!w.get(r).externalConnections&&(w.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.warn(`Fix XXX`,w,`ids:`,n.v,n.w,`Translating: `,w.get(n.v),` --- `,w.get(n.w)),w.get(n.v)||w.get(n.w)){if(t.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=P(n.v),a=P(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);w.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);w.get(t).externalConnections=!0,r.toCluster=n.w}t.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.warn(`Adjusted Graph`,x(e)),I(e,0),t.trace(w)},`adjustClustersAndEdges`),I=n((e,n)=>{if(t.warn(`extractor - `,n,x(e),e.children(`D`)),n>10){t.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.debug(`Done, no node has children`,e.nodes());return}t.debug(`Nodes = `,r,n);for(let i of r)if(t.debug(`Extracting node`,i,w,w.has(i)&&!w.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!w.has(i))t.debug(`Not a cluster`,i,n);else if(!w.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;w.get(i)?.clusterData?.dir&&(r=w.get(i).clusterData.dir,t.warn(`Fixing dir`,w.get(i).clusterData.dir,r));let a=new o({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.warn(`Old graph before copy`,x(e)),A(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:w.get(i).clusterData,label:w.get(i).label,graph:a}),t.warn(`New graph after copy node: (`,i,`)`,x(a)),t.debug(`Old graph after copy`,x(e))}else t.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!w.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.debug(w);r=e.nodes(),t.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.warn(` Now next level`,i,r),r?.clusterNode&&I(r.graph,n+1)}},`extractor`),L=n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=L(e,e.children(t));n=[...n,...r]}),n},`sorter`),R=n(e=>L(e,e.children()),`sortNodesByHierarchy`),z=n(async(e,r,a,o,s,p)=>{t.warn(`Graph in recursive render:XAX`,x(r),s);let m=r.graph().rankdir;t.trace(`Dir in recursive render - dir:`,m);let _=e.insert(`g`).attr(`class`,`root`);r.nodes()?t.info(`Recursive render XXX`,r.nodes()):t.info(`No nodes found for`,r),r.edges().length>0&&t.info(`Recursive edges`,r.edge(r.edges()[0]));let b=_.insert(`g`).attr(`class`,`clusters`),S=_.insert(`g`).attr(`class`,`edgePaths`),C=_.insert(`g`).attr(`class`,`edgeLabels`),T=_.insert(`g`).attr(`class`,`nodes`);await Promise.all(r.nodes().map(async function(e){let n=r.node(e);if(s!==void 0){let n=JSON.parse(JSON.stringify(s.clusterData));t.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,e,`
3
3
  data=`,n.height,`
4
4
  Parent cluster`,s.height),r.setNode(s.id,n),r.parent(e)||(t.trace(`Setting parent`,e,s.id),r.setParent(e,s.id,n))}if(t.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(r.node(e))),n?.clusterNode){t.info(`Cluster identified XBX`,e,n.width,r.node(e));let{ranksep:i,nodesep:s}=r.graph();n.graph.setGraph({...n.graph.graph(),ranksep:i+25,nodesep:s});let c=await z(T,n.graph,a,o,r.node(e),p),l=c.elem;h(n,l),n.diff=c.diff||0,t.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),f(l,n)}else r.children(e).length>0?(t.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,r),t.trace(N(n.id,r)),w.set(n.id,{id:N(n.id,r),node:n})):(t.trace(`Node - the non recursive path XAX`,e,T,r.node(e),m),await l(T,r.node(e),{config:p,dir:m}))})),await n(async()=>{let e=r.edges().map(async function(e){let n=r.edge(e.v,e.w,e.name);t.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(r.edge(e))),t.info(`Fix`,w,`ids:`,e.v,e.w,`Translating: `,w.get(e.v),w.get(e.w)),await y(C,n)});await Promise.all(e)},`processEdges`)(),t.info(`Graph before layout:`,JSON.stringify(x(r))),t.info(`############################################# XXX`),t.info(`### Layout ### XXX`),t.info(`############################################# XXX`),c(r),t.info(`Graph after layout:`,JSON.stringify(x(r)));let E=0,{subGraphTitleTotalMargin:D}=i(p);return await Promise.all(R(r).map(async function(e){let n=r.node(e);if(t.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=D,t.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,r.parent(e)),w.get(n.id).node=n,u(n);else if(r.children(e).length>0){t.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,r.parent(e)),n.height+=D,r.node(n.parentId);let i=n?.padding/2||0,a=n?.labelBBox?.height||0,o=a-i||0;t.debug(`OffsetY`,o,`labelHeight`,a,`halfPadding`,i),await d(b,n),w.get(n.id).node=n}else{let e=r.node(n.parentId);n.y+=D/2,t.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),u(n)}})),r.edges().forEach(function(e){let n=r.edge(e);t.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=D/2),g(n,v(S,n,w,a,r.node(e.v),r.node(e.w),o))}),r.nodes().forEach(function(e){let n=r.node(e);t.info(e,n.type,n.diff),n.isGroup&&(E=n.diff)}),t.warn(`Returning from recursive render XAX`,_,E),{elem:_,diff:E}},`recursiveRender`),B=n(async(e,n)=>{let i=new o({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=n.select(`g`);_(a,e.markers,e.type,e.diagramId),p(),b(),m(),D(),e.nodes.forEach(e=>{i.setNode(e.id,{...e}),e.parentId&&i.setParent(e.id,e.parentId)}),t.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,a=i.node(t);i.setNode(n,{domId:n,id:n,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),i.setParent(n,a.parentId),i.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),i.setParent(r,a.parentId);let o=structuredClone(e),s=structuredClone(e),c=structuredClone(e);o.label=``,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-1`,s.arrowTypeStart=`none`,s.arrowTypeEnd=`none`,s.id=t+`-cyclic-special-mid`,c.label=``,a.isGroup&&(o.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,i.setEdge(t,n,o,t+`-cyclic-special-0`),i.setEdge(n,r,s,t+`-cyclic-special-1`),i.setEdge(r,t,c,t+`-cyc<lic-special-2`)}else i.setEdge(e.start,e.end,{...e},e.id)}),t.warn(`Graph at first:`,JSON.stringify(x(i))),F(i),t.warn(`Graph after XAX:`,JSON.stringify(x(i)));let s=r();await z(a,i,e.type,e.diagramId,void 0,s)},`render`);export{B as render};
5
- //# sourceMappingURL=dagre-KV5264BT-Cbu_HfO4.mjs.map
5
+ //# sourceMappingURL=dagre-KV5264BT-qU8auIl8.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-ByieFnhr.mjs";import{n as e}from"./chunk-D7MEQ3VN-Cgm5u94B.mjs";export{e as dateCommand};
@@ -1,2 +1,2 @@
1
1
  function e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function t(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=a.exec(e)))throw Error(`invalid format: `+e);var t;return new s({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}o.prototype=s.prototype;function s(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function c(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var l;function u(e,n){var r=t(e,n);if(!r)return l=void 0,e.toPrecision(n);var i=r[0],a=r[1],o=a-(l=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join(`0`):o>0?i.slice(0,o)+`.`+i.slice(o):`0.`+Array(1-o).join(`0`)+t(e,Math.max(0,n+o-1))[0]}function d(e,n){var r=t(e,n);if(!r)return e+``;var i=r[0],a=r[1];return a<0?`0.`+Array(-a).join(`0`)+i:i.length>a+1?i.slice(0,a+1)+`.`+i.slice(a+1):i+Array(a-i.length+2).join(`0`)}var f={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d(e*100,t),r:d,s:u,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p(e){return e}var m=Array.prototype.map,h=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function g(e){var t=e.grouping===void 0||e.thousands===void 0?p:r(m.call(e.grouping,Number),e.thousands+``),a=e.currency===void 0?``:e.currency[0]+``,s=e.currency===void 0?``:e.currency[1]+``,u=e.decimal===void 0?`.`:e.decimal+``,d=e.numerals===void 0?p:i(m.call(e.numerals,String)),g=e.percent===void 0?`%`:e.percent+``,_=e.minus===void 0?`−`:e.minus+``,v=e.nan===void 0?`NaN`:e.nan+``;function y(e,n){e=o(e);var r=e.fill,i=e.align,p=e.sign,m=e.symbol,y=e.zero,b=e.width,x=e.comma,S=e.precision,C=e.trim,w=e.type;w===`n`?(x=!0,w=`g`):f[w]||(S===void 0&&(S=12),C=!0,w=`g`),(y||r===`0`&&i===`=`)&&(y=!0,r=`0`,i=`=`);var T=(n&&n.prefix!==void 0?n.prefix:``)+(m===`$`?a:m===`#`&&/[boxX]/.test(w)?`0`+w.toLowerCase():``),E=(m===`$`?s:/[%p]/.test(w)?g:``)+(n&&n.suffix!==void 0?n.suffix:``),D=f[w],O=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(e){var n=T,a=E,o,s,f;if(w===`c`)a=D(e)+a,e=``;else{e=+e;var m=e<0||1/e<0;if(e=isNaN(e)?v:D(Math.abs(e),S),C&&(e=c(e)),m&&+e==0&&p!==`+`&&(m=!1),n=(m?p===`(`?p:_:p===`-`||p===`(`?``:p)+n,a=(w===`s`&&!isNaN(e)&&l!==void 0?h[8+l/3]:``)+a+(m&&p===`(`?`)`:``),O){for(o=-1,s=e.length;++o<s;)if(f=e.charCodeAt(o),48>f||f>57){a=(f===46?u+e.slice(o+1):e.slice(o))+a,e=e.slice(0,o);break}}}x&&!y&&(e=t(e,1/0));var g=n.length+e.length+a.length,k=g<b?Array(b-g+1).join(r):``;switch(x&&y&&(e=t(k+e,k.length?b-a.length:1/0),k=``),i){case`<`:e=n+e+a+k;break;case`=`:e=n+k+e+a;break;case`^`:e=k.slice(0,g=k.length>>1)+n+e+a+k.slice(g);break;default:e=k+n+e+a;break}return d(e)}return k.toString=function(){return e+``},k}function b(e,t){var r=Math.max(-8,Math.min(8,Math.floor(n(t)/3)))*3,i=10**-r,a=y((e=o(e),e.type=`f`,e),{suffix:h[8+r/3]});return function(e){return a(i*e)}}return{format:y,formatPrefix:b}}var _,v,y;b({thousands:`,`,grouping:[3],currency:[`$`,``]});function b(e){return _=g(e),v=_.format,y=_.formatPrefix,_}export{n as i,y as n,o as r,v as t};
2
- //# sourceMappingURL=defaultLocale-0qNBj5q-.mjs.map
2
+ //# sourceMappingURL=defaultLocale-DMqLGTir.mjs.map
@@ -1,4 +1,4 @@
1
- import{T as e,w as t}from"./src-DC_BCes_.mjs";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import{r as f}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{t as p}from"./chunk-426QAEUC-B_MzMc_U.mjs";import{t as m}from"./chunk-4BX2VUAB-BXGPfnwm.mjs";import{t as h}from"./mermaid-parser.core-DqKkkvo5.mjs";import{t as g}from"./chunk-QZHKN3VN-CczpYV_w.mjs";var _=new g(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),v=t(()=>{_.reset(),s()},`clear`),y=t(()=>_.records.stack[0],`getRoot`),b=t(()=>_.records.cnt,`getCount`),x=l.treeView,S={clear:v,addNode:t((e,t)=>{for(;e<=_.records.stack[_.records.stack.length-1].level;)_.records.stack.pop();let n={id:_.records.cnt++,level:e,name:t,children:[]};_.records.stack[_.records.stack.length-1].children.push(n),_.records.stack.push(n)},`addNode`),getRoot:y,getCount:b,getConfig:t(()=>f(x,d().treeView),`getConfig`),getAccTitle:u,getAccDescription:o,getDiagramTitle:r,setAccDescription:n,setAccTitle:i,setDiagramTitle:a},C=t(e=>{m(e,S),e.nodes.map(e=>S.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),w={parse:t(async t=>{let n=await h(`treeView`,t);e.debug(n),C(n)},`parse`)},T=t((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),E=t((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),D=t((e,n,r)=>{let i=0,a=0,o=t((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);T(o,i,t,e,n);let{height:s,width:c}=t.BBox;E(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;E(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),O={draw:t((t,n,r,i)=>{e.debug(`Rendering treeView diagram
1
+ import{T as e,w as t}from"./src-BGL-MlNN.mjs";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{r as f}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{t as p}from"./chunk-426QAEUC-C79-xu4k.mjs";import{t as m}from"./chunk-4BX2VUAB-CeLVr99T.mjs";import{t as h}from"./mermaid-parser.core-C4HPipkF.mjs";import{t as g}from"./chunk-QZHKN3VN-4LgLml-S.mjs";var _=new g(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),v=t(()=>{_.reset(),s()},`clear`),y=t(()=>_.records.stack[0],`getRoot`),b=t(()=>_.records.cnt,`getCount`),x=l.treeView,S={clear:v,addNode:t((e,t)=>{for(;e<=_.records.stack[_.records.stack.length-1].level;)_.records.stack.pop();let n={id:_.records.cnt++,level:e,name:t,children:[]};_.records.stack[_.records.stack.length-1].children.push(n),_.records.stack.push(n)},`addNode`),getRoot:y,getCount:b,getConfig:t(()=>f(x,d().treeView),`getConfig`),getAccTitle:u,getAccDescription:o,getDiagramTitle:r,setAccDescription:n,setAccTitle:i,setDiagramTitle:a},C=t(e=>{m(e,S),e.nodes.map(e=>S.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),w={parse:t(async t=>{let n=await h(`treeView`,t);e.debug(n),C(n)},`parse`)},T=t((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),E=t((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),D=t((e,n,r)=>{let i=0,a=0,o=t((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);T(o,i,t,e,n);let{height:s,width:c}=t.BBox;E(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;E(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),O={draw:t((t,n,r,i)=>{e.debug(`Rendering treeView diagram
2
2
  `+t);let a=i.db,o=a.getRoot(),s=a.getConfig(),l=p(n),u=l.append(`g`);u.attr(`class`,`tree-view`);let{totalHeight:d,totalWidth:f}=D(u,o,s);l.attr(`viewBox`,`-${s.lineThickness/2} 0 ${f} ${d}`),c(l,d,f,s.useMaxWidth)},`draw`)},k={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},A={db:S,renderer:O,parser:w,styles:t(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r}=f(k,e);return`
3
3
  .treeView-node-label {
4
4
  font-size: ${t};
@@ -8,4 +8,4 @@ import{T as e,w as t}from"./src-DC_BCes_.mjs";import{B as n,C as r,V as i,W as a
8
8
  stroke: ${r};
9
9
  }
10
10
  `},`styles`)};export{A as diagram};
11
- //# sourceMappingURL=diagram-5BDNPKRD--yFFNenY.mjs.map
11
+ //# sourceMappingURL=diagram-5BDNPKRD-BfaCThqw.mjs.map
@@ -1,4 +1,4 @@
1
- import{T as e,p as t,w as n}from"./src-DC_BCes_.mjs";import{B as r,C as i,E as a,V as o,W as s,_ as c,a as l,c as u,d,v as f,y as p}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import{t as m}from"./defaultLocale-0qNBj5q-.mjs";import{t as h}from"./ordinal-BuFKVuSx.mjs";import{r as g}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{t as _}from"./chunk-426QAEUC-B_MzMc_U.mjs";import{t as v}from"./chunk-4BX2VUAB-BXGPfnwm.mjs";import{t as y}from"./mermaid-parser.core-DqKkkvo5.mjs";import{t as b}from"./chunk-EDXVE4YY-COyPi8-X.mjs";import{i as x,n as S}from"./chunk-X2U36JSP-B09HbTgU.mjs";function C(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function w(){return this.eachAfter(C)}function T(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function E(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function D(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function O(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function k(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function A(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function j(e){for(var t=this,n=M(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function M(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function N(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function P(){return Array.from(this)}function F(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function I(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*L(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function R(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=V)):t===void 0&&(t=B);for(var n=new W(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new W(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(U)}function z(){return R(this).eachBefore(H)}function B(e){return e.children}function V(e){return Array.isArray(e)?e[1]:null}function H(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function U(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function W(e){this.data=e,this.depth=this.height=0,this.parent=null}W.prototype=R.prototype={constructor:W,count:w,each:T,eachAfter:D,eachBefore:E,find:O,sum:k,sort:A,path:j,ancestors:N,descendants:P,leaves:F,links:I,copy:z,[Symbol.iterator]:L};function G(e){if(typeof e!=`function`)throw Error();return e}function K(){return 0}function q(e){return function(){return e}}function J(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ee(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function te(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var ne=(1+Math.sqrt(5))/2;function re(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ee(c,n,r,i,h?r+=m*g/h:a):te(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var ie=(function e(t){function n(e,n,r,i,a){re(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ne);function ae(){var e=ie,t=!1,n=1,r=1,i=[0],a=K,o=K,s=K,c=K,l=K;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(J),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=G(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:q(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:q(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:q(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:q(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:q(+e),u):l},u}var Y=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o,this.getAccTitle=f,this.setDiagramTitle=s,this.getDiagramTitle=i,this.getAccDescription=c,this.setAccDescription=r}static{n(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=d,t=p();return g({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{S(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){l(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function X(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}n(X,`buildHierarchy`);var oe=n((e,t)=>{v(e,t);let r=[];for(let n of e.TreemapRows??[])n.$type===`ClassDefStatement`&&t.addClass(n.className??``,n.styleText??``);for(let n of e.TreemapRows??[]){let e=n.item;if(!e)continue;let i=n.indent?parseInt(n.indent):0,a=se(e),o=e.classSelector?t.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=X(r),a=n((e,n)=>{for(let r of e)t.addNode(r,n),r.children&&r.children.length>0&&a(r.children,n+1)},`addNodesRecursively`);a(i,0)},`populate`),se=n(e=>e.name?String(e.name):``,`getItemName`),Z={parser:{yy:void 0},parse:n(async t=>{try{let n=await y(`treemap`,t);e.debug(`Treemap AST:`,n);let r=Z.parser?.yy;if(!(r instanceof Y))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);oe(n,r)}catch(t){throw e.error(`Error parsing treemap:`,t),t}},`parse`)},ce=10,Q=10,$=25,le={draw:n((r,i,a,o)=>{let s=o.db,c=s.getConfig(),l=c.padding??ce,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:g}=p();if(!f)return;let v=d?30:0,y=_(i),S=c.nodeWidth?c.nodeWidth*Q:960,C=c.nodeHeight?c.nodeHeight*Q:500,w=S,T=C+v;y.attr(`viewBox`,`0 0 ${w} ${T}`),u(y,T,w,c.useMaxWidth);let E;try{let e=c.valueFormat||`,`;if(e===`$0,0`)E=n(e=>`$`+m(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let t=/\.\d+/.exec(e),r=t?t[0]:``;E=n(e=>`$`+m(`,`+r)(e),`valueFormat`)}else if(e.startsWith(`$`)){let t=e.substring(1);E=n(e=>`$`+m(t||``)(e),`valueFormat`)}else E=m(e)}catch(t){e.error(`Error creating format function:`,t),E=m(`,`)}let D=h().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),O=h().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),k=h().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);d&&y.append(`text`).attr(`x`,w/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(d);let A=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),j=R(f).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),M=ae().size([S,C]).paddingTop(e=>e.children&&e.children.length>0?$+Q:0).paddingInner(l).paddingLeft(e=>e.children&&e.children.length>0?Q:0).paddingRight(e=>e.children&&e.children.length>0?Q:0).paddingBottom(e=>e.children&&e.children.length>0?Q:0).round(!0)(j),N=M.descendants().filter(e=>e.children&&e.children.length>0),P=A.selectAll(`.treemapSection`).data(N).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,$).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${i}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,$),P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>D(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>O(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=x({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),P.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,$/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=c.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),c.showValues!==!1&&P.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,$/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?E(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let F=M.leaves(),I=A.selectAll(`.treemapLeafGroup`).data(F).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);I.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`style`,e=>x({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`stroke-width`,3),I.append(`clipPath`).attr(`id`,(e,t)=>`clip-${i}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),I.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${i}-${t})`).text(e=>e.data.name).each(function(e){let n=t(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),c.showValues!==!1&&I.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${i}-${t})`).text(e=>e.value?E(e.value):``).each(function(e){let n=t(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),b(y,c.diagramPadding??8,`flowchart`,c?.useMaxWidth||!1)},`draw`),getClasses:n(function(e,t){return t.db.getClasses()},`getClasses`)},ue={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},de={parser:Z,get db(){return new Y},renderer:le,styles:n(({treemap:e}={})=>{let t=g(a(),p().themeVariables),n=g(ue,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,o=n.valueColor??t.textColor;return`
1
+ import{T as e,p as t,w as n}from"./src-BGL-MlNN.mjs";import{B as r,C as i,E as a,V as o,W as s,_ as c,a as l,c as u,d,v as f,y as p}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{t as m}from"./defaultLocale-DMqLGTir.mjs";import{t as h}from"./ordinal-CwNJ0kWp.mjs";import{r as g}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{t as _}from"./chunk-426QAEUC-C79-xu4k.mjs";import{t as v}from"./chunk-4BX2VUAB-CeLVr99T.mjs";import{t as y}from"./mermaid-parser.core-C4HPipkF.mjs";import{t as b}from"./chunk-EDXVE4YY-B7-wXBzK.mjs";import{i as x,n as S}from"./chunk-X2U36JSP-BlsQfR26.mjs";function C(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function w(){return this.eachAfter(C)}function T(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function E(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function D(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function O(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function k(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function A(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function j(e){for(var t=this,n=M(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function M(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function N(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function P(){return Array.from(this)}function F(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function I(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*L(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function R(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=V)):t===void 0&&(t=B);for(var n=new W(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new W(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(U)}function z(){return R(this).eachBefore(H)}function B(e){return e.children}function V(e){return Array.isArray(e)?e[1]:null}function H(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function U(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function W(e){this.data=e,this.depth=this.height=0,this.parent=null}W.prototype=R.prototype={constructor:W,count:w,each:T,eachAfter:D,eachBefore:E,find:O,sum:k,sort:A,path:j,ancestors:N,descendants:P,leaves:F,links:I,copy:z,[Symbol.iterator]:L};function G(e){if(typeof e!=`function`)throw Error();return e}function K(){return 0}function q(e){return function(){return e}}function J(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ee(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function te(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var ne=(1+Math.sqrt(5))/2;function re(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ee(c,n,r,i,h?r+=m*g/h:a):te(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var ie=(function e(t){function n(e,n,r,i,a){re(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ne);function ae(){var e=ie,t=!1,n=1,r=1,i=[0],a=K,o=K,s=K,c=K,l=K;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(J),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=G(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:q(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:q(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:q(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:q(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:q(+e),u):l},u}var Y=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o,this.getAccTitle=f,this.setDiagramTitle=s,this.getDiagramTitle=i,this.getAccDescription=c,this.setAccDescription=r}static{n(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=d,t=p();return g({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{S(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){l(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function X(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}n(X,`buildHierarchy`);var oe=n((e,t)=>{v(e,t);let r=[];for(let n of e.TreemapRows??[])n.$type===`ClassDefStatement`&&t.addClass(n.className??``,n.styleText??``);for(let n of e.TreemapRows??[]){let e=n.item;if(!e)continue;let i=n.indent?parseInt(n.indent):0,a=se(e),o=e.classSelector?t.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=X(r),a=n((e,n)=>{for(let r of e)t.addNode(r,n),r.children&&r.children.length>0&&a(r.children,n+1)},`addNodesRecursively`);a(i,0)},`populate`),se=n(e=>e.name?String(e.name):``,`getItemName`),Z={parser:{yy:void 0},parse:n(async t=>{try{let n=await y(`treemap`,t);e.debug(`Treemap AST:`,n);let r=Z.parser?.yy;if(!(r instanceof Y))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);oe(n,r)}catch(t){throw e.error(`Error parsing treemap:`,t),t}},`parse`)},ce=10,Q=10,$=25,le={draw:n((r,i,a,o)=>{let s=o.db,c=s.getConfig(),l=c.padding??ce,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:g}=p();if(!f)return;let v=d?30:0,y=_(i),S=c.nodeWidth?c.nodeWidth*Q:960,C=c.nodeHeight?c.nodeHeight*Q:500,w=S,T=C+v;y.attr(`viewBox`,`0 0 ${w} ${T}`),u(y,T,w,c.useMaxWidth);let E;try{let e=c.valueFormat||`,`;if(e===`$0,0`)E=n(e=>`$`+m(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let t=/\.\d+/.exec(e),r=t?t[0]:``;E=n(e=>`$`+m(`,`+r)(e),`valueFormat`)}else if(e.startsWith(`$`)){let t=e.substring(1);E=n(e=>`$`+m(t||``)(e),`valueFormat`)}else E=m(e)}catch(t){e.error(`Error creating format function:`,t),E=m(`,`)}let D=h().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),O=h().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),k=h().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);d&&y.append(`text`).attr(`x`,w/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(d);let A=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),j=R(f).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),M=ae().size([S,C]).paddingTop(e=>e.children&&e.children.length>0?$+Q:0).paddingInner(l).paddingLeft(e=>e.children&&e.children.length>0?Q:0).paddingRight(e=>e.children&&e.children.length>0?Q:0).paddingBottom(e=>e.children&&e.children.length>0?Q:0).round(!0)(j),N=M.descendants().filter(e=>e.children&&e.children.length>0),P=A.selectAll(`.treemapSection`).data(N).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,$).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${i}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,$),P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>D(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>O(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=x({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),P.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,$/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=c.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),c.showValues!==!1&&P.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,$/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?E(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let F=M.leaves(),I=A.selectAll(`.treemapLeafGroup`).data(F).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);I.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`style`,e=>x({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`stroke-width`,3),I.append(`clipPath`).attr(`id`,(e,t)=>`clip-${i}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),I.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${i}-${t})`).text(e=>e.data.name).each(function(e){let n=t(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),c.showValues!==!1&&I.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${i}-${t})`).text(e=>e.value?E(e.value):``).each(function(e){let n=t(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),b(y,c.diagramPadding??8,`flowchart`,c?.useMaxWidth||!1)},`draw`),getClasses:n(function(e,t){return t.db.getClasses()},`getClasses`)},ue={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},de={parser:Z,get db(){return new Y},renderer:le,styles:n(({treemap:e}={})=>{let t=g(a(),p().themeVariables),n=g(ue,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,o=n.valueColor??t.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${n.sectionStrokeColor};
4
4
  stroke-width: ${n.sectionStrokeWidth};
@@ -22,4 +22,4 @@ import{T as e,p as t,w as n}from"./src-DC_BCes_.mjs";import{B as r,C as i,E as a
22
22
  font-size: ${n.titleFontSize};
23
23
  }
24
24
  `},`getStyles`)};export{de as diagram};
25
- //# sourceMappingURL=diagram-G4DWMVQ6-DEe2UaOJ.mjs.map
25
+ //# sourceMappingURL=diagram-G4DWMVQ6-GD__kOTo.mjs.map
@@ -1,4 +1,4 @@
1
- import{T as e,w as t}from"./src-DC_BCes_.mjs";import{B as n,C as r,E as i,V as a,W as o,_ as s,a as c,c as l,d as u,v as d,y as f}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import{r as p}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{t as m}from"./chunk-426QAEUC-B_MzMc_U.mjs";import{t as h}from"./chunk-4BX2VUAB-BXGPfnwm.mjs";import{t as g}from"./mermaid-parser.core-DqKkkvo5.mjs";var _={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},v={axes:[],curves:[],options:_},y=structuredClone(v),b=u.radar,x=t(()=>p({...b,...f().radar}),`getConfig`),S=t(()=>y.axes,`getAxes`),C=t(()=>y.curves,`getCurves`),w=t(()=>y.options,`getOptions`),T=t(e=>{y.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),E=t(e=>{y.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:D(e.entries)}))},`setCurves`),D=t(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=S();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),O={getAxes:S,getCurves:C,getOptions:w,setAxes:T,setCurves:E,setOptions:t(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});y.options={showLegend:t.showLegend?.value??_.showLegend,ticks:t.ticks?.value??_.ticks,max:t.max?.value??_.max,min:t.min?.value??_.min,graticule:t.graticule?.value??_.graticule}},`setOptions`),getConfig:x,clear:t(()=>{c(),y=structuredClone(v)},`clear`),setAccTitle:a,getAccTitle:d,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n},k=t(e=>{h(e,O);let{axes:t,curves:n,options:r}=e;O.setAxes(t),O.setCurves(n),O.setOptions(r)},`populate`),A={parse:t(async t=>{let n=await g(`radar`,t);e.debug(n),k(n)},`parse`)},j=t((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),c=i.getConfig(),l=i.getDiagramTitle(),u=M(m(t),c),d=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),f=s.min,p=Math.min(c.width,c.height)/2;N(u,a,p,s.ticks,s.graticule),P(u,a,p,c),F(u,a,o,f,d,s.graticule,c),R(u,o,s.showLegend,c),u.append(`text`).attr(`class`,`radarTitle`).text(l).attr(`x`,0).attr(`y`,-c.height/2-c.marginTop)},`draw`),M=t((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return l(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),N=t((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),P=t((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function F(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=I(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,L(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t(F,`drawCurves`);function I(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t(I,`relativeRadius`);function L(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t(L,`closedRoundCurve`);function R(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t(R,`drawLegend`);var z={draw:j},B=t((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
1
+ import{T as e,w as t}from"./src-BGL-MlNN.mjs";import{B as n,C as r,E as i,V as a,W as o,_ as s,a as c,c as l,d as u,v as d,y as f}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{r as p}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{t as m}from"./chunk-426QAEUC-C79-xu4k.mjs";import{t as h}from"./chunk-4BX2VUAB-CeLVr99T.mjs";import{t as g}from"./mermaid-parser.core-C4HPipkF.mjs";var _={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},v={axes:[],curves:[],options:_},y=structuredClone(v),b=u.radar,x=t(()=>p({...b,...f().radar}),`getConfig`),S=t(()=>y.axes,`getAxes`),C=t(()=>y.curves,`getCurves`),w=t(()=>y.options,`getOptions`),T=t(e=>{y.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),E=t(e=>{y.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:D(e.entries)}))},`setCurves`),D=t(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=S();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),O={getAxes:S,getCurves:C,getOptions:w,setAxes:T,setCurves:E,setOptions:t(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});y.options={showLegend:t.showLegend?.value??_.showLegend,ticks:t.ticks?.value??_.ticks,max:t.max?.value??_.max,min:t.min?.value??_.min,graticule:t.graticule?.value??_.graticule}},`setOptions`),getConfig:x,clear:t(()=>{c(),y=structuredClone(v)},`clear`),setAccTitle:a,getAccTitle:d,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n},k=t(e=>{h(e,O);let{axes:t,curves:n,options:r}=e;O.setAxes(t),O.setCurves(n),O.setOptions(r)},`populate`),A={parse:t(async t=>{let n=await g(`radar`,t);e.debug(n),k(n)},`parse`)},j=t((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),c=i.getConfig(),l=i.getDiagramTitle(),u=M(m(t),c),d=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),f=s.min,p=Math.min(c.width,c.height)/2;N(u,a,p,s.ticks,s.graticule),P(u,a,p,c),F(u,a,o,f,d,s.graticule,c),R(u,o,s.showLegend,c),u.append(`text`).attr(`class`,`radarTitle`).text(l).attr(`x`,0).attr(`y`,-c.height/2-c.marginTop)},`draw`),M=t((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return l(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),N=t((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),P=t((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function F(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=I(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,L(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t(F,`drawCurves`);function I(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t(I,`relativeRadius`);function L(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t(L,`closedRoundCurve`);function R(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t(R,`drawLegend`);var z={draw:j},B=t((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${i};
4
4
  fill: ${i};
@@ -41,4 +41,4 @@ import{T as e,w as t}from"./src-DC_BCes_.mjs";import{B as n,C as r,E as i,V as a
41
41
  }
42
42
  ${B(t,n)}
43
43
  `},`styles`)};export{H as diagram};
44
- //# sourceMappingURL=diagram-MMDJMWI5-BEgEPDUN.mjs.map
44
+ //# sourceMappingURL=diagram-MMDJMWI5-eK_WgeFb.mjs.map
@@ -1,4 +1,4 @@
1
- import{T as e,w as t}from"./src-DC_BCes_.mjs";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import{r as f}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{t as p}from"./chunk-426QAEUC-B_MzMc_U.mjs";import{t as m}from"./chunk-4BX2VUAB-BXGPfnwm.mjs";import{t as h}from"./mermaid-parser.core-DqKkkvo5.mjs";var g=l.packet,_=class{constructor(){this.packet=[],this.setAccTitle=i,this.getAccTitle=u,this.setDiagramTitle=a,this.getDiagramTitle=r,this.getAccDescription=o,this.setAccDescription=n}static{t(this,`PacketDB`)}getConfig(){let e=f({...g,...d().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){s(),this.packet=[]}},v=1e4,y=t((t,n)=>{m(t,n);let r=-1,i=[],a=1,{bitsPerRow:o}=n.getConfig();for(let{start:s,end:c,bits:l,label:u}of t.blocks){if(s!==void 0&&c!==void 0&&c<s)throw Error(`Packet block ${s} - ${c} is invalid. End must be greater than start.`);if(s??=r+1,s!==r+1)throw Error(`Packet block ${s} - ${c??s} is not contiguous. It should start from ${r+1}.`);if(l===0)throw Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(c??=s+(l??1)-1,l??=c-s+1,r=c,e.debug(`Packet block ${s} - ${r} with label ${u}`);i.length<=o+1&&n.getPacket().length<v;){let[e,t]=b({start:s,end:c,bits:l,label:u},a,o);if(i.push(e),e.end+1===a*o&&(n.pushWord(i),i=[],a++),!t)break;({start:s,end:c,bits:l,label:u}=t)}}n.pushWord(i)},`populate`),b=t((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),x={parser:{yy:void 0},parse:t(async t=>{let n=await h(`packet`,t),r=x.parser?.yy;if(!(r instanceof _))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);e.debug(n),y(n,r)},`parse`)},S=t((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),m=o+s,h=m*(d.length+1)-(f?0:o),g=l*u+2,_=p(t);_.attr(`viewBox`,`0 0 ${g} ${h}`),c(_,h,g,a.useMaxWidth);for(let[e,t]of d.entries())C(_,t,e,a);_.append(`text`).text(f).attr(`x`,g/2).attr(`y`,h-m/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),C=t((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),w={draw:S},T={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},E={parser:x,get db(){return new _},renderer:w,styles:t(({packet:e}={})=>{let t=f(T,e);return`
1
+ import{T as e,w as t}from"./src-BGL-MlNN.mjs";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{r as f}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{t as p}from"./chunk-426QAEUC-C79-xu4k.mjs";import{t as m}from"./chunk-4BX2VUAB-CeLVr99T.mjs";import{t as h}from"./mermaid-parser.core-C4HPipkF.mjs";var g=l.packet,_=class{constructor(){this.packet=[],this.setAccTitle=i,this.getAccTitle=u,this.setDiagramTitle=a,this.getDiagramTitle=r,this.getAccDescription=o,this.setAccDescription=n}static{t(this,`PacketDB`)}getConfig(){let e=f({...g,...d().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){s(),this.packet=[]}},v=1e4,y=t((t,n)=>{m(t,n);let r=-1,i=[],a=1,{bitsPerRow:o}=n.getConfig();for(let{start:s,end:c,bits:l,label:u}of t.blocks){if(s!==void 0&&c!==void 0&&c<s)throw Error(`Packet block ${s} - ${c} is invalid. End must be greater than start.`);if(s??=r+1,s!==r+1)throw Error(`Packet block ${s} - ${c??s} is not contiguous. It should start from ${r+1}.`);if(l===0)throw Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(c??=s+(l??1)-1,l??=c-s+1,r=c,e.debug(`Packet block ${s} - ${r} with label ${u}`);i.length<=o+1&&n.getPacket().length<v;){let[e,t]=b({start:s,end:c,bits:l,label:u},a,o);if(i.push(e),e.end+1===a*o&&(n.pushWord(i),i=[],a++),!t)break;({start:s,end:c,bits:l,label:u}=t)}}n.pushWord(i)},`populate`),b=t((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),x={parser:{yy:void 0},parse:t(async t=>{let n=await h(`packet`,t),r=x.parser?.yy;if(!(r instanceof _))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);e.debug(n),y(n,r)},`parse`)},S=t((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),m=o+s,h=m*(d.length+1)-(f?0:o),g=l*u+2,_=p(t);_.attr(`viewBox`,`0 0 ${g} ${h}`),c(_,h,g,a.useMaxWidth);for(let[e,t]of d.entries())C(_,t,e,a);_.append(`text`).text(f).attr(`x`,g/2).attr(`y`,h-m/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),C=t((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),w={draw:S},T={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},E={parser:x,get db(){return new _},renderer:w,styles:t(({packet:e}={})=>{let t=f(T,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -22,4 +22,4 @@ import{T as e,w as t}from"./src-DC_BCes_.mjs";import{B as n,C as r,V as i,W as a
22
22
  fill: ${t.blockFillColor};
23
23
  }
24
24
  `},`styles`)};export{E as diagram};
25
- //# sourceMappingURL=diagram-TYMM5635-WdKiO0-q.mjs.map
25
+ //# sourceMappingURL=diagram-TYMM5635-Cw9FE8Ou.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-ByieFnhr.mjs";import{t as e}from"./chunk-TLSUDHID-CbxrNaLS.mjs";export{e as diffCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-ByieFnhr.mjs";import{n as e}from"./chunk-4Q4SM6WR-BBf5_ewP.mjs";export{e as dirnameCommand};
@@ -1,2 +1,2 @@
1
1
  import{t as e}from"./chunk-C94x7I9S.mjs";const t=Math.abs,n=Math.atan2,r=Math.cos,i=Math.max,a=Math.min,o=Math.sin,s=Math.sqrt,c=1e-12,l=Math.PI,u=l/2,d=2*l;function f(e){return e>1?0:e<-1?l:Math.acos(e)}function p(e){return e>=1?u:e<=-1?-u:Math.asin(e)}var m=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),h=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sanitizeUrl=o;var t=m();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}}));export{n as a,u as c,l as d,o as f,p as i,i as l,d as m,t as n,r as o,s as p,f as r,c as s,h as t,a as u};
2
- //# sourceMappingURL=dist-Co98vmuK.mjs.map
2
+ //# sourceMappingURL=dist-B9rR197c.mjs.map
@@ -0,0 +1 @@
1
+ import{Bi as e,Cn as t,M as n,Ni as r,On as i,Ot as a,Xt as o,ln as s,nn as c,si as l,ua as u}from"./dist-gqZDYmIG.mjs";import{_ as d,a as f,b as p,c as m,f as h,g,h as _,i as v,l as y,m as b,n as x,o as S,p as C,r as w,s as T,t as E,u as D,v as O,y as k}from"./server-lock-iLcBw_q0-CSsXlPB8.mjs";import{$ as A,$i as j,$n as M,$r as N,$t as P,A as F,Ai as I,An as L,Ar as R,At as z,B,Bi as V,Bn as H,Br as U,Bt as W,C as G,Ci as K,Cn as q,Cr as J,Ct as Y,D as X,Di as Z,Dn as Q,Dr as $,Dt as ee,E as te,Ei as ne,En as re,Er as ie,Et as ae,F as oe,Fi as se,Fn as ce,Fr as le,Ft as ue,G as de,Gi as fe,Gn as pe,Gr as me,Gt as he,H as ge,Hi as _e,Hn as ve,Hr as ye,Ht as be,I as xe,Ii as Se,In as Ce,Ir as we,It as Te,J as Ee,Ji as De,Jn as Oe,Jr as ke,Jt as Ae,K as je,Ki as Me,Kn as Ne,Kr as Pe,Kt as Fe,L as Ie,Li as Le,Ln as Re,Lr as ze,Lt as Be,M as Ve,Mi as He,Mn as Ue,Mr as We,Mt as Ge,N as Ke,Na as qe,Ni as Je,Nn as Ye,Nr as Xe,Nt as Ze,O as Qe,Oi as $e,On as et,Or as tt,Ot as nt,P as rt,Pa as it,Pi as at,Pn as ot,Pr as st,Pt as ct,Q as lt,Qi as ut,Qn as dt,Qr as ft,Qt as pt,R as mt,Ri as ht,Rn as gt,Rr as _t,Rt as vt,S as yt,Si as bt,Sn as xt,Sr as St,St as Ct,T as wt,Ti as Tt,Tn as Et,Tr as Dt,Tt as Ot,U as kt,Ui as At,Un as jt,Ur as Mt,Ut as Nt,V as Pt,Vi as Ft,Vn as It,Vr as Lt,Vt as Rt,W as zt,Wi as Bt,Wn as Vt,Wr as Ht,Wt as Ut,X as Wt,Xi as Gt,Xn as Kt,Xr as qt,Xt as Jt,Y as Yt,Yi as Xt,Yn as Zt,Yr as Qt,Yt as $t,Z as en,Zi as tn,Zn as nn,Zr as rn,Zt as an,_ as on,_i as sn,_n as cn,_r as ln,_t as un,a as dn,aa as fn,ai as pn,an as mn,ar as hn,at as gn,b as _n,bi as vn,bn as yn,br as bn,bt as xn,c as Sn,ca as Cn,ci as wn,cn as Tn,cr as En,ct as Dn,d as On,da as kn,di as An,dn as jn,dr as Mn,dt as Nn,ea as Pn,ei as Fn,en as In,er as Ln,et as Rn,f as zn,fa as Bn,fi as Vn,fn as Hn,fr as Un,ft as Wn,g as Gn,ga as Kn,gi as qn,gn as Jn,gr as Yn,gt as Xn,h as Zn,ha as Qn,hi as $n,hn as er,hr as tr,ht as nr,i as rr,ia as ir,ii as ar,in as or,ir as sr,it as cr,j as lr,ji as ur,jn as dr,jr as fr,jt as pr,k as mr,ki as hr,kn as gr,kr as _r,kt as vr,l as yr,la as br,li as xr,ln as Sr,lr as Cr,lt as wr,m as Tr,ma as Er,mi as Dr,mn as Or,mr as kr,mt as Ar,n as jr,na as Mr,ni as Nr,nn as Pr,nr as Fr,nt as Ir,o as Lr,oa as Rr,oi as zr,on as Br,or as Vr,ot as Hr,p as Ur,pa as Wr,pi as Gr,pn as Kr,pr as qr,pt as Jr,q as Yr,qi as Xr,qn as Zr,qr as Qr,qt as $r,r as ei,ra as ti,ri as ni,rn as ri,rr as ii,rt as ai,s as oi,sa as si,si as ci,sn as li,sr as ui,st as di,t as fi,ta as pi,ti as mi,tn as hi,tr as gi,tt as _i,u as vi,ua as yi,ui as bi,un as xi,ur as Si,ut as Ci,v as wi,vi as Ti,vn as Ei,vr as Di,vt as Oi,w as ki,wi as Ai,wn as ji,wr as Mi,wt as Ni,x as Pi,xi as Fi,xn as Ii,xr as Li,xt as Ri,y as zi,yi as Bi,yn as Vi,yr as Hi,yt as Ui,z as Wi,zi as Gi,zn as Ki,zr as qi,zt as Ji}from"./dist-petOQDm6.mjs";export{fi as AGENT_ID_MAX_LEN,jr as AGENT_ID_RE,ei as AGENT_WRITE_ORIGIN,rr as AgentFocusBroadcaster,dn as AgentPresenceBroadcaster,Lr as AgentSessionCapacityError,oi as AgentSessionManager,Sn as AutoStartDisabledError,yr as BUNDLE_IDS,vi as BUNDLE_SCOPE,On as BUNDLE_SKILL_NAME,zn as BacklinkIndex,Ur as CC1Broadcaster,n as CC1_CONTRACT_VERSION,Tr as CONFIG_FILENAME,Zn as CONFLICT_MARKER_RE,Gn as CURSOR_BUNDLE_PATHS_BY_PLATFORM,on as ConfigSchema,wi as DEFAULT_CHECKPOINT_RETENTION,zi as DEFAULT_EMBEDDINGS_DIMENSIONS,_n as DEFAULT_PACK_ID,Pi as EMBEDDINGS_API_KEY_ENV,yt as FILE_SYSTEM_WRITER,G as FILE_WATCHER_ORIGIN,ki as FileEmbeddingsBackend,wt as GIT_PREFLIGHT_FAIL_SPAN_NAME,te as GIT_UPSTREAM_WRITER,qe as GitDirAccessError,X as GitNotAvailableError,Qe as GitTooOldError,mr as HOCUSPOCUS_AUTH_REJECTION_REASONS,F as HocuspocusAuthRejection,lr as HocuspocusAuthTokenSchema,Ve as INSTALLED_AGENTS_SCHEMES,a as LINEAGE_EPOCH_KEY,Ke as LIVE_DERIVED_INDEX_DEBOUNCE_MS,rt as LOG_MD_TEMPLATE,oe as MANAGED_RENAME_ORIGIN,xe as MAX_AGENT_SESSIONS,Ie as MCP_CONNECTION_ID_HEADER,o as MCP_SERVER_NAME,mt as MIN_GIT_VERSION,Wi as MISSING_OK_CONFIG_MESSAGE,it as MalformedGitPointerError,B as McpLogger,Pt as MissingOkConfigError,ge as OBSERVER_SYNC_ORIGIN,kt as OK_OKIGNORE_TEMPLATE,c as ORPHAN_MODES,s as PROTOCOL_VERSION,zt as PinoLogger,E as ProcessLockCollisionError,de as ProjectGitInitError,je as ROLLBACK_ORIGIN,Yr as ROOT_GITIGNORE_TEMPLATE,x as RUNTIME_VERSION,Ee as SERVICE_WRITER,Yt as SKILL_INSTALL_EVENTS_FILE_REL,t as SKILL_STATE_TARGETS,Wt as STARTER_FOLDERS,en as STARTER_FOLDER_FRONTMATTER_FILENAME,lt as STARTER_PACKS,A as STARTER_PACK_IDS,Rn as STARTER_TEMPLATES,_i as STATE_MANIFEST_FILENAME,w as STATE_SCHEMA_VERSION,i as SYSTEM_DOC_NAME,Ir as SeedPrerequisiteError,ai as SeedRootDirError,v as ServerLockCollisionError,cr as SingleFileNotAFileError,gn as SingleFileNotFoundError,Hr as SingleFileNotMarkdownError,di as StateManifestError,Dn as TagIndex,wr as USER_GLOBAL_BUNDLE_IDS,Ci as UiLockCollisionError,Nn as __getShowAllWalkStatsForTesting,Wn as __resetShowAllWalkStatsForTesting,f as acquireProcessLock,S as acquireServerLock,Jr as acquireUiLock,Ar as applyAgentMarkdownWrite,nr as applyExternalChange,Xn as applySeed,un as assertCompatibleStateManifest,Oi as assertGitAvailable,Ui as assertNeverDiskEvent,xn as attachIdleShutdown,Ri as bootServer,Ct as buildAndOpenSkill,Y as buildConfigYmlContent,Ni as buildExecResult,Ot as buildSkillZip,ae as buildStarterFolderFrontmatterYaml,ee as buildWipTree,nt as bundleSkillMdPath,vr as classifyEvents,z as classifyFsPath,pr as clearContributors,Ge as clearEmbeddingsKeyFromAllBackends,Ze as coercePackId,l as colorFromSeed,ct as commitUpstreamImport,ue as commitWip,Te as commitWipFromTree,Be as compareSemver,vt as composeEffectiveLinterConfig,Ji as containsConflictMarkers,W as contentHash,Rt as contributorCount,be as countShadowObjects,Nt as countStaleAgentWipRefs,Ut as countWipRefs,he as createApiExtension,Fe as createAssetServeMiddleware,$r as createContentFilter,Ae as createContentFilterAsync,$t as createEmbeddingsSecretStore,Jt as createEphemeralProjectDir,an as createExternalChangeHandler,pt as createFileLogger,P as createLiveDerivedIndexExtension,In as createMcpHttpHandler,hi as createOsProbe,Pr as createPersistenceExtension,ri as createServer,or as createServerObserverExtension,mn as createStreamingErrorWriter,Br as createTestLogger,li as describeStoredEmbeddingsKey,Tn as detectClaudeDesktopPresence,Sr as detectGit,xi as detectProjectShape,jn as discoverLockDirs,Hn as discoverMarkdownlintConfig,Kr as emitPreflightFailureSpan,Or as encodeDocName,er as encodeFolderRoute,Jn as encodeSkillRoute,cn as ensureProjectGit,Ei as ensureProjectSkillGitignore,Vi as errorResponse,yn as evictStaleTrackerEntries,Ii as extractOkBinaryPath,xt as extractWikiLinksFromMarkdown,q as fallbackPaths,ji as findEnclosingGitRoot,Et as findEnclosingProjectRoot,re as findNativeMarkdownlintFile,Q as flushFileLogger,et as formatAuthRejectionWire,gr as formatContributors,L as formatContributorsFrom,dr as formatPackRationale,Ue as gcCheckpointRefs,Ye as getCurrentMcpLogger,ot as getLocalDir,ce as getLogFilePath,Ce as getLogger,Re as getLogsDir,T as getMachineId,gt as getMeter,Ki as getMetrics,H as getTracer,It as handleCollabSocketError,ve as handleSpawnCursor,jt as hasGcLogLatch,r as iconFromClientName,Vt as incrementCollabSocketFilteredError,pe as incrementServerObserverFire,Ne as initContent,Zr as initShadowRepo,Oe as initTelemetry,Zt as initToleranceTelemetryWriter,Kt as installPrettyZodErrors,nn as installTestLoggers,dt as installUserSkill,M as isAllowedApiOrigin,Ln as isAllowedWorkspaceHostHeader,gi as isConfigDoc,Fr as isHocuspocusAuthRejectionReason,ii as isKnownPackId,sr as isLinkIndexExcludedDoc,hn as isLoopbackAddress,Vr as isManagedArtifactDoc,e as isOrphanMode,ui as isPairedWriteOrigin,En as isPathWithinDir,m as isProcessAlive,Cr as isProjectRoot,Si as isProjectSkillManaged,Mn as isReservedForUserTree,Un as isSelfWrite,qr as isSystemDoc,kr as isToleranceTelemetryEnabled,y as isValidLockPid,tr as lastKnownHash,Yn as listRescueCheckpoints,ln as listStarterPacks,Di as loadPrincipal,D as lockFilePath,Hi as loggerFactory,bn as logsCurrentPath,Li as logsPreviousPath,St as makeLazyEmbeddingsKeyStore,h as markServerLockDraining,J as mountMcpAndApi,Mi as normalizeFsPath,Dt as originGitHubHost,ie as packageVersionMajorMinor,$ as parseAuthRejectionWire,tt as parseGitVersion,_r as parseHocuspocusAuthToken,R as parseKeepaliveConnectionId,fr as pathToDocName,We as planSeed,Xe as prepareSingleFileOpen,st as processCommand,le as processUsage,we as readAllTargets,ze as readBranchFromHead,_t as readBundleDecision,qi as readOwnNativeRules,C as readProcessLock,b as readProcessLockDetailed,U as readProjectLocalSemanticConfig,_ as readServerLock,Lt as readServerPackageVersion,ye as readSkillInstallStateSnapshot,Mt as readSkillManagement,Ht as readStateManifest,me as readTargetRecordedAt,Pe as readTargetVersion,Qr as readUiLock,ke as reconcile,Qt as recordContributor,qt as recordSkillInstallEvent,rn as registerAllTools,ft as registerWrite,g as releaseProcessLock,d as releaseServerLock,N as releaseUiLock,Fn as removeLastKnownHash,mi as resetMetrics,u as resolveBundleEnabled,Nr as resolveBundledSkillDir,ni as resolveContentDir,ar as resolveCursorBinaryDefault,pn as resolveCursorSpawnInvocation,zr as resolveEffectiveLinterConfig,ci as resolveLockDir,wn as resolveNativeConfigForDoc,xr as resolveNativeMarkdownlintConfig,bi as resolvePack,An as resolvePackageVersion,Vn as resolveUiInfo,Gr as restoreContributors,Dr as restoreLifecycleFromConflictsJson,$n as rewriteMarkdownLinksForDocumentRename,qn as rewriteWikiLinksForDocumentRename,sn as runAuthReposSubprocess,Ti as runAuthStatusSubprocess,Bi as runCloneSubprocess,vn as runDeviceFlowSubprocess,Fi as runWithMcpLogger,bt as safeContentPath,K as safeSubdir,Ai as safetyCheckpoint,Tt as sanitizeClientName,ne as saveInMemoryCheckpoint,Z as saveVersion,$e as seedBasenameIndex,hr as serializeError,I as setActiveSpanAttributes,ur as setupServerObservers,He as shadowGit,Je as shutdownTelemetry,at as skillManagementPath,se as spansCurrentPath,Se as spansPreviousPath,Le as spawnDetached,ht as splitMarkdownBlocks,Gi as startWatcher,V as streamingProblemEvent,Ft as swapContributors,_e as teardownToleranceTelemetryWriter,At as toBroadcasterKey,Bt as tracedAppendFileSync,fe as tracedLinkSync,Me as tracedMkdir,Xr as tracedMkdirSync,De as tracedRename,Xt as tracedRenameSync,Gt as tracedRmSync,tn as tracedRmdirSync,ut as tracedUnlinkSync,j as tracedWriteFile,Pn as tracedWriteFileSync,pi as untrackTrackedProjectSkillProjection,Mr as updateLastKnownHash,O as updateProcessLockPort,k as updateServerLockPort,ti as updateUiLockPort,ir as validateAgentId,fn as validateCloneInputs,Rr as validateSkillZip,p as waitForServerLockDrain,si as withHiddenWindowsConsole,Cn as withSpan,br as withSpanSync,yi as writeBundleDecision,kn as writeMarkdownlintRule,Bn as writeRootGitignoreForNewRepo,Wr as writeSkillManagement,Er as writeStateManifest,Qn as writeTargetVersion,Kn as writeTracker};
@@ -1,2 +1,2 @@
1
1
  import{t as e}from"./chunk-C94x7I9S.mjs";function t(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:`<environment undetectable>`}var n=`octokit-endpoint.js/0.0.0-development ${t()}`,r={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":n},mediaType:{format:``}};function i(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function a(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function o(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{a(t[r])&&r in e?n[r]=o(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function s(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function c(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=i(n.headers),s(n),s(n.headers);let r=o(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function l(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var u=/\{[^{}}]+\}/g;function d(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,``).split(/,/)}function f(e){let t=e.match(u);return t?t.map(d).reduce((e,t)=>e.concat(t),[]):[]}function p(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function m(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function h(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function g(e,t,n){return t=e===`+`||e===`#`?m(t):h(t),n?h(n)+`=`+t:t}function _(e){return e!=null}function v(e){return e===`;`||e===`&`||e===`?`}function y(e,t,n,r){var i=e[n],a=[];if(_(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(g(t,i,v(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(_).forEach(function(e){a.push(g(t,e,v(t)?n:``))}):Object.keys(i).forEach(function(e){_(i[e])&&a.push(g(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(_).forEach(function(n){e.push(g(t,n))}):Object.keys(i).forEach(function(n){_(i[n])&&(e.push(h(n)),e.push(g(t,i[n].toString())))}),v(t)?a.push(h(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?_(i)&&a.push(h(n)):i===``&&(t===`&`||t===`?`)?a.push(h(n)+`=`):i===``&&a.push(``);return a}function b(e){return{expand:ee.bind(null,e)}}function ee(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(y(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return m(i)}),e===`/`?e:e.replace(/\/$/,``)}function x(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=p(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=f(n);n=b(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=p(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[]).concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=l(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function S(e,t,n){return x(c(e,t,n))}function C(e,t){let n=c(e,t),r=S.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:C.bind(null,n),merge:c.bind(null,n),parse:x})}var w=C(null,r),T=e(((e,t)=>{let n=function(){};n.prototype=Object.create(null);let r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,i=/\\([\v\u0020-\u00ff])/gu,a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:``,parameters:new n};Object.freeze(o.parameters),Object.freeze(o);function s(e){if(typeof e!=`string`)throw TypeError(`argument header is required and must be a string`);let t=e.indexOf(`;`),o=t===-1?e.trim():e.slice(0,t).trim();if(a.test(o)===!1)throw TypeError(`invalid media type`);let s={type:o.toLowerCase(),parameters:new n};if(t===-1)return s;let c,l,u;for(r.lastIndex=t;l=r.exec(e);){if(l.index!==t)throw TypeError(`invalid parameter format`);t+=l[0].length,c=l[1].toLowerCase(),u=l[2],u[0]===`"`&&(u=u.slice(1,u.length-1),i.test(u)&&(u=u.replace(i,`$1`))),s.parameters[c]=u}if(t!==e.length)throw TypeError(`invalid parameter format`);return s}function c(e){if(typeof e!=`string`)return o;let t=e.indexOf(`;`),s=t===-1?e.trim():e.slice(0,t).trim();if(a.test(s)===!1)return o;let c={type:s.toLowerCase(),parameters:new n};if(t===-1)return c;let l,u,d;for(r.lastIndex=t;u=r.exec(e);){if(u.index!==t)return o;t+=u[0].length,l=u[1].toLowerCase(),d=u[2],d[0]===`"`&&(d=d.slice(1,d.length-1),i.test(d)&&(d=d.replace(i,`$1`))),c.parameters[l]=d}return t===e.length?c:o}t.exports.default={parse:s,safeParse:c},t.exports.parse=s,t.exports.safeParse=c,t.exports.defaultContentType=o}));const E=/^-?\d+$/,D=/^-?\d+n+$/,O=JSON.stringify,k=JSON.parse,A=/^-?\d+n$/,j=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,M=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,N=(e,t,n)=>`rawJSON`in JSON?O(e,(e,n)=>typeof n==`bigint`?JSON.rawJSON(n.toString()):typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n):e?O(e,(e,n)=>typeof n==`string`&&D.test(n)||typeof n==`bigint`?n.toString()+`n`:typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n).replace(j,`$1$2$3`).replace(M,`$1$2$3`):O(e,t,n),P=new Map,F=()=>{let e=JSON.parse.toString();if(P.has(e))return P.get(e);try{let t=JSON.parse(`1`,(e,t,n)=>!!n?.source&&n.source===`1`);return P.set(e,t),t}catch{return P.set(e,!1),!1}},I=(e,t,n,r)=>typeof t==`string`&&A.test(t)?BigInt(t.slice(0,-1)):typeof t==`string`&&D.test(t)?t.slice(0,-1):typeof r==`function`?r(e,t,n):t,L=(e,t)=>JSON.parse(e,(e,n,r)=>{let i=typeof n==`number`&&(n>2**53-1||n<-(2**53-1)),a=r&&E.test(r.source);return i&&a?BigInt(r.source):typeof t==`function`?t(e,n,r):n}),R=(2**53-1).toString(),z=R.length,B=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,V=/^"-?\d+n+"$/,H=(e,t)=>e?F()?L(e,t):k(e.replace(B,(e,t,n,r)=>{let i=e[0]===`"`;if(i&&V.test(e))return e.substring(0,e.length-1)+`n"`;let a=n||r,o=t&&(t.length<z||t.length===z&&t<=R);return i||a||o?e:`"`+e+`n"`}),(e,n,r)=>I(e,n,r,t)):k(e,t);var U=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/,` [REDACTED]`)})),r.url=r.url.replace(/\bclient_secret=\w+/g,`client_secret=[REDACTED]`).replace(/\baccess_token=\w+/g,`access_token=[REDACTED]`),this.request=r}},W=T(),G=`10.0.8`,K={headers:{"user-agent":`octokit-request.js/${G} ${t()}`}};function q(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var J=()=>``;async function Y(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw Error(`fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=q(e.body)||Array.isArray(e.body)?N(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new U(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new U(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await X(o),new U(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await X(o),new U(Q(u.data),s,{response:u,request:e});return u.data=r?await X(o):o.body,u}async function X(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(J);let n=(0,W.safeParse)(t);if(Z(n)){let t=``;try{return t=await e.text(),H(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(J);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function Z(e){return e.type===`application/json`||e.type===`application/scim+json`}function Q(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function $(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return Y(n.parse(r));let i=(e,t)=>Y(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:$.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:$.bind(null,n)})}var te=$(w,K);export{U as n,t as r,te as t};
2
- //# sourceMappingURL=dist-bundle-tsI-uq-K.mjs.map
2
+ //# sourceMappingURL=dist-bundle-CfcllBeA.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./dist-bundle-CfcllBeA.mjs";export{e as request};