@intent-hq/web 2.361.0 → 2.361.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{chat-search.CWdkjFsY.css → chat-search.BEJJqsqt.css} +1 -1
  3. package/web/app/immutable/chunks/{C-UIC-T7.js → -7du9lfn.js} +1 -1
  4. package/web/app/immutable/chunks/{kcZjzSP7.js → 0_7FQkiC.js} +1 -1
  5. package/web/app/immutable/chunks/{c4wFHOws.js → 1EW4b83o.js} +1 -1
  6. package/web/app/immutable/chunks/{B9t82so5.js → 2wJjyVNk.js} +2 -2
  7. package/web/app/immutable/chunks/{BN7TE2rx.js → 52-_4pXR.js} +1 -1
  8. package/web/app/immutable/chunks/{cFIrJg-T.js → 5NiJCy7J.js} +1 -1
  9. package/web/app/immutable/chunks/{VFkYp0FY.js → 5u3dQlae.js} +1 -1
  10. package/web/app/immutable/chunks/{C9ujJ6il.js → 6d4Jv8Hz.js} +2 -2
  11. package/web/app/immutable/chunks/{BUd39PAw.js → 7tcI69cn.js} +1 -1
  12. package/web/app/immutable/chunks/{CKxDlPZO.js → 8HLudOb-.js} +1 -1
  13. package/web/app/immutable/chunks/{B1Qwlozr.js → 96DwTK9j.js} +2 -2
  14. package/web/app/immutable/chunks/{PsyApth6.js → As8lK70V.js} +1 -1
  15. package/web/app/immutable/chunks/{cqV5ArDy.js → AxCVH26S.js} +1 -1
  16. package/web/app/immutable/chunks/B07OdpUU.js +305 -0
  17. package/web/app/immutable/chunks/{DDA9SIgp.js → B0JbhmMb.js} +1 -1
  18. package/web/app/immutable/chunks/{Dd5jECmn.js → B1Tr5BPZ.js} +1 -1
  19. package/web/app/immutable/chunks/{COGpUz3t.js → B2ns9OTA.js} +1 -1
  20. package/web/app/immutable/chunks/{D-2XEcTW.js → B4kCZd9W.js} +1 -1
  21. package/web/app/immutable/chunks/{D27yNjLf.js → B5Pg9_MZ.js} +1 -1
  22. package/web/app/immutable/chunks/{f178PQSp.js → B9pYL5w0.js} +1 -1
  23. package/web/app/immutable/chunks/{sUAKfW_e.js → B9tRD7MQ.js} +1 -1
  24. package/web/app/immutable/chunks/{B2islIT9.js → BAgFsuQz.js} +1 -1
  25. package/web/app/immutable/chunks/{DZ-8xGs3.js → BD9wTbmm.js} +1 -1
  26. package/web/app/immutable/chunks/{B3a7OI2F.js → BG4tBRsm.js} +1 -1
  27. package/web/app/immutable/chunks/{BinCXnWY.js → BGOuxFsr.js} +1 -1
  28. package/web/app/immutable/chunks/{Lpw6MOlz.js → BKHUH54N.js} +1 -1
  29. package/web/app/immutable/chunks/{D_rNeuD7.js → BKw6wLyE.js} +1 -1
  30. package/web/app/immutable/chunks/{BeTn7XSu.js → BLFlTVjy.js} +4 -4
  31. package/web/app/immutable/chunks/{D7Vw4JcL.js → BMYcVUUM.js} +1 -1
  32. package/web/app/immutable/chunks/{BWmQZ9-W.js → BOSMtVmb.js} +1 -1
  33. package/web/app/immutable/chunks/{CVFwlr2Z.js → BPG9IRUj.js} +1 -1
  34. package/web/app/immutable/chunks/{qWbeHdf9.js → BPRz9VyT.js} +1 -1
  35. package/web/app/immutable/chunks/{Bv2wmdPv.js → BSM5O6JV.js} +1 -1
  36. package/web/app/immutable/chunks/{VPOqbJP9.js → BTR14c-t.js} +3 -3
  37. package/web/app/immutable/chunks/{C9vs7bl5.js → BWUH3HmG.js} +1 -1
  38. package/web/app/immutable/chunks/{CIDE3x9D.js → BZp1yALL.js} +1 -1
  39. package/web/app/immutable/chunks/{CyPGin7U.js → BbIMIfqX.js} +1 -1
  40. package/web/app/immutable/chunks/BbV7MtxC.js +1 -0
  41. package/web/app/immutable/chunks/{C1RT5V9K.js → BeLtysng.js} +1 -1
  42. package/web/app/immutable/chunks/{_2nk2_Hn.js → Bgk8kfr8.js} +1 -1
  43. package/web/app/immutable/chunks/Bhx5E4sN.js +2 -0
  44. package/web/app/immutable/chunks/{t3JsxPaO.js → Big1YQpq.js} +1 -1
  45. package/web/app/immutable/chunks/{j3M2P1q-.js → Bl0Adq86.js} +1 -1
  46. package/web/app/immutable/chunks/{Bw8AD9dJ.js → Bl2aLOn5.js} +1 -1
  47. package/web/app/immutable/chunks/{BsOXr_0z.js → BskEvHZa.js} +1 -1
  48. package/web/app/immutable/chunks/{BqVB3HSC.js → Bt_RDNlI.js} +1 -1
  49. package/web/app/immutable/chunks/{CSSLtQaO.js → Bx_nP_MK.js} +1 -1
  50. package/web/app/immutable/chunks/{Rn1PSvxr.js → Bya2sQrR.js} +1 -1
  51. package/web/app/immutable/chunks/{DgLG2932.js → Byj6QL5F.js} +1 -1
  52. package/web/app/immutable/chunks/{D93k--bp.js → C-Qm3bfA.js} +1 -1
  53. package/web/app/immutable/chunks/{Bkvyt2Uf.js → C1wjuTFV.js} +1 -1
  54. package/web/app/immutable/chunks/{YgZ9xfEe.js → C3L3GwMq.js} +1 -1
  55. package/web/app/immutable/chunks/{CKn-VDhm.js → C4qqiNcA.js} +1 -1
  56. package/web/app/immutable/chunks/{D-RdTqFP.js → C5cRG0yV.js} +3 -3
  57. package/web/app/immutable/chunks/{CTNuszHC.js → C9otdzZM.js} +4 -4
  58. package/web/app/immutable/chunks/{Dads5On7.js → CGINFMqT.js} +1 -1
  59. package/web/app/immutable/chunks/CJHViisg.js +12 -0
  60. package/web/app/immutable/chunks/{C27IcubQ.js → CNUg0Cs8.js} +1 -1
  61. package/web/app/immutable/chunks/{kV-fkifL.js → CO15VKbw.js} +1 -1
  62. package/web/app/immutable/chunks/{BzRgELGj.js → CVOsommd.js} +2 -2
  63. package/web/app/immutable/chunks/{BhQ7Nd7i.js → C_z20mJT.js} +1 -1
  64. package/web/app/immutable/chunks/{Cot5yElc.js → Cb4s3Dt_.js} +3 -3
  65. package/web/app/immutable/chunks/{KnX_02Jn.js → CgS1Dv_8.js} +1 -1
  66. package/web/app/immutable/chunks/{B-gNGby7.js → Ch9oF0ek.js} +1 -1
  67. package/web/app/immutable/chunks/{Bep3Jqpc.js → CjorBqRt.js} +1 -1
  68. package/web/app/immutable/chunks/{B5XDKjvt.js → CkVsI2Jc.js} +1 -1
  69. package/web/app/immutable/chunks/{CTRLupPR.js → CmVyGqNV.js} +2 -2
  70. package/web/app/immutable/chunks/{BvyARSUu.js → CpBPE3-0.js} +1 -1
  71. package/web/app/immutable/chunks/{1j8IB6qY.js → CpHAR9_T.js} +1 -1
  72. package/web/app/immutable/chunks/{BfLVjdWH.js → CpY-WDD9.js} +1 -1
  73. package/web/app/immutable/chunks/{VSdJtUTR.js → Cq0xvhw9.js} +3 -3
  74. package/web/app/immutable/chunks/{BYAWXKUB.js → Cq8fk3CH.js} +1 -1
  75. package/web/app/immutable/chunks/{DqKDx046.js → CrLichOk.js} +1 -1
  76. package/web/app/immutable/chunks/CsqD9xz6.js +2 -0
  77. package/web/app/immutable/chunks/{CuHcMIuh.js → CssvkQD7.js} +1 -1
  78. package/web/app/immutable/chunks/{MMcMOHPP.js → CuoerPJp.js} +3 -3
  79. package/web/app/immutable/chunks/{BYMZ452w.js → CvH6beJr.js} +1 -1
  80. package/web/app/immutable/chunks/{CiCc1qZy.js → CyQJi5fM.js} +1 -1
  81. package/web/app/immutable/chunks/{DxuDR3-b.js → CytLF-ur.js} +6 -6
  82. package/web/app/immutable/chunks/{aF9CaLLA.js → D00mCTUs.js} +1 -1
  83. package/web/app/immutable/chunks/{D_sZQPLm.js → D0VMf2Fp.js} +3 -3
  84. package/web/app/immutable/chunks/{D7HGt2gg.js → D0g6v2_u.js} +1 -1
  85. package/web/app/immutable/chunks/{BkNoKwFt.js → D1FSU9Gk.js} +1 -1
  86. package/web/app/immutable/chunks/{DP_4YjFn.js → D1Vat_ZV.js} +1 -1
  87. package/web/app/immutable/chunks/{BW5RQ7dH.js → D3rVaYU0.js} +1 -1
  88. package/web/app/immutable/chunks/{B81eIwbi.js → D4LnecGU.js} +2 -2
  89. package/web/app/immutable/chunks/{1c0lZJrV.js → D5kZvSPC.js} +1 -1
  90. package/web/app/immutable/chunks/{DwC7M61S.js → D9H2UCuG.js} +1 -1
  91. package/web/app/immutable/chunks/{vSqR6YVO.js → DAwOD17b.js} +1 -1
  92. package/web/app/immutable/chunks/{CIeKs3Fz.js → DC3pczce.js} +1 -1
  93. package/web/app/immutable/chunks/{C2NcLB2u.js → DD4-FHBp.js} +1 -1
  94. package/web/app/immutable/chunks/{Bz8fykGF.js → DHBQy6St.js} +1 -1
  95. package/web/app/immutable/chunks/{CpV8u0F6.js → DHbwKi-E.js} +2 -2
  96. package/web/app/immutable/chunks/{CFuZ1Me4.js → DQTzZEWU.js} +2 -2
  97. package/web/app/immutable/chunks/{D81z2pn-.js → DVlYg0SZ.js} +3 -3
  98. package/web/app/immutable/chunks/{D7Qg9UsC.js → DWWTsFh-.js} +1 -1
  99. package/web/app/immutable/chunks/{BKkSBqXG.js → DXcrfgZH.js} +1 -1
  100. package/web/app/immutable/chunks/{Dm7totry.js → Db7PzaF_.js} +1 -1
  101. package/web/app/immutable/chunks/{Khf-yjCZ.js → DjKDfA1m.js} +2 -2
  102. package/web/app/immutable/chunks/{DR2khMiR.js → DkNdI_Wp.js} +1 -1
  103. package/web/app/immutable/chunks/{OJCFNlvY.js → DkgfeEA0.js} +1 -1
  104. package/web/app/immutable/chunks/{BJf3iy0S.js → DlBKZ9jQ.js} +2 -2
  105. package/web/app/immutable/chunks/{XwrZ1aRW.js → Ds8ezw9K.js} +1 -1
  106. package/web/app/immutable/chunks/{DFrHql0h.js → DsCJG1hb.js} +1 -1
  107. package/web/app/immutable/chunks/{CL0ULjU-.js → Dtqu7Pxg.js} +1 -1
  108. package/web/app/immutable/chunks/{BkBez7WX.js → DuTju9rc.js} +1 -1
  109. package/web/app/immutable/chunks/{BzFCW_oO.js → DvCS4TTw.js} +1 -1
  110. package/web/app/immutable/chunks/{CK61dfwH.js → DyIRpoZq.js} +1 -1
  111. package/web/app/immutable/chunks/{DXJZHh0A.js → DzmdzUVi.js} +1 -1
  112. package/web/app/immutable/chunks/{Cmh4buXt.js → MzfVdJbX.js} +1 -1
  113. package/web/app/immutable/chunks/{EtMoREaX.js → OiHDtgNp.js} +1 -1
  114. package/web/app/immutable/chunks/{ByVGRZX6.js → QWfAA7k-.js} +1 -1
  115. package/web/app/immutable/chunks/{DwM4HivY.js → TaZ6zGN1.js} +1 -1
  116. package/web/app/immutable/chunks/{CPuPCqZE.js → Tqm9-f9l.js} +1 -1
  117. package/web/app/immutable/chunks/{BEXbHJh4.js → Vfi0Dmt8.js} +1 -1
  118. package/web/app/immutable/chunks/{BM-7iiyp.js → W67SWYQh.js} +1 -1
  119. package/web/app/immutable/chunks/{CSykTYZD.js → YhYmjxML.js} +1 -1
  120. package/web/app/immutable/chunks/{Bw3Jc49z.js → aCDFJfWo.js} +1 -1
  121. package/web/app/immutable/chunks/{Bs7k0nr9.js → aokikQw5.js} +47 -47
  122. package/web/app/immutable/chunks/{BVPML882.js → buVzC4lf.js} +1 -1
  123. package/web/app/immutable/chunks/{CjLcyZTM.js → c1DCm8IK.js} +1 -1
  124. package/web/app/immutable/chunks/{Bwq11IJN.js → cU6Fqv3g.js} +1 -1
  125. package/web/app/immutable/chunks/{95Q5Q_xW.js → dGnsWF4N.js} +1 -1
  126. package/web/app/immutable/chunks/{C5ak_0Xq.js → ivBdCvd6.js} +1 -1
  127. package/web/app/immutable/chunks/{D5Y-fh7x.js → kbpbXlKS.js} +1 -1
  128. package/web/app/immutable/chunks/{hvIpWr_e.js → lZNvj_WH.js} +1 -1
  129. package/web/app/immutable/chunks/{Dd5fSdFI.js → rUCEwUE_.js} +1 -1
  130. package/web/app/immutable/chunks/{CucLWNXy.js → t94_2IkW.js} +1 -1
  131. package/web/app/immutable/chunks/{BSxTNz_Y.js → tSlfPnTD.js} +1 -1
  132. package/web/app/immutable/chunks/y2YthUTc.js +1 -0
  133. package/web/app/immutable/chunks/{BMiSQSg-.js → yTlZ1Sih.js} +1 -1
  134. package/web/app/immutable/entry/{app.BcpofzE6.js → app.CYYj7JvH.js} +2 -2
  135. package/web/app/immutable/entry/start.BH_-Ros5.js +1 -0
  136. package/web/app/immutable/nodes/{0.BQUOze-j.js → 0.vJoG8nTo.js} +1 -1
  137. package/web/app/immutable/nodes/{1.Bp05_YjA.js → 1.Di6AbyQm.js} +1 -1
  138. package/web/app/immutable/nodes/{10.3aTkNQpJ.js → 10.BkazfxT8.js} +16 -16
  139. package/web/app/immutable/nodes/{11.BXjLtpXc.js → 11.Ck_7PTgk.js} +4 -4
  140. package/web/app/immutable/nodes/{15.DfBroLQA.js → 15.DWwqZzAg.js} +1 -1
  141. package/web/app/immutable/nodes/{19.-ypsiFbk.js → 19.CjDPuA-n.js} +2 -2
  142. package/web/app/immutable/nodes/{2.DULGAXhA.js → 2.B7bl9OWL.js} +4 -4
  143. package/web/app/immutable/nodes/{3.CM-CFkEo.js → 3.CY1Mye6q.js} +1 -1
  144. package/web/app/immutable/nodes/{4.DiNldv1M.js → 4.sNrk6dxf.js} +1 -1
  145. package/web/app/immutable/nodes/{5.DDbl8ORw.js → 5.BrOibHKo.js} +1 -1
  146. package/web/app/immutable/nodes/{6.CGP2STrw.js → 6.BVYLHxv3.js} +1 -1
  147. package/web/app/immutable/nodes/{7.xmorhsK4.js → 7.BZ0ZLzU_.js} +1 -1
  148. package/web/app/immutable/nodes/{8.D_BxSNz-.js → 8.BNlg4qDc.js} +1 -1
  149. package/web/app/immutable/nodes/{9.BUD_PMUy.js → 9.C8X38wWW.js} +4 -4
  150. package/web/app/version.json +1 -1
  151. package/web/index.html +9 -9
  152. package/web/app/immutable/chunks/CA6_Ao_-.js +0 -305
  153. package/web/app/immutable/chunks/CZXdxwZ-.js +0 -2
  154. package/web/app/immutable/chunks/D9WrKwE8.js +0 -1
  155. package/web/app/immutable/chunks/DSDcLbxr.js +0 -12
  156. package/web/app/immutable/chunks/DbaZdUr0.js +0 -1
  157. package/web/app/immutable/chunks/DbgIztcj.js +0 -2
  158. package/web/app/immutable/entry/start.BYusRIxF.js +0 -1
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DbgIztcj.js","/app/immutable/chunks/AeC4KVgG.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BkzMrEqG.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Bd1FsnP3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dp2nUoTL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/DR2khMiR.js","/app/immutable/chunks/DbaZdUr0.js","/app/immutable/chunks/k2awEenT.js","/app/immutable/chunks/DrHJ7oPv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DJM6amHV.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CswzK9Go.js","/app/immutable/chunks/jhNNYE0v.js","/app/immutable/chunks/Cwla-sl1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/ZcoUa9Jg.js","/app/immutable/chunks/HftJbvyF.js","/app/immutable/chunks/DWUO9rBe.js","/app/immutable/chunks/BNODdf6r.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/Ci7mS1ie.js","/app/immutable/chunks/DsyH2ZOJ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BEyxbMng.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dz2z231n.js","/app/immutable/chunks/CbSeeP7P.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/B1Qwlozr.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/dxPehZVa.js","/app/immutable/chunks/DwQfkcIA.js","/app/immutable/chunks/CAYSf4zc.js","/app/immutable/chunks/CZ-8NDq0.js","/app/immutable/chunks/R1d5Y9eD.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
2
- import{bm as o,t as st,bo as K,bw as nt,b as ot,bq as Ft,bs as Fe,_ as Ut}from"./AeC4KVgG.js";import{bs as it,a5 as f,aD as t,bA as v,b_ as T,W as y,bn as ct,c9 as k,aA as H,aB as S,ca as Ue,bk as Vt,c6 as Yt,cd as qe,bV as Gt,bS as g,ay as ge,bl as M,bO as N}from"./CJxGDkBm.js";import{i as $}from"./k2awEenT.js";import{e as Ve,g as Ye}from"./CswzK9Go.js";import{c as Qt,e as Jt,f as lt,g as Xt,s as x}from"./DrHJ7oPv.js";import{aO as Zt,cY as ea,M as ta,aw as aa,dn as ra,W as sa,ds as dt}from"./BEyxbMng.js";import{t as Ge}from"./DAsc1V4f.js";import{b as na,A as oa}from"./DwHEsGP4.js";import{l as Qe}from"./D_sZQPLm.js";import{aJ as ia,aG as ca,aH as Je,a0 as la}from"./dxPehZVa.js";import{S as le}from"./F1SvNoTt.js";import"./jhNNYE0v.js";import{f as Xe}from"./DJM6amHV.js";import{l as B,n as da}from"./DWUO9rBe.js";import{rV as ut,IX as W,mD as ua,fM as pa,nx as va,uJ as ma,c as _a,wj as ga,tm as fa,rC as wa}from"./BkzMrEqG.js";import{c as ba}from"./ChTqQfQN.js";import{o as ka}from"./BkNoKwFt.js";import{aQ as ha,aR as Ze,bB as ya,aA as xa,bA as Sa,aF as Aa,d2 as Ca,cS as Ra,F as fe,ax as et,bJ as Ia}from"./Ci7mS1ie.js";import{selectCurrentWorkspaceTabId as qa}from"./DwQfkcIA.js";import{p as Pa}from"./DDA9SIgp.js";import{i as Ma}from"./Cot5yElc.js";const Na=new Set(["failed","blocked","needs_attention","in_progress"]),Wa={failed:{visual:"icon",icon:Ra,className:"text-foreground"},blocked:{visual:"icon",icon:Ca,className:"text-danger"},needs_attention:{visual:"icon",icon:Aa,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Sa,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:xa,className:"text-success"},pr_queued:{visual:"icon",icon:ya,className:"text-info"},pr_ready:{visual:"icon",icon:Ze,className:"text-success"},pr_open:{visual:"icon",icon:Ze,className:"text-info"},pr_merged:{visual:"icon",icon:ha,className:"text-purple-500"}};function Ta(r){switch(r){case"failed":return o.workspace_statusIcon_failed_label();case"blocked":return o.workspace_statusIcon_blocked_label();case"needs_attention":return o.workspace_statusIcon_needsAttention_label();case"in_progress":return o.workspace_statusIcon_inProgress_label();case"waiting":return o.workspace_taskStatus_waiting_label();case"unread":return o.layout_activeCard_unread_header();case"not_started":return o.workspace_statusIcon_notStarted_label();case"idle":return o.workspace_statusIcon_idle_label();case"complete":return o.workspace_statusIcon_complete_label();case"pr_queued":return o.workspace_statusIcon_prQueued_label();case"pr_ready":return o.workspace_statusIcon_prReady_label();case"pr_open":return o.workspace_statusIcon_prOpen_label();case"pr_merged":return o.workspace_statusIcon_prMerged_label()}}function Oa(r){const n=ut(r.displayStatus)?r.displayStatus:"not_started";return Na.has(n)?n:r.attention==="unread"?"unread":r.waiting===!0?"waiting":n}function pt(r){const n=r==="waiting"||r==="unread"||ut(r)?r:"not_started",b=Ta(n);return{state:n,...Wa[n],label:b,tooltip:b,accessibleName:b}}var Da=S('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),Ea=S("<span><!></span>");function vt(r,n){if(new.target)return st({component:vt,...r});it(n,!0);let b=K(n,"status",7),m=K(n,"size",7,14),w=K(n,"decorative",7,!1),u=K(n,"class",7);const i=k(()=>pt(b()));var a={get status(){return b()},set status(_){b(_),H()},get size(){return m()},set size(_=14){m(_),H()},get decorative(){return w()},set decorative(_=!1){w(_),H()},get class(){return u()},set class(_){u(_),H()},$set:nt,$on:(_,G)=>ot(n,_,G)},p=Ea(),re=f(p);{var se=_=>{var G=Da();y(_,G)},ne=_=>{fe(_,{get icon(){return t(i).icon},class:"size-full!"})};$(re,_=>{t(i).visual==="dot"?_(se):t(i).icon&&_(ne,1)})}return v(p),T(_=>{lt(p,1,_,"svelte-14zk5l0"),Xt(p,`width: ${m()??""}px; height: ${m()??""}px;`),x(p,"role",w()?void 0:"img"),x(p,"aria-label",w()?void 0:t(i).accessibleName),x(p,"aria-hidden",w()?"true":void 0),x(p,"title",w()?void 0:t(i).tooltip),x(p,"data-workspace-status",t(i).state),x(p,"data-workspace-status-visual",t(i).visual),x(p,"data-workspace-status-icon",t(i).icon?.iconName)},[()=>Qt(Jt("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",t(i).className,u()))]),y(r,p),ct(a)}const Me=6e4,Ne=60*Me,We=24*Ne,tt=30*We;function La(r,n=new Date){if(r==null)return null;const b=r instanceof Date?r:new Date(r),m=b.getTime(),w=n.getTime();if(!Number.isFinite(m)||!Number.isFinite(w))return null;const u=Math.max(0,w-m);let i;u<Me?i="<1m":u<Ne?i=`${B(Math.floor(u/Me))}m`:u<We?i=`${B(Math.floor(u/Ne))}h`:u<tt?i=`${B(Math.floor(u/We))}d`:i=`${B(Math.floor(u/tt))}mo`;const a=m>w?n:b,p=da(a,{now:n});return p?{compact:i,accessible:p,dateTime:b.toISOString()}:null}var $a=S('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),Ka=S('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),Ha=S('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),Ba=S('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),at=S('<div role="listitem"><!></div>'),ja=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),za=S('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),Fa=S('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),Ua=S('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),Va=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),Ya=S('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),Ga=S('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),Qa=S('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),Ja=S('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function Xa(r,n){if(new.target)return st({component:Xa,...r});it(n,!0);const b=()=>Fe(gt,"$workspaceAgents$",w),m=()=>Fe(ft,"$prMonitors$",w),[w,u]=Ft(),i=ba("WorkspaceHoverCard");let a=K(n,"workspace",7),p=K(n,"isLoading",7,!1),re=K(n,"activeAgentIds",23,()=>[]),se=K(n,"loadAgentSessions",7,!0),ne=K(n,"onkeydown",7),_=K(n,"staticData",7,!1);const G=qe("");function mt(){return _()?qe([]):Zt(G)}function _t(){return _()?qe([]):ea(G)}const gt=mt(),ft=_t();Ue(()=>G.set(a()?.id??""));let Te=Gt(0);Vt(()=>Qe.subscribe(()=>Yt(Te)));let wt=k(()=>a()?.agentSummary?.agentIds??[]),Oe=k(()=>(t(Te),a()?Qe.getStreamingAgentIdsForWorkspace(a().id):[])),De=null,we=new Set;Ue(()=>{if(!a()||!se())return;const e=String(a().id);De!==e&&(De=e,we=new Set);for(const c of new Set([...t(wt).slice(0,6),...re(),...t(Oe)]))we.has(c)||(W.dispatch(ua(e,c)),we.add(c))});function bt(e){return[e.name,e.context,e.questionMeta?.accessible,e.updated.accessible].filter(Boolean).join(". ")}function kt(e){return e?e.kind==="attention"?e.attention.reason?.trim()||null:"text"in e&&e.text.trim()||null:null}function ht(e){return La(e.lastActivity||e.updatedAt||e.createdAt)??{compact:"—",accessible:o.workspace_hoverCard_noRecentActivity_label()}}function yt(e){const c=String(e.status).toLowerCase(),l=va(e),h=na(e),E=h==="question"?ia(e):null,I=kt(aa.select(W.state,String(e.id)));let q,j,P,A,O,J,z=!1;if(h==="question"){q="attention",j="question",P=E?.questions[0]?.question.trim()||I||o.workspace_hoverCard_question_label(),A="question",O=1;const de=E?.questions.length??0;de>1&&(J={compact:`${B(1)}/${B(de)}`,accessible:o.chat_questionWizard_stepCounter_label({current:1,total:de})})}else if(h==="attention-discussion")q="attention",j="discussion",P=l?.reason?.trim()||o.chat_agentCard_attentionDiscussion_label(),A="attention-discussion",O=1;else if(h==="attention-blocker"||c==="blocked")q="attention",j="blocker",P=l?.reason?.trim()||o.chat_agentCard_attentionBlocker_label(),A="attention-blocker",O=0;else if(e.hasUnread)q="attention",j="unread",P=I||o.chat_newMessagesDivider_label(),z=!!I,A="unread",O=2;else if(e.isStreaming||e.isProcessing||re().includes(String(e.id))||t(Oe).includes(String(e.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(c))q="active",P=I||o.workspace_devScripts_running_label(),z=!!I,A=e.isProcessing?"responding":"running",O=3;else if(["waiting","pending","queued","starting"].includes(c))q="waiting",P=I||o.workspace_taskStatus_waiting_label(),z=!!I,A="waiting",O=4;else return null;const ye=e.agentMetadata??e.metadata;return{id:String(e.id),name:e.name?.trim()||o.workspace_fileChanges_agent_label(),group:q,attentionKind:j,avatarState:A,specialist:ye?.specialist,context:P,questionMeta:J,contextIsPreview:z,updated:ht(e),priority:O}}let xt=k(()=>{const e=a()?.agentSummary,c=new Map;if(Array.isArray(e?.agents))for(const l of e.agents)l&&typeof l=="object"&&typeof l.id=="string"&&c.set(l.id,l.parentAgentId);return b().filter(l=>{const h=c.get(String(l.id));return!(pa(l)!=="topLevel"||typeof h=="string"&&h||l.pendingDeleteAt||l.retiredAt||String(l.status).toLowerCase()==="deleted")})}),be=k(()=>t(xt).map(yt).filter(e=>e!==null).sort((e,c)=>e.priority-c.priority)),St=k(()=>t(be).slice(0,6)),Ee=k(()=>Math.max(0,t(be).length-6)),At=k(()=>a()?.repositoryName?a().repositoryOwner?`${a().repositoryOwner} / ${a().repositoryName}`:a().repositoryName:o.workspace_hoverCard_localRepository_label()),Le=k(()=>Oa(a()??{})),Ct=k(()=>pt(t(Le))),ke=k(()=>a()?.statusMessage?.trim()||"");function $e(e){if(!e)return null;const c=e.activePullRequest??e.pullRequests?.[0]??null;return c||(e.prStatus?{id:`legacy-pr-${e.prNumber??"workspace"}`,number:e.prNumber??0,url:e.prUrl??"",title:o.workspace_hoverCard_pullRequest_label(),status:e.prStatus,createdAt:e.updatedAt,updatedAt:e.updatedAt}:null)}let Rt=k(()=>a()?_()?$e(a()):ra.select(W.state,a().id)??$e(a()):null),Q=k(()=>{if(!a()||ta(a()))return[];const e=a().repositoryOwner&&a().repositoryName?`${a().repositoryOwner}/${a().repositoryName}`:void 0;return Ma({workspacePRs:a().pullRequests,activePR:t(Rt),monitors:m(),workspaceRepo:e,buildPrUrl:(c,l)=>Pa(c,a().repositoryOwner,a().repositoryName,l),getDisplayTitle:c=>c.title})}),It=k(()=>t(Q).slice(0,3)),Ke=k(()=>Math.max(0,t(Q).length-3)),He=k(()=>t(be).length>0),Be=k(()=>t(Q).length>0),je=k(()=>t(He)||t(Be));function ze(e){const c=e.resource?.repository.provider==="gitlab"?`${e.repo} !${e.number}`:e.repo?o.workspace_card_prBadge_repoLine_tooltip({repo:e.repo,number:e.number}):o.workspace_card_prBadge_label({number:` #${e.number}`});return[sa(c,e),e.title,e.details].filter(Boolean).join(`
3
- `)}function qt(e,c){if(e.stopPropagation(),!a()||!se())return;const l=a().id;qa.select(W.state)!==l&&ka(l).catch(h=>{i.warn("Failed to switch workspace for hover-card agent",{agentId:c,error:h})}),W.dispatch(ma(l,{agentId:c}))}function Pt(e,c){if(e.stopPropagation(),!a()||!c.url)return;const l=a().id;Ut(async()=>{const{handleLink:h}=await import("./DbgIztcj.js").then(E=>E.l);return{handleLink:h}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:h})=>h(c.url,{workspaceId:l,event:e}))}var Mt={get workspace(){return a()},set workspace(e){a(e),H()},get isLoading(){return p()},set isLoading(e=!1){p(e),H()},get activeAgentIds(){return re()},set activeAgentIds(e=[]){re(e),H()},get loadAgentSessions(){return se()},set loadAgentSessions(e=!0){se(e),H()},get onkeydown(){return ne()},set onkeydown(e){ne(e),H()},get staticData(){return _()},set staticData(e=!1){_(e),H()},$set:nt,$on:(e,c)=>ot(n,e,c)},he=Ja(),Nt=f(he);{var Wt=e=>{var c=$a(),l=f(c),h=f(l),E=f(h);le(E,{class:"h-7 min-w-0 max-w-64 flex-1"});var I=g(E,2);le(I,{class:"h-5 w-20 shrink-0"}),v(h);var q=g(h,2);le(q,{class:"h-4 w-40"});var j=g(q,2);le(j,{class:"mt-2 h-10 w-full"}),v(l);var P=g(l,4),A=f(P),O=f(A);le(O,{class:"h-10 w-full"}),v(A);var J=g(A,2),z=f(J);le(z,{class:"h-10 w-full"}),v(J),v(P),v(c),y(e,c)},Tt=e=>{var c=Qa(),l=ge(c);let h;var E=f(l),I=f(E),q=f(I),j=M(q,!0),P=g(q,2),A=f(P),O=M(A,!0),J=g(A);vt(J,{get status(){return t(Le)},size:16,decorative:!0}),v(P),v(I);var z=g(I,2),ye=M(z,!0),de=g(z,2);{var Dt=F=>{var oe=Ka(),me=M(oe,!0);Ve(oe,(_e,xe)=>Ge?.(_e,xe),()=>t(ke)),T(()=>N(me,t(ke))),y(F,oe)};$(de,F=>{t(ke)&&F(Dt)})}v(E),v(l);var Et=g(l,2);{var Lt=F=>{var oe=Ga(),me=g(ge(oe),2),_e=f(me);{var xe=X=>{var U=za(),Y=f(U);Ye(Y,21,()=>t(St),d=>d.id,(d,s)=>{var C=at(),Z=f(C);{let ee=k(()=>bt(t(s)));Xe(Z,{variant:"plain",wrapContent:!1,class:"grid h-auto! min-h-8 w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] items-start justify-normal gap-x-2 gap-y-0 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return t(ee)},"data-workspace-hover-card-agent-row":!0,get"data-agent-group-row"(){return t(s).group},get"data-attention-kind"(){return t(s).attentionKind},get onkeydown(){return ne()},onclick:V=>qt(V,t(s).id),children:(V,ue)=>{var D=Ba(),R=ge(D),L=f(R);{let ae=k(()=>t(s).specialist??null);oa(L,{get agentId(){return t(s).id},variant:"compact",get state(){return t(s).avatarState},get specialist(){return t(ae)}})}v(R);var ie=g(R),Ce=M(ie,!0),te=g(ie),Re=M(te,!0),pe=g(te,2),ve=f(pe),Ie=M(ve,!0);Ve(ve,(ae,ce)=>Ge?.(ae,ce),()=>t(s).context);var Ht=g(ve);{var Bt=ae=>{var ce=Ha(),jt=f(ce),zt=M(jt,!0);v(ce),T(()=>{x(ce,"aria-label",t(s).questionMeta.accessible),N(zt,t(s).questionMeta.compact)}),y(ae,ce)};$(Ht,ae=>{t(s).questionMeta&&ae(Bt)})}v(pe),T(()=>{N(Ce,t(s).name),x(te,"datetime",t(s).updated.dateTime),x(te,"aria-label",t(s).updated.accessible),N(Re,t(s).updated.compact),x(pe,"data-workspace-hover-card-agent-preview",t(s).contextIsPreview||void 0),N(Ie,t(s).context)}),y(V,D)},$$slots:{default:!0}})}v(C),y(d,C)}),v(Y);var Se=g(Y,2);{var Ae=d=>{var s=ja(),C=f(s),Z=M(C,!0),ee=g(C,2);fe(ee,{get icon(){return et},size:10}),v(s),T(V=>N(Z,V),[()=>o.workspace_hoverCard_moreAgents_label({count:B(t(Ee))})]),y(d,s)};$(Se,d=>{t(Ee)&&d(Ae)})}v(U),T(d=>x(U,"aria-label",d),[()=>o.workspace_multiSelectSidebar_agentsTab_label()]),y(X,U)};$(_e,X=>{t(He)&&X(xe)})}var $t=g(_e,2);{var Kt=X=>{var U=Ya(),Y=f(U);Ye(Y,21,()=>t(It),d=>d.identity,(d,s)=>{var C=at();{const ue=D=>{var R=Fa(),L=ge(R);fe(L,{get icon(){return t(s).statusIcon},size:16,get class(){return`shrink-0 justify-self-start ${t(s).foregroundClass??""}`}});var ie=g(L,2),Ce=M(ie,!0),te=g(ie,2),Re=M(te,!0),pe=g(te,2),ve=M(pe,!0);T(Ie=>{N(Ce,Ie),N(Re,t(s).accessibleStateLabel),N(ve,t(s).numberLabel??`#${t(s).number}`)},[()=>t(s).title||(t(s).resource?.repository.provider==="gitlab"?o.workspace_hoverCard_mergeRequest_label():o.workspace_hoverCard_pullRequest_label())]),y(D,R)};var Z=f(C);{var ee=D=>{{let R=k(()=>ze(t(s)));Xe(D,{variant:"plain",wrapContent:!1,class:"grid h-auto! w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center justify-normal gap-x-2 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return t(R)},"data-workspace-hover-card-pr-row":!0,get"data-pr-identity"(){return t(s).identity},get"data-pr-status"(){return t(s).status},get onkeydown(){return ne()},onclick:L=>Pt(L,t(s)),children:(L,ie)=>{ue(L)},$$slots:{default:!0}})}},V=D=>{var R=Ua(),L=f(R);ue(L),v(R),T(()=>{x(R,"data-pr-identity",t(s).identity),x(R,"data-pr-status",t(s).status)}),y(D,R)};$(Z,D=>{t(s).url?D(ee):D(V,-1)})}v(C)}T(ue=>x(C,"aria-label",ue),[()=>t(s).url?void 0:ze(t(s))]),y(d,C)}),v(Y);var Se=g(Y,2);{var Ae=d=>{var s=Va(),C=f(s),Z=M(C,!0),ee=g(C,2);fe(ee,{get icon(){return et},size:10}),v(s),T(V=>N(Z,V),[()=>o.workspace_hoverCard_moreItems_label({count:B(t(Ke))})]),y(d,s)};$(Se,d=>{t(Ke)&&d(Ae)})}v(U),T((d,s)=>{x(U,"aria-label",d),x(Y,"aria-label",s)},[()=>t(Q).every(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_mergeRequests_label():t(Q).some(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_reviews_label():o.workspace_hoverCard_pullRequests_label(),()=>t(Q).every(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_mergeRequests_label():t(Q).some(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_reviews_label():o.workspace_hoverCard_pullRequests_label()]),y(X,U)};$($t,X=>{t(Be)&&X(Kt)})}v(me),y(F,oe)};$(Et,F=>{t(je)&&F(Lt)})}T(F=>{h=lt(l,1,"min-w-0 px-5 pt-4",null,h,{"pb-4":!t(je)}),N(j,F),N(O,t(Ct).label),N(ye,t(At))},[()=>a().title||o.workspace_links_untitled_label()]),y(e,c)};$(Nt,e=>{p()||!a()?e(Wt):e(Tt,-1)})}v(he),y(r,he);var Ot=ct(Mt);return u(),Ot}const rt=800,xr=175,Za=300;function er(){let r=0,n=null;const b=new Set,m=new Set;function w(){return r>0||n!==null?0:rt}function u(){const a=w();b.forEach(p=>p(a))}function i(){n!==null&&(clearTimeout(n),n=null)}return{get currentOpenDelay(){return w()},subscribe(a){return b.add(a),a(w()),()=>b.delete(a)},notifyOpened(){const a=r===0&&n===null;i(),r+=1,a&&u()},notifyClosed(){r!==0&&(r-=1,!(r>0)&&(i(),n=setTimeout(()=>{n=null,u()},Za)))},deferClose(a){return m.add(a),()=>m.delete(a)},settleDeferredCloses(){const a=[...m];m.clear(),a.forEach(p=>p())},reset(){const a=w()!==rt;i(),r=0,m.clear(),a&&u()}}}const Sr=er();function Pe(r){const n=dt.select(W.state,r);return n!==void 0&&wa(n)}function tr(r,n){if(!Pe(r))return[];const b=ca.select(W.state,r),m=Je.select(W.state,r),w=la.select(W.state),u=[];for(let i=0;i<_a;i+=1){const a=w[i],p=a&&a!==r?dt.select(W.state,a):void 0;u.push({id:`assign-micro-key-${i+1}`,label:p?o.workspace_card_assignOccupiedMicroKey_label({number:B(i+1),title:p.title}):o.workspace_card_assignMicroKeyNumber_label({number:B(i+1)}),checked:b===i,closeOnSelect:!0,onClick:()=>{Pe(r)&&W.dispatch(ga(i,r)),n()}})}return m!==null&&(u.push({type:"separator"}),u.push({id:"unassign-micro-key",label:o.workspace_card_unassignMicroKey_label(),onClick:()=>{Pe(r)&&Je.select(W.state,r)===m&&W.dispatch(fa(m)),n()}})),u}function Ar(r,{connected:n,onClose:b}){if(!n)return[];const m=tr(r,b);if(m.length===0)return[];const w=m.filter(i=>"id"in i&&i.id!=="unassign-micro-key"),u=m.find(i=>"id"in i&&i.id==="unassign-micro-key");return[{id:"assign-micro-key",label:o.workspace_card_assignMicroKey_label(),icon:Ia,onClick:()=>{},selection:"single",submenu:w},...u?[u]:[]]}export{xr as W,rt as a,Xa as b,vt as c,tr as d,Ar as e,pt as g,Oa as r,Sr as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CsqD9xz6.js","/app/immutable/chunks/AeC4KVgG.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BkzMrEqG.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Bd1FsnP3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dp2nUoTL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/DkNdI_Wp.js","/app/immutable/chunks/BbV7MtxC.js","/app/immutable/chunks/k2awEenT.js","/app/immutable/chunks/DrHJ7oPv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DJM6amHV.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CswzK9Go.js","/app/immutable/chunks/jhNNYE0v.js","/app/immutable/chunks/Cwla-sl1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/ZcoUa9Jg.js","/app/immutable/chunks/HftJbvyF.js","/app/immutable/chunks/DWUO9rBe.js","/app/immutable/chunks/BNODdf6r.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/Ci7mS1ie.js","/app/immutable/chunks/DsyH2ZOJ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BEyxbMng.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dz2z231n.js","/app/immutable/chunks/CbSeeP7P.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/96DwTK9j.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/dxPehZVa.js","/app/immutable/chunks/DwQfkcIA.js","/app/immutable/chunks/CAYSf4zc.js","/app/immutable/chunks/CZ-8NDq0.js","/app/immutable/chunks/R1d5Y9eD.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
2
+ import{bm as o,t as st,bo as K,bw as nt,b as ot,bq as Ft,bs as Fe,_ as Ut}from"./AeC4KVgG.js";import{bs as it,a5 as f,aD as t,bA as v,b_ as T,W as y,bn as ct,c9 as k,aA as H,aB as S,ca as Ue,bk as Vt,c6 as Yt,cd as qe,bV as Gt,bS as g,ay as ge,bl as M,bO as N}from"./CJxGDkBm.js";import{i as $}from"./k2awEenT.js";import{e as Ve,g as Ye}from"./CswzK9Go.js";import{c as Qt,e as Jt,f as lt,g as Xt,s as x}from"./DrHJ7oPv.js";import{aO as Zt,cY as ea,M as ta,aw as aa,dn as ra,W as sa,ds as dt}from"./BEyxbMng.js";import{t as Ge}from"./DAsc1V4f.js";import{b as na,A as oa}from"./DwHEsGP4.js";import{l as Qe}from"./D0VMf2Fp.js";import{aJ as ia,aG as ca,aH as Je,a0 as la}from"./dxPehZVa.js";import{S as le}from"./F1SvNoTt.js";import"./jhNNYE0v.js";import{f as Xe}from"./DJM6amHV.js";import{l as B,n as da}from"./DWUO9rBe.js";import{rV as ut,IX as W,mD as ua,fM as pa,nx as va,uJ as ma,c as _a,wj as ga,tm as fa,rC as wa}from"./BkzMrEqG.js";import{c as ba}from"./ChTqQfQN.js";import{o as ka}from"./D1FSU9Gk.js";import{aQ as ha,aR as Ze,bB as ya,aA as xa,bA as Sa,aF as Aa,d2 as Ca,cS as Ra,F as fe,ax as et,bJ as Ia}from"./Ci7mS1ie.js";import{selectCurrentWorkspaceTabId as qa}from"./DwQfkcIA.js";import{p as Pa}from"./B0JbhmMb.js";import{i as Ma}from"./Cb4s3Dt_.js";const Na=new Set(["failed","blocked","needs_attention","in_progress"]),Wa={failed:{visual:"icon",icon:Ra,className:"text-foreground"},blocked:{visual:"icon",icon:Ca,className:"text-danger"},needs_attention:{visual:"icon",icon:Aa,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Sa,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:xa,className:"text-success"},pr_queued:{visual:"icon",icon:ya,className:"text-info"},pr_ready:{visual:"icon",icon:Ze,className:"text-success"},pr_open:{visual:"icon",icon:Ze,className:"text-info"},pr_merged:{visual:"icon",icon:ha,className:"text-purple-500"}};function Ta(r){switch(r){case"failed":return o.workspace_statusIcon_failed_label();case"blocked":return o.workspace_statusIcon_blocked_label();case"needs_attention":return o.workspace_statusIcon_needsAttention_label();case"in_progress":return o.workspace_statusIcon_inProgress_label();case"waiting":return o.workspace_taskStatus_waiting_label();case"unread":return o.layout_activeCard_unread_header();case"not_started":return o.workspace_statusIcon_notStarted_label();case"idle":return o.workspace_statusIcon_idle_label();case"complete":return o.workspace_statusIcon_complete_label();case"pr_queued":return o.workspace_statusIcon_prQueued_label();case"pr_ready":return o.workspace_statusIcon_prReady_label();case"pr_open":return o.workspace_statusIcon_prOpen_label();case"pr_merged":return o.workspace_statusIcon_prMerged_label()}}function Oa(r){const n=ut(r.displayStatus)?r.displayStatus:"not_started";return Na.has(n)?n:r.attention==="unread"?"unread":r.waiting===!0?"waiting":n}function pt(r){const n=r==="waiting"||r==="unread"||ut(r)?r:"not_started",b=Ta(n);return{state:n,...Wa[n],label:b,tooltip:b,accessibleName:b}}var Da=S('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),Ea=S("<span><!></span>");function vt(r,n){if(new.target)return st({component:vt,...r});it(n,!0);let b=K(n,"status",7),m=K(n,"size",7,14),w=K(n,"decorative",7,!1),u=K(n,"class",7);const i=k(()=>pt(b()));var a={get status(){return b()},set status(_){b(_),H()},get size(){return m()},set size(_=14){m(_),H()},get decorative(){return w()},set decorative(_=!1){w(_),H()},get class(){return u()},set class(_){u(_),H()},$set:nt,$on:(_,G)=>ot(n,_,G)},p=Ea(),re=f(p);{var se=_=>{var G=Da();y(_,G)},ne=_=>{fe(_,{get icon(){return t(i).icon},class:"size-full!"})};$(re,_=>{t(i).visual==="dot"?_(se):t(i).icon&&_(ne,1)})}return v(p),T(_=>{lt(p,1,_,"svelte-14zk5l0"),Xt(p,`width: ${m()??""}px; height: ${m()??""}px;`),x(p,"role",w()?void 0:"img"),x(p,"aria-label",w()?void 0:t(i).accessibleName),x(p,"aria-hidden",w()?"true":void 0),x(p,"title",w()?void 0:t(i).tooltip),x(p,"data-workspace-status",t(i).state),x(p,"data-workspace-status-visual",t(i).visual),x(p,"data-workspace-status-icon",t(i).icon?.iconName)},[()=>Qt(Jt("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",t(i).className,u()))]),y(r,p),ct(a)}const Me=6e4,Ne=60*Me,We=24*Ne,tt=30*We;function La(r,n=new Date){if(r==null)return null;const b=r instanceof Date?r:new Date(r),m=b.getTime(),w=n.getTime();if(!Number.isFinite(m)||!Number.isFinite(w))return null;const u=Math.max(0,w-m);let i;u<Me?i="<1m":u<Ne?i=`${B(Math.floor(u/Me))}m`:u<We?i=`${B(Math.floor(u/Ne))}h`:u<tt?i=`${B(Math.floor(u/We))}d`:i=`${B(Math.floor(u/tt))}mo`;const a=m>w?n:b,p=da(a,{now:n});return p?{compact:i,accessible:p,dateTime:b.toISOString()}:null}var $a=S('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),Ka=S('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),Ha=S('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),Ba=S('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),at=S('<div role="listitem"><!></div>'),ja=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),za=S('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),Fa=S('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),Ua=S('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),Va=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),Ya=S('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),Ga=S('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),Qa=S('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),Ja=S('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function Xa(r,n){if(new.target)return st({component:Xa,...r});it(n,!0);const b=()=>Fe(gt,"$workspaceAgents$",w),m=()=>Fe(ft,"$prMonitors$",w),[w,u]=Ft(),i=ba("WorkspaceHoverCard");let a=K(n,"workspace",7),p=K(n,"isLoading",7,!1),re=K(n,"activeAgentIds",23,()=>[]),se=K(n,"loadAgentSessions",7,!0),ne=K(n,"onkeydown",7),_=K(n,"staticData",7,!1);const G=qe("");function mt(){return _()?qe([]):Zt(G)}function _t(){return _()?qe([]):ea(G)}const gt=mt(),ft=_t();Ue(()=>G.set(a()?.id??""));let Te=Gt(0);Vt(()=>Qe.subscribe(()=>Yt(Te)));let wt=k(()=>a()?.agentSummary?.agentIds??[]),Oe=k(()=>(t(Te),a()?Qe.getStreamingAgentIdsForWorkspace(a().id):[])),De=null,we=new Set;Ue(()=>{if(!a()||!se())return;const e=String(a().id);De!==e&&(De=e,we=new Set);for(const c of new Set([...t(wt).slice(0,6),...re(),...t(Oe)]))we.has(c)||(W.dispatch(ua(e,c)),we.add(c))});function bt(e){return[e.name,e.context,e.questionMeta?.accessible,e.updated.accessible].filter(Boolean).join(". ")}function kt(e){return e?e.kind==="attention"?e.attention.reason?.trim()||null:"text"in e&&e.text.trim()||null:null}function ht(e){return La(e.lastActivity||e.updatedAt||e.createdAt)??{compact:"—",accessible:o.workspace_hoverCard_noRecentActivity_label()}}function yt(e){const c=String(e.status).toLowerCase(),l=va(e),h=na(e),E=h==="question"?ia(e):null,I=kt(aa.select(W.state,String(e.id)));let q,j,P,A,O,J,z=!1;if(h==="question"){q="attention",j="question",P=E?.questions[0]?.question.trim()||I||o.workspace_hoverCard_question_label(),A="question",O=1;const de=E?.questions.length??0;de>1&&(J={compact:`${B(1)}/${B(de)}`,accessible:o.chat_questionWizard_stepCounter_label({current:1,total:de})})}else if(h==="attention-discussion")q="attention",j="discussion",P=l?.reason?.trim()||o.chat_agentCard_attentionDiscussion_label(),A="attention-discussion",O=1;else if(h==="attention-blocker"||c==="blocked")q="attention",j="blocker",P=l?.reason?.trim()||o.chat_agentCard_attentionBlocker_label(),A="attention-blocker",O=0;else if(e.hasUnread)q="attention",j="unread",P=I||o.chat_newMessagesDivider_label(),z=!!I,A="unread",O=2;else if(e.isStreaming||e.isProcessing||re().includes(String(e.id))||t(Oe).includes(String(e.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(c))q="active",P=I||o.workspace_devScripts_running_label(),z=!!I,A=e.isProcessing?"responding":"running",O=3;else if(["waiting","pending","queued","starting"].includes(c))q="waiting",P=I||o.workspace_taskStatus_waiting_label(),z=!!I,A="waiting",O=4;else return null;const ye=e.agentMetadata??e.metadata;return{id:String(e.id),name:e.name?.trim()||o.workspace_fileChanges_agent_label(),group:q,attentionKind:j,avatarState:A,specialist:ye?.specialist,context:P,questionMeta:J,contextIsPreview:z,updated:ht(e),priority:O}}let xt=k(()=>{const e=a()?.agentSummary,c=new Map;if(Array.isArray(e?.agents))for(const l of e.agents)l&&typeof l=="object"&&typeof l.id=="string"&&c.set(l.id,l.parentAgentId);return b().filter(l=>{const h=c.get(String(l.id));return!(pa(l)!=="topLevel"||typeof h=="string"&&h||l.pendingDeleteAt||l.retiredAt||String(l.status).toLowerCase()==="deleted")})}),be=k(()=>t(xt).map(yt).filter(e=>e!==null).sort((e,c)=>e.priority-c.priority)),St=k(()=>t(be).slice(0,6)),Ee=k(()=>Math.max(0,t(be).length-6)),At=k(()=>a()?.repositoryName?a().repositoryOwner?`${a().repositoryOwner} / ${a().repositoryName}`:a().repositoryName:o.workspace_hoverCard_localRepository_label()),Le=k(()=>Oa(a()??{})),Ct=k(()=>pt(t(Le))),ke=k(()=>a()?.statusMessage?.trim()||"");function $e(e){if(!e)return null;const c=e.activePullRequest??e.pullRequests?.[0]??null;return c||(e.prStatus?{id:`legacy-pr-${e.prNumber??"workspace"}`,number:e.prNumber??0,url:e.prUrl??"",title:o.workspace_hoverCard_pullRequest_label(),status:e.prStatus,createdAt:e.updatedAt,updatedAt:e.updatedAt}:null)}let Rt=k(()=>a()?_()?$e(a()):ra.select(W.state,a().id)??$e(a()):null),Q=k(()=>{if(!a()||ta(a()))return[];const e=a().repositoryOwner&&a().repositoryName?`${a().repositoryOwner}/${a().repositoryName}`:void 0;return Ma({workspacePRs:a().pullRequests,activePR:t(Rt),monitors:m(),workspaceRepo:e,buildPrUrl:(c,l)=>Pa(c,a().repositoryOwner,a().repositoryName,l),getDisplayTitle:c=>c.title})}),It=k(()=>t(Q).slice(0,3)),Ke=k(()=>Math.max(0,t(Q).length-3)),He=k(()=>t(be).length>0),Be=k(()=>t(Q).length>0),je=k(()=>t(He)||t(Be));function ze(e){const c=e.resource?.repository.provider==="gitlab"?`${e.repo} !${e.number}`:e.repo?o.workspace_card_prBadge_repoLine_tooltip({repo:e.repo,number:e.number}):o.workspace_card_prBadge_label({number:` #${e.number}`});return[sa(c,e),e.title,e.details].filter(Boolean).join(`
3
+ `)}function qt(e,c){if(e.stopPropagation(),!a()||!se())return;const l=a().id;qa.select(W.state)!==l&&ka(l).catch(h=>{i.warn("Failed to switch workspace for hover-card agent",{agentId:c,error:h})}),W.dispatch(ma(l,{agentId:c}))}function Pt(e,c){if(e.stopPropagation(),!a()||!c.url)return;const l=a().id;Ut(async()=>{const{handleLink:h}=await import("./CsqD9xz6.js").then(E=>E.l);return{handleLink:h}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:h})=>h(c.url,{workspaceId:l,event:e}))}var Mt={get workspace(){return a()},set workspace(e){a(e),H()},get isLoading(){return p()},set isLoading(e=!1){p(e),H()},get activeAgentIds(){return re()},set activeAgentIds(e=[]){re(e),H()},get loadAgentSessions(){return se()},set loadAgentSessions(e=!0){se(e),H()},get onkeydown(){return ne()},set onkeydown(e){ne(e),H()},get staticData(){return _()},set staticData(e=!1){_(e),H()},$set:nt,$on:(e,c)=>ot(n,e,c)},he=Ja(),Nt=f(he);{var Wt=e=>{var c=$a(),l=f(c),h=f(l),E=f(h);le(E,{class:"h-7 min-w-0 max-w-64 flex-1"});var I=g(E,2);le(I,{class:"h-5 w-20 shrink-0"}),v(h);var q=g(h,2);le(q,{class:"h-4 w-40"});var j=g(q,2);le(j,{class:"mt-2 h-10 w-full"}),v(l);var P=g(l,4),A=f(P),O=f(A);le(O,{class:"h-10 w-full"}),v(A);var J=g(A,2),z=f(J);le(z,{class:"h-10 w-full"}),v(J),v(P),v(c),y(e,c)},Tt=e=>{var c=Qa(),l=ge(c);let h;var E=f(l),I=f(E),q=f(I),j=M(q,!0),P=g(q,2),A=f(P),O=M(A,!0),J=g(A);vt(J,{get status(){return t(Le)},size:16,decorative:!0}),v(P),v(I);var z=g(I,2),ye=M(z,!0),de=g(z,2);{var Dt=F=>{var oe=Ka(),me=M(oe,!0);Ve(oe,(_e,xe)=>Ge?.(_e,xe),()=>t(ke)),T(()=>N(me,t(ke))),y(F,oe)};$(de,F=>{t(ke)&&F(Dt)})}v(E),v(l);var Et=g(l,2);{var Lt=F=>{var oe=Ga(),me=g(ge(oe),2),_e=f(me);{var xe=X=>{var U=za(),Y=f(U);Ye(Y,21,()=>t(St),d=>d.id,(d,s)=>{var C=at(),Z=f(C);{let ee=k(()=>bt(t(s)));Xe(Z,{variant:"plain",wrapContent:!1,class:"grid h-auto! min-h-8 w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] items-start justify-normal gap-x-2 gap-y-0 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return t(ee)},"data-workspace-hover-card-agent-row":!0,get"data-agent-group-row"(){return t(s).group},get"data-attention-kind"(){return t(s).attentionKind},get onkeydown(){return ne()},onclick:V=>qt(V,t(s).id),children:(V,ue)=>{var D=Ba(),R=ge(D),L=f(R);{let ae=k(()=>t(s).specialist??null);oa(L,{get agentId(){return t(s).id},variant:"compact",get state(){return t(s).avatarState},get specialist(){return t(ae)}})}v(R);var ie=g(R),Ce=M(ie,!0),te=g(ie),Re=M(te,!0),pe=g(te,2),ve=f(pe),Ie=M(ve,!0);Ve(ve,(ae,ce)=>Ge?.(ae,ce),()=>t(s).context);var Ht=g(ve);{var Bt=ae=>{var ce=Ha(),jt=f(ce),zt=M(jt,!0);v(ce),T(()=>{x(ce,"aria-label",t(s).questionMeta.accessible),N(zt,t(s).questionMeta.compact)}),y(ae,ce)};$(Ht,ae=>{t(s).questionMeta&&ae(Bt)})}v(pe),T(()=>{N(Ce,t(s).name),x(te,"datetime",t(s).updated.dateTime),x(te,"aria-label",t(s).updated.accessible),N(Re,t(s).updated.compact),x(pe,"data-workspace-hover-card-agent-preview",t(s).contextIsPreview||void 0),N(Ie,t(s).context)}),y(V,D)},$$slots:{default:!0}})}v(C),y(d,C)}),v(Y);var Se=g(Y,2);{var Ae=d=>{var s=ja(),C=f(s),Z=M(C,!0),ee=g(C,2);fe(ee,{get icon(){return et},size:10}),v(s),T(V=>N(Z,V),[()=>o.workspace_hoverCard_moreAgents_label({count:B(t(Ee))})]),y(d,s)};$(Se,d=>{t(Ee)&&d(Ae)})}v(U),T(d=>x(U,"aria-label",d),[()=>o.workspace_multiSelectSidebar_agentsTab_label()]),y(X,U)};$(_e,X=>{t(He)&&X(xe)})}var $t=g(_e,2);{var Kt=X=>{var U=Ya(),Y=f(U);Ye(Y,21,()=>t(It),d=>d.identity,(d,s)=>{var C=at();{const ue=D=>{var R=Fa(),L=ge(R);fe(L,{get icon(){return t(s).statusIcon},size:16,get class(){return`shrink-0 justify-self-start ${t(s).foregroundClass??""}`}});var ie=g(L,2),Ce=M(ie,!0),te=g(ie,2),Re=M(te,!0),pe=g(te,2),ve=M(pe,!0);T(Ie=>{N(Ce,Ie),N(Re,t(s).accessibleStateLabel),N(ve,t(s).numberLabel??`#${t(s).number}`)},[()=>t(s).title||(t(s).resource?.repository.provider==="gitlab"?o.workspace_hoverCard_mergeRequest_label():o.workspace_hoverCard_pullRequest_label())]),y(D,R)};var Z=f(C);{var ee=D=>{{let R=k(()=>ze(t(s)));Xe(D,{variant:"plain",wrapContent:!1,class:"grid h-auto! w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center justify-normal gap-x-2 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return t(R)},"data-workspace-hover-card-pr-row":!0,get"data-pr-identity"(){return t(s).identity},get"data-pr-status"(){return t(s).status},get onkeydown(){return ne()},onclick:L=>Pt(L,t(s)),children:(L,ie)=>{ue(L)},$$slots:{default:!0}})}},V=D=>{var R=Ua(),L=f(R);ue(L),v(R),T(()=>{x(R,"data-pr-identity",t(s).identity),x(R,"data-pr-status",t(s).status)}),y(D,R)};$(Z,D=>{t(s).url?D(ee):D(V,-1)})}v(C)}T(ue=>x(C,"aria-label",ue),[()=>t(s).url?void 0:ze(t(s))]),y(d,C)}),v(Y);var Se=g(Y,2);{var Ae=d=>{var s=Va(),C=f(s),Z=M(C,!0),ee=g(C,2);fe(ee,{get icon(){return et},size:10}),v(s),T(V=>N(Z,V),[()=>o.workspace_hoverCard_moreItems_label({count:B(t(Ke))})]),y(d,s)};$(Se,d=>{t(Ke)&&d(Ae)})}v(U),T((d,s)=>{x(U,"aria-label",d),x(Y,"aria-label",s)},[()=>t(Q).every(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_mergeRequests_label():t(Q).some(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_reviews_label():o.workspace_hoverCard_pullRequests_label(),()=>t(Q).every(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_mergeRequests_label():t(Q).some(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_reviews_label():o.workspace_hoverCard_pullRequests_label()]),y(X,U)};$($t,X=>{t(Be)&&X(Kt)})}v(me),y(F,oe)};$(Et,F=>{t(je)&&F(Lt)})}T(F=>{h=lt(l,1,"min-w-0 px-5 pt-4",null,h,{"pb-4":!t(je)}),N(j,F),N(O,t(Ct).label),N(ye,t(At))},[()=>a().title||o.workspace_links_untitled_label()]),y(e,c)};$(Nt,e=>{p()||!a()?e(Wt):e(Tt,-1)})}v(he),y(r,he);var Ot=ct(Mt);return u(),Ot}const rt=800,xr=175,Za=300;function er(){let r=0,n=null;const b=new Set,m=new Set;function w(){return r>0||n!==null?0:rt}function u(){const a=w();b.forEach(p=>p(a))}function i(){n!==null&&(clearTimeout(n),n=null)}return{get currentOpenDelay(){return w()},subscribe(a){return b.add(a),a(w()),()=>b.delete(a)},notifyOpened(){const a=r===0&&n===null;i(),r+=1,a&&u()},notifyClosed(){r!==0&&(r-=1,!(r>0)&&(i(),n=setTimeout(()=>{n=null,u()},Za)))},deferClose(a){return m.add(a),()=>m.delete(a)},settleDeferredCloses(){const a=[...m];m.clear(),a.forEach(p=>p())},reset(){const a=w()!==rt;i(),r=0,m.clear(),a&&u()}}}const Sr=er();function Pe(r){const n=dt.select(W.state,r);return n!==void 0&&wa(n)}function tr(r,n){if(!Pe(r))return[];const b=ca.select(W.state,r),m=Je.select(W.state,r),w=la.select(W.state),u=[];for(let i=0;i<_a;i+=1){const a=w[i],p=a&&a!==r?dt.select(W.state,a):void 0;u.push({id:`assign-micro-key-${i+1}`,label:p?o.workspace_card_assignOccupiedMicroKey_label({number:B(i+1),title:p.title}):o.workspace_card_assignMicroKeyNumber_label({number:B(i+1)}),checked:b===i,closeOnSelect:!0,onClick:()=>{Pe(r)&&W.dispatch(ga(i,r)),n()}})}return m!==null&&(u.push({type:"separator"}),u.push({id:"unassign-micro-key",label:o.workspace_card_unassignMicroKey_label(),onClick:()=>{Pe(r)&&Je.select(W.state,r)===m&&W.dispatch(fa(m)),n()}})),u}function Ar(r,{connected:n,onClose:b}){if(!n)return[];const m=tr(r,b);if(m.length===0)return[];const w=m.filter(i=>"id"in i&&i.id!=="unassign-micro-key"),u=m.find(i=>"id"in i&&i.id==="unassign-micro-key");return[{id:"assign-micro-key",label:o.workspace_card_assignMicroKey_label(),icon:Ia,onClick:()=>{},selection:"single",submenu:w},...u?[u]:[]]}export{xr as W,rt as a,Xa as b,vt as c,tr as d,Ar as e,pt as g,Oa as r,Sr as w};
@@ -1 +1 @@
1
- import{C as M}from"./B5aYN90J.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./CD7PpB6R.js";import{IX as o,DT as C,Dl as D,i as A,v7 as _,uJ as O,g1 as H,CD as L,CV as P,ET as R,CH as x}from"./BkzMrEqG.js";import{aZ as p}from"./BEyxbMng.js";import{d as B}from"./B0Z-1lwJ.js";import{n as F}from"./B1Qwlozr.js";import{o as W,e as q}from"./BkNoKwFt.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],Y=M;let g;function T(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function k(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function I(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function K(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&I(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await T(S)}return!s.aborted&&m(e,t)}async function V(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await T(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return k(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,Y,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(C(n)),o.dispatch(D(A,n)),o.dispatch(_("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await F(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(O(s,{agentId:n}));const f=await K(n,a,t);f&&k(n,a);const i=f||await V(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,V as seekConversationToMessage};
1
+ import{C as M}from"./B5aYN90J.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./CD7PpB6R.js";import{IX as o,DT as C,Dl as D,i as A,v7 as _,uJ as O,g1 as H,CD as L,CV as P,ET as R,CH as x}from"./BkzMrEqG.js";import{aZ as p}from"./BEyxbMng.js";import{d as B}from"./B0Z-1lwJ.js";import{n as F}from"./96DwTK9j.js";import{o as W,e as q}from"./D1FSU9Gk.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],Y=M;let g;function T(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function k(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function I(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function K(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&I(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await T(S)}return!s.aborted&&m(e,t)}async function V(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await T(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return k(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,Y,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(C(n)),o.dispatch(D(A,n)),o.dispatch(_("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await F(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(O(s,{agentId:n}));const f=await K(n,a,t);f&&k(n,a);const i=f||await V(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,V as seekConversationToMessage};
@@ -1,4 +1,4 @@
1
- import{I as pr}from"./BhQ7Nd7i.js";import{b as f,a$ as Er,X as j,aW as Kt,ay as nt,P as Ue,B as ur,h as fr,z as N,a_ as Ke,aZ as _r,b0 as gr,V as xr,U as yr,Y as Ir,ax as Rr,J as Or,r as Lr,aV as Ft,bh as Q,aa as tt,l as vt,aH as Ge,Z as br,W as zt,a7 as mr,aQ as Xe}from"./CTNuszHC.js";import{d as Sr,h as le,g as pt,e as Ar,a as he,b as de}from"./95Q5Q_xW.js";var ne=(function(){var e=f(function(_t,w,C,D){for(C=C||{},D=_t.length;D--;C[_t[D]]=w);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],h=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],L=[1,25],g=[1,26],R=[1,27],T=[1,28],O=[1,29],x=[1,30],m=[1,31],S=[1,32],b=[1,33],P=[1,34],k=[1,35],B=[1,36],V=[1,37],H=[1,38],z=[1,39],X=[1,40],et=[1,42],rt=[1,43],U=[1,44],ot=[1,45],at=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Z=[1,56],Mt=[1,75],A=[1,81],v=[1,82],dt=[1,83],st=[1,84],K=[1,85],mt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],ye=[1,94],Ie=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[1,106],De=[2,79],ve=[2,78],Pt=[4,5,17,51,53,54],Bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],$t=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],jt=[5,52],F=[62,70,71,72,73],Be=[62,73],lt=[1,152],te={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(w,C,D,y,G,c,kt){var p=c.length-1;switch(G){case 3:return y.apply(c[p]),c[p];case 4:case 10:this.$=[];break;case 5:case 11:c[p-1].push(c[p]),this.$=c[p-1];break;case 6:case 7:case 12:case 13:this.$=c[p];break;case 8:case 9:case 14:this.$=[];break;case 16:c[p].type="createParticipant",this.$=c[p];break;case 17:c[p-1].unshift({type:"boxStart",boxData:y.parseBoxData(c[p-2])}),c[p-1].push({type:"boxEnd",boxText:c[p-2]}),this.$=c[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-2]),sequenceIndexStep:Number(c[p-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-1].actor};break;case 30:y.setDiagramTitle(c[p].substring(6)),this.$=c[p].substring(6);break;case 31:y.setDiagramTitle(c[p].substring(7)),this.$=c[p].substring(7);break;case 32:this.$=c[p].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=c[p].trim(),y.setAccDescription(this.$);break;case 35:c[p-1].unshift({type:"loopStart",loopText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.LOOP_START}),c[p-1].push({type:"loopEnd",loopText:c[p-2],signalType:y.LINETYPE.LOOP_END}),this.$=c[p-1];break;case 36:c[p-1].unshift({type:"rectStart",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_START}),c[p-1].push({type:"rectEnd",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_END}),this.$=c[p-1];break;case 37:c[p-1].unshift({type:"optStart",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_START}),c[p-1].push({type:"optEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_END}),this.$=c[p-1];break;case 38:c[p-1].unshift({type:"altStart",altText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.ALT_START}),c[p-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=c[p-1];break;case 39:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 40:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_OVER_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 41:c[p-1].unshift({type:"criticalStart",criticalText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.CRITICAL_START}),c[p-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=c[p-1];break;case 42:c[p-1].unshift({type:"breakStart",breakText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_START}),c[p-1].push({type:"breakEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_END}),this.$=c[p-1];break;case 44:this.$=c[p-3].concat([{type:"option",optionText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.CRITICAL_OPTION},c[p]]);break;case 46:this.$=c[p-3].concat([{type:"and",parText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.PAR_AND},c[p]]);break;case 48:this.$=c[p-3].concat([{type:"else",altText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.ALT_ELSE},c[p]]);break;case 49:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 50:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 51:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 52:case 57:c[p-1].draw="actor",c[p-1].type="addParticipant",this.$=c[p-1];break;case 53:c[p-1].type="destroyParticipant",this.$=c[p-1];break;case 54:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 55:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 56:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 58:this.$=[c[p-1],{type:"addNote",placement:c[p-2],actor:c[p-1].actor,text:c[p]}];break;case 59:c[p-2]=[].concat(c[p-1],c[p-1]).slice(0,2),c[p-2][0]=c[p-2][0].actor,c[p-2][1]=c[p-2][1].actor,this.$=[c[p-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:c[p-2].slice(0,2),text:c[p]}];break;case 60:this.$=[c[p-1],{type:"addLinks",actor:c[p-1].actor,text:c[p]}];break;case 61:this.$=[c[p-1],{type:"addALink",actor:c[p-1].actor,text:c[p]}];break;case 62:this.$=[c[p-1],{type:"addProperties",actor:c[p-1].actor,text:c[p]}];break;case 63:this.$=[c[p-1],{type:"addDetails",actor:c[p-1].actor,text:c[p]}];break;case 66:this.$=[c[p-2],c[p]];break;case 67:this.$=c[p];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor}];break;case 71:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-4].actor}];break;case 72:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor}];break;case 73:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-4].actor}];break;case 74:this.$=[c[p-5],c[p-1],{type:"addMessage",from:c[p-5].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-5].actor}];break;case 75:this.$=[c[p-3],c[p-1],{type:"addMessage",from:c[p-3].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p]}];break;case 76:this.$={type:"addParticipant",actor:c[p-1],config:c[p]};break;case 77:this.$=c[p-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:c[p]};break;case 80:this.$=y.LINETYPE.SOLID_OPEN;break;case 81:this.$=y.LINETYPE.DOTTED_OPEN;break;case 82:this.$=y.LINETYPE.SOLID;break;case 83:this.$=y.LINETYPE.SOLID_TOP;break;case 84:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=y.LINETYPE.STICK_TOP;break;case 86:this.$=y.LINETYPE.STICK_BOTTOM;break;case 87:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=y.LINETYPE.DOTTED;break;case 101:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=y.LINETYPE.SOLID_CROSS;break;case 103:this.$=y.LINETYPE.DOTTED_CROSS;break;case 104:this.$=y.LINETYPE.SOLID_POINT;break;case 105:this.$=y.LINETYPE.DOTTED_POINT;break;case 106:this.$=y.parseMessage(c[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,5]),{9:48,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:H,53:z,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:Z,73:W},{23:57,62:Z,73:W},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(M,[2,30]),e(M,[2,31]),{33:[1,63]},{35:[1,64]},e(M,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:Z,73:Mt},{23:76,55:77,62:Z,73:Mt},{23:78,62:Z,73:W},{69:79,72:[1,80],78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:Z,73:W},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],De,{23:112,62:Z,73:W}),{23:113,62:Z,73:W},{23:114,62:Z,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(M,[2,6]),e(M,[2,16]),e(Pt,[2,10],{11:115}),e(M,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(M,[2,22]),{5:[1,119]},e([5,52,66,104],De),{5:[1,120]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Bt,i,{7:121}),e(Bt,i,{7:122}),e(Bt,i,{7:123}),e(Ce,i,{41:124,7:125}),e($t,i,{43:126,7:127}),e($t,i,{7:127,43:128}),e(Me,i,{46:129,7:130}),e(Bt,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(jt,ve,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:Z,70:[1,143],71:[1,144],72:[1,145],73:W},{69:147,78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),e(F,[2,105]),{23:148,62:Z,73:W},{23:150,60:149,62:Z,73:W},e(Be,[2,68]),e(Be,[2,69]),{58:151,104:lt},{58:153,104:lt},{58:154,104:lt},{58:155,104:lt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:H,53:z,54:X},{5:[1,161]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,164],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,165]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,50:[1,166],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,167]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,49:[1,168],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,48:[1,171],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,172],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{16:[1,173]},e(M,[2,50]),{16:[1,174]},e(M,[2,55]),e(jt,[2,76]),{76:[1,175]},{16:[1,176]},e(M,[2,52]),{16:[1,177]},e(M,[2,57]),e(M,[2,53]),{23:178,62:Z,73:W},{23:179,62:Z,73:W},{23:180,62:Z,73:W},{58:181,104:lt},{23:182,62:Z,72:[1,183],73:W},{58:184,104:lt},{58:185,104:lt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Pt,[2,11]),{13:187,51:H,53:z,54:X},e(Pt,[2,13]),e(Pt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,188]},e(M,[2,39]),{16:[1,189]},e(M,[2,40]),e(M,[2,41]),{16:[1,190]},e(M,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:lt},{58:197,104:lt},{58:198,104:lt},{5:[2,75]},{58:199,104:lt},{23:200,62:Z,73:W},{5:[2,58]},{5:[2,59]},{23:201,62:Z,73:W},e(Pt,[2,12]),e(Ce,i,{7:125,41:202}),e($t,i,{7:127,43:203}),e(Me,i,{7:130,46:204}),e(M,[2,49]),e(M,[2,54]),e(jt,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:f(function(w,C){if(C.recoverable)this.trace(w);else{var D=new Error(w);throw D.hash=C,D}},"parseError"),parse:f(function(w){var C=this,D=[0],y=[],G=[null],c=[],kt=this.table,p="",Vt=0,Ye=0,lr=2,Ve=1,hr=c.slice.call(arguments,1),$=Object.create(this.lexer),It={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(It.yy[ee]=this.yy[ee]);$.setInput(w,It.yy),It.yy.lexer=$,It.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var re=$.yylloc;c.push(re);var dr=$.options&&$.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tr(ct){D.length=D.length-2*ct,G.length=G.length-ct,c.length=c.length-ct}f(Tr,"popStack");function We(){var ct;return ct=y.pop()||$.lex()||Ve,typeof ct!="number"&&(ct instanceof Array&&(y=ct,ct=y.pop()),ct=C.symbols_[ct]||ct),ct}f(We,"lex");for(var it,Rt,ht,ae,St={},Wt,Et,He,Ht;;){if(Rt=D[D.length-1],this.defaultActions[Rt]?ht=this.defaultActions[Rt]:((it===null||typeof it>"u")&&(it=We()),ht=kt[Rt]&&kt[Rt][it]),typeof ht>"u"||!ht.length||!ht[0]){var se="";Ht=[];for(Wt in kt[Rt])this.terminals_[Wt]&&Wt>lr&&Ht.push("'"+this.terminals_[Wt]+"'");$.showPosition?se="Parse error on line "+(Vt+1)+`:
1
+ import{I as pr}from"./C_z20mJT.js";import{b as f,a$ as Er,X as j,aW as Kt,ay as nt,P as Ue,B as ur,h as fr,z as N,a_ as Ke,aZ as _r,b0 as gr,V as xr,U as yr,Y as Ir,ax as Rr,J as Or,r as Lr,aV as Ft,bh as Q,aa as tt,l as vt,aH as Ge,Z as br,W as zt,a7 as mr,aQ as Xe}from"./C9otdzZM.js";import{d as Sr,h as le,g as pt,e as Ar,a as he,b as de}from"./dGnsWF4N.js";var ne=(function(){var e=f(function(_t,w,C,D){for(C=C||{},D=_t.length;D--;C[_t[D]]=w);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],h=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],L=[1,25],g=[1,26],R=[1,27],T=[1,28],O=[1,29],x=[1,30],m=[1,31],S=[1,32],b=[1,33],P=[1,34],k=[1,35],B=[1,36],V=[1,37],H=[1,38],z=[1,39],X=[1,40],et=[1,42],rt=[1,43],U=[1,44],ot=[1,45],at=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Z=[1,56],Mt=[1,75],A=[1,81],v=[1,82],dt=[1,83],st=[1,84],K=[1,85],mt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],ye=[1,94],Ie=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[1,106],De=[2,79],ve=[2,78],Pt=[4,5,17,51,53,54],Bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],$t=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],jt=[5,52],F=[62,70,71,72,73],Be=[62,73],lt=[1,152],te={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(w,C,D,y,G,c,kt){var p=c.length-1;switch(G){case 3:return y.apply(c[p]),c[p];case 4:case 10:this.$=[];break;case 5:case 11:c[p-1].push(c[p]),this.$=c[p-1];break;case 6:case 7:case 12:case 13:this.$=c[p];break;case 8:case 9:case 14:this.$=[];break;case 16:c[p].type="createParticipant",this.$=c[p];break;case 17:c[p-1].unshift({type:"boxStart",boxData:y.parseBoxData(c[p-2])}),c[p-1].push({type:"boxEnd",boxText:c[p-2]}),this.$=c[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-2]),sequenceIndexStep:Number(c[p-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-1].actor};break;case 30:y.setDiagramTitle(c[p].substring(6)),this.$=c[p].substring(6);break;case 31:y.setDiagramTitle(c[p].substring(7)),this.$=c[p].substring(7);break;case 32:this.$=c[p].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=c[p].trim(),y.setAccDescription(this.$);break;case 35:c[p-1].unshift({type:"loopStart",loopText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.LOOP_START}),c[p-1].push({type:"loopEnd",loopText:c[p-2],signalType:y.LINETYPE.LOOP_END}),this.$=c[p-1];break;case 36:c[p-1].unshift({type:"rectStart",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_START}),c[p-1].push({type:"rectEnd",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_END}),this.$=c[p-1];break;case 37:c[p-1].unshift({type:"optStart",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_START}),c[p-1].push({type:"optEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_END}),this.$=c[p-1];break;case 38:c[p-1].unshift({type:"altStart",altText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.ALT_START}),c[p-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=c[p-1];break;case 39:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 40:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_OVER_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 41:c[p-1].unshift({type:"criticalStart",criticalText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.CRITICAL_START}),c[p-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=c[p-1];break;case 42:c[p-1].unshift({type:"breakStart",breakText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_START}),c[p-1].push({type:"breakEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_END}),this.$=c[p-1];break;case 44:this.$=c[p-3].concat([{type:"option",optionText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.CRITICAL_OPTION},c[p]]);break;case 46:this.$=c[p-3].concat([{type:"and",parText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.PAR_AND},c[p]]);break;case 48:this.$=c[p-3].concat([{type:"else",altText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.ALT_ELSE},c[p]]);break;case 49:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 50:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 51:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 52:case 57:c[p-1].draw="actor",c[p-1].type="addParticipant",this.$=c[p-1];break;case 53:c[p-1].type="destroyParticipant",this.$=c[p-1];break;case 54:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 55:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 56:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 58:this.$=[c[p-1],{type:"addNote",placement:c[p-2],actor:c[p-1].actor,text:c[p]}];break;case 59:c[p-2]=[].concat(c[p-1],c[p-1]).slice(0,2),c[p-2][0]=c[p-2][0].actor,c[p-2][1]=c[p-2][1].actor,this.$=[c[p-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:c[p-2].slice(0,2),text:c[p]}];break;case 60:this.$=[c[p-1],{type:"addLinks",actor:c[p-1].actor,text:c[p]}];break;case 61:this.$=[c[p-1],{type:"addALink",actor:c[p-1].actor,text:c[p]}];break;case 62:this.$=[c[p-1],{type:"addProperties",actor:c[p-1].actor,text:c[p]}];break;case 63:this.$=[c[p-1],{type:"addDetails",actor:c[p-1].actor,text:c[p]}];break;case 66:this.$=[c[p-2],c[p]];break;case 67:this.$=c[p];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor}];break;case 71:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-4].actor}];break;case 72:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor}];break;case 73:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-4].actor}];break;case 74:this.$=[c[p-5],c[p-1],{type:"addMessage",from:c[p-5].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-5].actor}];break;case 75:this.$=[c[p-3],c[p-1],{type:"addMessage",from:c[p-3].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p]}];break;case 76:this.$={type:"addParticipant",actor:c[p-1],config:c[p]};break;case 77:this.$=c[p-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:c[p]};break;case 80:this.$=y.LINETYPE.SOLID_OPEN;break;case 81:this.$=y.LINETYPE.DOTTED_OPEN;break;case 82:this.$=y.LINETYPE.SOLID;break;case 83:this.$=y.LINETYPE.SOLID_TOP;break;case 84:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=y.LINETYPE.STICK_TOP;break;case 86:this.$=y.LINETYPE.STICK_BOTTOM;break;case 87:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=y.LINETYPE.DOTTED;break;case 101:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=y.LINETYPE.SOLID_CROSS;break;case 103:this.$=y.LINETYPE.DOTTED_CROSS;break;case 104:this.$=y.LINETYPE.SOLID_POINT;break;case 105:this.$=y.LINETYPE.DOTTED_POINT;break;case 106:this.$=y.parseMessage(c[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,5]),{9:48,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:H,53:z,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:Z,73:W},{23:57,62:Z,73:W},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(M,[2,30]),e(M,[2,31]),{33:[1,63]},{35:[1,64]},e(M,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:Z,73:Mt},{23:76,55:77,62:Z,73:Mt},{23:78,62:Z,73:W},{69:79,72:[1,80],78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:Z,73:W},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],De,{23:112,62:Z,73:W}),{23:113,62:Z,73:W},{23:114,62:Z,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(M,[2,6]),e(M,[2,16]),e(Pt,[2,10],{11:115}),e(M,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(M,[2,22]),{5:[1,119]},e([5,52,66,104],De),{5:[1,120]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Bt,i,{7:121}),e(Bt,i,{7:122}),e(Bt,i,{7:123}),e(Ce,i,{41:124,7:125}),e($t,i,{43:126,7:127}),e($t,i,{7:127,43:128}),e(Me,i,{46:129,7:130}),e(Bt,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(jt,ve,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:Z,70:[1,143],71:[1,144],72:[1,145],73:W},{69:147,78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),e(F,[2,105]),{23:148,62:Z,73:W},{23:150,60:149,62:Z,73:W},e(Be,[2,68]),e(Be,[2,69]),{58:151,104:lt},{58:153,104:lt},{58:154,104:lt},{58:155,104:lt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:H,53:z,54:X},{5:[1,161]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,164],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,165]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,50:[1,166],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,167]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,49:[1,168],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,48:[1,171],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,172],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{16:[1,173]},e(M,[2,50]),{16:[1,174]},e(M,[2,55]),e(jt,[2,76]),{76:[1,175]},{16:[1,176]},e(M,[2,52]),{16:[1,177]},e(M,[2,57]),e(M,[2,53]),{23:178,62:Z,73:W},{23:179,62:Z,73:W},{23:180,62:Z,73:W},{58:181,104:lt},{23:182,62:Z,72:[1,183],73:W},{58:184,104:lt},{58:185,104:lt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Pt,[2,11]),{13:187,51:H,53:z,54:X},e(Pt,[2,13]),e(Pt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,188]},e(M,[2,39]),{16:[1,189]},e(M,[2,40]),e(M,[2,41]),{16:[1,190]},e(M,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:lt},{58:197,104:lt},{58:198,104:lt},{5:[2,75]},{58:199,104:lt},{23:200,62:Z,73:W},{5:[2,58]},{5:[2,59]},{23:201,62:Z,73:W},e(Pt,[2,12]),e(Ce,i,{7:125,41:202}),e($t,i,{7:127,43:203}),e(Me,i,{7:130,46:204}),e(M,[2,49]),e(M,[2,54]),e(jt,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:f(function(w,C){if(C.recoverable)this.trace(w);else{var D=new Error(w);throw D.hash=C,D}},"parseError"),parse:f(function(w){var C=this,D=[0],y=[],G=[null],c=[],kt=this.table,p="",Vt=0,Ye=0,lr=2,Ve=1,hr=c.slice.call(arguments,1),$=Object.create(this.lexer),It={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(It.yy[ee]=this.yy[ee]);$.setInput(w,It.yy),It.yy.lexer=$,It.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var re=$.yylloc;c.push(re);var dr=$.options&&$.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tr(ct){D.length=D.length-2*ct,G.length=G.length-ct,c.length=c.length-ct}f(Tr,"popStack");function We(){var ct;return ct=y.pop()||$.lex()||Ve,typeof ct!="number"&&(ct instanceof Array&&(y=ct,ct=y.pop()),ct=C.symbols_[ct]||ct),ct}f(We,"lex");for(var it,Rt,ht,ae,St={},Wt,Et,He,Ht;;){if(Rt=D[D.length-1],this.defaultActions[Rt]?ht=this.defaultActions[Rt]:((it===null||typeof it>"u")&&(it=We()),ht=kt[Rt]&&kt[Rt][it]),typeof ht>"u"||!ht.length||!ht[0]){var se="";Ht=[];for(Wt in kt[Rt])this.terminals_[Wt]&&Wt>lr&&Ht.push("'"+this.terminals_[Wt]+"'");$.showPosition?se="Parse error on line "+(Vt+1)+`:
2
2
  `+$.showPosition()+`
3
3
  Expecting `+Ht.join(", ")+", got '"+(this.terminals_[it]||it)+"'":se="Parse error on line "+(Vt+1)+": Unexpected "+(it==Ve?"end of input":"'"+(this.terminals_[it]||it)+"'"),this.parseError(se,{text:$.match,token:this.terminals_[it]||it,line:$.yylineno,loc:re,expected:Ht})}if(ht[0]instanceof Array&&ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Rt+", token: "+it);switch(ht[0]){case 1:D.push(it),G.push($.yytext),c.push($.yylloc),D.push(ht[1]),it=null,Ye=$.yyleng,p=$.yytext,Vt=$.yylineno,re=$.yylloc;break;case 2:if(Et=this.productions_[ht[1]][1],St.$=G[G.length-Et],St._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},dr&&(St._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]]),ae=this.performAction.apply(St,[p,Ye,Vt,It.yy,ht[1],G,c].concat(hr)),typeof ae<"u")return ae;Et&&(D=D.slice(0,-1*Et*2),G=G.slice(0,-1*Et),c=c.slice(0,-1*Et)),D.push(this.productions_[ht[1]][0]),G.push(St.$),c.push(St._$),He=kt[D[D.length-2]][D[D.length-1]],D.push(He);break;case 3:return!0}}return!0},"parse")},cr=(function(){var _t={EOF:1,parseError:f(function(C,D){if(this.yy.parser)this.yy.parser.parseError(C,D);else throw new Error(C)},"parseError"),setInput:f(function(w,C){return this.yy=C||this.yy||{},this._input=w,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:f(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var C=w.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:f(function(w){var C=w.length,D=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var y=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),D.length-1&&(this.yylineno-=D.length-1);var G=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:D?(D.length===y.length?this.yylloc.first_column:0)+y[y.length-D.length].length-D[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(w){this.unput(this.match.slice(w))},"less"),pastInput:f(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var w=this.pastInput(),C=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DQTzZEWU.js","/app/immutable/chunks/AeC4KVgG.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BkzMrEqG.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Bd1FsnP3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dp2nUoTL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/CD7PpB6R.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/jhNNYE0v.js","/app/immutable/chunks/Cwla-sl1.js","/app/immutable/chunks/DrHJ7oPv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/BV4GrhSx.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CAYSf4zc.js","/app/immutable/chunks/CmVyGqNV.js","/app/immutable/chunks/BbV7MtxC.js","/app/immutable/chunks/k2awEenT.js","/app/immutable/chunks/DJM6amHV.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CswzK9Go.js","/app/immutable/chunks/ZcoUa9Jg.js","/app/immutable/chunks/HftJbvyF.js","/app/immutable/chunks/DWUO9rBe.js","/app/immutable/chunks/BNODdf6r.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/Ci7mS1ie.js","/app/immutable/chunks/DsyH2ZOJ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BEyxbMng.js","/app/immutable/chunks/Dz2z231n.js","/app/immutable/chunks/DwQfkcIA.js","/app/immutable/chunks/CZ-8NDq0.js","/app/immutable/chunks/yAiwGS7g.js","/app/immutable/chunks/D1FSU9Gk.js","/app/immutable/chunks/96DwTK9j.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B3bYRRle.js","/app/immutable/chunks/P-joxIX5.js","/app/immutable/chunks/BPG9IRUj.js","/app/immutable/chunks/Do63UfoS.js"])))=>i.map(i=>d[i]);
2
+ import{bm as v,_ as h}from"./AeC4KVgG.js";import{a as S}from"./BdWqymET.js";import{bl as A,IX as k,i as T,Hr as C,Gr as D,vb as j,v9 as B,vq as V,ns as z}from"./BkzMrEqG.js";import{bK as $}from"./DkNdI_Wp.js";import{m as R}from"./BbV7MtxC.js";import"./CJxGDkBm.js";import"./DrHJ7oPv.js";import"./Dp2nUoTL.js";import{R as N,F as g,E as G,Q as O}from"./jhNNYE0v.js";import"./ChTqQfQN.js";import"./BNODdf6r.js";import{o as q}from"./Dz2z231n.js";import{i as F}from"./DTWXK3Yd.js";const L=new WeakMap;function Le(e,t){const a=n=>{n&&n!=="new"?L.set(e,n):L.delete(e)};return a(t),{update:a,destroy(){L.delete(e)}}}function K(e){for(let t=e;t;t=t.parentElement){const a=L.get(t);if(a)return a}}function X(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:K(e)}}const s=new S("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=X(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??q.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./DQTzZEWU.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await Y(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Z(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await H(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function Y(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./CmVyGqNV.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await y(r,t),b(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Z(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await y(t.workspaceId,t),b(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const J=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function y(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./D1FSU9Gk.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function b(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!J.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:P}=await import("./BEyxbMng.js").then(M=>M.dZ);return{selectWorkspaceById:P}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const P=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await H(`file://${r}${P}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await y(i,t),b(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./B3bYRRle.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./P-joxIX5.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await y(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./DQTzZEWU.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await y(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./BPG9IRUj.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{b({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./Do63UfoS.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function H(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./jhNNYE0v.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,X as r,Le as w};
@@ -1 +1 @@
1
- import{t as X,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./AeC4KVgG.js";import{bs as J,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as x,bO as _,W as l,bH as U,aD as e,bS as C,bA as B,bn as K,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./CJxGDkBm.js";import{i as L}from"./k2awEenT.js";import{C as ut}from"./C9vs7bl5.js";import{f as V}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{k as bt}from"./yAiwGS7g.js";import{IX as W,dw as vt,du as kt,dx as _t}from"./BkzMrEqG.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),xt=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),ht=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function N(h,c){if(new.target)return X({component:N,...h});J(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());z(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));z(()=>{if(!s())return;const t=s();return ct(()=>{W.dispatch(vt(t)),W.dispatch(kt(t))}),()=>W.dispatch(_t(t))});let k=it("script");var Q={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:F,$on:(t,r)=>G(c,t,r)},A=It(),O=T(A),j=T(O);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(j,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();x(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=C(j,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();x(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}B(O);var Z=C(O,2);{var tt=t=>{var r=mt(),p=T(r);{var y=a=>{var m=gt(),o=S(m,!0);x(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};L(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}B(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=ft(),f=pt(n),P=S(f,!0),at=C(f,2),ot=S(at,!0);x(st=>{_(P,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};L(p,o=>{e(v)?.lastError&&o(y)})}var i=C(p,2);{var a=o=>{var n=xt(),f=S(n,!0);x(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=ht(),f=S(n,!0);x(P=>_(f,P),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};L(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}B(r),l(t,r)};L(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}B(A),l(h,A);var rt=K(Q);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(h,c){if(new.target)return X({component:yt,...h});J(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:F,$on:(d,$)=>G(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");N(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return B(s),l(h,s),K(E)}export{yt as default};
1
+ import{t as X,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./AeC4KVgG.js";import{bs as J,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as x,bO as _,W as l,bH as U,aD as e,bS as C,bA as B,bn as K,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./CJxGDkBm.js";import{i as L}from"./k2awEenT.js";import{C as ut}from"./BWUH3HmG.js";import{f as V}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{k as bt}from"./yAiwGS7g.js";import{IX as W,dw as vt,du as kt,dx as _t}from"./BkzMrEqG.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),xt=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),ht=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function N(h,c){if(new.target)return X({component:N,...h});J(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());z(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));z(()=>{if(!s())return;const t=s();return ct(()=>{W.dispatch(vt(t)),W.dispatch(kt(t))}),()=>W.dispatch(_t(t))});let k=it("script");var Q={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:F,$on:(t,r)=>G(c,t,r)},A=It(),O=T(A),j=T(O);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(j,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();x(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=C(j,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();x(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}B(O);var Z=C(O,2);{var tt=t=>{var r=mt(),p=T(r);{var y=a=>{var m=gt(),o=S(m,!0);x(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};L(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}B(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=ft(),f=pt(n),P=S(f,!0),at=C(f,2),ot=S(at,!0);x(st=>{_(P,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};L(p,o=>{e(v)?.lastError&&o(y)})}var i=C(p,2);{var a=o=>{var n=xt(),f=S(n,!0);x(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=ht(),f=S(n,!0);x(P=>_(f,P),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};L(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}B(r),l(t,r)};L(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}B(A),l(h,A);var rt=K(Q);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(h,c){if(new.target)return X({component:yt,...h});J(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:F,$on:(d,$)=>G(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");N(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return B(s),l(h,s),K(E)}export{yt as default};