@puddle-code/cli 0.2.2 → 0.2.3

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 (144) hide show
  1. package/CHANGELOG.md +10 -13
  2. package/dist/index.js +3 -2
  3. package/dist/public/assets/App-JZgRWo4t.js +2 -0
  4. package/dist/public/assets/Dashboard-DNWLZwxT.js +1 -0
  5. package/dist/public/assets/EditorTabClose-CdpMpKYq.js +1 -0
  6. package/dist/public/assets/LazyTerminal-DVeI2Lkl.js +2 -0
  7. package/dist/public/assets/{ModelRefcount-BNtD7p2m.js → ModelRefcount-ALfiNB9K.js} +1 -1
  8. package/dist/public/assets/NewProjectDialog-RHBHLIQe.js +1 -0
  9. package/dist/public/assets/{PaneEditorBody--HKVd4ce.js → PaneEditorBody-BnTDt5LG.js} +4 -4
  10. package/dist/public/assets/{PdfViewer-DhO008IQ.js → PdfViewer-DZrh-S3Z.js} +2 -2
  11. package/dist/public/assets/SettingsDialog-D-yMKqY9.js +8 -0
  12. package/dist/public/assets/{Terminal-CttD7XcZ.js → Terminal-CoQpOpFQ.js} +22 -22
  13. package/dist/public/assets/Workspace-DhFU_Ltc.js +20 -0
  14. package/dist/public/assets/Workspace-klU-NMuZ.css +1 -0
  15. package/dist/public/assets/{abnfDiagram-VCTEODGH-CTMUfqGq.js → abnfDiagram-VCTEODGH-Bb_QGl6J.js} +1 -1
  16. package/dist/public/assets/architecture-7GRP2DOG-DR2uP7PV.js +1 -0
  17. package/dist/public/assets/{architectureDiagram-5GKGNRK7-B-L0EtRZ.js → architectureDiagram-5GKGNRK7-CF6YHpo7.js} +1 -1
  18. package/dist/public/assets/{blockDiagram-I7D4REHJ-CnmmDFsq.js → blockDiagram-I7D4REHJ-DgUouS8v.js} +1 -1
  19. package/dist/public/assets/{buffer-store-DzO77p-K.js → buffer-store-DcARHjQ8.js} +2 -2
  20. package/dist/public/assets/button-CyO-gAMJ.js +1 -0
  21. package/dist/public/assets/{c4Diagram-7LVT6UL2-DU4HXNd-.js → c4Diagram-7LVT6UL2-CFhvq4-y.js} +1 -1
  22. package/dist/public/assets/channel-CUVxklBM.js +1 -0
  23. package/dist/public/assets/{chunk-2E4U76K2-B8o6iRzd.js → chunk-2E4U76K2-CskNiADZ.js} +1 -1
  24. package/dist/public/assets/{chunk-4HAMMTFA-CfxkhHyC.js → chunk-4HAMMTFA-DY74ei7y.js} +1 -1
  25. package/dist/public/assets/{chunk-75Z2AOVW-D8v_0vko.js → chunk-75Z2AOVW-sHPItT4L.js} +1 -1
  26. package/dist/public/assets/{chunk-CLGD4ZFX-DPBjX4jg.js → chunk-CLGD4ZFX-BbZdl00J.js} +1 -1
  27. package/dist/public/assets/{chunk-DU6HZSFF-CuwQaNw0.js → chunk-DU6HZSFF-BZvHUJoN.js} +1 -1
  28. package/dist/public/assets/{chunk-F27PBJKO-lg02cTVZ.js → chunk-F27PBJKO-C-FJqBSD.js} +1 -1
  29. package/dist/public/assets/{chunk-GMAD6QVW-DICB0y-D.js → chunk-GMAD6QVW-DPkzF1Ic.js} +1 -1
  30. package/dist/public/assets/{chunk-GVQU2GXP-9ghjwcoq.js → chunk-GVQU2GXP-Batc2xZS.js} +1 -1
  31. package/dist/public/assets/{chunk-IMKFNOWR-i_YIFBJX.js → chunk-IMKFNOWR-CAMx72vu.js} +1 -1
  32. package/dist/public/assets/{chunk-L3NEJ4N5-gR7gj1U0.js → chunk-L3NEJ4N5-CuIGdGy-.js} +1 -1
  33. package/dist/public/assets/{chunk-OSK3NFVY-DHyaWigk.js → chunk-OSK3NFVY-uNp8Mp7C.js} +1 -1
  34. package/dist/public/assets/{chunk-P2QGCYS3-ykV2meK0.js → chunk-P2QGCYS3-CoRPhFtM.js} +1 -1
  35. package/dist/public/assets/{chunk-POPQ4Y6H-BfpRTc3s.js → chunk-POPQ4Y6H-DMOCBqAw.js} +1 -1
  36. package/dist/public/assets/{chunk-PWAF6VOD-gWIwGh8g.js → chunk-PWAF6VOD-DOQkLdyp.js} +1 -1
  37. package/dist/public/assets/{chunk-SHT3W25Y-BQ_pTF0Z.js → chunk-SHT3W25Y-BJJe_uau.js} +1 -1
  38. package/dist/public/assets/{chunk-SVP7TREG-SQwLD6DT.js → chunk-SVP7TREG-D5B1jrjj.js} +1 -1
  39. package/dist/public/assets/{chunk-TICWLB2K-B2zBy15L.js → chunk-TICWLB2K-C9NafHGC.js} +1 -1
  40. package/dist/public/assets/{chunk-TLUHSLCS-Bd2UG2tZ.js → chunk-TLUHSLCS-Ctl_RxEM.js} +2 -2
  41. package/dist/public/assets/classDiagram-ZZMXUADV-Cgl1n0Dz.js +1 -0
  42. package/dist/public/assets/classDiagram-v2-VYDZK3BY-Cgl1n0Dz.js +1 -0
  43. package/dist/public/assets/context-menu-BuiHQTu6.js +1 -0
  44. package/dist/public/assets/copy-CGsu8426.js +1 -0
  45. package/dist/public/assets/{cssMode-DqPCL8gS.js → cssMode-DozYXR6g.js} +1 -1
  46. package/dist/public/assets/{cynefin-OW5HDTMX-CSAZrmjo.js → cynefin-OW5HDTMX-gj0lEe4i.js} +1 -1
  47. package/dist/public/assets/{cynefinDiagram-5FMLGOSQ-CGKlzaPC.js → cynefinDiagram-5FMLGOSQ-lYCffbhY.js} +1 -1
  48. package/dist/public/assets/{dagre-GXQ25YYZ-CgRwIpkl.js → dagre-GXQ25YYZ-DyYVAAw7.js} +1 -1
  49. package/dist/public/assets/{diagram-S7CK7UJ4-BMP1KOBu.js → diagram-S7CK7UJ4-Dop5OEsZ.js} +1 -1
  50. package/dist/public/assets/{diagram-UQ7AKVKN-DNcOIF4W.js → diagram-UQ7AKVKN-B5qxPK0m.js} +1 -1
  51. package/dist/public/assets/{diagram-VSXAHHWV-BGdHvK5Q.js → diagram-VSXAHHWV-zvsxaxBC.js} +1 -1
  52. package/dist/public/assets/{diagram-VX7I27RA-F7PfwNlr.js → diagram-VX7I27RA-S7nRhoRV.js} +1 -1
  53. package/dist/public/assets/{diagram-Z3DM3KII-CPE4T9mi.js → diagram-Z3DM3KII-C_jkP2wb.js} +1 -1
  54. package/dist/public/assets/dialog-D6I1fiX4.js +41 -0
  55. package/dist/public/assets/disclosure-Dn2Pws0i.js +1 -0
  56. package/dist/public/assets/dist-Dt0LZb5E.js +1 -0
  57. package/dist/public/assets/dist-tn5vjhJE.js +1 -0
  58. package/dist/public/assets/{ebnfDiagram-PWID7BFC-CqTR9kTI.js → ebnfDiagram-PWID7BFC-B1OmWQdM.js} +1 -1
  59. package/dist/public/assets/{erDiagram-RLTQ6QDP-CVqix4AT.js → erDiagram-RLTQ6QDP-DJKky3Wx.js} +1 -1
  60. package/dist/public/assets/eventmodeling-NTZA5JFV-mkLPvEKM.js +1 -0
  61. package/dist/public/assets/flowDiagram-HODETNUW-O3VTLiVc.js +1 -0
  62. package/dist/public/assets/{ganttDiagram-EL5Y4UJY-CFSX0WK6.js → ganttDiagram-EL5Y4UJY-qEYH72Jx.js} +1 -1
  63. package/dist/public/assets/{gitGraph-4MIJSDKK-Doy-w5G0.js → gitGraph-4MIJSDKK-DlVqGPr_.js} +1 -1
  64. package/dist/public/assets/{gitGraphDiagram-WWUBYQGX-fQM29HOw.js → gitGraphDiagram-WWUBYQGX-DjfCMlWr.js} +1 -1
  65. package/dist/public/assets/{hotkeys-DQNqRgOb.js → hotkeys-Bx0QQoOi.js} +1 -1
  66. package/dist/public/assets/{htmlMode-DE4OLLtJ.js → htmlMode-DlKAkkNW.js} +1 -1
  67. package/dist/public/assets/index-Ctw2P0rY.css +2 -0
  68. package/dist/public/assets/{index-CmEI98Do.js → index-DWTNflld.js} +3 -3
  69. package/dist/public/assets/{info-A6RAGUB7-DPiPYEQe.js → info-A6RAGUB7-CH2cc1Sk.js} +1 -1
  70. package/dist/public/assets/{infoDiagram-27XIBGKW-DY5LKiBl.js → infoDiagram-27XIBGKW-QLQ5mJz6.js} +1 -1
  71. package/dist/public/assets/input-CWrHR6Ba.js +1 -0
  72. package/dist/public/assets/{ishikawaDiagram-5VMMS53U-DwSURfQE.js → ishikawaDiagram-5VMMS53U-Dgd8STMm.js} +1 -1
  73. package/dist/public/assets/{journeyDiagram-3NMN7TZE-B0OCkFis.js → journeyDiagram-3NMN7TZE-BaIBwMwN.js} +1 -1
  74. package/dist/public/assets/{jsonMode-F58eqVfl.js → jsonMode-B-xhmxpv.js} +1 -1
  75. package/dist/public/assets/{kanban-definition-UXKFOSKX-CAQw3qWz.js → kanban-definition-UXKFOSKX-DUwkSFm5.js} +1 -1
  76. package/dist/public/assets/{line-Bcu_KJDQ.js → line-DBd--km9.js} +1 -1
  77. package/dist/public/assets/{media-refresh-store-B8Wdlks-.js → media-refresh-store-C2PF6Nl9.js} +1 -1
  78. package/dist/public/assets/{mermaid-parser.core-PSjhnHbq.js → mermaid-parser.core-CH9r0Plq.js} +3 -3
  79. package/dist/public/assets/{mermaid.core-CVDKsXhB.js → mermaid.core-Dx4uf1Og.js} +3 -3
  80. package/dist/public/assets/{mindmap-definition-YA3MSWOX-CVAY5896.js → mindmap-definition-YA3MSWOX-DFlzr0Rk.js} +1 -1
  81. package/dist/public/assets/notification-permission-BJ5Ee1QS.js +1 -0
  82. package/dist/public/assets/{packet-AYTQ26CC-CTdFnPq7.js → packet-AYTQ26CC-BoGgl5A0.js} +1 -1
  83. package/dist/public/assets/{pdf-CNnH2qu8.js → pdf-CIIeLqAE.js} +1 -1
  84. package/dist/public/assets/{pegDiagram-XKGWAZYB-DjAvebfq.js → pegDiagram-XKGWAZYB-dBubzdqe.js} +1 -1
  85. package/dist/public/assets/{pie-WAS4IAKB-DGj7H0HD.js → pie-WAS4IAKB-C8Ujmmnq.js} +1 -1
  86. package/dist/public/assets/{pieDiagram-E7YTZNPT-ZsMHxQiN.js → pieDiagram-E7YTZNPT-BarO3dDM.js} +1 -1
  87. package/dist/public/assets/{project-abbrev-CaGbOWtr.js → project-abbrev-BlBz9tcM.js} +1 -1
  88. package/dist/public/assets/{quadrantDiagram-AXDQQJYC-DVxSJgm4.js → quadrantDiagram-AXDQQJYC-Bq7mziYZ.js} +1 -1
  89. package/dist/public/assets/{radar-RG4KPBEZ-D7tOXZhy.js → radar-RG4KPBEZ-CSOiAaDJ.js} +1 -1
  90. package/dist/public/assets/{railroad-74A4TZTK-EI9jAf_f.js → railroad-74A4TZTK-B72WpbJE.js} +1 -1
  91. package/dist/public/assets/railroad-abnf-HS5TGJTU-6aqbSR4_.js +1 -0
  92. package/dist/public/assets/railroad-ebnf-LZEXJU2U-DSe-edrj.js +1 -0
  93. package/dist/public/assets/railroad-peg-WCYAUIDC-CxQjyuGw.js +1 -0
  94. package/dist/public/assets/{railroadDiagram-O6MQD6OU-uqpSPQV1.js → railroadDiagram-O6MQD6OU-CdpFpJTq.js} +1 -1
  95. package/dist/public/assets/{requirementDiagram-BXWQKSXE-BlP0G3V7.js → requirementDiagram-BXWQKSXE-D5gAf9X3.js} +1 -1
  96. package/dist/public/assets/{sankeyDiagram-P5KCCOFB-BcxykWWD.js → sankeyDiagram-P5KCCOFB-CWGxwWQO.js} +1 -1
  97. package/dist/public/assets/{sequenceDiagram-WJ2MYXX4-BleK5ON1.js → sequenceDiagram-WJ2MYXX4-D4OU6YFv.js} +1 -1
  98. package/dist/public/assets/{stateDiagram-D77RDMKH-C3Ojitqe.js → stateDiagram-D77RDMKH-DL34KHS6.js} +1 -1
  99. package/dist/public/assets/stateDiagram-v2-MP3YSRHH-C86Q0rld.js +1 -0
  100. package/dist/public/assets/{swimlanes-42K2YHIH-Bebu_xn2.js → swimlanes-42K2YHIH-ClnyergN.js} +1 -1
  101. package/dist/public/assets/swimlanesDiagram-VR7AAH4N-TVdovaZm.js +8 -0
  102. package/dist/public/assets/switch-JLAneJz1.js +1 -0
  103. package/dist/public/assets/{timeline-definition-24CTP7MA-BKUpL8jk.js → timeline-definition-24CTP7MA-Bouu1PMd.js} +1 -1
  104. package/dist/public/assets/{treeView-Q6P3EWNA-C7zCIwpV.js → treeView-Q6P3EWNA-OLbwx3G_.js} +1 -1
  105. package/dist/public/assets/{treemap-WGGIJYW6-6M3fRwft.js → treemap-WGGIJYW6-BWtOLy1c.js} +1 -1
  106. package/dist/public/assets/{tsMode-DQRFLRMD.js → tsMode-BChcsbnx.js} +1 -1
  107. package/dist/public/assets/{use-find-controls-SI1t9mHH.js → use-find-controls-DEA0SpBh.js} +1 -1
  108. package/dist/public/assets/use-ui-state-xRIsbDTY.js +1 -0
  109. package/dist/public/assets/{vennDiagram-4TSXK5OY-DxK4ozKb.js → vennDiagram-4TSXK5OY-B7Iv-Yti.js} +1 -1
  110. package/dist/public/assets/{wardley-WFR3VGLG-B2zERAcS.js → wardley-WFR3VGLG-bREi8xGw.js} +1 -1
  111. package/dist/public/assets/{wardleyDiagram-VM6X3IG4-Ctiwf9vH.js → wardleyDiagram-VM6X3IG4-BCZ7iNOW.js} +1 -1
  112. package/dist/public/assets/{ws-DK8JadaZ.js → ws-BzWidrUz.js} +1 -1
  113. package/dist/public/assets/{xychartDiagram-S5SC5T6Z-CxqvnL8v.js → xychartDiagram-S5SC5T6Z-eLBpE0yW.js} +1 -1
  114. package/dist/public/index.html +2 -2
  115. package/package.json +1 -1
  116. package/dist/public/assets/App-DYF0TQ7N.js +0 -2
  117. package/dist/public/assets/Dashboard-BLWy1kHm.js +0 -1
  118. package/dist/public/assets/EditorTabClose-CtInp1cT.js +0 -1
  119. package/dist/public/assets/LazyTerminal-BrJnGoEX.js +0 -2
  120. package/dist/public/assets/NewProjectDialog-BHIvFpCo.js +0 -1
  121. package/dist/public/assets/SettingsDialog-rfDhJoO1.js +0 -8
  122. package/dist/public/assets/Workspace-BB4IS8EP.js +0 -20
  123. package/dist/public/assets/Workspace-DgLBQU_0.css +0 -1
  124. package/dist/public/assets/architecture-7GRP2DOG-D65OB2im.js +0 -1
  125. package/dist/public/assets/channel-DDYJkwWS.js +0 -1
  126. package/dist/public/assets/classDiagram-ZZMXUADV-DiYOyJFb.js +0 -1
  127. package/dist/public/assets/classDiagram-v2-VYDZK3BY-DiYOyJFb.js +0 -1
  128. package/dist/public/assets/context-menu-Brk2htuk.js +0 -1
  129. package/dist/public/assets/dialog-B08M5Cgz.js +0 -41
  130. package/dist/public/assets/disclosure-Bc6Ydabz.js +0 -1
  131. package/dist/public/assets/dist-CE40EiFY.js +0 -1
  132. package/dist/public/assets/dist-w0M7y9KX.js +0 -1
  133. package/dist/public/assets/eventmodeling-NTZA5JFV-BoPTLqKJ.js +0 -1
  134. package/dist/public/assets/flowDiagram-HODETNUW-2TNtc6rJ.js +0 -1
  135. package/dist/public/assets/index-CQ-7fSnd.css +0 -2
  136. package/dist/public/assets/input-CRHttNr9.js +0 -1
  137. package/dist/public/assets/notification-permission-CbLpN3ev.js +0 -1
  138. package/dist/public/assets/railroad-abnf-HS5TGJTU-DnezvAFa.js +0 -1
  139. package/dist/public/assets/railroad-ebnf-LZEXJU2U-DHOzgi4x.js +0 -1
  140. package/dist/public/assets/railroad-peg-WCYAUIDC-C28W4OGa.js +0 -1
  141. package/dist/public/assets/stateDiagram-v2-MP3YSRHH-KLRu_NXG.js +0 -1
  142. package/dist/public/assets/swimlanesDiagram-VR7AAH4N-BmvrlXmd.js +0 -8
  143. package/dist/public/assets/switch-CaIM4dwn.js +0 -1
  144. package/dist/public/assets/use-ui-state-D-3P_8P_.js +0 -1
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{n}from"./index-CmEI98Do.js";import{o as r}from"./dist-CE40EiFY.js";import{St as i,Tt as a,m as o,xt as s}from"./hotkeys-DQNqRgOb.js";import{A as c,C as l,D as u,T as d,_ as f,a as p,d as ee,f as te,g as ne,k as m,m as re,n as ie,o as ae,p as oe,r as se,t as ce,v as le,x as ue,y as de}from"./dialog-B08M5Cgz.js";import{_ as fe,g as pe,h,o as me,t as he,v as ge,y as g}from"./LazyTerminal-BrJnGoEX.js";import{c as _e,f as ve,s as ye}from"./switch-CaIM4dwn.js";import{n as _}from"./x-CZCUod6A.js";import{t as v}from"./createLucideIcon-DyMAgLa3.js";var be=v(`anchor`,[[`path`,{d:`M12 6v16`,key:`nqf5sj`}],[`path`,{d:`m19 13 2-1a9 9 0 0 1-18 0l2 1`,key:`y7qv08`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),xe=v(`bike`,[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]),Se=v(`bird`,[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]),Ce=v(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),we=v(`book`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Te=v(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),Ee=v(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),De=v(`cake`,[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]),Oe=v(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),y=v(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]),b=v(`cat`,[[`path`,{d:`M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z`,key:`x6xyqk`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M11.25 16.25h1.5L12 17l-.75-.75Z`,key:`12kq1m`}]]),x=v(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),S=v(`coffee`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]),C=v(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),w=v(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),T=v(`dog`,[[`path`,{d:`M11.25 16.25h1.5L12 17z`,key:`w7jh35`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309`,key:`u7s9ue`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5`,key:`v8hric`}]]),ke=v(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),Ae=v(`feather`,[[`path`,{d:`M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z`,key:`18jl4k`}],[`path`,{d:`M16 8 2 22`,key:`vp34q`}],[`path`,{d:`M17.5 15H9`,key:`1oz8nu`}]]),je=v(`fish`,[[`path`,{d:`M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z`,key:`15baut`}],[`path`,{d:`M18 12v.5`,key:`18hhni`}],[`path`,{d:`M16 17.93a9.77 9.77 0 0 1 0-11.86`,key:`16dt7o`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33`,key:`l9di03`}],[`path`,{d:`M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4`,key:`1kjonw`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98`,key:`1zlm23`}]]),Me=v(`flame`,[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]),Ne=v(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),Pe=v(`flower`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5`,key:`14wa3c`}],[`path`,{d:`M12 7.5V9`,key:`1oy5b0`}],[`path`,{d:`M7.5 12H9`,key:`eltsq1`}],[`path`,{d:`M16.5 12H15`,key:`vk5kw4`}],[`path`,{d:`M12 16.5V15`,key:`k7eayi`}],[`path`,{d:`m8 8 1.88 1.88`,key:`nxy4qf`}],[`path`,{d:`M14.12 9.88 16 8`,key:`1lst6k`}],[`path`,{d:`m8 16 1.88-1.88`,key:`h2eex1`}],[`path`,{d:`M14.12 14.12 16 16`,key:`uqkrx3`}]]),Fe=v(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),Ie=v(`gem`,[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]),Le=v(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),Re=v(`gift`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]),ze=v(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Be=v(`guitar`,[[`path`,{d:`m11.9 12.1 4.514-4.514`,key:`109xqo`}],[`path`,{d:`M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z`,key:`txyc8t`}],[`path`,{d:`m6 16 2 2`,key:`16qmzd`}],[`path`,{d:`M8.23 9.85A3 3 0 0 1 11 8a5 5 0 0 1 5 5 3 3 0 0 1-1.85 2.77l-.92.38A2 2 0 0 0 12 18a4 4 0 0 1-4 4 6 6 0 0 1-6-6 4 4 0 0 1 4-4 2 2 0 0 0 1.85-1.23z`,key:`1de1vg`}]]),Ve=v(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),He=v(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Ue=v(`ice-cream-cone`,[[`path`,{d:`m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11`,key:`1v6356`}],[`path`,{d:`M17 7A5 5 0 0 0 7 7`,key:`151p3v`}],[`path`,{d:`M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4`,key:`1sdaij`}]]),We=v(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Ge=v(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),Ke=v(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),E=v(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),qe=v(`mountain-snow`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}],[`path`,{d:`M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19`,key:`1pvmmp`}]]),Je=v(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),Ye=v(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),D=v(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Xe=v(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),Ze=v(`pizza`,[[`path`,{d:`m12 14-1 1`,key:`11onhr`}],[`path`,{d:`m13.75 18.25-1.25 1.42`,key:`1yisr3`}],[`path`,{d:`M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12`,key:`1qtqk6`}],[`path`,{d:`M18.8 9.3a1 1 0 0 0 2.1 7.7`,key:`fbbbr2`}],[`path`,{d:`M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z`,key:`1hyfdd`}]]),Qe=v(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),$e=v(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),et=v(`rabbit`,[[`path`,{d:`M13 16a3 3 0 0 1 2.24 5`,key:`1epib5`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3`,key:`ue9ozu`}],[`path`,{d:`M20 8.54V4a2 2 0 1 0-4 0v3`,key:`49iql8`}],[`path`,{d:`M7.612 12.524a3 3 0 1 0-1.6 4.3`,key:`1e33i0`}]]),tt=v(`rainbow`,[[`path`,{d:`M22 17a10 10 0 0 0-20 0`,key:`ozegv`}],[`path`,{d:`M6 17a6 6 0 0 1 12 0`,key:`5giftw`}],[`path`,{d:`M10 17a2 2 0 0 1 4 0`,key:`gnsikk`}]]),nt=v(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),rt=v(`sailboat`,[[`path`,{d:`M10 2v15`,key:`1qf71f`}],[`path`,{d:`M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z`,key:`1pxcvx`}],[`path`,{d:`M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z`,key:`5oog16`}]]),it=v(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),at=v(`snail`,[[`path`,{d:`M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0`,key:`hneq2s`}],[`circle`,{cx:`10`,cy:`13`,r:`8`,key:`194lz3`}],[`path`,{d:`M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6`,key:`ixqyt7`}],[`path`,{d:`M18 3 19.1 5.2`,key:`9tjm43`}],[`path`,{d:`M22 3 20.9 5.2`,key:`j3odrs`}]]),ot=v(`snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6h-4`,key:`15hhxa`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`M22 12h-6.5L14 15`,key:`1mxi28`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h4`,key:`1otusx`}]]),st=v(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),ct=v(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),lt=v(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),O=v(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),ut=v(`tent`,[[`path`,{d:`M3.5 21 14 3`,key:`1szst5`}],[`path`,{d:`M20.5 21 10 3`,key:`1310c3`}],[`path`,{d:`M15.5 21 12 15l-3.5 6`,key:`1ddtfw`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}]]),dt=v(`train-front`,[[`path`,{d:`M8 3.1V7a4 4 0 0 0 8 0V3.1`,key:`1v71zp`}],[`path`,{d:`m9 15-1-1`,key:`1yrq24`}],[`path`,{d:`m15 15 1-1`,key:`1t0d6s`}],[`path`,{d:`M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z`,key:`1p0hjs`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m16 19 2 3`,key:`xo31yx`}]]),ft=v(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),pt=v(`trees`,[[`path`,{d:`M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z`,key:`1l6gj6`}],[`path`,{d:`M7 16v6`,key:`1a82de`}],[`path`,{d:`M13 19v3`,key:`13sx9i`}],[`path`,{d:`M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5`,key:`1sj9kv`}]]),mt=v(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),ht=v(`turtle`,[[`path`,{d:`m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z`,key:`1lbbv7`}],[`path`,{d:`M4.82 7.9 8 10`,key:`m9wose`}],[`path`,{d:`M15.18 7.9 12 10`,key:`p8dp2u`}],[`path`,{d:`M16.93 10H20a2 2 0 0 1 0 4H2`,key:`12nsm7`}]]),gt=v(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),k=[{name:`mountain`,Icon:Je},{name:`mountain-snow`,Icon:qe},{name:`tree-pine`,Icon:ft},{name:`trees`,Icon:pt},{name:`leaf`,Icon:Ge},{name:`flower`,Icon:Pe},{name:`flower-2`,Icon:Ne},{name:`sprout`,Icon:ct},{name:`sun`,Icon:O},{name:`moon`,Icon:E},{name:`star`,Icon:lt},{name:`cloud`,Icon:x},{name:`snowflake`,Icon:ot},{name:`zap`,Icon:ye},{name:`flame`,Icon:Me},{name:`droplet`,Icon:ke},{name:`rainbow`,Icon:tt},{name:`wind`,Icon:gt},{name:`bird`,Icon:Se},{name:`fish`,Icon:je},{name:`cat`,Icon:b},{name:`dog`,Icon:T},{name:`rabbit`,Icon:et},{name:`turtle`,Icon:ht},{name:`bug`,Icon:Ee},{name:`snail`,Icon:at},{name:`paw-print`,Icon:Xe},{name:`feather`,Icon:Ae},{name:`rocket`,Icon:nt},{name:`anchor`,Icon:be},{name:`compass`,Icon:C},{name:`map`,Icon:Ke},{name:`tent`,Icon:ut},{name:`camera`,Icon:Oe},{name:`music`,Icon:Ye},{name:`headphones`,Icon:Ve},{name:`palette`,Icon:D},{name:`brush`,Icon:Te},{name:`pencil`,Icon:me},{name:`book`,Icon:we},{name:`book-open`,Icon:Ce},{name:`coffee`,Icon:S},{name:`pizza`,Icon:Ze},{name:`ice-cream-cone`,Icon:Ue},{name:`cake`,Icon:De},{name:`gift`,Icon:Re},{name:`gamepad-2`,Icon:Fe},{name:`puzzle`,Icon:$e},{name:`bike`,Icon:xe},{name:`car`,Icon:y},{name:`plane`,Icon:Qe},{name:`ship`,Icon:it},{name:`sailboat`,Icon:rt},{name:`train-front`,Icon:dt},{name:`heart`,Icon:He},{name:`sparkles`,Icon:st},{name:`crown`,Icon:w},{name:`gem`,Icon:Ie},{name:`trophy`,Icon:mt},{name:`ghost`,Icon:Le},{name:`bot`,Icon:ve},{name:`globe`,Icon:ze},{name:`guitar`,Icon:Be}],_t=Object.fromEntries(k.map(e=>[e.name,e.Icon])),A=n(),vt={navy:`text-fg`,gold:`text-fg-gold`,blue:`text-icon-blue`,green:`text-icon-green`,amber:`text-icon-amber`,red:`text-icon-red`,violet:`text-icon-violet`,cyan:`text-icon-cyan`,accent:`text-accent`};function j(e){return e&&vt[e]||``}function yt({icon:e,colour:t,className:n}){let r=_(`size-4 shrink-0`,t?j(t):`text-fg-muted`,n);return(0,A.jsx)(e&&_t[e]||_e,{className:r})}var M=e(t(),1),N=`Popover`,[P,bt]=u(N,[g]),F=g(),[xt,I]=P(N),L=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=F(t),c=M.useRef(null),[l,u]=M.useState(!1),[d,f]=ne({prop:r,defaultProp:i??!1,onChange:a,caller:N});return(0,A.jsx)(ge,{...s,children:(0,A.jsx)(xt,{scope:t,contentId:de(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:M.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:M.useCallback(()=>u(!0),[]),onCustomAnchorRemove:M.useCallback(()=>u(!1),[]),modal:o,children:n})})};L.displayName=N;var R=`PopoverAnchor`,St=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(R,n),a=F(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return M.useEffect(()=>(o(),()=>s()),[o,s]),(0,A.jsx)(h,{...a,...r,ref:t})});St.displayName=R;var z=`PopoverTrigger`,B=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(z,n),a=F(n),o=m(t,i.triggerRef),s=(0,A.jsx)(l.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":q(i.open),...r,ref:o,onClick:c(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,A.jsx)(h,{asChild:!0,...a,children:s})});B.displayName=z;var V=`PopoverPortal`,[Ct,wt]=P(V,{forceMount:void 0}),H=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=I(V,t);return(0,A.jsx)(Ct,{scope:t,forceMount:n,children:(0,A.jsx)(f,{present:n||a.open,children:(0,A.jsx)(le,{asChild:!0,container:i,children:r})})})};H.displayName=V;var U=`PopoverContent`,W=M.forwardRef((e,t)=>{let n=wt(U,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=I(U,e.__scopePopover);return(0,A.jsx)(f,{present:r||a.open,children:a.modal?(0,A.jsx)(Et,{...i,ref:t}):(0,A.jsx)(Dt,{...i,ref:t})})});W.displayName=U;var Tt=d(`PopoverContent.RemoveScroll`),Et=M.forwardRef((e,t)=>{let n=I(U,e.__scopePopover),r=M.useRef(null),i=m(t,r),a=M.useRef(!1);return M.useEffect(()=>{let e=r.current;if(e)return ee(e)},[]),(0,A.jsx)(te,{as:Tt,allowPinchZoom:!0,children:(0,A.jsx)(G,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Dt=M.forwardRef((e,t)=>{let n=I(U,e.__scopePopover),r=M.useRef(!1),i=M.useRef(!1);return(0,A.jsx)(G,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),G=M.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=I(U,n),p=F(n);return oe(),(0,A.jsx)(re,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,A.jsx)(ue,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,A.jsx)(fe,{"data-state":q(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),K=`PopoverClose`,Ot=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(K,n);return(0,A.jsx)(l.button,{type:`button`,...r,ref:t,onClick:c(e.onClick,()=>i.onOpenChange(!1))})});Ot.displayName=K;var kt=`PopoverArrow`,At=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=F(n);return(0,A.jsx)(pe,{...i,...r,ref:t})});At.displayName=kt;function q(e){return e?`open`:`closed`}var jt=L,Mt=B,Nt=H,Pt=W,Ft=jt,It=Mt;function Lt({className:e,align:t=`end`,sideOffset:n=8,...r}){return(0,A.jsx)(Nt,{children:(0,A.jsx)(Pt,{align:t,sideOffset:n,className:_(`z-50 rounded-lg bg-elevated p-5 shadow-2xl outline-none`,e),...r})})}function Rt({stream:e,label:t,hint:n,onClose:r}){let[i,a]=(0,M.useState)(null);return(0,A.jsx)(ce,{open:!0,onOpenChange:e=>!e&&r(),children:(0,A.jsxs)(ie,{className:`h-[85vh] max-w-[calc(100vw-4rem)]`,children:[(0,A.jsxs)(p,{children:[(0,A.jsxs)(ae,{children:[t,` — login`]}),(0,A.jsx)(se,{children:i===null?`Complete the agent’s login flow below.${n===void 0?` The account shows as logged in once it finishes cleanly.`:` ${n}`}`:`The login exited with code ${i} without completing. The output above may say why; close this and try again.`})]}),(0,A.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden rounded-md bg-ground p-1`,children:(0,A.jsx)(he,{stream:e,onExit:e=>e===0?r():a(e)})})]})})}var J=e=>e&&typeof e==`object`?e:{},Y=[{id:`appearance`,label:`Appearance`,fields:[{key:`theme`,store:`theme`},{key:`cursorPackage`,store:`client`},{key:`uiFontSize`,store:`client`},{key:`terminalFontSize`,store:`client`},{key:`editorFontSize`,store:`client`},{key:`density`,store:`client`},{key:`terminalScrollback`,store:`client`},{key:`projectBasedLayout`,store:`client`},{key:`showAllProjectSessions`,store:`client`}]},{id:`profile`,label:`Profile`,fields:[{key:`branch_prefix`,store:`profileColumn`},{key:`icon`,store:`profileColumn`},{key:`icon_colour`,store:`profileColumn`}]},{id:`sessions`,label:`Sessions`,fields:[{key:`onboardingTemplate`,store:`profileSettings`},{key:`concurrentTemplate`,store:`profileSettings`},{key:`restartTemplate`,store:`profileSettings`},{key:`tabTitleTemplate`,store:`profileSettings`},{key:`sessionDefaults`,store:`profileSettings`},{key:`allowSkipPermissions`,store:`profileSettings`},{key:`captureSessionEnv`,store:`profileSettings`}]},{id:`editor`,label:`Editor`,fields:[{key:`editorTabSize`,store:`client`},{key:`editorWordWrap`,store:`client`},{key:`editorLinkSshHost`,store:`client`}]},{id:`hotkeys`,label:`Hotkeys`,fields:[{key:`hotkeys`,store:`profileSettings`}]},{id:`notifications`,label:`Notifications`,fields:[{key:`notifications`,store:`profileSettings`,pick:e=>{let{desktop:t,sound:n}=J(e);return{desktop:t,sound:n}},mergeInto:(e,t)=>({...J(t),...J(e)})}]},{id:`scratchpad`,label:`Scratchpad (profile-wide entries)`,fields:[{key:`entries`,store:`scratchpad`}]}];function X(e){return e.filter(e=>e.scope===`profile`).map(e=>({title:e.title,body:e.body,tags:e.tags,agent_type:e.agent_type}))}function Z(e){return JSON.stringify([e.title??``,e.body,e.tags,e.agent_type??``])}function zt(e,t){if(!Array.isArray(e))return[];let n=new Set(X(t).map(Z)),r=new Set,i=[];for(let t of e){let e=J(t);if(typeof e.body!=`string`||e.body.length===0)continue;let a={title:typeof e.title==`string`&&e.title!==``?e.title:null,body:e.body,tags:Array.isArray(e.tags)?e.tags.filter(e=>typeof e==`string`):[],agent_type:typeof e.agent_type==`string`?e.agent_type:null},o=Z(a);n.has(o)||r.has(o)||(r.add(o),i.push(a))}return i}function Bt(e,t){switch(e.store){case`client`:return t.client[e.key];case`theme`:return t.theme;case`profileSettings`:return t.profileSettings[e.key];case`profileColumn`:return t.profile[e.key];case`scratchpad`:return X(t.scratchpad)}}function Q(e,t){let n={};for(let r of Y){if(!e.includes(r.id))continue;let i={};for(let e of r.fields){let n=Bt(e,t);n!==void 0&&(i[e.key]=e.pick?e.pick(n):n)}Object.keys(i).length>0&&(n[r.id]=i)}return n}function Vt(e,t,n,r){if(!e||typeof e!=`object`)return[];let i=e,a={},o={},s={},c=[];for(let e of Y){if(r&&!r.includes(e.id))continue;let l=i[e.id];if(!l||typeof l!=`object`)continue;let u=l,d=!1;for(let r of e.fields){if(!(r.key in u))continue;let e=u[r.key];if(r.store===`scratchpad`){let r=zt(e,n.scratchpad);r.length>0&&(t.createScratchpad(r),d=!0);continue}d=!0;let i=r.mergeInto?r.mergeInto(e,r.store===`profileSettings`?n.profileSettings[r.key]:void 0):e;r.store===`client`?a[r.key]=i:r.store===`theme`?t.setTheme(i):r.store===`profileSettings`?o[r.key]=i:s[r.key]=i}d&&c.push(e.label)}return Object.keys(a).length>0&&t.setClient(a),Object.keys(o).length>0&&t.patchProfileSettings(o),Object.keys(s).length>0&&t.patchProfileColumns(s),c}var $={version:1,profiles:{}};function Ht(e,t){return e.profiles[t]??{enabled:!0,groups:Y.map(e=>e.id),doc:{},updatedAt:new Date(0).toISOString()}}async function Ut(){try{let e=await fetch(`/cockpit/local-sync`,{headers:r(),cache:`no-store`});return e.ok?{available:!0,file:await e.json()}:{available:!1,file:$}}catch{return{available:!1,file:$}}}function Wt(){return i({queryKey:[`local-sync`],queryFn:Ut,staleTime:5e3,refetchOnWindowFocus:!0,retry:!1})}function Gt(){let e=a();return s({mutationFn:async e=>{let t=await fetch(`/cockpit/local-sync`,{method:`PUT`,headers:{...r(),"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok)throw Error(`The local sync store did not accept the write.`);return await t.json()},onSuccess:t=>e.setQueryData([`local-sync`],{available:!0,file:t})})}function Kt(){return typeof Notification>`u`?`unsupported`:o()?`granted`:Notification.permission}export{E as _,Y as a,Rt as c,It as d,yt as f,D as g,O as h,Gt as i,Ft as l,k as m,Ht as n,Vt as o,j as p,Wt as r,Q as s,Kt as t,Lt as u,We as v};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{m as e}from"./mermaid-parser.core-PSjhnHbq.js";export{e as createRailroadAbnfServices};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{f as e}from"./mermaid-parser.core-PSjhnHbq.js";export{e as createRailroadEbnfServices};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{u as e}from"./mermaid-parser.core-PSjhnHbq.js";export{e as createRailroadPegServices};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-CuwQaNw0.js";import"./chunk-75Z2AOVW-D8v_0vko.js";import"./chunk-PWAF6VOD-gWIwGh8g.js";import"./chunk-GMAD6QVW-DICB0y-D.js";import"./chunk-P2QGCYS3-ykV2meK0.js";import"./chunk-4HAMMTFA-CfxkhHyC.js";import"./chunk-GVQU2GXP-9ghjwcoq.js";import"./chunk-OSK3NFVY-DHyaWigk.js";import"./chunk-F27PBJKO-lg02cTVZ.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-BfpRTc3s.js";import"./chunk-L3NEJ4N5-gR7gj1U0.js";import"./chunk-TLUHSLCS-Bd2UG2tZ.js";import{i as t,n,r,t as i}from"./chunk-IMKFNOWR-i_YIFBJX.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -1,8 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-CuwQaNw0.js";import"./chunk-75Z2AOVW-D8v_0vko.js";import"./chunk-PWAF6VOD-gWIwGh8g.js";import"./chunk-GMAD6QVW-DICB0y-D.js";import"./chunk-P2QGCYS3-ykV2meK0.js";import"./chunk-4HAMMTFA-CfxkhHyC.js";import"./chunk-GVQU2GXP-9ghjwcoq.js";import"./chunk-OSK3NFVY-DHyaWigk.js";import"./chunk-F27PBJKO-lg02cTVZ.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-BfpRTc3s.js";import"./chunk-L3NEJ4N5-gR7gj1U0.js";import"./chunk-TLUHSLCS-Bd2UG2tZ.js";import"./chunk-LNGE3PJU-DNNNwF8Y.js";import{r as t,t as n}from"./chunk-SHT3W25Y-BQ_pTF0Z.js";var r=n({defaultLayout:`swimlane`,styles:e(e=>`${t(e)}
2
- .swimlane.cluster rect {
3
- stroke: ${e.clusterBorder} !important;
4
- }
5
- [data-look="neo"].cluster rect {
6
- filter: none;
7
- }
8
- `,`getStyles`)});export{r as diagram};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{n,q as r}from"./index-CmEI98Do.js";import{A as i,C as a,D as o,g as s,k as c}from"./dialog-B08M5Cgz.js";import{b as l}from"./LazyTerminal-BrJnGoEX.js";import{n as u}from"./x-CZCUod6A.js";import{t as d}from"./createLucideIcon-DyMAgLa3.js";var f=e(t(),1),p=n(),m=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),h=`VisuallyHidden`,g=f.forwardRef((e,t)=>(0,p.jsx)(a.span,{...e,ref:t,style:{...m,...e.style}}));g.displayName=h;var _=g,v=d(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),y=d(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),b=d(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),x=d(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),S=d(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),C=d(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),w=new Set;function T(e){let t=/^#settings\/([\w-]+)$/.exec(e);return t?t[1]:null}var E=T(window.location.hash);function D(){let e=E?`#settings/${E}`:``;window.location.hash!==e&&history.replaceState(null,``,window.location.pathname+window.location.search+e)}function O(e){if(e!==E){E=e;for(let e of w)e()}queueMicrotask(D)}window.addEventListener(`hashchange`,()=>O(T(window.location.hash))),window.addEventListener(`popstate`,()=>O(T(window.location.hash)));function k(){return(0,f.useSyncExternalStore)(e=>(w.add(e),()=>{w.delete(e)}),()=>E)}function A(e=`appearance`){O(e)}function j(){O(null)}function M(e){return e.title??e.agent_title??e.osc_title??e.id.slice(0,8)}var N=` — `;function P(e){return e.replace(/\/+$/,``).split(`/`).pop()??``}function F(e){return{name:M(e),title:e.title??``,agentName:e.agent_title??``,sequence:e.osc_title??``,branch:e.branch,cwd:P(e.worktree_path),id:e.id.slice(0,8),status:e.status,agent:e.agent_type??``}}function I(e,t){let n=t&&t.length>0?t:r,i=F(e),a=[];for(let e of n.split(/(\$\{[a-zA-Z]+\})/)){if(e===``)continue;let t=/^\$\{([a-zA-Z]+)\}$/.exec(e)?.[1];t===void 0?a.push({text:e,sep:!1}):t===`separator`?a.push({text:N,sep:!0}):a.push({text:i[t]??e,sep:!1})}let o=[];a.forEach((e,t)=>{if(!e.sep){o.push(e.text);return}let n=o.join(``).trim().length>0,r=a.slice(t+1).some(e=>!e.sep&&e.text.trim().length>0);n&&r&&o.push(e.text)});let s=o.join(``).trim();return s.length>0?s:e.id.slice(0,8)}function L(e){let t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var R=`Switch`,[z,B]=o(R),[V,H]=z(R);function U(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:c,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:m}=e,[h,g]=s({prop:n,defaultProp:i??!1,onChange:l,caller:R}),[_,v]=f.useState(null),[y,b]=f.useState(null),x={checked:h,setChecked:g,disabled:a,control:_,setControl:v,name:c,form:o,value:d,hasConsumerStoppedPropagationRef:f.useRef(!1),required:u,defaultChecked:i,isFormControl:!_||!!o||!!_.closest(`form`),bubbleInput:y,setBubbleInput:b};return(0,p.jsx)(V,{scope:t,...x,children:Z(m)?m(x):r})}var W=`SwitchTrigger`,G=f.forwardRef(({__scopeSwitch:e,onClick:t,...n},r)=>{let{control:o,form:s,value:l,disabled:u,checked:d,required:m,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:_,isFormControl:v,bubbleInput:y}=H(W,e),b=c(r,h),x=f.useRef(d);return f.useEffect(()=>{let e=s?o?.ownerDocument.getElementById(s):o?.form;if(e instanceof HTMLFormElement){let t=()=>g(x.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[o,s,g]),(0,p.jsx)(a.button,{type:`button`,role:`switch`,"aria-checked":d,"aria-required":m,"data-state":Q(d),"data-disabled":u?``:void 0,disabled:u,value:l,...n,ref:b,onClick:i(t,e=>{g(e=>!e),y&&v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})})});G.displayName=W;var K=f.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,p.jsx)(U,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(G,{...d,ref:t,__scopeSwitch:n}),e&&(0,p.jsx)(X,{__scopeSwitch:n})]})})});K.displayName=R;var q=`SwitchThumb`,J=f.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=H(q,n);return(0,p.jsx)(a.span,{"data-state":Q(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});J.displayName=q;var Y=`SwitchBubbleInput`,X=f.forwardRef(({__scopeSwitch:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:s,required:u,disabled:d,name:m,value:h,form:g,bubbleInput:_,setBubbleInput:v}=H(Y,e),y=c(n,v),b=L(o),x=l(r);f.useEffect(()=>{let e=_;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(b!==o&&n){let t=new Event(`click`,{bubbles:r});n.call(e,o),e.dispatchEvent(t)}},[_,b,o,i]);let S=f.useRef(o);return(0,p.jsx)(a.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??S.current,required:u,disabled:d,name:m,value:h,form:g,...t,tabIndex:-1,ref:y,style:{...t.style,...x,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});X.displayName=Y;function Z(e){return typeof e==`function`}function Q(e){return e?`checked`:`unchecked`}function $({className:e,...t}){return(0,p.jsx)(K,{className:u(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors data-[state=checked]:bg-action data-[state=unchecked]:bg-border data-[state=unchecked]:hover:bg-border/70 disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,p.jsx)(J,{className:`pointer-events-none block size-4 rounded-full bg-ground shadow-sm transition-transform data-[state=checked]:translate-x-[1.125rem] data-[state=unchecked]:translate-x-0.5`})})}export{A as a,S as c,y as d,v as f,j as i,x as l,m,L as n,k as o,_ as p,I as r,C as s,$ as t,b as u};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{B as n,n as r}from"./index-CmEI98Do.js";import{S as i,at as a,b as o,v as s}from"./hotkeys-DQNqRgOb.js";import{A as c,C as l,D as u,E as d,_ as f,g as p,k as m,v as h,x as ee,y as te}from"./dialog-B08M5Cgz.js";import{_ as g,g as _,h as v,v as ne,y}from"./LazyTerminal-BrJnGoEX.js";import{c as b,p as x,r as S}from"./switch-CaIM4dwn.js";import{n as re}from"./x-CZCUod6A.js";import{t as ie}from"./createLucideIcon-DyMAgLa3.js";import{a as C,n as ae,o as w}from"./preview-kind-QJSMKfUN.js";import{t as oe}from"./debounce-B9DrqirV.js";var T=e(t(),1),E=r(),[D,se]=u(`Tooltip`,[y]),O=y(),ce=`TooltipProvider`,le=700,k=`tooltip.open`,[ue,A]=D(ce),de=e=>{let{__scopeTooltip:t,delayDuration:n=le,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=T.useRef(!0),s=T.useRef(!1),c=T.useRef(0);return T.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,E.jsx)(ue,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:T.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:T.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:T.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};de.displayName=ce;var j=`Tooltip`,[fe,M]=D(j),pe=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=A(j,e.__scopeTooltip),l=O(t),[u,d]=T.useState(null),f=te(),m=T.useRef(0),h=o??c.disableHoverableContent,ee=s??c.delayDuration,g=T.useRef(!1),[_,v]=p({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(k))):c.onClose(),a?.(e)},caller:j}),y=T.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=T.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,v(!0)},[v]),x=T.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v(!1)},[v]),S=T.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,v(!0),m.current=0},ee)},[ee,v]);return T.useEffect(()=>()=>{m.current&&=(window.clearTimeout(m.current),0)},[]),(0,E.jsx)(ne,{...l,children:(0,E.jsx)(fe,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:T.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:T.useCallback(()=>{h?x():(window.clearTimeout(m.current),m.current=0)},[x,h]),onOpen:b,onClose:x,disableHoverableContent:h,children:n})})};pe.displayName=j;var N=`TooltipTrigger`,me=T.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=M(N,n),a=A(N,n),o=O(n),s=m(t,T.useRef(null),i.onTriggerChange),u=T.useRef(!1),d=T.useRef(!1),f=T.useCallback(()=>u.current=!1,[]);return T.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,E.jsx)(v,{asChild:!0,...o,children:(0,E.jsx)(l.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:c(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:c(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:c(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:c(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:c(e.onBlur,i.onClose),onClick:c(e.onClick,i.onClose)})})});me.displayName=N;var P=`TooltipPortal`,[he,ge]=D(P,{forceMount:void 0}),_e=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=M(P,t);return(0,E.jsx)(he,{scope:t,forceMount:n,children:(0,E.jsx)(f,{present:n||a.open,children:(0,E.jsx)(h,{asChild:!0,container:i,children:r})})})};_e.displayName=P;var F=`TooltipContent`,ve=T.forwardRef((e,t)=>{let n=ge(F,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=M(F,e.__scopeTooltip);return(0,E.jsx)(f,{present:r||o.open,children:o.disableHoverableContent?(0,E.jsx)(Ce,{side:i,...a,ref:t}):(0,E.jsx)(ye,{side:i,...a,ref:t})})}),ye=T.forwardRef((e,t)=>{let n=M(F,e.__scopeTooltip),r=A(F,e.__scopeTooltip),i=T.useRef(null),a=m(t,i),[o,s]=T.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=T.useCallback(()=>{s(null),d(!1)},[d]),p=T.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=De(r,Ee(r,n.getBoundingClientRect())),a=Oe(t.getBoundingClientRect()),o=Ae([...i,...a]);s(o),d(!0)},[d]);return T.useEffect(()=>()=>f(),[f]),T.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),T.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!ke(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,E.jsx)(Ce,{...e,ref:a})}),[be,xe]=D(j,{isInside:!1}),Se=d(`TooltipContent`),Ce=T.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=M(F,n),l=O(n),{onClose:u}=c;return T.useEffect(()=>(document.addEventListener(k,u),()=>document.removeEventListener(k,u)),[u]),T.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,E.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,E.jsxs)(g,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,E.jsx)(Se,{children:r}),(0,E.jsx)(be,{scope:n,isInside:!0,children:(0,E.jsx)(x,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});ve.displayName=F;var we=`TooltipArrow`,Te=T.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=O(n);return xe(we,n).isInside?null:(0,E.jsx)(_,{...i,...r,ref:t})});Te.displayName=we;function Ee(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function De(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Oe(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ke(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Ae(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),je(t)}function je(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Me=de,Ne=pe,Pe=me,Fe=_e,Ie=ve,Le=Me,Re=Ne,ze=Pe;function Be({className:e,sideOffset:t=4,...n}){return(0,E.jsx)(Fe,{children:(0,E.jsx)(Ie,{sideOffset:t,className:re(`z-50 overflow-hidden rounded-md bg-elevated px-2 py-1 text-xs text-fg shadow-lg`,e),...n})})}var Ve=ie(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);function He({initial:e,maxLength:t,className:n,onCommit:r,onCancel:i}){let[a,o]=(0,T.useState)(e);return(0,E.jsx)(`input`,{autoFocus:!0,value:a,maxLength:t,onFocus:e=>e.currentTarget.select(),onChange:e=>o(e.target.value),onBlur:()=>r(a),onKeyDown:e=>{e.stopPropagation(),e.key===`Enter`?r(a):e.key===`Escape`&&i()},className:re(`bg-transparent outline-none`,n)})}function Ue(e){return{onClick:e=>{e.detail===2&&e.preventDefault()},onDoubleClick:t=>{t.preventDefault(),e()}}}var I=null;function We(e){return I=e,()=>{I===e&&(I=null)}}function Ge(){I?.()}var L=null;function Ke(e){return L=e,()=>{L===e&&(L=null)}}async function qe(e){if(!L)throw Error(`Open a project before opening a path.`);await L(e)}function Je(){let e=a(s()??void 0).data?.tabTitleTemplate;return(0,T.useCallback)(t=>S(t,e),[e])}var Ye=(0,T.createContext)({open:()=>void 0,handler:null,setHandler:()=>void 0});function Xe({children:e}){let[t,n]=(0,T.useState)(null),r=(0,T.useCallback)(e=>n(()=>e),[]),i=(0,T.useCallback)(e=>t?.(e),[t]),a=(0,T.useMemo)(()=>({open:i,handler:t,setHandler:r}),[i,t,r]);return(0,E.jsx)(Ye.Provider,{value:a,children:e})}function Ze(){return(0,T.useContext)(Ye)}function Qe({className:e,strokeScale:t=1}){return(0,E.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:e,fill:`none`,stroke:`currentColor`,strokeWidth:1.8*t,strokeLinecap:`round`,"aria-hidden":!0,children:[(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`22`,y2:`12`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`17`,y2:`20.66`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`7`,y2:`20.66`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`2`,y2:`12`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`7`,y2:`3.34`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`17`,y2:`3.34`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`17.63`,y2:`15.25`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`12`,y2:`18.5`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`6.37`,y2:`15.25`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`6.37`,y2:`8.75`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`12`,y2:`5.5`}),(0,E.jsx)(`line`,{x1:`12`,y1:`12`,x2:`17.63`,y2:`8.75`})]})}function $e({className:e,strokeScale:t=1}){return(0,E.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:e,fill:`none`,stroke:`currentColor`,strokeWidth:1.6*t,"aria-hidden":!0,children:[(0,E.jsx)(`ellipse`,{cx:`12`,cy:`12`,rx:`4`,ry:`9`}),(0,E.jsx)(`ellipse`,{cx:`12`,cy:`12`,rx:`4`,ry:`9`,transform:`rotate(60 12 12)`}),(0,E.jsx)(`ellipse`,{cx:`12`,cy:`12`,rx:`4`,ry:`9`,transform:`rotate(120 12 12)`})]})}function et({className:e,strokeScale:t=1}){return(0,E.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:e,fill:`none`,stroke:`currentColor`,strokeWidth:1.8*t,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,E.jsx)(`path`,{d:`M8 4H4v16h4`}),(0,E.jsx)(`path`,{d:`M16 4h4v16h-4`}),(0,E.jsx)(`rect`,{x:`10.5`,y:`10.5`,width:`3`,height:`3`,fill:`currentColor`,stroke:`none`})]})}function tt({className:e}){return(0,E.jsx)(`svg`,{viewBox:`0 0 24 24`,className:e,fill:`currentColor`,"aria-hidden":!0,children:(0,E.jsx)(`path`,{d:`M12 1.5c0 5.8 4.7 10.5 10.5 10.5C16.7 12 12 16.7 12 22.5 12 16.7 7.3 12 1.5 12 7.3 12 12 7.3 12 1.5Z`})})}function nt({type:e,className:t,strokeScale:n=1}){switch(e){case`claude-code`:return(0,E.jsx)(Qe,{className:t,strokeScale:n});case`codex`:return(0,E.jsx)($e,{className:t,strokeScale:n});case`opencode`:return(0,E.jsx)(et,{className:t,strokeScale:n});case`gemini-cli`:return(0,E.jsx)(tt,{className:t});default:return(0,E.jsx)(b,{className:t,strokeWidth:2*n})}}var R=new Set,z=!1,rt=null;function it(){for(let e of R)e()}function at(e){return R.add(e),()=>R.delete(e)}function ot(e){z!==e&&(z=e,it())}function st(){ot(!z)}function ct(){return(0,T.useSyncExternalStore)(at,()=>z)}function lt(e){rt=e,it()}function ut(){return(0,T.useSyncExternalStore)(at,()=>rt)}function B(){return crypto.randomUUID()}function V(e){return e.type===`terminal`?`term:${e.session}`:`editor:${C(e.tab)}`}function dt(e,t){return V(e)===V(t)}function ft(e){return e.type===`terminal`}function pt(e){return e.type===`editor`&&(e.tab.view===`linked`||e.tab.view===`locked`)}function H(e=[],t){let n=e.map(V),r=t&&n.includes(t)?t:n.length>0?n[0]:null;return{kind:`leaf`,id:B(),tabs:e,activeKey:r,previewKey:null}}function U(e,t,n){return{kind:`split`,id:B(),direction:e,children:t,sizes:n??t.map(()=>100/Math.max(1,t.length))}}function W(e,t){if(e.kind===`leaf`)return e.id===t?e:null;for(let n of e.children){let e=W(n,t);if(e)return e}return null}function G(e,t){if(e.kind===`leaf`)return e.tabs.some(e=>V(e)===t)?e:null;for(let n of e.children){let e=G(n,t);if(e)return e}return null}function K(e){return e.kind===`leaf`?[e]:e.children.flatMap(K)}function q(e){return K(e).flatMap(e=>e.tabs)}function mt(e){return e.kind===`leaf`?[e.id]:[e.id,...e.children.flatMap(mt)]}function ht(e){let t=mt(e);return new Set(t).size!==t.length}function gt(e){return e.kind===`leaf`?{...e,id:B()}:{...e,id:B(),children:e.children.map(gt)}}function _t(e){if(!ht(e))return e;let t=new Set,n=e=>{let r=t.has(e.id)?B():e.id;return t.add(r),e.kind===`leaf`?{...e,id:r}:{...e,id:r,children:e.children.map(n)}};return n(e)}function vt(e){let t=e.tabs.map(V),n=e.activeKey&&t.includes(e.activeKey)?e.activeKey:t[0]??null,r=e.previewKey&&t.includes(e.previewKey)?e.previewKey:null;return n===e.activeKey&&r===(e.previewKey??null)?e:{...e,activeKey:n,previewKey:r}}function J(e){if(e.kind===`leaf`)return vt(e);let t=e.children.map(J),n=[],r=[];t.forEach((t,i)=>{let a=e.sizes[i]??1;if(t.kind===`split`&&t.direction===e.direction){let e=t.sizes.reduce((e,t)=>e+t,0)||t.children.length;t.children.forEach((i,o)=>{n.push(i),r.push(a*(t.sizes[o]??1)/e)})}else n.push(t),r.push(a)});let i=[],a=[];return n.forEach((e,t)=>{e.kind===`leaf`&&e.tabs.length===0||(i.push(e),a.push(r[t]??1))}),i.length===0?H([]):i.length===1?i[0]:{...e,children:i,sizes:a}}function Y(e,t,n){return e.kind===`leaf`?e.id===t?n(e):e:{...e,children:e.children.map(e=>Y(e,t,n))}}function yt(e,t,n){return Y(e,t,e=>{if(!e.tabs.some(e=>V(e)===n))return e;let t=e.tabs.filter(e=>V(e)!==n),r=e.activeKey===n?bt(e,n):e.activeKey;return{...e,tabs:t,activeKey:r}})}function bt(e,t){let n=e.tabs.findIndex(e=>V(e)===t);if(n===-1)return e.activeKey;let r=e.tabs.filter(e=>V(e)!==t);return r.length===0?null:V(r[Math.min(n,r.length-1)])}function xt(e,t,n){let r=e.tabs.filter(e=>!dt(e,t)),i=n===void 0?r.length:Math.max(0,Math.min(n,r.length)),a=[...r.slice(0,i),t,...r.slice(i)];return{...e,tabs:a,activeKey:V(t)}}function St(e,t,n,r){let i=n===`left`||n===`right`?`row`:`col`,a=n===`left`||n===`top`;return J(Y(e,t,e=>{let t=H([r]);return U(i,a?[t,e]:[e,t],[50,50])}))}function Ct(e,t){let{ref:n,toLeafId:r,edge:i}=t,a=V(n),o=t.copy===!0&&!ft(n),s=t.index;if(i===`center`&&s!==void 0){let t=W(e,r)?.tabs.findIndex(e=>V(e)===a)??-1;t!==-1&&t<s&&--s}let c=o?e:yt(e,t.fromLeafId,a);if(i===`center`){let e=Y(c,r,e=>xt(e,n,s));return!W(e,r)&&!G(e,a)?X(J(wt(e,n)),a):X(J(e),a)}return W(c,r)?X(St(c,r,i,n),a):J(H([n]))}function wt(e,t){let n=K(e)[0];return n?Y(e,n.id,e=>xt(e,t)):H([t])}function Tt(e,t,n){return J(Y(e,t,e=>e.tabs.some(e=>V(e)===n)?{...e,tabs:e.tabs.filter(e=>V(e)!==n),activeKey:e.activeKey===n?bt(e,n):e.activeKey}:e))}function Et(e,t,n){let r=V(n);return J(Y(e,t,e=>{let t=e.previewKey===r?null:e.previewKey;return e.tabs.some(e=>dt(e,n))?{...e,activeKey:r,previewKey:t}:{...e,tabs:[...e.tabs,n],activeKey:r,previewKey:t}}))}function Dt(e,t,n){let r=V(n);return J(Y(e,t,e=>e.tabs.some(e=>V(e)===r)?{...e,tabs:e.tabs.map(e=>V(e)===r?n:e),previewKey:e.previewKey===r?null:e.previewKey}:{...e,tabs:[...e.tabs,n]}))}function Ot(e,t,n){let r=V(n);return Y(e,t,e=>({...e,tabs:e.tabs.map(e=>V(e)===r?n:e)}))}function kt(e,t,n){let r=C(t),i=e=>e.kind===`split`?{...e,children:e.children.map(i)}:{...e,tabs:e.tabs.map(e=>e.type===`editor`&&C(e.tab)===r?{...e,tab:{...e.tab,compile_mode:n}}:e)};return i(e)}function At(e,t){return e.type!==`editor`||t.type!==`editor`||e.tab.view!==`preview`||t.tab.view!==void 0||ae(t.tab.path)===null?t:{...t,tab:{...t.tab,view:`preview`}}}function jt(e,t,n){let r=V(n);return J(Y(e,t,e=>{if(e.tabs.some(e=>dt(e,n)))return{...e,activeKey:r};let t=e.previewKey?e.tabs.findIndex(t=>V(t)===e.previewKey):-1,i=t>=0?e.tabs[t]:void 0,a=i!==void 0&&!ft(i)&&!pt(i),o=a?At(i,n):n,s=a?e.tabs.map((e,n)=>n===t?o:e):[...e.tabs,o];return{...e,tabs:s,activeKey:r,previewKey:r}}))}function X(e,t){let n=e=>e.kind===`leaf`?e.previewKey===t?{...e,previewKey:null}:e:{...e,children:e.children.map(n)};return n(e)}function Mt(e,t,n,r){return Y(e,t,e=>{let t=e.tabs.findIndex(e=>e.type===`editor`&&V(e)===n),i=t>=0?e.tabs[t]:void 0;if(i===void 0||i.type!==`editor`)return e;let a={...i,tab:{...i.tab,view:r}},o=V(a);if(o===n)return{...e,tabs:e.tabs.map((e,n)=>n===t?a:e)};let s=e.tabs.some((e,n)=>n!==t&&V(e)===o),c=s?e.tabs.filter((e,n)=>n!==t):e.tabs.map((e,n)=>n===t?a:e);return{...e,tabs:c,activeKey:e.activeKey===n?o:e.activeKey,previewKey:e.previewKey===n?s?null:o:e.previewKey??null}})}function Nt(e,t){let n=w(e);return n!==`commit`&&n!==`untitled`&&e.session===t.session&&e.path===t.path&&e.root===t.root}function Pt(e,t,n){if(n===t.path)return e;let r=!1,i=e=>{if(e.kind===`split`){let t=e.children.map(i);return t.some((t,n)=>t!==e.children[n])?{...e,children:t}:e}let a=new Map,o=!1,s=e.tabs.map(e=>{if(e.type!==`editor`||!Nt(e.tab,t))return e;let r={...e,tab:{...e.tab,path:n}};return a.set(V(e),V(r)),o=!0,r});if(!o)return e;r=!0;let c=e.activeKey,l=e.previewKey??null;return{...e,tabs:s,activeKey:c===null?null:a.get(c)??c,previewKey:l===null?null:a.get(l)??l}},a=i(e);return r?a:e}function Ft(e){if(e.type!==`editor`)return null;let t=e.tab,n=w(t);return n!==`file`&&n!==`external`||t.view===`linked`||t.view===`locked`||ae(t.path)===null?null:t}function It(e,t){let n=Ft(t);if(!n)return e;let r=!1,i=e=>{if(e.kind===`split`)return{...e,children:e.children.map(i)};let t=!1,a=e.tabs.map(e=>{if(e.type!==`editor`||!pt(e))return e;let r=e.tab;return r.session===n.session&&r.path===n.path&&(r.root??``)===(n.root??``)&&w(r)===w(n)?e:(t=!0,{type:`editor`,tab:{session:n.session,path:n.path,...n.kind===void 0?{}:{kind:n.kind},...n.root===void 0?{}:{root:n.root},view:r.view}})});return t?(r=!0,{...e,tabs:a}):e},a=i(e);return r?a:e}function Lt(e,t){return e.session===t.session&&e.path===t.path&&(e.root??``)===(t.root??``)&&w(e)===w(t)}function Rt(e,t,n){let r=K(e).flatMap(e=>e.tabs.flatMap(n=>n.type!==`editor`||n.tab.view===`linked`||n.tab.view===`locked`||!Lt(n.tab,t)?[]:[{leafId:e.id,ref:n}]));return r.find(({leafId:e})=>e===n)??r.find(({ref:e})=>(e.tab.view??`source`)===`source`)??r[0]??null}function zt(e,t,n){return Y(e,t,e=>e.tabs.some(e=>V(e)===n)?{...e,activeKey:n}:e)}function Bt(e,t,n){function r(e){return e.kind===`leaf`?e:e.id===t&&n.length===e.children.length?{...e,children:e.children.map(r),sizes:[...n]}:{...e,children:e.children.map(r)}}return r(e)}function Vt(e){let t=e.type===`terminal`?e.session:e.tab.session;return t===`00000000-0000-0000-0000-000000000000`?null:t}function Ht(e){return t=>{let n=Vt(t);return n===null||e.has(n)}}function Z(e,t){let n=e=>e.kind===`leaf`?{...e,tabs:e.tabs.filter(t)}:{...e,children:e.children.map(n)};return J(n(e))}function Ut(e){let t=new Set,n=[];for(let r of e){let e=J(Z(r,e=>!t.has(V(e)))),i=q(e);if(i.length!==0){for(let e of i)t.add(V(e));n.push(e)}}return n.length===0?H([]):_t(n.length===1?n[0]:J(U(`row`,n)))}function Wt(e){let t=e.editor_tabs.map(e=>({type:`editor`,tab:e})),n=e.session_tabs.map(e=>({type:`terminal`,session:e})),r=e.active_editor_tab?V({type:`editor`,tab:e.active_editor_tab}):null,i=e.active_session?`term:${e.active_session}`:null;if(t.length===0&&n.length===0)return H([]);if(t.length===0)return H(n,i);if(n.length===0)return H(t,r);let a=e.layout,o=typeof a.editor==`number`?a.editor:40,s=typeof a.session==`number`?a.session:60;return J(U(`col`,[H(t,r),H(n,i)],[o,s]))}function Gt(e){return JSON.stringify(Kt(e))}function Kt(e){return e===null?null:e.kind===`leaf`?e.tabs.length===0?null:{t:e.tabs.map(V)}:{d:e.direction,s:e.sizes.map(e=>Math.round(e*10)/10),c:e.children.map(Kt)}}var Q=new Set,$=!1,qt=null;function Jt(){for(let e of Q)e()}function Yt(e){return Q.add(e),()=>Q.delete(e)}function Xt(e){$!==e&&($=e,Jt())}function Zt(){Xt(!$)}function Qt(){return(0,T.useSyncExternalStore)(Yt,()=>$)}function $t(e){qt=e,Jt()}function en(){return(0,T.useSyncExternalStore)(Yt,()=>qt)}var tn={layout_tree:null,active_session:null,layout_ref:null};function nn(e){return e.type===`terminal`?e.session:e.tab.session}function rn(e,t){let n=new Set;for(let[r,i]of Object.entries(e))if(!(r===t||!i.layout_tree))for(let e of q(i.layout_tree))e.type===`terminal`&&n.add(e.session);return[...n]}function an(e,t){let n=e.project_layouts[t];return{...e,layout_tree:n?.layout_tree??null,active_session:n?.active_session??null,layout_ref:n?.layout_ref??null,session_tabs:[],editor_tabs:[],active_editor_tab:null}}function on(e,t,n){return n?{loaded:e.loaded,snapshot:an(e.snapshot,t),current:()=>an(e.current(),t),update(n){let r={},i={...n};if(`layout_tree`in n&&(r.layout_tree=n.layout_tree??null,delete i.layout_tree),`active_session`in n&&(r.active_session=n.active_session??null,delete i.active_session),`layout_ref`in n&&(r.layout_ref=n.layout_ref??null,delete i.layout_ref),Object.keys(r).length>0){let n=e.current().project_layouts;i.project_layouts={...n,[t]:{...n[t]??tn,...r}}}Object.keys(i).length>0&&e.update(i)}}:e}function sn(e,t,n,r){let i=e.layout_tree??Wt(e),a={};for(let o of t)a[o]={layout_tree:gt(Z(i,e=>{let i=nn(e);return i===`00000000-0000-0000-0000-000000000000`?o===(r??t[0]):n.get(i)===o})),active_session:e.active_session!==null&&n.get(e.active_session)===o?e.active_session:null,layout_ref:null};return{layout_mode:`project`,project_layouts:a}}function cn(e,t,n={}){return{...e,...t,...n}}function ln(e,t,n){let r=t.layout_tree?Z(t.layout_tree,e=>{let t=nn(e);return t===`00000000-0000-0000-0000-000000000000`||n.alive.has(t)}):null,i=t.active_session!==null&&n.alive.has(t.active_session)?t.active_session:null;if(t.scope===`profile`)return{projectBased:!1,patch:{layout_mode:`profile`,layout_tree:r,active_session:i,layout_ref:t.id}};let a=t.project_id??n.currentProject??n.projectIds[0]??``,o={layout_tree:r,active_session:i,layout_ref:t.id};if((e.layout_mode??`profile`)===`project`)return{projectBased:!0,patch:{project_layouts:{...e.project_layouts,[a]:o}}};let s=sn(e,n.projectIds,n.sessionProject,a);return{projectBased:!0,patch:{...s,project_layouts:cn(s.project_layouts??{},e.project_layouts,{[a]:o})}}}function un(e,t){let n=e.project_layouts,r=[...t.filter(e=>e in n),...Object.keys(n).filter(e=>!t.includes(e))].map(e=>n[e]);return{layout_mode:`profile`,project_layouts:{},layout_tree:Ut(r.map(e=>e.layout_tree).filter(e=>e!==null)),active_session:r.map(e=>e.active_session).find(e=>e!==null)??null,layout_ref:null}}var dn=2e3,fn=n.parse({});function pn(e){return`puddle.ws.${e}`}function mn(e){if(e===null)return{kind:`absent`};try{return{kind:`present`,snapshot:n.parse(JSON.parse(e))}}catch{return{kind:`corrupt`}}}function hn(){let e=s(),[t,n]=(0,T.useState)(!1),[r,a]=(0,T.useState)(fn),c=(0,T.useRef)(r);c.current=r;let l=(0,T.useRef)(null),u=(0,T.useMemo)(()=>oe((e,t)=>{i(e,t).catch(e=>console.warn(`ui-state save failed: ${e.message}`))},dn),[]);return(0,T.useEffect)(()=>{if(e===null){l.current=null;return}let t=pn(e);l.current=t;let r=!1;n(!1),a(fn);let i;try{i=mn(sessionStorage.getItem(t)),i.kind===`corrupt`&&sessionStorage.removeItem(t)}catch(e){console.warn(`ui-state read failed: ${e.message}`),i={kind:`absent`}}return i.kind===`present`?(a(i.snapshot),n(!0)):o(e).then(e=>{r||(e&&a(e.ui_state),n(!0))}).catch(e=>{console.warn(`ui-state load failed: ${e.message}`),r||n(!0)}),()=>{r=!0,u.flush()}},[e,u]),{loaded:t,snapshot:r,current:()=>c.current,update(t){if(e===null)return;let n={...c.current,...t};c.current=n,a(n);let r=l.current??pn(e);u(e,n);try{sessionStorage.setItem(r,JSON.stringify(n))}catch(e){console.warn(`ui-state write failed: ${e.message}`)}}}}export{We as $,jt as A,Ot as B,Ct as C,G as D,zt as E,It as F,ct as G,ot as H,kt as I,Ze as J,nt as K,Mt as L,Z as M,Pt as N,Ft as O,Bt as P,Ge as Q,Rt as R,_t as S,q as T,st as U,lt as V,ut as W,qe as X,Je as Y,Ke as Z,Et as _,cn as a,Le as at,Wt as b,sn as c,Xt as d,He as et,Zt as f,Dt as g,Gt as h,ln as i,Be as it,X as j,H as k,un as l,Qt as m,hn as n,Ve as nt,rn as o,ze as ot,en as p,Xe as q,pn as r,Re as rt,on as s,mn as t,Ue as tt,$t as u,K as v,W as w,Tt as x,Ht as y,V as z};