@p4code/cli 0.8.13 → 0.8.14

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 (214) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-B9aQxlIK.mjs → binCli-BvhJ8Jqb.mjs} +253 -102
  3. package/dist/client/.vite/manifest.json +1283 -1283
  4. package/dist/client/assets/{AuthSurfaceShell-CJdXkxyH.js → AuthSurfaceShell-Dfm2iXjM.js} +2 -2
  5. package/dist/client/assets/{ChatGptUsageButton-7u9uPgbK.js → ChatGptUsageButton-BE2a_fvh.js} +2 -2
  6. package/dist/client/assets/{ChatMarkdown-C22JFyYa.js → ChatMarkdown-2qihmx2E.js} +4 -4
  7. package/dist/client/assets/{CodexSetupSection.logic-CEAT7YdZ.js → CodexSetupSection.logic-CZIedhFM.js} +2 -2
  8. package/dist/client/assets/{CommandBlock-CWt29kmi.js → CommandBlock-cV3B4sIS.js} +2 -2
  9. package/dist/client/assets/{ComposerPromptEditor-Bt_L4smq.js → ComposerPromptEditor-l0YJjut-.js} +4 -4
  10. package/dist/client/assets/{DevicePanel-CZm-f5TC.js → DevicePanel-CyqJ_QAv.js} +2 -2
  11. package/dist/client/assets/{DeviceSetup-BdrkGme6.js → DeviceSetup-B9gRys_T.js} +2 -2
  12. package/dist/client/assets/{DiffCommentAnnotation-B-XoYYxb.js → DiffCommentAnnotation-DqJdp0B7.js} +2 -2
  13. package/dist/client/assets/{DiffFileTree-CwTkSU3R.js → DiffFileTree-C0BZv_u5.js} +2 -2
  14. package/dist/client/assets/{DiffPanel-BCI9XXpF.js → DiffPanel-DvpW3Wct.js} +2 -2
  15. package/dist/client/assets/{DiffWorkerPoolProvider-OPZsOibX.js → DiffWorkerPoolProvider-C0s_fra9.js} +2 -2
  16. package/dist/client/assets/{EmbeddedDesign-DwRAPHYl.js → EmbeddedDesign-DGCXXVf5.js} +2 -2
  17. package/dist/client/assets/{FileDiff-BkJG5QAe.js → FileDiff-BtKZeeO5.js} +2 -2
  18. package/dist/client/assets/{FilePreviewPanel-CURtQAD1.js → FilePreviewPanel-DzVGuSCc.js} +2 -2
  19. package/dist/client/assets/{FoldedSettingsSection-B9B8i8Gg.js → FoldedSettingsSection-VCEXXLW3.js} +2 -2
  20. package/dist/client/assets/{NoProjectsHero-CkhVaJk9.js → NoProjectsHero-BQBJO2CN.js} +2 -2
  21. package/dist/client/assets/{PanelLayoutControls-CxuV0JO3.js → PanelLayoutControls-DnSdAhOm.js} +4 -4
  22. package/dist/client/assets/{PierreEntryIcon-CPG-jnaN.js → PierreEntryIcon-B1r7qMgq.js} +2 -2
  23. package/dist/client/assets/{PreviewPanel-Doh1peEu.js → PreviewPanel-CtXaNx5N.js} +2 -2
  24. package/dist/client/assets/{ProjectDefaultsSettings-DfhAk0_Y.js → ProjectDefaultsSettings-BYtlqxeq.js} +2 -2
  25. package/dist/client/assets/{ProjectFavicon-DUW6Bo66.js → ProjectFavicon-B5bWp7V6.js} +3 -3
  26. package/dist/client/assets/{ProjectIconPickerDialog-C613hnVY.js → ProjectIconPickerDialog-BWSyrwJD.js} +2 -2
  27. package/dist/client/assets/{ProviderAuthTerminal-eq346NX_.js → ProviderAuthTerminal-B2L5_uXE.js} +2 -2
  28. package/dist/client/assets/{ProviderModelPicker-DPb-88ui.js → ProviderModelPicker-B8ibbi9S.js} +2 -2
  29. package/dist/client/assets/{ProviderSettingsForm-DTYqzs8W.js → ProviderSettingsForm-DYn7It9I.js} +2 -2
  30. package/dist/client/assets/{PullRequestCodeTab-BBz0FfLD.js → PullRequestCodeTab-BfSQc1r1.js} +2 -2
  31. package/dist/client/assets/{ReadOnlySourcePreview-CkeeLVAm.js → ReadOnlySourcePreview-8MghAaC9.js} +2 -2
  32. package/dist/client/assets/{RenderErrorBoundary-mfAvIiFU.js → RenderErrorBoundary-Dm9BLD1I.js} +2 -2
  33. package/dist/client/assets/{ScheduledTasksSettings-BMUE9M9Z.js → ScheduledTasksSettings-ClZG_1G7.js} +2 -2
  34. package/dist/client/assets/{ScopedSwitch-BKOdsllO.js → ScopedSwitch-C7nxtEAT.js} +2 -2
  35. package/dist/client/assets/{SettingsPanels-BHhMJaVc.js → SettingsPanels-kXpGLc3M.js} +2 -2
  36. package/dist/client/assets/{SettingsPanels.logic-BwmY39Sq.js → SettingsPanels.logic-CcNyZsm-.js} +2 -2
  37. package/dist/client/assets/{SettingsScopeNotice-DAPsshab.js → SettingsScopeNotice-CM4ubyNs.js} +2 -2
  38. package/dist/client/assets/{T3ConnectAccountPages-CDuVbE2z.js → T3ConnectAccountPages-Cm4JG3hx.js} +2 -2
  39. package/dist/client/assets/{T3ConnectSidebarSignIn-BSQHp-Xq.js → T3ConnectSidebarSignIn-CmvCTtlG.js} +2 -2
  40. package/dist/client/assets/{ThemeEditorPanel-BiuI7Uiy.js → ThemeEditorPanel-kOwPAMtd.js} +2 -2
  41. package/dist/client/assets/{ThreadTerminalDrawer-B8n6TAqv.js → ThreadTerminalDrawer-CK0khkH6.js} +2 -2
  42. package/dist/client/assets/{Virtualizer-CTnacEby.js → Virtualizer-B895TWmX.js} +2 -2
  43. package/dist/client/assets/{_chat-z348gvgF.js → _chat-akhFQFVf.js} +5 -5
  44. package/dist/client/assets/{_chat.index-CBbUzaK7.js → _chat.index-P-ZRID1j.js} +2 -2
  45. package/dist/client/assets/{_chat.new-7TTfcDf1.js → _chat.new-DXkFcRYp.js} +2 -2
  46. package/dist/client/assets/{_chat.pull-requests-BE7Q2lUu.js → _chat.pull-requests-BYR5YTIM.js} +2 -2
  47. package/dist/client/assets/{abnfDiagram-VCTEODGH-HaXM7twL.js → abnfDiagram-VCTEODGH-CcoyEMJc.js} +2 -2
  48. package/dist/client/assets/architecture-7GRP2DOG-BCI44Tco.js +1 -0
  49. package/dist/client/assets/{architectureDiagram-5GKGNRK7-BhWXFsXS.js → architectureDiagram-5GKGNRK7-CXxubV6d.js} +2 -2
  50. package/dist/client/assets/{assets-DXnV2oRj.js → assets-C7tdule6.js} +2 -2
  51. package/dist/client/assets/{blockDiagram-I7D4REHJ-D213N9iF.js → blockDiagram-I7D4REHJ-DWnNJQVf.js} +2 -2
  52. package/dist/client/assets/{browserHistoryStore-DURO3U2L.js → browserHistoryStore-PqPCT4tW.js} +2 -2
  53. package/dist/client/assets/{browserLinkTarget-DcGx3A8F.js → browserLinkTarget-CWURM-O2.js} +2 -2
  54. package/dist/client/assets/{c4Diagram-7LVT6UL2-58POuQV-.js → c4Diagram-7LVT6UL2-DKlxhhfG.js} +2 -2
  55. package/dist/client/assets/channel-FPHxEbB1.js +2 -0
  56. package/dist/client/assets/{chunk-4HAMMTFA-Bcwcw8Wz.js → chunk-4HAMMTFA-BXCbWh-l.js} +2 -2
  57. package/dist/client/assets/{chunk-75Z2AOVW-BaYdZ0Fq.js → chunk-75Z2AOVW-ByRA_PDR.js} +2 -2
  58. package/dist/client/assets/{chunk-DU6HZSFF-B6TRgw4-.js → chunk-DU6HZSFF-CxOE2RJx.js} +2 -2
  59. package/dist/client/assets/{chunk-F27PBJKO-B5arSwg6.js → chunk-F27PBJKO-DXbxgIcF.js} +2 -2
  60. package/dist/client/assets/{chunk-GMAD6QVW-XeNCd3gb.js → chunk-GMAD6QVW-C-CPxvzK.js} +2 -2
  61. package/dist/client/assets/{chunk-GVQU2GXP-CWVbbWh7.js → chunk-GVQU2GXP-N8FA1SLM.js} +2 -2
  62. package/dist/client/assets/{chunk-IMKFNOWR-Cb-yxIAE.js → chunk-IMKFNOWR-DTBCxfEA.js} +2 -2
  63. package/dist/client/assets/{chunk-L3NEJ4N5-Di7nZhzu.js → chunk-L3NEJ4N5-DpY0Sgfm.js} +2 -2
  64. package/dist/client/assets/{chunk-OSK3NFVY-DcqBXKUK.js → chunk-OSK3NFVY-BZXi7c79.js} +2 -2
  65. package/dist/client/assets/{chunk-P2QGCYS3-DJ1kMiTY.js → chunk-P2QGCYS3-CEZ0Wrp3.js} +2 -2
  66. package/dist/client/assets/{chunk-POPQ4Y6H-Ba9RYr-b.js → chunk-POPQ4Y6H-ChY6VtHX.js} +2 -2
  67. package/dist/client/assets/{chunk-PWAF6VOD-D4Ch07S8.js → chunk-PWAF6VOD-ynZZsG4M.js} +2 -2
  68. package/dist/client/assets/{chunk-SHT3W25Y-BafMUZgc.js → chunk-SHT3W25Y-B2nWifo1.js} +2 -2
  69. package/dist/client/assets/{chunk-SVP7TREG-CsEVe0s3.js → chunk-SVP7TREG-B8mLhKtO.js} +2 -2
  70. package/dist/client/assets/{chunk-TICWLB2K-D3tgdZlp.js → chunk-TICWLB2K-DRpXMD23.js} +2 -2
  71. package/dist/client/assets/classDiagram-ZZMXUADV-BmhihMCg.js +2 -0
  72. package/dist/client/assets/classDiagram-v2-VYDZK3BY-BmhihMCg.js +2 -0
  73. package/dist/client/assets/{connect-Vt7wlrih.js → connect-C2Pvay2K.js} +2 -2
  74. package/dist/client/assets/{connect-agent-CX70rAkF.js → connect-agent-F9m6jdrN.js} +2 -2
  75. package/dist/client/assets/{cynefin-OW5HDTMX-CU8HnD4F.js → cynefin-OW5HDTMX-Bdj9a2Tr.js} +1 -1
  76. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Cvc6_oYZ.js → cynefinDiagram-5FMLGOSQ-CI4Z0tY2.js} +2 -2
  77. package/dist/client/assets/{dagre-GXQ25YYZ-Bx5buWLS.js → dagre-GXQ25YYZ-BiXNu3UE.js} +2 -2
  78. package/dist/client/assets/{device-BgvBRE7C.js → device-dy573Bzs.js} +2 -2
  79. package/dist/client/assets/{diagram-S7CK7UJ4-CPZrAy0P.js → diagram-S7CK7UJ4-BoHm89r6.js} +2 -2
  80. package/dist/client/assets/{diagram-UQ7AKVKN-kBtSnHpL.js → diagram-UQ7AKVKN-C-2Ubrz8.js} +2 -2
  81. package/dist/client/assets/{diagram-VSXAHHWV-DQP2q1tS.js → diagram-VSXAHHWV-5CTD9pHp.js} +2 -2
  82. package/dist/client/assets/{diagram-VX7I27RA-DRUN0yEk.js → diagram-VX7I27RA-BJfYpp_F.js} +2 -2
  83. package/dist/client/assets/{diagram-Z3DM3KII-D4WMsQZZ.js → diagram-Z3DM3KII-z35dx_kK.js} +2 -2
  84. package/dist/client/assets/{diffRendering-iR2meoVj.js → diffRendering-BiYYLTwl.js} +2 -2
  85. package/dist/client/assets/{dist-vr51zfzA.js → dist-Bl7QV0pY.js} +2 -2
  86. package/dist/client/assets/{duoViewer-DTVry3xd.js → duoViewer-CPD9Wvk1.js} +2 -2
  87. package/dist/client/assets/{dynamic-CuoX2JEO.js → dynamic-DcfMLaU_.js} +2 -2
  88. package/dist/client/assets/{ebnfDiagram-PWID7BFC-BNUtunQw.js → ebnfDiagram-PWID7BFC-C2Fa8ORo.js} +2 -2
  89. package/dist/client/assets/{embeddedScripts-BMvBWRz_.js → embeddedScripts-DFdnbLSr.js} +2 -2
  90. package/dist/client/assets/{entities-7B8nzlQw.js → entities-B2DNkHHQ.js} +2 -2
  91. package/dist/client/assets/{environments-DYIXXf7q.js → environments-Bqz0Jaj_.js} +2 -2
  92. package/dist/client/assets/{erDiagram-RLTQ6QDP-DHjjowZq.js → erDiagram-RLTQ6QDP-WIlBdlNc.js} +2 -2
  93. package/dist/client/assets/eventmodeling-NTZA5JFV-Q6rJ-HVs.js +1 -0
  94. package/dist/client/assets/{fileLinks-BYi-XNUG.js → fileLinks-Y7rrQ-ob.js} +2 -2
  95. package/dist/client/assets/{fileTreeExpansion-DIOxQqDo.js → fileTreeExpansion-CktIYdPM.js} +2 -2
  96. package/dist/client/assets/flowDiagram-HODETNUW-Dyon23dU.js +1 -0
  97. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-DEPOqoj0.js → ganttDiagram-EL5Y4UJY-CzIDxrzr.js} +2 -2
  98. package/dist/client/assets/{getDiffFileInput-DMj15wpy.js → getDiffFileInput-DaXZ00WD.js} +2 -2
  99. package/dist/client/assets/{gitGraph-4MIJSDKK-BGKW_zhb.js → gitGraph-4MIJSDKK-VJZ5WW8j.js} +1 -1
  100. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-7UhsI5zi.js → gitGraphDiagram-WWUBYQGX--N7ACKgH.js} +2 -2
  101. package/dist/client/assets/{guideRunStore-BEkwZ9H7.js → guideRunStore-C8Xso-YV.js} +2 -2
  102. package/dist/client/assets/{index-C_MVyH59.js → index-9_IX9wXh.js} +3 -3
  103. package/dist/client/assets/{info-A6RAGUB7-jvyzx_4e.js → info-A6RAGUB7-BsLL2HTs.js} +1 -1
  104. package/dist/client/assets/{infoDiagram-27XIBGKW-lTTpu3as.js → infoDiagram-27XIBGKW-H0RWUQa6.js} +2 -2
  105. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DlrQNGG9.js → ishikawaDiagram-5VMMS53U-BoBtpQFP.js} +2 -2
  106. package/dist/client/assets/{journeyDiagram-3NMN7TZE-Buy9e-fU.js → journeyDiagram-3NMN7TZE-rcwS0plS.js} +2 -2
  107. package/dist/client/assets/{kanban-definition-UXKFOSKX-1KgAXH0g.js → kanban-definition-UXKFOSKX-CMC0FYSq.js} +2 -2
  108. package/dist/client/assets/{line-DUV1hs6X.js → line-CbOfbAku.js} +2 -2
  109. package/dist/client/assets/{linkedPrompt-Da8rJho3.js → linkedPrompt-Bw0INRKj.js} +2 -2
  110. package/dist/client/assets/{main-Bh6Hj0_-.js → main-C6Kmott7.js} +7 -7
  111. package/dist/client/assets/{mediaReference-CLlAiRVc.js → mediaReference-CRKV_ScS.js} +2 -2
  112. package/dist/client/assets/{mediaSource-BTCWn94E.js → mediaSource-Hn2lPB2b.js} +2 -2
  113. package/dist/client/assets/{mermaid-parser.core-CsBuWV4-.js → mermaid-parser.core-BGJPFG4o.js} +4 -4
  114. package/dist/client/assets/{mermaid.core-BcICv5EB.js → mermaid.core-Bt6Qv84k.js} +5 -5
  115. package/dist/client/assets/{mindmap-definition-YA3MSWOX-BqCqe4io.js → mindmap-definition-YA3MSWOX-4Y8RevXP.js} +2 -2
  116. package/dist/client/assets/{onboarding-COQ6KgRG.js → onboarding-BnJjKcjq.js} +2 -2
  117. package/dist/client/assets/{openFileInPreview-BhRAqg63.js → openFileInPreview-BupyBOTN.js} +2 -2
  118. package/dist/client/assets/{p4ProjectFile-z5Hlq99W.js → p4ProjectFile-CUk0B5Zd.js} +2 -2
  119. package/dist/client/assets/{packet-AYTQ26CC-BYCaPqFA.js → packet-AYTQ26CC-CRQRHja4.js} +1 -1
  120. package/dist/client/assets/{pair-BDKjGij-.js → pair-ohR-X0pV.js} +2 -2
  121. package/dist/client/assets/{pegDiagram-XKGWAZYB-CqCw5Z-L.js → pegDiagram-XKGWAZYB-Dk0K8AzU.js} +2 -2
  122. package/dist/client/assets/{phoneViewer-DLSM0QXE.js → phoneViewer-DD_58CZV.js} +2 -2
  123. package/dist/client/assets/{pie-WAS4IAKB-BfOlqQx1.js → pie-WAS4IAKB-CWKurrWM.js} +1 -1
  124. package/dist/client/assets/{pieDiagram-E7YTZNPT-DZpCrUQF.js → pieDiagram-E7YTZNPT-DlRA_ADi.js} +2 -2
  125. package/dist/client/assets/{pierre-icons-BG7vd34x.js → pierre-icons-Bj2UJzq7.js} +2 -2
  126. package/dist/client/assets/{preview-bd-MGMMz.js → preview-Czvs-xjq.js} +2 -2
  127. package/dist/client/assets/{primary-BwHoAoya.js → primary-C0h34HcZ.js} +2 -2
  128. package/dist/client/assets/{primaryCloudLinkState-DtOYGRkF.js → primaryCloudLinkState-EkUmcneJ.js} +2 -2
  129. package/dist/client/assets/{projectFilesQueryState-BP_JvI7-.js → projectFilesQueryState-DDX2gPG6.js} +2 -2
  130. package/dist/client/assets/{projectScriptEditor-BGLshibY.js → projectScriptEditor-B-W-Sbdv.js} +2 -2
  131. package/dist/client/assets/{providerSkills-DxYtwoxJ.js → providerSkills-OoPsDyac.js} +2 -2
  132. package/dist/client/assets/{pullRequestDetail.logic-C_aVDAY_.js → pullRequestDetail.logic-BZIPv0wR.js} +2 -2
  133. package/dist/client/assets/{pullRequests-D0no1PZS.js → pullRequests-BuF4aTBF.js} +2 -2
  134. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-BTtuOXlL.js → quadrantDiagram-AXDQQJYC-Cgrn1gJf.js} +2 -2
  135. package/dist/client/assets/{queries-DkmaXOL-.js → queries-B5qQohie.js} +2 -2
  136. package/dist/client/assets/{radar-RG4KPBEZ-BiJgnIUY.js → radar-RG4KPBEZ-BNds8J7E.js} +1 -1
  137. package/dist/client/assets/{railroad-74A4TZTK-C0CA0mcr.js → railroad-74A4TZTK-c-ku32yb.js} +1 -1
  138. package/dist/client/assets/railroad-abnf-HS5TGJTU-DdK1L4Kf.js +1 -0
  139. package/dist/client/assets/railroad-ebnf-LZEXJU2U-DAIwdsWb.js +1 -0
  140. package/dist/client/assets/railroad-peg-WCYAUIDC-B6SwzZWt.js +1 -0
  141. package/dist/client/assets/{railroadDiagram-O6MQD6OU-WczOSoF4.js → railroadDiagram-O6MQD6OU-CQ0Qmd0t.js} +2 -2
  142. package/dist/client/assets/{renderScheduler-BLjFSKnt.js → renderScheduler-CFozWmL-.js} +2 -2
  143. package/dist/client/assets/{requirementDiagram-BXWQKSXE-B3qCIQP5.js → requirementDiagram-BXWQKSXE-ssGfFSCi.js} +2 -2
  144. package/dist/client/assets/{runtime-Bni_zt6P.js → runtime-C2Cbg6bw.js} +2 -2
  145. package/dist/client/assets/{runtime-D8mKjOP-.js → runtime-C9FXEGBC.js} +3 -3
  146. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-e2-j7ERe.js → sankeyDiagram-P5KCCOFB-CTZUXdFj.js} +2 -2
  147. package/dist/client/assets/{scheduledTasksSettings.logic-BNC897-_.js → scheduledTasksSettings.logic-Cucrqmxt.js} +2 -2
  148. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-DG7-8UJk.js → sequenceDiagram-WJ2MYXX4-B8uW-gHN.js} +2 -2
  149. package/dist/client/assets/{server-CaLEm3Wt.js → server-B3nCKBrK.js} +2 -2
  150. package/dist/client/assets/{session-2CRBJwS7.js → session-DtKtS09P.js} +2 -2
  151. package/dist/client/assets/{session-logic-BLOBsHEA.js → session-logic-P3KsudEl.js} +2 -2
  152. package/dist/client/assets/{settings-BIwaDm1N.js → settings-BNJbLRpG.js} +2 -2
  153. package/dist/client/assets/{settings.appearance-ToUM8fHh.js → settings.appearance-DKLKCSXj.js} +2 -2
  154. package/dist/client/assets/settings.archived-BeEB6d0D.js +2 -0
  155. package/dist/client/assets/{settings.computer-use-BEghs16L.js → settings.computer-use-BcdKzzUy.js} +2 -2
  156. package/dist/client/assets/{settings.connections-C_LVk0gJ.js → settings.connections-Cjmfz_7g.js} +2 -2
  157. package/dist/client/assets/{settings.data-controls-BaTil8NB.js → settings.data-controls-CZHmsfBq.js} +2 -2
  158. package/dist/client/assets/{settings.decisions-JTbMt08J.js → settings.decisions-C3WA_g2Z.js} +2 -2
  159. package/dist/client/assets/{settings.diagnostics-ByG62ZGs.js → settings.diagnostics-Bfh6T3JX.js} +2 -2
  160. package/dist/client/assets/{settings.general-BT78z_Cn.js → settings.general-HB-_Jy6d.js} +2 -2
  161. package/dist/client/assets/{settings.integrations-C3jj2T1d.js → settings.integrations-C-uLxrlE.js} +2 -2
  162. package/dist/client/assets/{settings.keybindings-CeqZWQEi.js → settings.keybindings-BGq7j4EC.js} +2 -2
  163. package/dist/client/assets/{settings.open-source-licenses-BAFwkfI8.js → settings.open-source-licenses-VexlqZXJ.js} +2 -2
  164. package/dist/client/assets/settings.plugins-P_jMyYCz.js +5 -0
  165. package/dist/client/assets/{settings.projects-Cqx1zAvs.js → settings.projects-Bl6-Pt9m.js} +3 -3
  166. package/dist/client/assets/{settings.providers-CS55UrI1.js → settings.providers-Dk00EIn3.js} +3 -3
  167. package/dist/client/assets/{settings.scheduled-tasks-CFJTEOb1.js → settings.scheduled-tasks-IH5fvnPs.js} +2 -2
  168. package/dist/client/assets/{settings.snap-shot-E3AITJyC.js → settings.snap-shot-CaOvSkk3.js} +2 -2
  169. package/dist/client/assets/{settings.source-control-CWWy9E3b.js → settings.source-control-hwzkeaj5.js} +2 -2
  170. package/dist/client/assets/{settings.storage-BnUI1rFT.js → settings.storage-YtslAsAl.js} +2 -2
  171. package/dist/client/assets/{settingsLayout-DHc6oKfL.js → settingsLayout-Oe2gP0HD.js} +2 -2
  172. package/dist/client/assets/{sidebarProjectGrouping-DD4nu9RX.js → sidebarProjectGrouping-zfg6kMP5.js} +2 -2
  173. package/dist/client/assets/{sortable.esm-BAEGChD3.js → sortable.esm-CFdu6ubt.js} +2 -2
  174. package/dist/client/assets/{sourceControl-BAghu6LN.js → sourceControl-CNpb3juM.js} +2 -2
  175. package/dist/client/assets/{stateDiagram-D77RDMKH-CpZF58eW.js → stateDiagram-D77RDMKH-BXjvJECk.js} +2 -2
  176. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DoChugDq.js +2 -0
  177. package/dist/client/assets/{swimlanes-42K2YHIH-D1b49puG.js → swimlanes-42K2YHIH-BuQKiVFK.js} +2 -2
  178. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-Bwk0C9Yw.js +9 -0
  179. package/dist/client/assets/{terminalSessions-Q2t1JYPS.js → terminalSessions-C0i8FMIw.js} +2 -2
  180. package/dist/client/assets/{threadSort-C5oCCRfj.js → threadSort-urWEkJav.js} +2 -2
  181. package/dist/client/assets/{timeline-definition-24CTP7MA-89AJY6KO.js → timeline-definition-24CTP7MA-gsy_kdrp.js} +2 -2
  182. package/dist/client/assets/{toast-DhMYg_gN.js → toast-D1xgN6T2.js} +2 -2
  183. package/dist/client/assets/{treeView-Q6P3EWNA-CqNF2YcW.js → treeView-Q6P3EWNA-BHvMPOqK.js} +1 -1
  184. package/dist/client/assets/{treemap-WGGIJYW6-LJa3ZEYA.js → treemap-WGGIJYW6-D8SWHA1Z.js} +1 -1
  185. package/dist/client/assets/{usage-CJVyABbK.js → usage-BsNTrKRO.js} +2 -2
  186. package/dist/client/assets/{use-atom-command-x4GQBtio.js → use-atom-command-DFVJioxM.js} +2 -2
  187. package/dist/client/assets/{useHandleNewThread-CReGBX6y.js → useHandleNewThread-D3kzOunA.js} +2 -2
  188. package/dist/client/assets/{usePullRequestActions-BL4mjngC.js → usePullRequestActions-eR9_K37m.js} +2 -2
  189. package/dist/client/assets/{useScopedModelAvailability-CBOIiaXC.js → useScopedModelAvailability-DloNarQ1.js} +2 -2
  190. package/dist/client/assets/{useSettings-Dx076NWT.js → useSettings-BVUg52H2.js} +2 -2
  191. package/dist/client/assets/{useT3ConnectAuthPrompt-1zTdZLsH.js → useT3ConnectAuthPrompt-iHfw63uu.js} +2 -2
  192. package/dist/client/assets/{vcsRefInvalidation-46AnO9mr.js → vcsRefInvalidation-DZeFb_fD.js} +2 -2
  193. package/dist/client/assets/{vennDiagram-4TSXK5OY-CvvE7gMp.js → vennDiagram-4TSXK5OY-DWeHYWRx.js} +2 -2
  194. package/dist/client/assets/{wardley-WFR3VGLG-Ca8Qzkpo.js → wardley-WFR3VGLG-CfPV8k7N.js} +1 -1
  195. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-BBSNgSMI.js → wardleyDiagram-VM6X3IG4-D0SH6I3q.js} +2 -2
  196. package/dist/client/assets/{welcome-B3wsq5wK.js → welcome-BWkyKuVQ.js} +2 -2
  197. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-D8OhWe48.js → xychartDiagram-S5SC5T6Z-CHYweeaE.js} +2 -2
  198. package/dist/client/index.html +1 -1
  199. package/dist/{renderer-C4CdFj__.mjs → renderer-BFtino0A.mjs} +2 -2
  200. package/dist/{runtime-CCVFqL3Y.mjs → runtime-ERvpj9Mz.mjs} +3 -3
  201. package/package.json +1 -1
  202. package/dist/client/assets/architecture-7GRP2DOG-CiMEl2LX.js +0 -1
  203. package/dist/client/assets/channel-CDbYAV2D.js +0 -2
  204. package/dist/client/assets/classDiagram-ZZMXUADV-Cdtwlmxc.js +0 -2
  205. package/dist/client/assets/classDiagram-v2-VYDZK3BY-Cdtwlmxc.js +0 -2
  206. package/dist/client/assets/eventmodeling-NTZA5JFV-DNKqiuCf.js +0 -1
  207. package/dist/client/assets/flowDiagram-HODETNUW-CbOoDtR7.js +0 -1
  208. package/dist/client/assets/railroad-abnf-HS5TGJTU-BtC_0p6z.js +0 -1
  209. package/dist/client/assets/railroad-ebnf-LZEXJU2U-IeTBC6cs.js +0 -1
  210. package/dist/client/assets/railroad-peg-WCYAUIDC-DLoLKYq3.js +0 -1
  211. package/dist/client/assets/settings.archived-Cq_qclay.js +0 -2
  212. package/dist/client/assets/settings.plugins-D5l1ZPSB.js +0 -5
  213. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DewOo-MV.js +0 -2
  214. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-d9EGwk-5.js +0 -9
@@ -1,8 +1,8 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-oBChb5qS.js";import{D as r,H as i,K as a,U as o,a as s,c,f as l,v as u,w as d,x as f,y as p,z as m}from"./chunk-DU6HZSFF-B6TRgw4-.js";import{t as h}from"./linear-BUnzfXgk.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-oBChb5qS.js";import{D as r,H as i,K as a,U as o,a as s,c,f as l,v as u,w as d,x as f,y as p,z as m}from"./chunk-DU6HZSFF-CxOE2RJx.js";import{t as h}from"./linear-BUnzfXgk.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
5
  `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
6
  `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return e($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=r(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{e(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:l.quadrantChart?.chartWidth||500,chartWidth:l.quadrantChart?.chartHeight||500,titlePadding:l.quadrantChart?.titlePadding||10,titleFontSize:l.quadrantChart?.titleFontSize||20,quadrantPadding:l.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:l.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:l.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:l.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:l.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:l.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:l.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:l.quadrantChart?.pointTextPadding||5,pointLabelFontSize:l.quadrantChart?.pointLabelFontSize||12,pointRadius:l.quadrantChart?.pointRadius||5,xAxisPosition:l.quadrantChart?.xAxisPosition||`top`,yAxisPosition:l.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:l.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:l.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,t.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){t.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){t.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=h().domain([0,1]).range([r,a+r]),s=h().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{e(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}e(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}e(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}e(C,`validateSizeInPixels`);function w(e){return m(e.trim(),f())}e(w,`textSanitizer`);var T=new y;function E(e){T.setData({quadrant1Text:w(e.text)})}e(E,`setQuadrant1Text`);function D(e){T.setData({quadrant2Text:w(e.text)})}e(D,`setQuadrant2Text`);function O(e){T.setData({quadrant3Text:w(e.text)})}e(O,`setQuadrant3Text`);function k(e){T.setData({quadrant4Text:w(e.text)})}e(k,`setQuadrant4Text`);function A(e){T.setData({xAxisLeftText:w(e.text)})}e(A,`setXAxisLeftText`);function j(e){T.setData({xAxisRightText:w(e.text)})}e(j,`setXAxisRightText`);function M(e){T.setData({yAxisTopText:w(e.text)})}e(M,`setYAxisTopText`);function N(e){T.setData({yAxisBottomText:w(e.text)})}e(N,`setYAxisBottomText`);function P(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}e(P,`parseStyles`);function F(e,t,n,r,i){let a=P(i);T.addPoints([{x:n,y:r,text:w(e.text),className:t,...a}])}e(F,`addPoint`);function I(e,t){T.addClass(e,P(t))}e(I,`addClass`);function L(e){T.setConfig({chartWidth:e})}e(L,`setWidth`);function R(e){T.setConfig({chartHeight:e})}e(R,`setHeight`);function z(){let{themeVariables:e,quadrantChart:t}=f();return t&&T.setConfig(t),T.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),T.setData({titleText:d()}),T.build()}e(z,`getQuadrantData`);var B={parser:_,db:{setWidth:L,setHeight:R,setQuadrant1Text:E,setQuadrant2Text:D,setQuadrant3Text:O,setQuadrant4Text:k,setXAxisLeftText:A,setXAxisRightText:j,setYAxisTopText:M,setYAxisBottomText:N,parseStyles:P,addPoint:F,addClass:I,getQuadrantData:z,clear:e(function(){T.clear(),s()},`clear`),setAccTitle:o,getAccTitle:p,setDiagramTitle:a,getDiagramTitle:d,getAccDescription:u,setAccDescription:i},renderer:{draw:e((r,i,a,o)=>{function s(e){return e===`top`?`hanging`:`middle`}e(s,`getDominantBaseLine`);function l(e){return e===`left`?`start`:`middle`}e(l,`getTextAnchor`);function u(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e(u,`getTransformation`);let d=f();t.debug(`Rendering quadrant chart
7
7
  `+r);let p=d.securityLevel,m;p===`sandbox`&&(m=n(`#i`+i));let h=n(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`[id="${i}"]`),g=h.append(`g`).attr(`class`,`main`),_=d.quadrantChart?.chartWidth??500,v=d.quadrantChart?.chartHeight??500;c(h,v,_,d.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),o.db.setHeight(v),o.db.setWidth(_);let y=o.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,s(y.title.horizontalPos)).attr(`text-anchor`,l(y.title.verticalPos)).attr(`transform`,u(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>l(e.text.verticalPos)).attr(`transform`,e=>u(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>s(e.horizontalPos)).attr(`text-anchor`,e=>l(e.verticalPos)).attr(`transform`,e=>u(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>l(e.text.verticalPos)).attr(`transform`,e=>u(e.text))},`draw`)},styles:e(()=>``,`styles`)};export{B as diagram};
8
- //# sourceMappingURL=quadrantDiagram-AXDQQJYC-BTtuOXlL.js.map
8
+ //# sourceMappingURL=quadrantDiagram-AXDQQJYC-Cgrn1gJf.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,$y as r,Aw as i,BT as a,By as o,Cx as s,Cy as c,F_ as l,GS as u,G_ as d,Go as f,HS as p,IT as m,Iy as h,Jw as g,Lc as _,My as v,NE as y,NT as b,Ny as x,Ox as ee,Oy as te,P_ as ne,Q_ as re,Qo as ie,Ss as S,TT as ae,US as oe,VS as se,VT as ce,Vx as le,Vy as ue,Wy as de,Yb as fe,Yo as pe,Zo as C,Zw as me,Zx as w,_C as he,_v as ge,bT as _e,by as ve,cS as ye,cv as be,dl as xe,eb as Se,fl as Ce,fw as we,gv as Te,hS as Ee,il as De,iu as T,iv as E,jx as D,kv as Oe,lv as ke,mC as Ae,ms as je,nx as O,px as k,q_ as Me,qb as Ne,rb as Pe,rs as Fe,rv as Ie,rx as A,ss as j,tC as Le,us as Re,uy as M,wv as ze,xx as Be,ys as Ve,yw as He,zS as N,zT as P}from"./utils-BEVyjoxo.js";import{F as Ue,I as We,J as Ge,M as F,N as I,P as L,Z as Ke,_t as R,et as qe,it as Je,ot as Ye,pt as Xe,qt as Ze,st as Qe,tt as $e}from"./runtime-D8mKjOP-.js";import{a as z,i as B,n as et,r as tt,s as nt,t as rt}from"./vcsRefInvalidation-46AnO9mr.js";import{U as it,W as at}from"./entities-7B8nzlQw.js";import{t as V}from"./runtime-Bni_zt6P.js";import{n as H}from"./query-Bd5_Y_Vy.js";var U=y(),ot=Pe(ue([ve(M),De.fields.query])),st=r(ot);function ct(e,t){return JSON.stringify([[...e].sort((e,t)=>e.localeCompare(t)),t])}function lt(e){return st(e)}function ut(e){return JSON.stringify([e.environmentId,e.threadId])}function dt(e){return C(t=>n(n=>{let r=lt(t);if(m(r))return{matches:[],isLoading:!1};let[i,a]=r.value,o=[],s=!1;for(let t of i){let r=n(e.getSearchAtom(t,a));s||=r.waiting;let i=b(S(r));i!==null&&o.push(...i.matches.map(e=>({...e,environmentId:t})))}return{matches:o,isLoading:s}}).pipe(j(`${e.labelPrefix}:${t}`)))}var W=e(t(),1);function ft(e){return{v2:{dispatchCommand:F(e,{label:`environment-data:orchestration-v2:dispatch-command`,tag:T.dispatchCommand}),threadProjection:I(e,{label:`environment-data:orchestration-v2:thread-projection`,tag:T.getThreadProjection,staleTimeMs:0,idleTtlMs:0}),shell:L(e,{label:`environment-data:orchestration-v2:shell`,tag:T.subscribeShell}),thread:L(e,{label:`environment-data:orchestration-v2:thread`,tag:T.subscribeThread,idleTtlMs:0})},turnDiff:I(e,{label:`environment-data:orchestration:turn-diff`,tag:T.getTurnDiff}),workflowScript:I(e,{label:`environment-data:orchestration:workflow-script`,tag:T.getWorkflowScript,staleTimeMs:3e5,idleTtlMs:3e5}),stopWorkflow:F(e,{label:`environment-data:orchestration:stop-workflow`,tag:T.stopWorkflow}),rankUserInput:F(e,{label:`environment-data:orchestration:rank-user-input`,tag:_.userInputRank,concurrency:{mode:`singleFlight`,key:({environmentId:e,input:t})=>JSON.stringify([e,t])}}),turnItem:I(e,{label:`environment-data:orchestration:turn-item`,tag:T.getTurnItem,staleTimeMs:6e4,idleTtlMs:6e4}),fullThreadDiff:I(e,{label:`environment-data:orchestration:full-thread-diff`,tag:T.getFullThreadDiff}),threadFind:I(e,{label:`environment-data:orchestration:thread-find`,tag:T.searchThread,staleTimeMs:0,idleTtlMs:0}),threadFindProgressive:L(e,{label:`environment-data:orchestration:thread-find-progressive`,tag:T.searchThreadStream,completeWhen:e=>e.complete!==!1,idleTtlMs:0}),threadSearch:I(e,{label:`environment-data:orchestration:thread-search`,tag:T.searchThreads,staleTimeMs:3e4,idleTtlMs:6e4}),archivedShellSnapshot:I(e,{label:`environment-data:orchestration:archived-shell-snapshot`,tag:T.getArchivedShellSnapshot})}}var G=ft(V),pt=96;function mt(e){let t=e.at(-1);return e.length>1&&t?.waiting===!0&&m(S(t))}function ht({previousScrollTop:e,scrollTop:t,scrollHeight:n,clientHeight:r,distanceThreshold:i=pt}){return e===null||t<=e?!1:n-t-r<=i}var gt=`[0-9a-f]{8}`,_t=RegExp(`^(?:p4c[-/]${gt}|t3code(?:[-/]${gt}|\\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$`);function vt(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function yt(e){return _t.test(e.trim().toLowerCase())}function bt(e){return e.trim().replace(/[ \t\n\r\f\v]+/g,`-`)}var xt={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function K(e,t){return{...e,...t??xt}}function St(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function Ct(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree,...e.branchChanges?{branchChanges:e.branchChanges}:{}}}function wt(e,t){switch(t._tag){case`snapshot`:return K(t.local,t.remote);case`localUpdated`:return K(t.local,e?St(e):null);case`remoteUpdated`:return K(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:Ct(e),t.remote)}}var Tt=te([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),q=class extends o()(`VcsActionUnavailableError`,{operation:Tt,environmentId:v(M),cwd:v(h)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},Et=class extends o()(`VcsActionRemoteFailureError`,{actionId:h,transportActionId:h,action:Ce,environmentId:M,cwd:h,phase:v(xe),remoteMessageLength:x}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Dt=class extends o()(`VcsActionMissingTerminalEventError`,{actionId:h,transportActionId:h,action:Ce,environmentId:M,cwd:h}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Ot=class extends o()(`VcsActionTargetKeyParseError`,{keyLength:x,cause:c()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};de([Et,Dt]);var J=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),kt=()=>fe(Ne()),At=0,jt=Se(ue([M,h])),Y=C(e=>n(J).pipe(ie,j(`vcs-action:${e}`))),Mt=n(J).pipe(ie,j(`vcs-action:null`));function X(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Nt(e){try{let[t,n]=jt(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Ot({keyLength:e.length,cause:t})}}function Pt(e){let t=X(e);return t===null?Mt:Y(t)}function Ft(){return At+=1,`local-vcs-action:${At}`}function Z(e){let t=e.actionId??Ft(),n=kt();return{...J,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function It(e,t,n){return{...J,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Lt(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Rt(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function zt(e,t){return se(()=>{let n=null;return e.pipe(ge(e=>{let r=Rt(t.target,t.transportActionId,t.actionId,e);return r===null?Le:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),ee(()=>n?.kind===`action_finished`?N(n.result):n?.kind===`action_failed`?s(new Et({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):s(new Dt({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Bt(e,t){if(e.actionId!==t.actionId)return e;let n=kt();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:null};case`action_failed`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Vt(e){let t=new Map,n=n=>{let r=X(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Nt(r),c=r===null?Mt:Y(r),l=We(e,{label:`vcs-action:run-stacked:${i}`,scheduler:z,concurrency:{mode:`serial`,key:()=>i},execute:(t,r)=>{if(o===null)return s(new q({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let i=Lt(o,t.actionId);r.set(c,Z({operation:`run_change_request`,label:`Running source control action`,actionId:t.actionId}));let a={actionId:i,cwd:o.cwd,action:t.action,...t.commitMessage?{commitMessage:t.commitMessage}:{},...t.featureBranch?{featureBranch:!0}:{},...t.filePaths?.length?{filePaths:[...t.filePaths]}:{},...t.threadId===void 0?{}:{threadId:t.threadId},...t.projectId===void 0?{}:{projectId:t.projectId}},l=p(()=>{r.get(c).actionId===t.actionId&&r.set(c,J)});return zt(Qe(o.environmentId,qe(_.gitRunStackedAction,a)),{target:o,transportActionId:i,actionId:t.actionId,action:t.action,onProgress:e=>p(()=>{let n=r.get(c);if(n.actionId===t.actionId&&(r.set(c,Bt(n,e)),t.onProgress!==void 0))try{t.onProgress(e)}catch{}})}).pipe(Ee(Ge,{authorize:(t,n,i)=>Je(e,n).authorize(r,t,i)}),Be(rt(r,o)),oe(()=>l),u(e=>p(()=>{let n=r.get(c);n.actionId===t.actionId&&n.isRunning&&r.set(c,It(`run_change_request`,t.actionId,e))})),ye(()=>l))}});return t.set(i,l),l},r=(e,t,n)=>{let r=X(t);if(r===null)return;let i=Y(r);e.set(i,n(e.get(i)))};return{stateAtom:Pt,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let a=X(t);if(a===null)return je(we(new q({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let o=Y(a),s=Z(n);e.set(o,s);let c=await r();return e.get(o).actionId===s.actionId&&(Ve(c)||He(c.cause)?e.set(o,J):e.get(o).actionId===s.actionId&&e.set(o,It(n.operation,s.actionId,i(c.cause)))),c},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?J:e)}}}var Ht=100,Ut=3e4,Wt=1e4,Gt=Ae(`1 second`).pipe(he(({duration:e})=>N(g(e,me(30)))));function Kt(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Ht}var qt=D(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*tt(n.environmentId,le(function*(){let r=et({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let a=i.persistedCacheReadable;return n.persist&&(a||=yield*t.clearVcsRefs(n.environmentId).pipe(A(!0),k(e=>w(`Could not recover invalidated cached Git refs.`).pipe(O({environmentId:n.environmentId,cwd:n.cwd,...R(e)}),A(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(k(e=>w(`Could not persist cached Git refs.`).pipe(O({environmentId:n.environmentId,cwd:n.cwd,...R(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),Jt=D(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*Xe,o=yield*Ze,s=i.target.environmentId,c=Kt(e),f=c&&r?yield*o.loadVcsRefs(s,e.cwd).pipe(k(t=>w(`Could not load cached Git refs.`).pipe(O({environmentId:s,cwd:e.cwd,...R(t)}),A(a())))):a(),p=D(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ke(_.vcsListRefs,e).pipe(Ee(Xe,i)),l=o.saveVcsRefs(s,e.cwd,r).pipe(k(t=>w(`Could not persist cached Git refs.`).pipe(O({environmentId:s,cwd:e.cwd,...R(t)}))));return t===void 0||n===void 0?(c&&(yield*l),ce(r)):(yield*qt(n,o,{environmentId:s,cwd:e.cwd,refs:r,expectedRevision:t,persist:c}))?ce(r):a()}),m=E(N(f)).pipe(Ie(e=>P(e,{onNone:()=>_e,onSome:ae}))),h=Me(E(l(i.state)),ne(i.state)).pipe(be(e=>e.phase===`connected`?e.generation:null),d,ze(t=>t===null?re:E(p().pipe(u(t=>w(`Could not refresh Git refs.`).pipe(O({environmentId:s,cwd:e.cwd,...R(t)}))))).pipe(Te(Gt),Ie(e=>P(e,{onNone:()=>_e,onSome:ae})))));return Me(m,h)});function Yt(e,t,n,r){return Ye(e,Oe(le(function*(){return yield*Jt(t,n,yield*Re,r)})))}function Xt(e){let t=C(t=>{let[n,r]=JSON.parse(t);return e.atom(e=>{let t=e(et({environmentId:n}));return Yt(n,r,t.revision,t.persistedCacheReadable)}).pipe(Fe(Ut),j(`environment-data:vcs:list-refs:${t}`))}),n=e=>t(JSON.stringify([e.environmentId,e.input])),r=(e,t)=>rt(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:Ue(e,{label:`environment-data:vcs:status`,idleTtlMs:Wt,subscribe:e=>$e(_.subscribeVcsStatus,e).pipe(ke(()=>null,(e,t)=>{let n=wt(e,t);return[n,[n]]}))}),pull:F(e,{label:`environment-data:vcs:pull`,tag:_.vcsPull,scheduler:z,concurrency:B,onSettled:r}),refreshStatus:F(e,{label:`environment-data:vcs:refresh-status`,tag:_.vcsRefreshStatus,scheduler:z,concurrency:B,onSettled:r}),createWorktree:F(e,{label:`environment-data:vcs:create-worktree`,tag:_.vcsCreateWorktree,scheduler:z,concurrency:B,onSettled:r}),worktreeSetup:L(e,{label:`environment-data:vcs:worktree-setup`,tag:_.subscribeWorktreeSetup,idleTtlMs:Wt}),cancelWorktreeSetup:F(e,{label:`environment-data:vcs:cancel-worktree-setup`,tag:_.worktreeSetupCancel}),removeWorktree:F(e,{label:`environment-data:vcs:remove-worktree`,tag:_.vcsRemoveWorktree,scheduler:z,concurrency:B,onSettled:r}),createRef:F(e,{label:`environment-data:vcs:create-ref`,tag:_.vcsCreateRef,scheduler:z,concurrency:B,onSettled:r}),switchRef:F(e,{label:`environment-data:vcs:switch-ref`,tag:_.vcsSwitchRef,scheduler:z,concurrency:B,onSettled:r}),init:F(e,{label:`environment-data:vcs:init`,tag:_.vcsInit,scheduler:z,concurrency:B,onSettled:r})}}var Zt=Xt(V),Qt=Vt(V),$t=120,en=80,tn=120,nn=500,rn=200,an=100,on=[],sn=[],cn=[],Q=[void 0],ln=Object.freeze([]),un=n({matches:ln,isLoading:!1}).pipe(j(`web:thread-search:empty`)),dn=dt({getSearchAtom:(e,t)=>G.threadSearch({environmentId:e,input:{query:t}}),labelPrefix:`web:thread-search`});function $(e,t){let n=(0,U.c)(4),[r,i]=(0,W.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=window.setTimeout(()=>{i(e)},t);return()=>{window.clearTimeout(n)}},o=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,W.useEffect)(a,o),r}function fn(e,t){let n=(0,U.c)(11),r;n[0]===t?r=n[1]:(r=t.trim(),n[0]=t,n[1]=r);let i=r,a=$(i,rn),o=e.length>0&&i.length>=2,s=o&&i===a?a:null,c;n[2]!==e||n[3]!==s?(c=s===null?null:ct(e,s),n[2]=e,n[3]=s,n[4]=c):c=n[4];let l=c,u;n[5]===l?u=n[6]:(u=l===null?un:dn(l),n[5]=l,n[6]=u);let d=pe(u),f=o&&i!==a,p=f?ln:d.matches,m=s??``,h=o&&(f||d.isLoading),g;return n[7]!==p||n[8]!==m||n[9]!==h?(g={matches:p,query:m,isPending:h},n[7]=p,n[8]=m,n[9]=h,n[10]=g):g=n[10],g}function pn(e){let t=e.query?.trim()??``,r=e.environmentId!==null&&e.cwd!==null?JSON.stringify([e.environmentId,e.cwd,t]):null,[a,o]=(0,W.useState)({targetKey:r,cursors:Q}),s=a.targetKey===r?a.cursors:Q,c=(0,W.useMemo)(()=>e.environmentId!==null&&e.cwd!==null?s.map(n=>Zt.listRefs({environmentId:e.environmentId,input:{cwd:e.cwd,...t.length>0?{query:t}:{},...n===void 0?{}:{cursor:n},limit:an}})):[],[s,t,e.cwd,e.environmentId]),l=(0,W.useMemo)(()=>n(e=>c.map(t=>e(t))).pipe(j(`web:vcs-ref-pages:${r??`empty`}`)),[c,r]),u=pe(l),d=u.flatMap(e=>{let t=b(S(e));return t===null?[]:[t]}),p=new Map;for(let e of d)for(let t of e.refs)p.set(t.name,t);let m=d[0]??null,h=d.at(-1)??null,g=m===null||h===null?null:{refs:[...p.values()],isRepo:m.isRepo,hasPrimaryRemote:m.hasPrimaryRemote,nextCursor:h.nextCursor,totalCount:Math.max(...d.map(e=>e.totalCount))},_=u.find(e=>e._tag===`Failure`),v=mt(u),y=_?._tag===`Failure`?(()=>{let e=i(_.cause);return e instanceof Error&&e.message.trim().length>0?e.message:`Failed to load refs.`})():null,x=(0,W.useCallback)(()=>{let e=c[0];o({targetKey:r,cursors:Q}),e!==void 0&&f.refresh(e)},[c,r]),ee=(0,W.useCallback)(()=>{r!==null&&g?.nextCursor!==null&&g?.nextCursor!==void 0&&o(e=>{let t=e.targetKey===r?e.cursors:Q;return t.includes(g.nextCursor)?{targetKey:r,cursors:t}:{targetKey:r,cursors:[...t,g.nextCursor]}})},[g?.nextCursor,r]);return{data:g,refs:g?.refs??on,error:y,isPending:u.some(e=>e.waiting),isFetchingNextPage:v,refresh:x,loadNext:ee}}function mn(e,t){return e.environmentId===t.environmentId&&e.cwd===t.cwd&&e.query===t.query&&e.kind===t.kind&&e.imageOnly===t.imageOnly}function hn(e,t,n){let r=(0,U.c)(32),i=n?.allowEmptyQuery===!0,a;r[0]===e.query?a=r[1]:(a=e.query==null?null:e.query.trim(),r[0]=e.query,r[1]=a);let o;r[2]!==a||r[3]!==e.cwd||r[4]!==e.environmentId||r[5]!==e.imageOnly||r[6]!==e.kind?(o={environmentId:e.environmentId,cwd:e.cwd,query:a,kind:e.kind,imageOnly:e.imageOnly},r[2]=a,r[3]=e.cwd,r[4]=e.environmentId,r[5]=e.imageOnly,r[6]=e.kind,r[7]=o):o=r[7];let s=o,c=$(s,$t),l=nt(c.environmentId),{canReadFiles:u}=l,d,f,p;r[8]!==i||r[9]!==u||r[10]!==c.cwd||r[11]!==c.environmentId||r[12]!==c.imageOnly||r[13]!==c.kind||r[14]!==c.query||r[15]!==t?(d=c.environmentId!==null&&c.cwd!==null&&c.query!==null&&(i||c.query.length>0)?{environmentId:c.environmentId,input:{cwd:c.cwd,query:c.query,limit:t,...c.kind?{kind:c.kind}:{},...c.imageOnly?{imageOnly:!0}:{}}}:null,f=H,p=u&&d!==null?at.searchEntries(d):null,r[8]=i,r[9]=u,r[10]=c.cwd,r[11]=c.environmentId,r[12]=c.imageOnly,r[13]=c.kind,r[14]=c.query,r[15]=t,r[16]=d,r[17]=f,r[18]=p):(d=r[16],f=r[17],p=r[18]);let m=f(p),h=d!==null,g=m.data?.entries??sn,_=!h||l.isPending?null:u?m.error:l.error??`This connection cannot search host files.`,v;r[19]!==c||r[20]!==l.isPending||r[21]!==h||r[22]!==s||r[23]!==m.isPending?(v=!mn(s,c)||h&&(l.isPending||m.isPending),r[19]=c,r[20]=l.isPending,r[21]=h,r[22]=s,r[23]=m.isPending,r[24]=v):v=r[24];let y=c.query??``,b=m.data?.truncated??!1,x;return r[25]!==m.refresh||r[26]!==g||r[27]!==_||r[28]!==v||r[29]!==y||r[30]!==b?(x={entries:g,error:_,isPending:v,searchedQuery:y,truncated:b,refresh:m.refresh},r[25]=m.refresh,r[26]=g,r[27]=_,r[28]=v,r[29]=y,r[30]=b,r[31]=x):x=r[31],x}function gn(e){return hn(e,en)}function _n(e){let t=(0,U.c)(20),n=e.environmentId!==null&&e.cwd!==null,r=nt(e.environmentId),i=n&&r.canReadFiles,a=n&&r.isPending,o=e.query,s;t[0]===o?s=t[1]:(s=o.trim(),t[0]=o,t[1]=s);let c=s.length>0,l=$(o,tn),u;t[2]!==i||t[3]!==l||t[4]!==c||t[5]!==e.caseSensitive||t[6]!==e.cwd||t[7]!==e.environmentId||t[8]!==e.useRegex||t[9]!==e.wholeWord?(u=i&&e.environmentId!==null&&e.cwd!==null&&c&&l.trim().length>0?it({environmentId:e.environmentId,input:{cwd:e.cwd,query:l,limit:nn,caseSensitive:e.caseSensitive,wholeWord:e.wholeWord,useRegex:e.useRegex}}):null,t[2]=i,t[3]=l,t[4]=c,t[5]=e.caseSensitive,t[6]=e.cwd,t[7]=e.environmentId,t[8]=e.useRegex,t[9]=e.wholeWord,t[10]=u):u=t[10];let d=H(u),f=d.data?.matches??cn,p=!n||a?null:i?d.error:r.error??`This connection cannot search host files.`,m=a||i&&c&&(o!==l||d.isPending),h=d.data?.truncated??!1,g=e.useRegex&&d.data?.regexFallbackError!==void 0,_;return t[11]!==i||t[12]!==c||t[13]!==a||t[14]!==f||t[15]!==p||t[16]!==m||t[17]!==h||t[18]!==g?(_={canReadFiles:i,isCheckingAccess:a,matches:f,error:p,isPending:m,hasQuery:c,truncated:h,invalidRegex:g},t[11]=i,t[12]=c,t[13]=a,t[14]=f,t[15]=p,t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19],_}function vn(e,t){let n=t?.enabled!==!1&&e.environmentId!==null&&e.threadId!==null&&e.fromTurnCount!==null&&e.toTurnCount!==null,r=n&&e.fromTurnCount===0?{environmentId:e.environmentId,input:{threadId:e.threadId,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,i=n&&e.fromTurnCount!==0?{environmentId:e.environmentId,input:{threadId:e.threadId,fromTurnCount:e.fromTurnCount,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,a=H(r===null?null:G.fullThreadDiff(r)),o=H(i===null?null:G.turnDiff(i));return r===null?o:a}function yn(e){let t=(0,U.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?null:G.turnItem({environmentId:e.environmentId,input:{threadId:e.threadId,itemId:e.itemId,revision:e.revision}}),t[0]=e,t[1]=n),H(n)}export{ut as _,_n as a,yn as c,q as d,vt as f,G as g,ht as h,pn as i,Qt as l,bt as m,gn as n,hn as o,yt as p,$ as r,fn as s,vn as t,Zt as u};
2
- //# sourceMappingURL=queries-DkmaXOL-.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,$y as r,Aw as i,BT as a,By as o,Cx as s,Cy as c,F_ as l,GS as u,G_ as d,Go as f,HS as p,IT as m,Iy as h,Jw as g,Lc as _,My as v,NE as y,NT as b,Ny as x,Ox as ee,Oy as te,P_ as ne,Q_ as re,Qo as ie,Ss as S,TT as ae,US as oe,VS as se,VT as ce,Vx as le,Vy as ue,Wy as de,Yb as fe,Yo as pe,Zo as C,Zw as me,Zx as w,_C as he,_v as ge,bT as _e,by as ve,cS as ye,cv as be,dl as xe,eb as Se,fl as Ce,fw as we,gv as Te,hS as Ee,il as De,iu as T,iv as E,jx as D,kv as Oe,lv as ke,mC as Ae,ms as je,nx as O,px as k,q_ as Me,qb as Ne,rb as Pe,rs as Fe,rv as Ie,rx as A,ss as j,tC as Le,us as Re,uy as M,wv as ze,xx as Be,ys as Ve,yw as He,zS as N,zT as P}from"./utils-BEVyjoxo.js";import{F as Ue,I as We,J as Ge,M as F,N as I,P as L,Z as Ke,_t as R,et as qe,it as Je,ot as Ye,pt as Xe,qt as Ze,st as Qe,tt as $e}from"./runtime-C9FXEGBC.js";import{a as z,i as B,n as et,r as tt,s as nt,t as rt}from"./vcsRefInvalidation-DZeFb_fD.js";import{U as it,W as at}from"./entities-B2DNkHHQ.js";import{t as V}from"./runtime-C2Cbg6bw.js";import{n as H}from"./query-Bd5_Y_Vy.js";var U=y(),ot=Pe(ue([ve(M),De.fields.query])),st=r(ot);function ct(e,t){return JSON.stringify([[...e].sort((e,t)=>e.localeCompare(t)),t])}function lt(e){return st(e)}function ut(e){return JSON.stringify([e.environmentId,e.threadId])}function dt(e){return C(t=>n(n=>{let r=lt(t);if(m(r))return{matches:[],isLoading:!1};let[i,a]=r.value,o=[],s=!1;for(let t of i){let r=n(e.getSearchAtom(t,a));s||=r.waiting;let i=b(S(r));i!==null&&o.push(...i.matches.map(e=>({...e,environmentId:t})))}return{matches:o,isLoading:s}}).pipe(j(`${e.labelPrefix}:${t}`)))}var W=e(t(),1);function ft(e){return{v2:{dispatchCommand:F(e,{label:`environment-data:orchestration-v2:dispatch-command`,tag:T.dispatchCommand}),threadProjection:I(e,{label:`environment-data:orchestration-v2:thread-projection`,tag:T.getThreadProjection,staleTimeMs:0,idleTtlMs:0}),shell:L(e,{label:`environment-data:orchestration-v2:shell`,tag:T.subscribeShell}),thread:L(e,{label:`environment-data:orchestration-v2:thread`,tag:T.subscribeThread,idleTtlMs:0})},turnDiff:I(e,{label:`environment-data:orchestration:turn-diff`,tag:T.getTurnDiff}),workflowScript:I(e,{label:`environment-data:orchestration:workflow-script`,tag:T.getWorkflowScript,staleTimeMs:3e5,idleTtlMs:3e5}),stopWorkflow:F(e,{label:`environment-data:orchestration:stop-workflow`,tag:T.stopWorkflow}),rankUserInput:F(e,{label:`environment-data:orchestration:rank-user-input`,tag:_.userInputRank,concurrency:{mode:`singleFlight`,key:({environmentId:e,input:t})=>JSON.stringify([e,t])}}),turnItem:I(e,{label:`environment-data:orchestration:turn-item`,tag:T.getTurnItem,staleTimeMs:6e4,idleTtlMs:6e4}),fullThreadDiff:I(e,{label:`environment-data:orchestration:full-thread-diff`,tag:T.getFullThreadDiff}),threadFind:I(e,{label:`environment-data:orchestration:thread-find`,tag:T.searchThread,staleTimeMs:0,idleTtlMs:0}),threadFindProgressive:L(e,{label:`environment-data:orchestration:thread-find-progressive`,tag:T.searchThreadStream,completeWhen:e=>e.complete!==!1,idleTtlMs:0}),threadSearch:I(e,{label:`environment-data:orchestration:thread-search`,tag:T.searchThreads,staleTimeMs:3e4,idleTtlMs:6e4}),archivedShellSnapshot:I(e,{label:`environment-data:orchestration:archived-shell-snapshot`,tag:T.getArchivedShellSnapshot})}}var G=ft(V),pt=96;function mt(e){let t=e.at(-1);return e.length>1&&t?.waiting===!0&&m(S(t))}function ht({previousScrollTop:e,scrollTop:t,scrollHeight:n,clientHeight:r,distanceThreshold:i=pt}){return e===null||t<=e?!1:n-t-r<=i}var gt=`[0-9a-f]{8}`,_t=RegExp(`^(?:p4c[-/]${gt}|t3code(?:[-/]${gt}|\\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$`);function vt(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function yt(e){return _t.test(e.trim().toLowerCase())}function bt(e){return e.trim().replace(/[ \t\n\r\f\v]+/g,`-`)}var xt={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function K(e,t){return{...e,...t??xt}}function St(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function Ct(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree,...e.branchChanges?{branchChanges:e.branchChanges}:{}}}function wt(e,t){switch(t._tag){case`snapshot`:return K(t.local,t.remote);case`localUpdated`:return K(t.local,e?St(e):null);case`remoteUpdated`:return K(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:Ct(e),t.remote)}}var Tt=te([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),q=class extends o()(`VcsActionUnavailableError`,{operation:Tt,environmentId:v(M),cwd:v(h)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},Et=class extends o()(`VcsActionRemoteFailureError`,{actionId:h,transportActionId:h,action:Ce,environmentId:M,cwd:h,phase:v(xe),remoteMessageLength:x}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Dt=class extends o()(`VcsActionMissingTerminalEventError`,{actionId:h,transportActionId:h,action:Ce,environmentId:M,cwd:h}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Ot=class extends o()(`VcsActionTargetKeyParseError`,{keyLength:x,cause:c()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};de([Et,Dt]);var J=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),kt=()=>fe(Ne()),At=0,jt=Se(ue([M,h])),Y=C(e=>n(J).pipe(ie,j(`vcs-action:${e}`))),Mt=n(J).pipe(ie,j(`vcs-action:null`));function X(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Nt(e){try{let[t,n]=jt(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Ot({keyLength:e.length,cause:t})}}function Pt(e){let t=X(e);return t===null?Mt:Y(t)}function Ft(){return At+=1,`local-vcs-action:${At}`}function Z(e){let t=e.actionId??Ft(),n=kt();return{...J,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function It(e,t,n){return{...J,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Lt(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Rt(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function zt(e,t){return se(()=>{let n=null;return e.pipe(ge(e=>{let r=Rt(t.target,t.transportActionId,t.actionId,e);return r===null?Le:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),ee(()=>n?.kind===`action_finished`?N(n.result):n?.kind===`action_failed`?s(new Et({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):s(new Dt({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Bt(e,t){if(e.actionId!==t.actionId)return e;let n=kt();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:null};case`action_failed`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Vt(e){let t=new Map,n=n=>{let r=X(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Nt(r),c=r===null?Mt:Y(r),l=We(e,{label:`vcs-action:run-stacked:${i}`,scheduler:z,concurrency:{mode:`serial`,key:()=>i},execute:(t,r)=>{if(o===null)return s(new q({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let i=Lt(o,t.actionId);r.set(c,Z({operation:`run_change_request`,label:`Running source control action`,actionId:t.actionId}));let a={actionId:i,cwd:o.cwd,action:t.action,...t.commitMessage?{commitMessage:t.commitMessage}:{},...t.featureBranch?{featureBranch:!0}:{},...t.filePaths?.length?{filePaths:[...t.filePaths]}:{},...t.threadId===void 0?{}:{threadId:t.threadId},...t.projectId===void 0?{}:{projectId:t.projectId}},l=p(()=>{r.get(c).actionId===t.actionId&&r.set(c,J)});return zt(Qe(o.environmentId,qe(_.gitRunStackedAction,a)),{target:o,transportActionId:i,actionId:t.actionId,action:t.action,onProgress:e=>p(()=>{let n=r.get(c);if(n.actionId===t.actionId&&(r.set(c,Bt(n,e)),t.onProgress!==void 0))try{t.onProgress(e)}catch{}})}).pipe(Ee(Ge,{authorize:(t,n,i)=>Je(e,n).authorize(r,t,i)}),Be(rt(r,o)),oe(()=>l),u(e=>p(()=>{let n=r.get(c);n.actionId===t.actionId&&n.isRunning&&r.set(c,It(`run_change_request`,t.actionId,e))})),ye(()=>l))}});return t.set(i,l),l},r=(e,t,n)=>{let r=X(t);if(r===null)return;let i=Y(r);e.set(i,n(e.get(i)))};return{stateAtom:Pt,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let a=X(t);if(a===null)return je(we(new q({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let o=Y(a),s=Z(n);e.set(o,s);let c=await r();return e.get(o).actionId===s.actionId&&(Ve(c)||He(c.cause)?e.set(o,J):e.get(o).actionId===s.actionId&&e.set(o,It(n.operation,s.actionId,i(c.cause)))),c},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?J:e)}}}var Ht=100,Ut=3e4,Wt=1e4,Gt=Ae(`1 second`).pipe(he(({duration:e})=>N(g(e,me(30)))));function Kt(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Ht}var qt=D(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*tt(n.environmentId,le(function*(){let r=et({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let a=i.persistedCacheReadable;return n.persist&&(a||=yield*t.clearVcsRefs(n.environmentId).pipe(A(!0),k(e=>w(`Could not recover invalidated cached Git refs.`).pipe(O({environmentId:n.environmentId,cwd:n.cwd,...R(e)}),A(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(k(e=>w(`Could not persist cached Git refs.`).pipe(O({environmentId:n.environmentId,cwd:n.cwd,...R(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),Jt=D(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*Xe,o=yield*Ze,s=i.target.environmentId,c=Kt(e),f=c&&r?yield*o.loadVcsRefs(s,e.cwd).pipe(k(t=>w(`Could not load cached Git refs.`).pipe(O({environmentId:s,cwd:e.cwd,...R(t)}),A(a())))):a(),p=D(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ke(_.vcsListRefs,e).pipe(Ee(Xe,i)),l=o.saveVcsRefs(s,e.cwd,r).pipe(k(t=>w(`Could not persist cached Git refs.`).pipe(O({environmentId:s,cwd:e.cwd,...R(t)}))));return t===void 0||n===void 0?(c&&(yield*l),ce(r)):(yield*qt(n,o,{environmentId:s,cwd:e.cwd,refs:r,expectedRevision:t,persist:c}))?ce(r):a()}),m=E(N(f)).pipe(Ie(e=>P(e,{onNone:()=>_e,onSome:ae}))),h=Me(E(l(i.state)),ne(i.state)).pipe(be(e=>e.phase===`connected`?e.generation:null),d,ze(t=>t===null?re:E(p().pipe(u(t=>w(`Could not refresh Git refs.`).pipe(O({environmentId:s,cwd:e.cwd,...R(t)}))))).pipe(Te(Gt),Ie(e=>P(e,{onNone:()=>_e,onSome:ae})))));return Me(m,h)});function Yt(e,t,n,r){return Ye(e,Oe(le(function*(){return yield*Jt(t,n,yield*Re,r)})))}function Xt(e){let t=C(t=>{let[n,r]=JSON.parse(t);return e.atom(e=>{let t=e(et({environmentId:n}));return Yt(n,r,t.revision,t.persistedCacheReadable)}).pipe(Fe(Ut),j(`environment-data:vcs:list-refs:${t}`))}),n=e=>t(JSON.stringify([e.environmentId,e.input])),r=(e,t)=>rt(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:Ue(e,{label:`environment-data:vcs:status`,idleTtlMs:Wt,subscribe:e=>$e(_.subscribeVcsStatus,e).pipe(ke(()=>null,(e,t)=>{let n=wt(e,t);return[n,[n]]}))}),pull:F(e,{label:`environment-data:vcs:pull`,tag:_.vcsPull,scheduler:z,concurrency:B,onSettled:r}),refreshStatus:F(e,{label:`environment-data:vcs:refresh-status`,tag:_.vcsRefreshStatus,scheduler:z,concurrency:B,onSettled:r}),createWorktree:F(e,{label:`environment-data:vcs:create-worktree`,tag:_.vcsCreateWorktree,scheduler:z,concurrency:B,onSettled:r}),worktreeSetup:L(e,{label:`environment-data:vcs:worktree-setup`,tag:_.subscribeWorktreeSetup,idleTtlMs:Wt}),cancelWorktreeSetup:F(e,{label:`environment-data:vcs:cancel-worktree-setup`,tag:_.worktreeSetupCancel}),removeWorktree:F(e,{label:`environment-data:vcs:remove-worktree`,tag:_.vcsRemoveWorktree,scheduler:z,concurrency:B,onSettled:r}),createRef:F(e,{label:`environment-data:vcs:create-ref`,tag:_.vcsCreateRef,scheduler:z,concurrency:B,onSettled:r}),switchRef:F(e,{label:`environment-data:vcs:switch-ref`,tag:_.vcsSwitchRef,scheduler:z,concurrency:B,onSettled:r}),init:F(e,{label:`environment-data:vcs:init`,tag:_.vcsInit,scheduler:z,concurrency:B,onSettled:r})}}var Zt=Xt(V),Qt=Vt(V),$t=120,en=80,tn=120,nn=500,rn=200,an=100,on=[],sn=[],cn=[],Q=[void 0],ln=Object.freeze([]),un=n({matches:ln,isLoading:!1}).pipe(j(`web:thread-search:empty`)),dn=dt({getSearchAtom:(e,t)=>G.threadSearch({environmentId:e,input:{query:t}}),labelPrefix:`web:thread-search`});function $(e,t){let n=(0,U.c)(4),[r,i]=(0,W.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=window.setTimeout(()=>{i(e)},t);return()=>{window.clearTimeout(n)}},o=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,W.useEffect)(a,o),r}function fn(e,t){let n=(0,U.c)(11),r;n[0]===t?r=n[1]:(r=t.trim(),n[0]=t,n[1]=r);let i=r,a=$(i,rn),o=e.length>0&&i.length>=2,s=o&&i===a?a:null,c;n[2]!==e||n[3]!==s?(c=s===null?null:ct(e,s),n[2]=e,n[3]=s,n[4]=c):c=n[4];let l=c,u;n[5]===l?u=n[6]:(u=l===null?un:dn(l),n[5]=l,n[6]=u);let d=pe(u),f=o&&i!==a,p=f?ln:d.matches,m=s??``,h=o&&(f||d.isLoading),g;return n[7]!==p||n[8]!==m||n[9]!==h?(g={matches:p,query:m,isPending:h},n[7]=p,n[8]=m,n[9]=h,n[10]=g):g=n[10],g}function pn(e){let t=e.query?.trim()??``,r=e.environmentId!==null&&e.cwd!==null?JSON.stringify([e.environmentId,e.cwd,t]):null,[a,o]=(0,W.useState)({targetKey:r,cursors:Q}),s=a.targetKey===r?a.cursors:Q,c=(0,W.useMemo)(()=>e.environmentId!==null&&e.cwd!==null?s.map(n=>Zt.listRefs({environmentId:e.environmentId,input:{cwd:e.cwd,...t.length>0?{query:t}:{},...n===void 0?{}:{cursor:n},limit:an}})):[],[s,t,e.cwd,e.environmentId]),l=(0,W.useMemo)(()=>n(e=>c.map(t=>e(t))).pipe(j(`web:vcs-ref-pages:${r??`empty`}`)),[c,r]),u=pe(l),d=u.flatMap(e=>{let t=b(S(e));return t===null?[]:[t]}),p=new Map;for(let e of d)for(let t of e.refs)p.set(t.name,t);let m=d[0]??null,h=d.at(-1)??null,g=m===null||h===null?null:{refs:[...p.values()],isRepo:m.isRepo,hasPrimaryRemote:m.hasPrimaryRemote,nextCursor:h.nextCursor,totalCount:Math.max(...d.map(e=>e.totalCount))},_=u.find(e=>e._tag===`Failure`),v=mt(u),y=_?._tag===`Failure`?(()=>{let e=i(_.cause);return e instanceof Error&&e.message.trim().length>0?e.message:`Failed to load refs.`})():null,x=(0,W.useCallback)(()=>{let e=c[0];o({targetKey:r,cursors:Q}),e!==void 0&&f.refresh(e)},[c,r]),ee=(0,W.useCallback)(()=>{r!==null&&g?.nextCursor!==null&&g?.nextCursor!==void 0&&o(e=>{let t=e.targetKey===r?e.cursors:Q;return t.includes(g.nextCursor)?{targetKey:r,cursors:t}:{targetKey:r,cursors:[...t,g.nextCursor]}})},[g?.nextCursor,r]);return{data:g,refs:g?.refs??on,error:y,isPending:u.some(e=>e.waiting),isFetchingNextPage:v,refresh:x,loadNext:ee}}function mn(e,t){return e.environmentId===t.environmentId&&e.cwd===t.cwd&&e.query===t.query&&e.kind===t.kind&&e.imageOnly===t.imageOnly}function hn(e,t,n){let r=(0,U.c)(32),i=n?.allowEmptyQuery===!0,a;r[0]===e.query?a=r[1]:(a=e.query==null?null:e.query.trim(),r[0]=e.query,r[1]=a);let o;r[2]!==a||r[3]!==e.cwd||r[4]!==e.environmentId||r[5]!==e.imageOnly||r[6]!==e.kind?(o={environmentId:e.environmentId,cwd:e.cwd,query:a,kind:e.kind,imageOnly:e.imageOnly},r[2]=a,r[3]=e.cwd,r[4]=e.environmentId,r[5]=e.imageOnly,r[6]=e.kind,r[7]=o):o=r[7];let s=o,c=$(s,$t),l=nt(c.environmentId),{canReadFiles:u}=l,d,f,p;r[8]!==i||r[9]!==u||r[10]!==c.cwd||r[11]!==c.environmentId||r[12]!==c.imageOnly||r[13]!==c.kind||r[14]!==c.query||r[15]!==t?(d=c.environmentId!==null&&c.cwd!==null&&c.query!==null&&(i||c.query.length>0)?{environmentId:c.environmentId,input:{cwd:c.cwd,query:c.query,limit:t,...c.kind?{kind:c.kind}:{},...c.imageOnly?{imageOnly:!0}:{}}}:null,f=H,p=u&&d!==null?at.searchEntries(d):null,r[8]=i,r[9]=u,r[10]=c.cwd,r[11]=c.environmentId,r[12]=c.imageOnly,r[13]=c.kind,r[14]=c.query,r[15]=t,r[16]=d,r[17]=f,r[18]=p):(d=r[16],f=r[17],p=r[18]);let m=f(p),h=d!==null,g=m.data?.entries??sn,_=!h||l.isPending?null:u?m.error:l.error??`This connection cannot search host files.`,v;r[19]!==c||r[20]!==l.isPending||r[21]!==h||r[22]!==s||r[23]!==m.isPending?(v=!mn(s,c)||h&&(l.isPending||m.isPending),r[19]=c,r[20]=l.isPending,r[21]=h,r[22]=s,r[23]=m.isPending,r[24]=v):v=r[24];let y=c.query??``,b=m.data?.truncated??!1,x;return r[25]!==m.refresh||r[26]!==g||r[27]!==_||r[28]!==v||r[29]!==y||r[30]!==b?(x={entries:g,error:_,isPending:v,searchedQuery:y,truncated:b,refresh:m.refresh},r[25]=m.refresh,r[26]=g,r[27]=_,r[28]=v,r[29]=y,r[30]=b,r[31]=x):x=r[31],x}function gn(e){return hn(e,en)}function _n(e){let t=(0,U.c)(20),n=e.environmentId!==null&&e.cwd!==null,r=nt(e.environmentId),i=n&&r.canReadFiles,a=n&&r.isPending,o=e.query,s;t[0]===o?s=t[1]:(s=o.trim(),t[0]=o,t[1]=s);let c=s.length>0,l=$(o,tn),u;t[2]!==i||t[3]!==l||t[4]!==c||t[5]!==e.caseSensitive||t[6]!==e.cwd||t[7]!==e.environmentId||t[8]!==e.useRegex||t[9]!==e.wholeWord?(u=i&&e.environmentId!==null&&e.cwd!==null&&c&&l.trim().length>0?it({environmentId:e.environmentId,input:{cwd:e.cwd,query:l,limit:nn,caseSensitive:e.caseSensitive,wholeWord:e.wholeWord,useRegex:e.useRegex}}):null,t[2]=i,t[3]=l,t[4]=c,t[5]=e.caseSensitive,t[6]=e.cwd,t[7]=e.environmentId,t[8]=e.useRegex,t[9]=e.wholeWord,t[10]=u):u=t[10];let d=H(u),f=d.data?.matches??cn,p=!n||a?null:i?d.error:r.error??`This connection cannot search host files.`,m=a||i&&c&&(o!==l||d.isPending),h=d.data?.truncated??!1,g=e.useRegex&&d.data?.regexFallbackError!==void 0,_;return t[11]!==i||t[12]!==c||t[13]!==a||t[14]!==f||t[15]!==p||t[16]!==m||t[17]!==h||t[18]!==g?(_={canReadFiles:i,isCheckingAccess:a,matches:f,error:p,isPending:m,hasQuery:c,truncated:h,invalidRegex:g},t[11]=i,t[12]=c,t[13]=a,t[14]=f,t[15]=p,t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19],_}function vn(e,t){let n=t?.enabled!==!1&&e.environmentId!==null&&e.threadId!==null&&e.fromTurnCount!==null&&e.toTurnCount!==null,r=n&&e.fromTurnCount===0?{environmentId:e.environmentId,input:{threadId:e.threadId,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,i=n&&e.fromTurnCount!==0?{environmentId:e.environmentId,input:{threadId:e.threadId,fromTurnCount:e.fromTurnCount,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,a=H(r===null?null:G.fullThreadDiff(r)),o=H(i===null?null:G.turnDiff(i));return r===null?o:a}function yn(e){let t=(0,U.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?null:G.turnItem({environmentId:e.environmentId,input:{threadId:e.threadId,itemId:e.itemId,revision:e.revision}}),t[0]=e,t[1]=n),H(n)}export{ut as _,_n as a,yn as c,q as d,vt as f,G as g,ht as h,pn as i,Qt as l,bt as m,gn as n,hn as o,yt as p,$ as r,fn as s,vn as t,Zt as u};
2
+ //# sourceMappingURL=queries-B5qQohie.js.map
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{v as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createRadarServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{v as e}from"./mermaid-parser.core-BGJPFG4o.js";export{e as createRadarServices};
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{g as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createRailroadServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{g as e}from"./mermaid-parser.core-BGJPFG4o.js";export{e as createRailroadServices};
@@ -0,0 +1 @@
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{m as e}from"./mermaid-parser.core-BGJPFG4o.js";export{e as createRailroadAbnfServices};
@@ -0,0 +1 @@
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{f as e}from"./mermaid-parser.core-BGJPFG4o.js";export{e as createRailroadEbnfServices};
@@ -0,0 +1 @@
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{u as e}from"./mermaid-parser.core-BGJPFG4o.js";export{e as createRailroadPegServices};
@@ -1,2 +1,2 @@
1
- import{g as e,t}from"./mermaid-parser.core-CsBuWV4-.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-B6TRgw4-.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-CsEVe0s3.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BcICv5EB.js";var c=e().Railroad.parser.LangiumParser,l=n(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(u(e)))},`populateDb`),f={parser:{parse:n(e=>{o.clear(),r.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[Railroad Parser] Parsed rules:`,i.rules.length),d(i),r.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{f as diagram};
2
- //# sourceMappingURL=railroadDiagram-O6MQD6OU-WczOSoF4.js.map
1
+ import{g as e,t}from"./mermaid-parser.core-BGJPFG4o.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-CxOE2RJx.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-B8mLhKtO.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Bt6Qv84k.js";var c=e().Railroad.parser.LangiumParser,l=n(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(u(e)))},`populateDb`),f={parser:{parse:n(e=>{o.clear(),r.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[Railroad Parser] Parsed rules:`,i.rules.length),d(i),r.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{f as diagram};
2
+ //# sourceMappingURL=railroadDiagram-O6MQD6OU-CQ0Qmd0t.js.map