@intent-hq/web 2.324.0 → 2.324.1

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 (142) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DkRyrpgd.js → 1eEcuHcS.js} +1 -1
  3. package/web/app/immutable/chunks/{dwOMHvst.js → 5S1qZlDD.js} +1 -1
  4. package/web/app/immutable/chunks/{BAS_DDrx.js → 6jrMk-C_.js} +1 -1
  5. package/web/app/immutable/chunks/{Dwl1U2Yv.js → 9SNY3EB9.js} +4 -4
  6. package/web/app/immutable/chunks/{Bv1YyxXs.js → 9mLk0Km9.js} +1 -1
  7. package/web/app/immutable/chunks/{D46Exibl.js → AN-5WX_c.js} +1 -1
  8. package/web/app/immutable/chunks/{DRFk8D8j.js → ATTw52No.js} +1 -1
  9. package/web/app/immutable/chunks/{rj-wRFR4.js → B-bq_ltD.js} +1 -1
  10. package/web/app/immutable/chunks/{Dw06QZ5K.js → B3SAbaUw.js} +1 -1
  11. package/web/app/immutable/chunks/{ZA2c_UV4.js → B4n_mdRo.js} +1 -1
  12. package/web/app/immutable/chunks/{kiCqsadm.js → BBAtPQBU.js} +1 -1
  13. package/web/app/immutable/chunks/{BiBHrbag.js → BBwPWV3o.js} +1 -1
  14. package/web/app/immutable/chunks/{lLIg9v9q.js → BDxgTj-Q.js} +1 -1
  15. package/web/app/immutable/chunks/{BQX6MpDU.js → BEWcSK-Z.js} +1 -1
  16. package/web/app/immutable/chunks/{gH9F0r3o.js → BFJrCHJ7.js} +1 -1
  17. package/web/app/immutable/chunks/{XeqQww8o.js → BHdlOQ18.js} +1 -1
  18. package/web/app/immutable/chunks/{-nhZ0nNk.js → BM9EAgHn.js} +1 -1
  19. package/web/app/immutable/chunks/{guvVB0-Q.js → BRVXCoHC.js} +1 -1
  20. package/web/app/immutable/chunks/{BXOh3iG1.js → BSkOEBtu.js} +1 -1
  21. package/web/app/immutable/chunks/{C73nd7h_.js → BYGvqRLs.js} +1 -1
  22. package/web/app/immutable/chunks/{B6hBcFly.js → B_aA47Rw.js} +1 -1
  23. package/web/app/immutable/chunks/{B-DqAnQ_.js → BaG-bb51.js} +2 -2
  24. package/web/app/immutable/chunks/{kN-pIg8U.js → BaN8MLaG.js} +1 -1
  25. package/web/app/immutable/chunks/{CHM9bwh2.js → BbuD6IF7.js} +1 -1
  26. package/web/app/immutable/chunks/{DCNtfwQI.js → BcIgCIVI.js} +1 -1
  27. package/web/app/immutable/chunks/{DS1K8giL.js → Blf_XS6o.js} +1 -1
  28. package/web/app/immutable/chunks/{Ddbm9CO3.js → Bmnfh3k3.js} +1 -1
  29. package/web/app/immutable/chunks/{ff5GWvuF.js → Bn4g8i34.js} +2 -2
  30. package/web/app/immutable/chunks/{BWxEfTfw.js → BpOTSlYU.js} +1 -1
  31. package/web/app/immutable/chunks/{CZdzzv7j.js → BpjBZaBN.js} +1 -1
  32. package/web/app/immutable/chunks/{DMqRI5mB.js → BrRq5glY.js} +1 -1
  33. package/web/app/immutable/chunks/{D6hXPuoQ.js → BrzHeDFL.js} +1 -1
  34. package/web/app/immutable/chunks/{BNpoIpK3.js → BuwOUSye.js} +1 -1
  35. package/web/app/immutable/chunks/{CwS-VFDa.js → Bv6BpGqB.js} +1 -1
  36. package/web/app/immutable/chunks/{BbJPpmJZ.js → BvehcAMH.js} +1 -1
  37. package/web/app/immutable/chunks/{BeFuCoSp.js → By_08IiR.js} +1 -1
  38. package/web/app/immutable/chunks/{4Co7oa1E.js → BzCZ0ySt.js} +1 -1
  39. package/web/app/immutable/chunks/{DYTaPFba.js → BzXYaZ27.js} +1 -1
  40. package/web/app/immutable/chunks/{BRjsxYDA.js → C-vFw5fg.js} +1 -1
  41. package/web/app/immutable/chunks/{IADOsM4I.js → C2JrJu0l.js} +1 -1
  42. package/web/app/immutable/chunks/{ChVRTdkj.js → C623z706.js} +2 -2
  43. package/web/app/immutable/chunks/{CwXihZzq.js → CCL1cHzZ.js} +1 -1
  44. package/web/app/immutable/chunks/{CQOPGB8W.js → CGeCOc38.js} +6 -6
  45. package/web/app/immutable/chunks/{xsyU0p2l.js → CGsrGQFv.js} +1 -1
  46. package/web/app/immutable/chunks/{CLC_EHyS.js → CHo0aT92.js} +2 -2
  47. package/web/app/immutable/chunks/{MCTJzu4E.js → CJ6mN5w4.js} +1 -1
  48. package/web/app/immutable/chunks/{9KkuRhnb.js → CJ9f1bCH.js} +1 -1
  49. package/web/app/immutable/chunks/{DC6ub8r4.js → CJJqYdTW.js} +1 -1
  50. package/web/app/immutable/chunks/{nJbYCzDf.js → CJeBMely.js} +1 -1
  51. package/web/app/immutable/chunks/{DkOappis.js → CJysbhf8.js} +1 -1
  52. package/web/app/immutable/chunks/{CFbpAAIH.js → CLRygoXX.js} +1 -1
  53. package/web/app/immutable/chunks/{C6j5ZNGg.js → CMYoNgeG.js} +1 -1
  54. package/web/app/immutable/chunks/{BKDHfRWh.js → CTNWfj01.js} +1 -1
  55. package/web/app/immutable/chunks/{CsWXL2nx.js → CTinGOMk.js} +1 -1
  56. package/web/app/immutable/chunks/{dUPFEVFf.js → CUlORLHD.js} +1 -1
  57. package/web/app/immutable/chunks/{DN8Bt6h5.js → CZYU-h5D.js} +1 -1
  58. package/web/app/immutable/chunks/{KcpuhlLy.js → CZjhyecI.js} +1 -1
  59. package/web/app/immutable/chunks/{yeZ43yxT.js → C_fhG6YK.js} +1 -1
  60. package/web/app/immutable/chunks/{Lxp0_8bR.js → CaDLa-o_.js} +1 -1
  61. package/web/app/immutable/chunks/{CeBMwYHT.js → CcATeaI9.js} +1 -1
  62. package/web/app/immutable/chunks/{CQyOHx6M.js → CdjyXCOH.js} +1 -1
  63. package/web/app/immutable/chunks/{DGL0v2_K.js → CfMQKf-j.js} +3 -3
  64. package/web/app/immutable/chunks/{CLw4HONO.js → CgUN6u-_.js} +1 -1
  65. package/web/app/immutable/chunks/{BhJHuPsV.js → Ch1eKq6l.js} +1 -1
  66. package/web/app/immutable/chunks/{B936R10a.js → ChhBfFca.js} +1 -1
  67. package/web/app/immutable/chunks/{Cjn6Una6.js → CigKENF5.js} +1 -1
  68. package/web/app/immutable/chunks/{C1maZVRS.js → CijDx9m6.js} +1 -1
  69. package/web/app/immutable/chunks/{pKEFLYyh.js → Cjg2jz_a.js} +1 -1
  70. package/web/app/immutable/chunks/{BpRe43-R.js → CkZbc2gD.js} +1 -1
  71. package/web/app/immutable/chunks/{BVfskea1.js → Ckz2jIHD.js} +1 -1
  72. package/web/app/immutable/chunks/{Dp4_L-mJ.js → ClaYICeR.js} +1 -1
  73. package/web/app/immutable/chunks/{CGJ9VzuP.js → CqIDDFDI.js} +1 -1
  74. package/web/app/immutable/chunks/{DUVnloFh.js → CuSAboZj.js} +1 -1
  75. package/web/app/immutable/chunks/{DQ6Y9dnn.js → D2lAsIeu.js} +1 -1
  76. package/web/app/immutable/chunks/{CpbsOacb.js → D3AcDR3o.js} +1 -1
  77. package/web/app/immutable/chunks/{BeMvgNvQ.js → D532ard4.js} +1 -1
  78. package/web/app/immutable/chunks/{DkQJFeTP.js → D6Ce7f2V.js} +2 -2
  79. package/web/app/immutable/chunks/{D57Ppo5L.js → D75IkkXv.js} +3 -3
  80. package/web/app/immutable/chunks/{Brd4CWXk.js → D7RDVSQr.js} +1 -1
  81. package/web/app/immutable/chunks/{BnEz7hpf.js → DHMy5FAq.js} +1 -1
  82. package/web/app/immutable/chunks/{BZjn_N94.js → DJCg-7KJ.js} +1 -1
  83. package/web/app/immutable/chunks/{Dsn_oUBL.js → DQC_mrNT.js} +1 -1
  84. package/web/app/immutable/chunks/{CRU2Ic4N.js → DQ_wgZoU.js} +3 -3
  85. package/web/app/immutable/chunks/{DnOAMlHx.js → DS4soA_f.js} +1 -1
  86. package/web/app/immutable/chunks/{z8GMbNej.js → DSlctBp2.js} +1 -1
  87. package/web/app/immutable/chunks/{D9l5OW3n.js → DTVPZt77.js} +1 -1
  88. package/web/app/immutable/chunks/{D0cFLlyl.js → DW8qqj88.js} +1 -1
  89. package/web/app/immutable/chunks/{BffXhPh0.js → DXsf6BJU.js} +1 -1
  90. package/web/app/immutable/chunks/{DsXgwl6C.js → D_NiIEQ6.js} +1 -1
  91. package/web/app/immutable/chunks/{D_Wkw7kr.js → Dc4zROVy.js} +4 -4
  92. package/web/app/immutable/chunks/{B0atVUKu.js → DeTs9jD5.js} +4 -4
  93. package/web/app/immutable/chunks/{nTVNhk4O.js → DgErwCEB.js} +1 -1
  94. package/web/app/immutable/chunks/{U8xWziLC.js → DjR5RZok.js} +3 -3
  95. package/web/app/immutable/chunks/{mpNBLC-M.js → DjsJtwwu.js} +1 -1
  96. package/web/app/immutable/chunks/{DnLsVCn0.js → DkezX7YW.js} +1 -1
  97. package/web/app/immutable/chunks/{QOF44Ax5.js → DlrPlPdU.js} +1 -1
  98. package/web/app/immutable/chunks/{DUK_WcWP.js → DmISwPRv.js} +4 -4
  99. package/web/app/immutable/chunks/{C-XAWPZ7.js → Dqz0GoEb.js} +1 -1
  100. package/web/app/immutable/chunks/{CH1XTxaS.js → DrUxg-Y7.js} +1 -1
  101. package/web/app/immutable/chunks/{Bjmlr17E.js → Ds8Q4xhB.js} +1 -1
  102. package/web/app/immutable/chunks/{DBTfX6rI.js → DsKrfPLi.js} +1 -1
  103. package/web/app/immutable/chunks/{DBmpoctk.js → DwO1y83i.js} +2 -2
  104. package/web/app/immutable/chunks/{DBhplgvj.js → DxNDvhDP.js} +1 -1
  105. package/web/app/immutable/chunks/{BXVNQtRc.js → Dy7u_TIm.js} +12 -12
  106. package/web/app/immutable/chunks/{Bp706RE4.js → Dzdq4O56.js} +1 -1
  107. package/web/app/immutable/chunks/{DPWsPeoA.js → JWiMpes2.js} +1 -1
  108. package/web/app/immutable/chunks/{Ci2Gifly.js → O1bAo7yo.js} +1 -1
  109. package/web/app/immutable/chunks/{CKrwXssS.js → PpwMLCep.js} +1 -1
  110. package/web/app/immutable/chunks/{BSD9VMOV.js → RSDIM4gD.js} +1 -1
  111. package/web/app/immutable/chunks/{Bnm7ygQV.js → RYhI8dYv.js} +1 -1
  112. package/web/app/immutable/chunks/{bRXMRmdl.js → SlxMd164.js} +2 -2
  113. package/web/app/immutable/chunks/{C-Y7-zdK.js → VXZwYyoB.js} +2 -2
  114. package/web/app/immutable/chunks/{toCIdgUz.js → _nQS1-Df.js} +1 -1
  115. package/web/app/immutable/chunks/{BrTciRFM.js → b08xwO0r.js} +1 -1
  116. package/web/app/immutable/chunks/{BsNePyuY.js → ghhvOz1y.js} +1 -1
  117. package/web/app/immutable/chunks/{C3TiZRkc.js → j0leTGhK.js} +1 -1
  118. package/web/app/immutable/chunks/{1f62sBkn.js → j1j9cU_K.js} +1 -1
  119. package/web/app/immutable/chunks/{cvvVus67.js → k6lXtlbO.js} +1 -1
  120. package/web/app/immutable/chunks/{CRqr6c7k.js → mAhKABz-.js} +1 -1
  121. package/web/app/immutable/chunks/{CfjgICqo.js → sYTqF3T1.js} +1 -1
  122. package/web/app/immutable/chunks/{Clcj0fwW.js → uqakVTxn.js} +3 -3
  123. package/web/app/immutable/chunks/{Bc2QIZ6t.js → xDi6FAPK.js} +1 -1
  124. package/web/app/immutable/chunks/{CASBM6UJ.js → xQKmWoYY.js} +1 -1
  125. package/web/app/immutable/entry/{app.Bc_1CKih.js → app.LbatBIRw.js} +2 -2
  126. package/web/app/immutable/entry/start.DTyCrHuH.js +1 -0
  127. package/web/app/immutable/nodes/{0.Da22RqTZ.js → 0.21ZdDYxW.js} +1 -1
  128. package/web/app/immutable/nodes/{1.C64Py_bd.js → 1.DX6wFID1.js} +1 -1
  129. package/web/app/immutable/nodes/{10.Fcw_jx1Y.js → 10.DdNSlx1G.js} +1 -1
  130. package/web/app/immutable/nodes/{14.CDmSmw_i.js → 14.4lx3m62g.js} +1 -1
  131. package/web/app/immutable/nodes/{17.C88kK0S3.js → 17.CZgoFvCc.js} +2 -2
  132. package/web/app/immutable/nodes/{2.DpEBmCCZ.js → 2.DieJaTIH.js} +4 -4
  133. package/web/app/immutable/nodes/{3.yMwaM28U.js → 3.B3SMgy_G.js} +1 -1
  134. package/web/app/immutable/nodes/{4.CGO7LYnU.js → 4.BFCur9Dx.js} +1 -1
  135. package/web/app/immutable/nodes/{5.O5xHx7D5.js → 5.BoGoB5Ro.js} +1 -1
  136. package/web/app/immutable/nodes/{6.Cc5CO6D3.js → 6.D6ZxB8ue.js} +1 -1
  137. package/web/app/immutable/nodes/{7.nX4FdCfv.js → 7.WRtV8iZu.js} +1 -1
  138. package/web/app/immutable/nodes/{8.CTXV-0qk.js → 8.0dbfCSYz.js} +4 -4
  139. package/web/app/immutable/nodes/{9.BauBy2np.js → 9.BmPzuZvn.js} +4 -4
  140. package/web/app/version.json +1 -1
  141. package/web/index.html +9 -9
  142. package/web/app/immutable/entry/start.C_E3N2hY.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as st}from"./DMqRI5mB.js";import{g as it}from"./guvVB0-Q.js";import{s as at}from"./C73nd7h_.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./B0atVUKu.js";import{c as kt}from"./BKDHfRWh.js";import{aO as Et}from"./DkRyrpgd.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
1
+ import{g as st}from"./BrRq5glY.js";import{g as it}from"./BRVXCoHC.js";import{s as at}from"./BYGvqRLs.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./DeTs9jD5.js";import{c as kt}from"./CTNWfj01.js";import{aO as Et}from"./1eEcuHcS.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,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 c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.length-1);var C=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),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(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CBLJc4yj.js","/app/immutable/chunks/BdVXLC6D.js","/app/immutable/chunks/Cbpg9otW.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CNRXwQIm.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CSGwK3Iy.js","/app/immutable/chunks/DCwCW5T0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CzFRvFff.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/B84qHti4.js","/app/immutable/chunks/DIQu99wb.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CGt0Jizx.js","/app/immutable/chunks/BYBI0ipE.js","/app/immutable/chunks/B_TVaDKX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CLnoXQvq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/C9E3dZMW.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/gH9F0r3o.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BhqDF1JR.js","/app/immutable/chunks/CZH2wNoi.js","/app/immutable/chunks/BDlG0ZMG.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CfTmfkGh.js","/app/immutable/chunks/9uHm6kyM.js","/app/immutable/chunks/DxPu2Dk4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/ChVRTdkj.js","/app/immutable/chunks/MCTJzu4E.js"])))=>i.map(i=>d[i]);
2
- import{bo as b,_ as x}from"./CNRXwQIm.js";import{g as f,Ia as a,db as P,Gy as S,ye as q,EK as N,uW as R,qs as W,uu as H,Kc as U}from"./B_TVaDKX.js";import{d as I}from"./BhqDF1JR.js";import{bb as V}from"./CzFRvFff.js";import{parseIntentLink as j}from"./DBmpoctk.js";import{k as y}from"./BdVXLC6D.js";import"./DYhIMPy1.js";import"./CSGwK3Iy.js";import"./DCwCW5T0.js";import"./ChTqQfQN.js";import"./BYBI0ipE.js";import{I as B,q as C,H as L}from"./CVc_SQrm.js";import{dp as D}from"./9uHm6kyM.js";import{p as E,o as K,h as $}from"./jNc5AD0V.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./CBLJc4yj.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./gH9F0r3o.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CBLJc4yj.js","/app/immutable/chunks/BdVXLC6D.js","/app/immutable/chunks/Cbpg9otW.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CNRXwQIm.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CSGwK3Iy.js","/app/immutable/chunks/DCwCW5T0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CzFRvFff.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/B84qHti4.js","/app/immutable/chunks/DIQu99wb.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CGt0Jizx.js","/app/immutable/chunks/BYBI0ipE.js","/app/immutable/chunks/B_TVaDKX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CLnoXQvq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/C9E3dZMW.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BFJrCHJ7.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BhqDF1JR.js","/app/immutable/chunks/CZH2wNoi.js","/app/immutable/chunks/BDlG0ZMG.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CfTmfkGh.js","/app/immutable/chunks/9uHm6kyM.js","/app/immutable/chunks/DxPu2Dk4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/C623z706.js","/app/immutable/chunks/CJ6mN5w4.js"])))=>i.map(i=>d[i]);
2
+ import{bo as b,_ as x}from"./CNRXwQIm.js";import{g as f,Ia as a,db as P,Gy as S,ye as q,EK as N,uW as R,qs as W,uu as H,Kc as U}from"./B_TVaDKX.js";import{d as I}from"./BhqDF1JR.js";import{bb as V}from"./CzFRvFff.js";import{parseIntentLink as j}from"./DwO1y83i.js";import{k as y}from"./BdVXLC6D.js";import"./DYhIMPy1.js";import"./CSGwK3Iy.js";import"./DCwCW5T0.js";import"./ChTqQfQN.js";import"./BYBI0ipE.js";import{I as B,q as C,H as L}from"./CVc_SQrm.js";import{dp as D}from"./9uHm6kyM.js";import{p as E,o as K,h as $}from"./jNc5AD0V.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./CBLJc4yj.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./BFJrCHJ7.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CLC_EHyS.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CNRXwQIm.js","/app/immutable/chunks/DCwCW5T0.js","/app/immutable/chunks/BFabHzCX.js","/app/immutable/chunks/CGt0Jizx.js","/app/immutable/chunks/CSGwK3Iy.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B_TVaDKX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CLnoXQvq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Cbpg9otW.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CzFRvFff.js","/app/immutable/chunks/B84qHti4.js","/app/immutable/chunks/DIQu99wb.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C9I6Lp2O.js","/app/immutable/chunks/DTbgyOj0.js","/app/immutable/chunks/BDHvJBXG.js","/app/immutable/chunks/DVfmZHyN.js","/app/immutable/chunks/C9E3dZMW.js","/app/immutable/chunks/B7iCinDK.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BXICH2Fm.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/DAPueX93.js","/app/immutable/chunks/CMVS-MkC.js","/app/immutable/chunks/CkJPh0Kr.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BoKw2Usv.js","/app/immutable/chunks/BYBI0ipE.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D7ViyZnY.js","/app/immutable/chunks/DKrRzq6a.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BdVXLC6D.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/rj-wRFR4.js","/app/immutable/chunks/9uHm6kyM.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DxPu2Dk4.js","/app/immutable/chunks/C6CEtMPQ.js","/app/immutable/chunks/CZH2wNoi.js","/app/immutable/chunks/Ct7ai2RP.js","/app/immutable/chunks/CVc_SQrm.js","/app/immutable/chunks/CfTmfkGh.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/ChVRTdkj.js","/app/immutable/chunks/BVfskea1.js","/app/immutable/chunks/CQOPGB8W.js","/app/immutable/chunks/4Co7oa1E.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/MCTJzu4E.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as v,t as Ft,bq as y,a_ as D,by as zt,b as Ht,br as zf,bu as St,bs as ia,bt as yi,b7 as dl,ba as Hf,bl as jf,bb as Wf,bm as Uf,a$ as qf,b9 as Vf,b8 as Kf,b2 as Gf,bf as Jf,bg as Yf,bk as Xf,be as Zf,bn as Qf,b0 as $f,b4 as ep,bi as tp,bh as rp,b6 as np,b5 as ap,b3 as sp,bd as op,bc as ip,bj as lp,b1 as cp,_ as dp}from"./CNRXwQIm.js";import{bI as up,bj as Is,aG as fp,bs as jt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Wt,c9 as u,aA as _,a7 as wt,ay as qe,be as tr,b$ as Mt,aC as wa,bl as R,b_ as k,bO as x,aB as S,bo as Cs,ca as It,bH as L,bV as be,br as Vr,bk as Es,c0 as Qn,ai as Na,cd as Qa,aw as Cn,a as pp,aj as Nr,c7 as gp,c6 as ul,c5 as En,bf as Vs,bz as $c}from"./DYhIMPy1.js";import{G as Ks,I as vp,z as mp}from"./Cbpg9otW.js";import{o as hp,i as bp,u as ne,g as Bn,w as An,l as Pn,j as dr,v as gt,I as Ps,n as Lt,p as Mr,q as yp,s as _p,m as xp,x as wp}from"./CSGwK3Iy.js";import{s as vn}from"./DCwCW5T0.js";import{c as en}from"./B84qHti4.js";import{I as Vo,t as or,n as kp,i as fl,u as pl}from"./CGt0Jizx.js";import{b as vr}from"./BaIAhI85.js";import{i as ed,bu as Sp,cK as Ip,dE as Cp,dq as Ep,ax as Pp,ct as Ap,a2 as Tp,cQ as Rp,dp as vs,aC as ao,c2 as Lp,I as Mp,a as Np,a0 as gl,cW as Op,bS as Dp,M as Bp,dk as Fp,W as zp,dv as Hp,af as jp,at as Wp,g as Up,u as qp}from"./9uHm6kyM.js";import{c as Vp}from"./D-62MVd3.js";import{k as na,w as Kp,C as td,c as Gp,R as Jp}from"./BdVXLC6D.js";import{f as bt,ap as Xa,ai as Yp,am as Ko,bc as Xp}from"./CzFRvFff.js";import{am as Zp,aa as vl,_ as Qp,az as $p,ab as eg,h as tg,aR as rg,I as ng,R as ag,ar as sg,af as og,$ as ig,a as ml,as as lg,r as cg,n as dg,aX as ug,m as fg,aZ as Go,A as hl,ae as pg,aY as gg,ao as rd,Q as nd,a6 as vg,a5 as bl,U as mg,K as yl}from"./D_Wkw7kr.js";import{F as Pt,bf as Jo,bJ as hg,am as bg,aO as yg,cJ as _g,bj as _i,bz as xg,aE as ad,aJ as xi,cY as Gs,a9 as Yo,cl as wg,cb as kg,cg as wi,cD as sd,bq as Sg,e as Ig,bZ as _l,c7 as Cg,cj as Eg,cU as od,bT as xl,b6 as So,bc as us,aD as Pg,ax as Xo,as as id,ba as ld,bA as Ag,B as Tg,bt as Rg,a4 as cd,cf as Lg,aj as dd,cL as ud,cH as wl,aq as fd,aI as kl,_ as Mg,ct as Ng,cS as Og,aH as Dg,aZ as Bg,bM as pd,bl as Fg,c3 as Sl,al as gd,aw as zg,a7 as Hg,a5 as jg}from"./C9E3dZMW.js";import{c as vd}from"./ChTqQfQN.js";import{g as Wg}from"./BYBI0ipE.js";import{Ia as Nt,bM as Ug,rM as Il,sm as qg,IZ as Vg,J3 as Kg,g as md,HP as Gg,nv as hd,nL as bd,nK as yd,no as so,p_ as ki,xG as Jg,uL as zs,u2 as Zo,uN as Yg,nd as _d,If as Xg,sZ as Zg,oy as xd,r8 as Si,lW as Cl,a2 as El,qF as Qg,qB as $g,qG as ev,qx as tv,qD as rv,uB as nv,Aa as wd,Ae as kd,nM as Pl,be as Qo,Gy as av,HL as sv,hb as ov,ha as iv,nG as lv,vN as cv,vO as dv,vM as Al,Ba as Xn,cr as uv,cf as fv,d0 as pv,d7 as gv,Ak as vv}from"./B_TVaDKX.js";import{bG as mv,bP as hv,i as bv,z as yv,bS as _v,ag as xv,ai as wv,ak as kv,a4 as Sv,a3 as Iv}from"./Ct7ai2RP.js";import{n as Cv,m as Ev,u as $o,c8 as Pv,L as Av,c7 as Tv,c2 as Rv,ax as Tl,c4 as Lv,bD as ei,aH as Mv,s as Nv,c as ms,d as ti,c5 as Sd,c6 as ri,bs as Ov,b0 as Dv,bH as Bv,bF as Fv,C as zv,bm as Hv,x as jv}from"./rj-wRFR4.js";import{cd as Wv,cf as Uv,ce as qv,b0 as Vv,a_ as Kv,a$ as Gv,a3 as Jv,ak as Ns,aj as Yv,az as Rl,aH as Xv,ai as Zv,C as Qv,i as $v,E as Hs,cO as em,aV as Ll,cT as tm,af as rm,a7 as nm,r as am,p as sm,aE as om,cW as im,cF as lm,cy as cm,cp as dm,bO as um}from"./DkRyrpgd.js";import{i as fm,I as $a,c as Ml}from"./C9I6Lp2O.js";import"./DTbgyOj0.js";import{f as Nl,y as Ol,M as pm,n as gm,m as vm,z as Id,x as ni,e as hs,W as es,h as mm}from"./CLC_EHyS.js";import"./CkJPh0Kr.js";import{b as Cd}from"./DKrRzq6a.js";import"./BXICH2Fm.js";import{z as Ii,P as hm,p as bm,h as ym,G as _m,l as xm,i as wm,M as km,H as Sm,t as Ja,a as Im,K as Cm,k as Em,R as Pm}from"./BDHvJBXG.js";import{t as bs,O as Am,M as Tm,S as _a}from"./DVfmZHyN.js";import{a as Rm}from"./B7iCinDK.js";import{C as ai}from"./CXhGK4p-.js";import{aQ as Lm,aY as Mm,aB as Nm,b0 as Om,aO as Dm,aU as Bm,a7 as rs,b3 as Dl,aK as Fm,aR as zm,aX as Ci,aS as Ei,W as Io,aq as Hm,X as jm,a_ as Wm,aJ as Um,aT as qm,aW as Vm,b6 as Km,b4 as Gm,ay as Ed,p as Jm,n as Ym,aV as Xm,_ as Zm,ao as Qm,aD as $m,z as eh,aC as th,a8 as rh}from"./Clcj0fwW.js";import{s as si}from"./BbJPpmJZ.js";import{M as nh}from"./COyRZ9LX.js";import{s as ah,a as sh}from"./BsieX9dN.js";import{u as Pi,w as oh,v as oo,I as ih,A as Bl,e as ys,d as xa,J as Fl,c as lh,f as ch,g as zl,i as dh,b as uh,o as Pd,j as fh,O as ph,x as gh,k as Ad,S as vh,N as mh,q as Hl,p as hh,n as jl,z as bh,s as yh}from"./CwXihZzq.js";import{o as Wl,a as Ul,T as Co,b as _h}from"./ff5GWvuF.js";import{O as xh,y as wh,j as kh,h as Sh,R as Ih}from"./BhqDF1JR.js";import{D as _s}from"./CZdzzv7j.js";import"./IZwVtomu.js";import{C as aa}from"./BNpoIpK3.js";import{M as Ch}from"./B0atVUKu.js";import{g as Ai}from"./BFabHzCX.js";import{f as ql}from"./BVfskea1.js";import{c as js}from"./4MmcbNx-.js";import{handleIntentLink as Eh}from"./DBmpoctk.js";import{s as Ph,a as Ah,f as Th,d as Rh,r as Lh,h as Mh,w as fs,g as Nh,W as Oh,H as Dh,c as Bh,M as Td}from"./Dwl1U2Yv.js";import{e as Fh,q as zh}from"./CVc_SQrm.js";import{showAssistantContent as Hh}from"./DkQJFeTP.js";import{o as Js,c as jh,n as Wh}from"./MCTJzu4E.js";import{p as Uh}from"./Bp706RE4.js";import{m as qh}from"./7k5ozo9c.js";import{h as Os}from"./DZI79QKE.js";import{i as Rd}from"./C6CEtMPQ.js";import{g as Vh,e as Kh,f as Gh,h as Jh}from"./BvFAWM27.js";import{T as Eo}from"./BkJu-RgU.js";import"./CMVS-MkC.js";import{i as Yh,r as Vl}from"./DCNtfwQI.js";import{a as Xh}from"./D7ViyZnY.js";import{a as Zh}from"./BJzHxIyr.js";import{p as Qh}from"./BsNePyuY.js";const $h="intent:inline-visual-draft";function tC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CHo0aT92.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CNRXwQIm.js","/app/immutable/chunks/DCwCW5T0.js","/app/immutable/chunks/BFabHzCX.js","/app/immutable/chunks/CGt0Jizx.js","/app/immutable/chunks/CSGwK3Iy.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B_TVaDKX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CLnoXQvq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Cbpg9otW.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CzFRvFff.js","/app/immutable/chunks/B84qHti4.js","/app/immutable/chunks/DIQu99wb.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C9I6Lp2O.js","/app/immutable/chunks/DTbgyOj0.js","/app/immutable/chunks/BDHvJBXG.js","/app/immutable/chunks/DVfmZHyN.js","/app/immutable/chunks/C9E3dZMW.js","/app/immutable/chunks/B7iCinDK.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BXICH2Fm.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/DAPueX93.js","/app/immutable/chunks/CMVS-MkC.js","/app/immutable/chunks/CkJPh0Kr.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BoKw2Usv.js","/app/immutable/chunks/BYBI0ipE.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D7ViyZnY.js","/app/immutable/chunks/DKrRzq6a.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BdVXLC6D.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B-bq_ltD.js","/app/immutable/chunks/9uHm6kyM.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DxPu2Dk4.js","/app/immutable/chunks/C6CEtMPQ.js","/app/immutable/chunks/CZH2wNoi.js","/app/immutable/chunks/Ct7ai2RP.js","/app/immutable/chunks/CVc_SQrm.js","/app/immutable/chunks/CfTmfkGh.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C623z706.js","/app/immutable/chunks/Ckz2jIHD.js","/app/immutable/chunks/CGeCOc38.js","/app/immutable/chunks/BzCZ0ySt.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CJ6mN5w4.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as v,t as Ft,bq as y,a_ as D,by as zt,b as Ht,br as zf,bu as St,bs as ia,bt as yi,b7 as dl,ba as Hf,bl as jf,bb as Wf,bm as Uf,a$ as qf,b9 as Vf,b8 as Kf,b2 as Gf,bf as Jf,bg as Yf,bk as Xf,be as Zf,bn as Qf,b0 as $f,b4 as ep,bi as tp,bh as rp,b6 as np,b5 as ap,b3 as sp,bd as op,bc as ip,bj as lp,b1 as cp,_ as dp}from"./CNRXwQIm.js";import{bI as up,bj as Is,aG as fp,bs as jt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Wt,c9 as u,aA as _,a7 as wt,ay as qe,be as tr,b$ as Mt,aC as wa,bl as R,b_ as k,bO as x,aB as S,bo as Cs,ca as It,bH as L,bV as be,br as Vr,bk as Es,c0 as Qn,ai as Na,cd as Qa,aw as Cn,a as pp,aj as Nr,c7 as gp,c6 as ul,c5 as En,bf as Vs,bz as $c}from"./DYhIMPy1.js";import{G as Ks,I as vp,z as mp}from"./Cbpg9otW.js";import{o as hp,i as bp,u as ne,g as Bn,w as An,l as Pn,j as dr,v as gt,I as Ps,n as Lt,p as Mr,q as yp,s as _p,m as xp,x as wp}from"./CSGwK3Iy.js";import{s as vn}from"./DCwCW5T0.js";import{c as en}from"./B84qHti4.js";import{I as Vo,t as or,n as kp,i as fl,u as pl}from"./CGt0Jizx.js";import{b as vr}from"./BaIAhI85.js";import{i as ed,bu as Sp,cK as Ip,dE as Cp,dq as Ep,ax as Pp,ct as Ap,a2 as Tp,cQ as Rp,dp as vs,aC as ao,c2 as Lp,I as Mp,a as Np,a0 as gl,cW as Op,bS as Dp,M as Bp,dk as Fp,W as zp,dv as Hp,af as jp,at as Wp,g as Up,u as qp}from"./9uHm6kyM.js";import{c as Vp}from"./D-62MVd3.js";import{k as na,w as Kp,C as td,c as Gp,R as Jp}from"./BdVXLC6D.js";import{f as bt,ap as Xa,ai as Yp,am as Ko,bc as Xp}from"./CzFRvFff.js";import{am as Zp,aa as vl,_ as Qp,az as $p,ab as eg,h as tg,aR as rg,I as ng,R as ag,ar as sg,af as og,$ as ig,a as ml,as as lg,r as cg,n as dg,aX as ug,m as fg,aZ as Go,A as hl,ae as pg,aY as gg,ao as rd,Q as nd,a6 as vg,a5 as bl,U as mg,K as yl}from"./Dc4zROVy.js";import{F as Pt,bf as Jo,bJ as hg,am as bg,aO as yg,cJ as _g,bj as _i,bz as xg,aE as ad,aJ as xi,cY as Gs,a9 as Yo,cl as wg,cb as kg,cg as wi,cD as sd,bq as Sg,e as Ig,bZ as _l,c7 as Cg,cj as Eg,cU as od,bT as xl,b6 as So,bc as us,aD as Pg,ax as Xo,as as id,ba as ld,bA as Ag,B as Tg,bt as Rg,a4 as cd,cf as Lg,aj as dd,cL as ud,cH as wl,aq as fd,aI as kl,_ as Mg,ct as Ng,cS as Og,aH as Dg,aZ as Bg,bM as pd,bl as Fg,c3 as Sl,al as gd,aw as zg,a7 as Hg,a5 as jg}from"./C9E3dZMW.js";import{c as vd}from"./ChTqQfQN.js";import{g as Wg}from"./BYBI0ipE.js";import{Ia as Nt,bM as Ug,rM as Il,sm as qg,IZ as Vg,J3 as Kg,g as md,HP as Gg,nv as hd,nL as bd,nK as yd,no as so,p_ as ki,xG as Jg,uL as zs,u2 as Zo,uN as Yg,nd as _d,If as Xg,sZ as Zg,oy as xd,r8 as Si,lW as Cl,a2 as El,qF as Qg,qB as $g,qG as ev,qx as tv,qD as rv,uB as nv,Aa as wd,Ae as kd,nM as Pl,be as Qo,Gy as av,HL as sv,hb as ov,ha as iv,nG as lv,vN as cv,vO as dv,vM as Al,Ba as Xn,cr as uv,cf as fv,d0 as pv,d7 as gv,Ak as vv}from"./B_TVaDKX.js";import{bG as mv,bP as hv,i as bv,z as yv,bS as _v,ag as xv,ai as wv,ak as kv,a4 as Sv,a3 as Iv}from"./Ct7ai2RP.js";import{n as Cv,m as Ev,u as $o,c8 as Pv,L as Av,c7 as Tv,c2 as Rv,ax as Tl,c4 as Lv,bD as ei,aH as Mv,s as Nv,c as ms,d as ti,c5 as Sd,c6 as ri,bs as Ov,b0 as Dv,bH as Bv,bF as Fv,C as zv,bm as Hv,x as jv}from"./B-bq_ltD.js";import{cd as Wv,cf as Uv,ce as qv,b0 as Vv,a_ as Kv,a$ as Gv,a3 as Jv,ak as Ns,aj as Yv,az as Rl,aH as Xv,ai as Zv,C as Qv,i as $v,E as Hs,cO as em,aV as Ll,cT as tm,af as rm,a7 as nm,r as am,p as sm,aE as om,cW as im,cF as lm,cy as cm,cp as dm,bO as um}from"./1eEcuHcS.js";import{i as fm,I as $a,c as Ml}from"./C9I6Lp2O.js";import"./DTbgyOj0.js";import{f as Nl,y as Ol,M as pm,n as gm,m as vm,z as Id,x as ni,e as hs,W as es,h as mm}from"./CHo0aT92.js";import"./CkJPh0Kr.js";import{b as Cd}from"./DKrRzq6a.js";import"./BXICH2Fm.js";import{z as Ii,P as hm,p as bm,h as ym,G as _m,l as xm,i as wm,M as km,H as Sm,t as Ja,a as Im,K as Cm,k as Em,R as Pm}from"./BDHvJBXG.js";import{t as bs,O as Am,M as Tm,S as _a}from"./DVfmZHyN.js";import{a as Rm}from"./B7iCinDK.js";import{C as ai}from"./CXhGK4p-.js";import{aQ as Lm,aY as Mm,aB as Nm,b0 as Om,aO as Dm,aU as Bm,a7 as rs,b3 as Dl,aK as Fm,aR as zm,aX as Ci,aS as Ei,W as Io,aq as Hm,X as jm,a_ as Wm,aJ as Um,aT as qm,aW as Vm,b6 as Km,b4 as Gm,ay as Ed,p as Jm,n as Ym,aV as Xm,_ as Zm,ao as Qm,aD as $m,z as eh,aC as th,a8 as rh}from"./uqakVTxn.js";import{s as si}from"./BvehcAMH.js";import{M as nh}from"./COyRZ9LX.js";import{s as ah,a as sh}from"./BsieX9dN.js";import{u as Pi,w as oh,v as oo,I as ih,A as Bl,e as ys,d as xa,J as Fl,c as lh,f as ch,g as zl,i as dh,b as uh,o as Pd,j as fh,O as ph,x as gh,k as Ad,S as vh,N as mh,q as Hl,p as hh,n as jl,z as bh,s as yh}from"./CCL1cHzZ.js";import{o as Wl,a as Ul,T as Co,b as _h}from"./Bn4g8i34.js";import{O as xh,y as wh,j as kh,h as Sh,R as Ih}from"./BhqDF1JR.js";import{D as _s}from"./BpjBZaBN.js";import"./IZwVtomu.js";import{C as aa}from"./BuwOUSye.js";import{M as Ch}from"./DeTs9jD5.js";import{g as Ai}from"./BFabHzCX.js";import{f as ql}from"./Ckz2jIHD.js";import{c as js}from"./4MmcbNx-.js";import{handleIntentLink as Eh}from"./DwO1y83i.js";import{s as Ph,a as Ah,f as Th,d as Rh,r as Lh,h as Mh,w as fs,g as Nh,W as Oh,H as Dh,c as Bh,M as Td}from"./9SNY3EB9.js";import{e as Fh,q as zh}from"./CVc_SQrm.js";import{showAssistantContent as Hh}from"./D6Ce7f2V.js";import{o as Js,c as jh,n as Wh}from"./CJ6mN5w4.js";import{p as Uh}from"./Dzdq4O56.js";import{m as qh}from"./7k5ozo9c.js";import{h as Os}from"./DZI79QKE.js";import{i as Rd}from"./C6CEtMPQ.js";import{g as Vh,e as Kh,f as Gh,h as Jh}from"./BvFAWM27.js";import{T as Eo}from"./BkJu-RgU.js";import"./CMVS-MkC.js";import{i as Yh,r as Vl}from"./BcIgCIVI.js";import{a as Xh}from"./D7ViyZnY.js";import{a as Zh}from"./BJzHxIyr.js";import{p as Qh}from"./ghhvOz1y.js";const $h="intent:inline-visual-draft";function tC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
260
260
  `,c0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ho=96,Nc=2e4,d0=480,Fu=512,u0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function f0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(C,z={})=>{window.parent.postMessage({channel:r,type:C,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const z=JSON.parse(JSON.stringify(C));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let T=!1,b=-1,h=innerHeight,P=Number.NaN,A=0,B=0;const F=()=>{if(T=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=C-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?A+=1:(z!==h||J<=1)&&(A=0),h=z,P=J,!B&&A>=3){B=Math.max(a,z);const Q="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Q),f("layout",{message:Q})}B&&(C=Math.min(C,B)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{T||(T=!0,requestAnimationFrame(F))},N=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const z=document.documentElement;z.classList.toggle("dark",C.dark),z.style.colorScheme=C.dark?"dark":"light";const J=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Q of Object.keys(t.variables)){if(Q==="--inline-html-root-font-size")continue;const $=C.variables[Q];typeof $=="string"&&$.length<512&&z.style.setProperty(Q,$)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&N(C.data.theme)});const U=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const z=$=>{const Ie=getComputedStyle($);if($!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const le=$.scrollHeight-$.clientHeight;return le>1&&(C.deltaY<0?$.scrollTop>1:$.scrollTop<le-1)};if(C.composedPath().some($=>$ instanceof Element&&z($))||document.scrollingElement&&z(document.scrollingElement))return;const J=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Q=Math.max(-n,Math.min(n,C.deltaY*J));Number.isFinite(Q)&&(C.preventDefault(),l({deltaY:Q}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const z=C.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",C=>{const z=C.target instanceof Element?C.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),N(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function p0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function g0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Q=>{Q.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach($=>$.remove()),Q.querySelectorAll("template").forEach($=>p($.content)),Q.querySelectorAll("a, area").forEach($=>{for(const Ie of["href","xlink:href"])$.getAttribute(Ie)?.startsWith("#")||$.removeAttribute(Ie);$.removeAttribute("target"),$.removeAttribute("ping"),$.removeAttribute("download")})};p(f);const g=Q=>JSON.stringify(Q).replace(/</g,"\\u003c"),T=f.createElement("meta");T.httpEquiv="Content-Security-Policy",T.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
261
261
  font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const A=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);A.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(T,b,h,A);const F=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),N=O.createElement("meta");N.httpEquiv="Content-Security-Policy",N.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=O.createElement("meta");U.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=O.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,O.head.prepend(N,U,C,z),`<!doctype html>${O.documentElement.outerHTML}`}const v0=()=>({csp:u0,styles:l0,maxScrollDelta:Fu,lockHeight:d0,bridge:f0.toString(),shell:p0.toString(),validate:Si.toString()});function m0(r,t,n,a,s=null,o=""){return g0(v0(),Si,r,t,n,a,s,o)}function Oc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(c0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function h0(r,t,n,a,s=null){return m0(r,t,n,a,s,i0)}var b0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),y0=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),_0=S('<p class="sr-only" role="status"> </p>'),x0=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),w0=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),k0=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),S0=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),I0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),C0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),E0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),P0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),A0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),T0=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),R0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),L0=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function zu(r,t){if(new.target)return Ft({component:zu,...r});jt(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),c=y(t,"record",7),l=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),T=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),P=y(t,"exportError",7),A,B=be(void 0),F=be(!1),O=be(!1),N=be(0),U=be(""),C=be(""),z=be(!1),J=be(""),Q=be(Vr(Ho)),$=be(n),Ie=be(""),le=be(Cl()),se=be(void 0),ue,we=be(void 0),G=be(!1);const pe=u(()=>c()??e(le)),oe=u(()=>l()!=="loading"&&(l()!=="error"||!!e(pe).current)),Ne=u(()=>!s()&&o()&&!!a().trim()&&e(oe)),Le=u(()=>Math.min(Nc,Math.max(Ho,e(Q)))),Se=u(()=>s()||l()==="loading"?"loading":o()?a().trim()?e(J)?"error":e(z)?"ready":"loading":"empty":"incomplete"),_e=u(()=>s()||l()==="loading"||e(Ne)&&!e(z)&&!e(J));function He(Y){const xe={...Y,current:e(se)??Y.current};L(le,xe),f()?.(xe)}function Ue(){const Y=e(se);!Y||e(pe).scenarios.length>=El||(He({...e(pe),scenarios:[...e(pe).scenarios,{id:crypto.randomUUID(),name:Xf({number:pl(e(pe).scenarios.length+1)}),snapshot:structuredClone(Y)}]}),L(G,!0))}function ie(Y,xe){const Ke=xe.trim().slice(0,120);Ke&&He({...e(pe),scenarios:e(pe).scenarios.map(rt=>rt.id===Y?{...rt,name:Ke}:rt)})}function ee(Y){const xe=structuredClone(Y);L(se,xe),L(we,xe),He({...e(pe),current:xe}),L(N,e(N)+1)}function Ze(Y){return typeof Y=="number"?pl(Y):typeof Y=="string"?Y:JSON.stringify(Y)}function V(){!e(B)?.contentWindow||!e(C)||e(B).contentWindow.postMessage({channel:e(C),type:"theme",theme:Oc(A)},"*")}function K(Y){let xe=A.parentElement;for(;xe;){const Ke=getComputedStyle(xe),rt=xe.scrollHeight-xe.clientHeight;if(/^(auto|scroll|overlay)$/.test(Ke.overflowY)&&rt>1){if(Y<0?xe.scrollTop>0:xe.scrollTop<rt){xe.dispatchEvent(new WheelEvent("wheel",{deltaY:Y,bubbles:!0})),xe.scrollTop+=Y;return}if(/^(contain|none)$/.test(Ke.overscrollBehaviorY))return}xe=xe.parentElement}window.scrollBy({top:Y,behavior:"instant"})}It(()=>{if(!e(F))return;const Y=a(),xe=e(Ne);e(N),En(()=>{ue!==Y&&(L(le,Cl()),L(se,void 0),L(G,!1),L(we,void 0),ue=Y),L(z,!1),L(J,""),L(Ie,""),L(Q,Ho,!0),L(C,crypto.randomUUID(),!0),L(U,xe?h0(Y,e(C),Oc(A),dl(),e(we)??e(se)??e(pe).current):"",!0),L(we,void 0)})}),Es(()=>{L(F,!0);const Y=ht=>{if(ht.source!==e(B)?.contentWindow||ht.origin!=="null")return;const je=ht.data;if(!(!je||typeof je!="object"||je.channel!==e(C)))if(je.type==="resize"&&typeof je.height=="number"&&Number.isFinite(je.height)&&je.height>=0)L(Q,Math.min(Nc,Math.ceil(je.height)),!0);else if(je.type==="ready")L(z,!0),V();else if(je.type==="error"&&typeof je.message=="string")L(J,je.message.slice(0,300),!0);else if(je.type==="layout"&&typeof je.message=="string")L(Ie,je.message.slice(0,300),!0);else if(je.type==="snapshot"&&e(Ne)&&Si(je.snapshot)){const vt=je.snapshot;L(se,vt),He({...e(pe),current:vt})}else je.type==="wheel"&&e(z)&&e(Ne)&&!e(O)&&!e(_e)&&typeof je.deltaY=="number"&&Number.isFinite(je.deltaY)&&je.deltaY!==0&&Math.abs(je.deltaY)<=Fu&&K(je.deltaY)},xe=()=>{L($,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},Ke=new MutationObserver(V);Ke.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const rt=window.matchMedia("(prefers-color-scheme: dark)");return rt.addEventListener("change",V),window.addEventListener("message",Y),window.addEventListener("resize",xe),xe(),()=>{Ke.disconnect(),rt.removeEventListener("change",V),window.removeEventListener("message",Y),window.removeEventListener("resize",xe)}});var W={get source(){return a()},set source(Y){a(Y),_()},get isStreaming(){return s()},set isStreaming(Y=!1){s(Y),_()},get isComplete(){return o()},set isComplete(Y=!0){o(Y),_()},get record(){return c()},set record(Y){c(Y),_()},get storageStatus(){return l()},set storageStatus(Y="ready"){l(Y),_()},get onRecordChange(){return f()},set onRecordChange(Y){f(Y),_()},get onUseConfiguration(){return i()},set onUseConfiguration(Y){i(Y),_()},get onExport(){return p()},set onExport(Y){p(Y),_()},get onRetry(){return g()},set onRetry(Y){g(Y),_()},get storageError(){return T()},set storageError(Y){T(Y),_()},get exportStatus(){return b()},set exportStatus(Y){b(Y),_()},get exportPath(){return h()},set exportPath(Y){h(Y),_()},get exportError(){return P()},set exportError(Y){P(Y),_()},$set:zt,$on:(Y,xe)=>Ht(t,Y,xe)},ae=L0(),Ce=I(ae),Z=I(Ce);bt(Z,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{L(O,!e(O))},children:(Y,xe)=>{tr();var Ke=Mt();k(rt=>x(Ke,rt),[()=>e(O)?Hf():jf()]),d(Y,Ke)},$$slots:{default:!0}});var de=m(Z,2);{let Y=u(()=>!e(Ne));bt(de,{variant:"ghost",size:"sm",get disabled(){return e(Y)},onclick:()=>{L(N,e(N)+1)},children:(xe,Ke)=>{tr();var rt=Mt();k(ht=>x(rt,ht),[()=>Wf()]),d(xe,rt)},$$slots:{default:!0}})}w(Ce);var Ae=m(Ce,2);{var Fe=Y=>{var xe=y0(),Ke=qe(xe),rt=I(Ke),ht=R(rt,!0),je=m(rt,2);{var vt=ct=>{bt(ct,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ut,qt)=>{tr();var Zt=Mt();k(_t=>x(Zt,_t),[()=>Zf()]),d(Ut,Zt)},$$slots:{default:!0}})};D(je,ct=>{g()&&ct(vt)})}w(Ke);var ot=m(Ke,2);{var it=ct=>{var Ut=b0(),qt=R(Ut,!0);k(()=>x(qt,T())),d(ct,Ut)};D(ot,ct=>{T()&&ct(it)})}k(ct=>x(ht,ct),[()=>Uf()]),d(Y,xe)};D(Ae,Y=>{l()==="error"&&Y(Fe)})}var tt=m(Ae,2);{var ge=Y=>{var xe=_0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>s()?qf():Vf()]),d(Y,xe)},Oe=Y=>{var xe=x0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>o()?Gf():Kf()]),d(Y,xe)},q=Y=>{var xe=w0(),Ke=I(xe),rt=R(Ke,!0),ht=m(Ke,2),je=R(ht,!0);w(xe),k(vt=>{x(rt,vt),x(je,e(J))},[()=>Jf()]),d(Y,xe)};D(tt,Y=>{e(_e)?Y(ge):e(Ne)?e(J)&&Y(q,2):Y(Oe,1)})}var Me=m(tt,2),ve=I(Me);{var M=Y=>{var xe=k0();let Ke,rt;vr(xe,ht=>L(B,ht),()=>e(B)),k(ht=>{ne(xe,"title",ht),ne(xe,"srcdoc",e(U)),Ke=gt(xe,1,"block w-full border-0 svelte-1kkow1d",null,Ke,{"preview-hidden":e(O)||e(_e)}),ne(xe,"aria-hidden",e(O)||e(_e)),rt=An(xe,"",rt,{height:`${e(Le)}px`})},[()=>dl()]),d(Y,xe)};D(ve,Y=>{e(Ne)&&e(U)&&Y(M)})}var H=m(ve,2);{var me=Y=>{aa(Y,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e($)}})},Qe=Y=>{var xe=S0(),Ke=I(xe),rt=I(Ke);Ja(rt,{class:"h-4 w-32 max-w-1/2"});var ht=m(rt,2);Ja(ht,{class:"h-3 w-2/3"}),w(Ke);var je=m(Ke,2);Ja(je,{class:"aspect-video max-h-60 w-full rounded-lg"});var vt=m(je,2),ot=I(vt);Ja(ot,{class:"h-3 w-16"});var it=m(ot,2);Ja(it,{class:"h-2 min-w-0 flex-1"});var ct=m(it,2);Ja(ct,{class:"h-3 w-10"}),w(vt),w(xe),d(Y,xe)};D(H,Y=>{e(O)?Y(me):e(_e)&&Y(Qe,1)})}w(Me);var Te=m(Me,2);{var ze=Y=>{var xe=R0(),Ke=qe(xe),rt=I(Ke);{var ht=Ct=>{{let Yt=u(()=>!e(z)||!!e(J));bt(Ct,{size:"sm",get disabled(){return e(Yt)},onclick:()=>e(se)&&i()(e(se)),children:(At,he)=>{tr();var re=Mt();k(Ve=>x(re,Ve),[()=>Qf()]),d(At,re)},$$slots:{default:!0}})}};D(rt,Ct=>{i()&&Ct(ht)})}var je=m(rt,2);{let Ct=u(()=>!e(z)||!!e(J)||e(pe).scenarios.length>=El);bt(je,{variant:"ghost",size:"sm",get disabled(){return e(Ct)},onclick:Ue,children:(Yt,At)=>{tr();var he=Mt();k(re=>x(he,re),[()=>Yf()]),d(Yt,he)},$$slots:{default:!0}})}var vt=m(je,2);{var ot=Ct=>{bt(Ct,{variant:"ghost",size:"sm",get active(){return e(G)},get"aria-expanded"(){return e(G)},onclick:()=>L(G,!e(G)),children:(Yt,At)=>{tr();var he=Mt();k(re=>x(he,re),[()=>$f()]),d(Yt,he)},$$slots:{default:!0}})};D(vt,Ct=>{e(pe).scenarios.length&&Ct(ot)})}var it=m(vt,2);{var ct=Ct=>{{let Yt=u(()=>!e(z)||b()==="saving");bt(Ct,{variant:"ghost",size:"sm",get disabled(){return e(Yt)},onclick:()=>p()({...e(pe),current:e(se)??null}),children:(At,he)=>{tr();var re=Mt();k(Ve=>x(re,Ve),[()=>ep()]),d(At,re)},$$slots:{default:!0}})}};D(it,Ct=>{p()&&Ct(ct)})}var Ut=m(it,2);{var qt=Ct=>{var Yt=I0(),At=R(Yt,!0);k(he=>x(At,he),[()=>l()==="saving"?tp():l()==="ready"?rp():""]),d(Ct,Yt)};D(Ut,Ct=>{f()&&Ct(qt)})}w(Ke);var Zt=m(Ke,2);{var _t=Ct=>{var Yt=C0(),At=I(Yt),he=m(At);{var re=Ve=>{var nt=Mt();k(()=>x(nt,P())),d(Ve,nt)};D(he,Ve=>{b()==="error"&&P()&&Ve(re)})}w(Yt),k(Ve=>x(At,`${Ve??""} `),[()=>b()==="saving"?np():b()==="saved"?ap({path:h()??""}):sp()]),d(Ct,Yt)};D(Zt,Ct=>{b()&&Ct(_t)})}var Kt=m(Zt,2);{var Vt=Ct=>{var Yt=T0(),At=I(Yt),he=I(At),re=I(he),Ve=I(re),nt=R(Ve,!0),dt=m(Ve),We=R(dt,!0),X=m(dt);Lt(X,17,()=>e(pe).scenarios,ce=>ce.id,(ce,Pe)=>{var Ee=E0(),Be=I(Ee);{let ke=u(()=>lp());$a(Be,{get value(){return e(Pe).name},get"aria-label"(){return e(ke)},maxlength:120,onblur:$e=>{$e.currentTarget.value.trim()||($e.currentTarget.value=e(Pe).name),ie(e(Pe).id,$e.currentTarget.value)},onkeydown:$e=>{$e.key==="Enter"&&$e.currentTarget.blur(),$e.key==="Escape"&&($e.currentTarget.value=e(Pe).name,$e.currentTarget.blur())}})}var De=m(Be,2),Ge=I(De);bt(Ge,{variant:"ghost",size:"sm",onclick:()=>ee(e(Pe).snapshot),children:(ke,$e)=>{tr();var Je=Mt();k(et=>x(Je,et),[()=>op()]),d(ke,Je)},$$slots:{default:!0}});var Ye=m(Ge,2);bt(Ye,{variant:"ghost",size:"sm",onclick:()=>He({...e(pe),scenarios:e(pe).scenarios.filter(ke=>ke.id!==e(Pe).id)}),children:(ke,$e)=>{tr();var Je=Mt();k(et=>x(Je,et),[()=>ip()]),d(ke,Je)},$$slots:{default:!0}}),w(De),w(Ee),d(ce,Ee)}),w(re),w(he);var fe=m(he);Lt(fe,20,()=>["inputs","results"],Mr,(ce,Pe)=>{const Ee=u(()=>Pe),Be=u(()=>Array.from(new Set([...Object.keys(e(se)[e(Ee)]),...e(pe).scenarios.flatMap(Ye=>Object.keys(Ye.snapshot[e(Ee)]))])));var De=wt(),Ge=qe(De);Lt(Ge,16,()=>e(Be),Ye=>Ye,(Ye,ke)=>{var $e=A0(),Je=I($e),et=R(Je,!0),st=m(Je);Lt(st,17,()=>[e(se),...e(pe).scenarios.map(at=>at.snapshot)],Mr,(at,ut)=>{var kt=P0(),mt=R(kt,!0);k(Ot=>x(mt,Ot),[()=>Object.hasOwn(e(ut)[e(Ee)],ke)?Ze(e(ut)[e(Ee)][ke]):"—"]),d(at,kt)}),w($e),k(()=>x(et,ke)),d(Ye,$e)}),d(ce,De)}),w(fe),w(At),w(Yt),k(ce=>{x(nt,e(se).title),x(We,ce)},[()=>cp()]),d(Ct,Yt)};D(Kt,Ct=>{e(G)&&e(pe).scenarios.length&&Ct(Vt)})}d(Y,xe)};D(Te,Y=>{e(se)&&e(Ne)&&Y(ze)})}return w(ae),vr(ae,Y=>A=Y,()=>A),k(()=>{ne(ae,"data-inline-html-status",e(Se)),ne(ae,"data-inline-html-layout",e(Ie)?"viewport-locked":void 0),ne(ae,"aria-busy",e(_e))}),d(r,ae),Wt(W)}var M0=S('<div class="w-full min-w-0"><!></div>');function N0(r,t){if(new.target)return Ft({component:N0,...r});jt(t,!0);const n=()=>St(e(b),"$agent$",s),a=()=>St(e(B),"$entry$",s),[s,o]=ia();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),T=be(void 0);const b=u(()=>ao(i()??"")),h=u(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!xd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=u(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),A=u(()=>e(h)?rv(e(h)):""),B=u(()=>Dm(e(A)));It(()=>{e(h)&&Nt.dispatch(Qg(e(h)))});function F(Q){!f()||!i()||n()?.retiredAt||e(T)?.dispatchEvent(new CustomEvent($h,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Q}}))}var O={get block(){return c()},set block(Q){c(Q),_()},get role(){return l()},set role(Q){l(Q),_()},get workspaceId(){return f()},set workspaceId(Q){f(Q),_()},get agentId(){return i()},set agentId(Q){i(Q),_()},get messageId(){return p()},set messageId(Q){p(Q),_()},get contentBlockKey(){return g()},set contentBlockKey(Q=""){g(Q),_()},$set:zt,$on:(Q,$)=>Ht(t,Q,$)},N=wt(),U=qe(N);{var C=Q=>{var $=M0(),Ie=I($);{let le=u(()=>c().metadata?.isStreaming??!1),se=u(()=>c().metadata?.fenceClosed??!1),ue=u(()=>a()?.record),we=u(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),G=u(()=>a()?.error),pe=u(()=>e(h)?Ue=>Nt.dispatch(tv(e(A),Ue)):void 0),oe=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Ne=u(()=>e(h)?()=>Nt.dispatch(ev(e(A))):void 0),Le=u(()=>e(h)?Ue=>Nt.dispatch($g(e(A),crypto.randomUUID(),Ue)):void 0),Se=u(()=>a()?.export?.status),_e=u(()=>a()?.export?.path),He=u(()=>a()?.export?.error);zu(Ie,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(se)},get record(){return e(ue)},get storageStatus(){return e(we)},get storageError(){return e(G)},get onRecordChange(){return e(pe)},get onUseConfiguration(){return e(oe)},get onRetry(){return e(Ne)},get onExport(){return e(Le)},get exportStatus(){return e(Se)},get exportPath(){return e(_e)},get exportError(){return e(He)}})}w($),vr($,le=>L(T,le),()=>e(T)),d(Q,$)},z=Q=>{aa(Q,{get code(){return c().content},language:"html"})};D(U,Q=>{l()==="assistant"?Q(C):Q(z,-1)})}d(r,N);var J=Wt(O);return o(),J}var O0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function D0(r,t){if(new.target)return Ft({component:D0,...r});jt(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:zt,$on:(c,l)=>Ht(t,c,l)},s=O0(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),Wt(a)}var B0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),F0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),z0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),H0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),j0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function W0(r,t){if(new.target)return Ft({component:W0,...r});jt(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:zt,$on:(b,h)=>Ht(t,b,h)},s=j0(),o=I(s),c=I(o);Pt(c,{get icon(){return od},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=R(l,!0);w(o);var i=m(o,2);Lt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=H0(),A=I(P),B=I(A),F=I(B),O=R(F,!0),N=m(F,2);{var U=Ie=>{var le=B0(),se=R(le,!0);k(ue=>x(se,ue),[()=>v.chat_detectedScripts_service_badge()]),d(Ie,le)},C=Ie=>{var le=F0(),se=R(le,!0);k(ue=>x(se,ue),[()=>v.chat_detectedScripts_command_badge()]),d(Ie,le)};D(N,Ie=>{e(h).mode==="service"?Ie(U):Ie(C,-1)})}var z=m(N,2);{var J=Ie=>{var le=z0(),se=R(le,!0);k(()=>x(se,e(h).category)),d(Ie,le)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Q=m(B,2),$=R(Q,!0);w(A),w(P),k(()=>{x(O,e(h).name),x($,e(h).command)}),d(b,P)}),w(i);var p=m(i,2),g=I(p),T=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(T,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:or(n().length)}):v.chat_detectedScripts_count_many({count:or(n().length)})]),d(r,s),Wt(a)}function U0(r,t){if(new.target)return Ft({component:U0,...r});jt(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),na.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),na.info(v.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:zt,$on:(g,T)=>Ht(t,g,T)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());_s(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Wt(p)}var q0=wa('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Dc=wa("<circle></circle>"),V0=wa('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),K0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function qs(r,t){if(new.target)return Ft({component:qs,...r});jt(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=u(()=>s()/2),l=u(()=>e(c)),f=u(()=>e(c)),i=u(()=>s()*.12),p=u(()=>e(c)-e(i)/2),g=u(()=>e(c)*.35),T=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(T));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=u(()=>h[n()]||"currentColor");var A={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:zt,$on:(le,se)=>Ht(t,le,se)},B=K0(),F=I(B),O=I(F),N=m(O);{var U=le=>{},C=le=>{var se=q0();k(()=>{ne(se,"cx",e(l)),ne(se,"cy",e(f)),ne(se,"r",e(g)*.8),ne(se,"stroke",e(P)),ne(se,"stroke-width",e(g)*1.5),ne(se,"stroke-dasharray",`${e(b)??""} ${e(T)??""}`),ne(se,"stroke-dashoffset",e(T)*.25),ne(se,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),d(le,se)},z=le=>{var se=Dc();k(()=>{ne(se,"cx",e(l)),ne(se,"cy",e(f)),ne(se,"r",e(p)*.6),ne(se,"fill",e(P))}),d(le,se)},J=le=>{var se=Dc();k(()=>{ne(se,"cx",e(l)),ne(se,"cy",e(f)),ne(se,"r",e(p)),ne(se,"fill",e(P))}),d(le,se)};D(N,le=>{n()==="planning"?le(U):n()==="building"?le(C,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(J,3)})}w(F);var Q=m(F,2);{var $=le=>{},Ie=le=>{var se=V0();k(()=>ne(se,"width",s()*.5)),d(le,se)};D(Q,le=>{n()==="reviewing"?le($):n()==="shipped"&&le(Ie,1)})}return w(B),k(()=>{ne(F,"width",s()),ne(F,"height",s()),ne(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),gt(F,0,dr(o())),ne(O,"cx",e(l)),ne(O,"cy",e(f)),ne(O,"r",e(p)),ne(O,"stroke",e(P)),ne(O,"stroke-width",e(i))}),d(r,B),Wt(A)}var Bc=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),G0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Fc=S('<span class="text-ui text-subtle truncate"> </span>'),zc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Hc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),J0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),Y0=S('<span class="text-ui text-subtle pl-4"> </span>'),X0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),Z0=S('<div class="text-ui text-subtle"> </div>'),Q0=S("<!> <!> <!> <!>",1),$0=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),ek=S('<div class="rounded-[0.5px]"></div>');function Hu(r,t){if(new.target)return Ft({component:Hu,...r});jt(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:N,inProgress:U,notStarted:C,total:z}=n();if(z===0)return[];const J=[...Array(N).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=u(()=>a().filter(N=>N.status==="complete")),T=u(()=>a().filter(N=>N.status==="in_progress"||N.status==="review_required")),b=u(()=>a().filter(N=>N.status!=="complete"&&N.status!=="in_progress"&&N.status!=="review_required"&&N.status!=="cancelled")),h=u(()=>a().filter(N=>N.status==="cancelled")),P=u(()=>a().length>0);var A={get stats(){return n()},set stats(N){n(N),_()},get tasks(){return a()},set tasks(N=[]){a(N),_()},get maxBars(){return s()},set maxBars(N=20){s(N),_()},get barWidth(){return o()},set barWidth(N="1px"){o(N),_()},get barHeight(){return c()},set barHeight(N="16px"){c(N),_()},get gap(){return l()},set gap(N="1px"){l(N),_()},get class(){return f()},set class(N){f(N),_()},$set:zt,$on:(N,U)=>Ht(t,N,U)},B=wt(),F=qe(B);{var O=N=>{Ko(N,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var z=$0(),J=I(z),Q=I(J),$=R(Q,!0),Ie=m(Q,2),le=I(Ie);{var se=Le=>{var Se=Bc(),_e=I(Se);An(_e,"",{},{"background-color":"#22c55e"});var He=m(_e);w(Se),k(()=>x(He,` ${n().completed??""}`)),d(Le,Se)};D(le,Le=>{n().completed>0&&Le(se)})}var ue=m(le,2);{var we=Le=>{var Se=Bc(),_e=I(Se);An(_e,"",{},{"background-color":"#4F7BF7"});var He=m(_e);w(Se),k(()=>x(He,` ${n().inProgress??""}`)),d(Le,Se)};D(ue,Le=>{n().inProgress>0&&Le(we)})}var G=m(ue,2);{var pe=Le=>{var Se=G0(),_e=m(I(Se));w(Se),k(()=>x(_e,` ${n().notStarted??""}`)),d(Le,Se)};D(G,Le=>{n().notStarted>0&&Le(pe)})}w(Ie),w(J);var oe=m(J,2);{var Ne=Le=>{var Se=Q0(),_e=qe(Se);Lt(_e,17,()=>e(T),Mr,(V,K)=>{var W=Hc(),ae=I(W),Ce=I(ae);Co(Ce,{get status(){return e(K).status},size:14}),w(ae);var Z=m(ae,2),de=I(Z),Ae=R(de,!0),Fe=m(de,2);{var tt=ge=>{var Oe=zc(),q=I(Oe);{let M=u(()=>e(K).agentState||"idle");hl(q,{get agentId(){return e(K).agentId},get state(){return e(M)},size:12,get specialist(){return e(K).agentSpecialist}})}var Me=m(q,2);{var ve=M=>{var H=Fc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(M,H)};D(Me,M=>{e(K).agentName&&M(ve)})}w(Oe),d(ge,Oe)};D(Fe,ge=>{e(K).agentId&&ge(tt)})}w(Z),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var He=m(_e,2);Lt(He,17,()=>e(b),Mr,(V,K)=>{var W=Hc(),ae=I(W),Ce=I(ae);Co(Ce,{get status(){return e(K).status},size:14}),w(ae);var Z=m(ae,2),de=I(Z),Ae=R(de,!0),Fe=m(de,2);{var tt=ge=>{var Oe=zc(),q=I(Oe);{let M=u(()=>e(K).agentState||"idle");hl(q,{get agentId(){return e(K).agentId},get state(){return e(M)},size:12,get specialist(){return e(K).agentSpecialist}})}var Me=m(q,2);{var ve=M=>{var H=Fc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(M,H)};D(Me,M=>{e(K).agentName&&M(ve)})}w(Oe),d(ge,Oe)};D(Fe,ge=>{e(K).agentId&&ge(tt)})}w(Z),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var Ue=m(He,2);{var ie=V=>{var K=X0(),W=I(K);Lt(W,17,()=>e(g).slice(0,3),Mr,(Z,de)=>{var Ae=J0(),Fe=I(Ae),tt=I(Fe);Co(tt,{status:"complete",size:12}),w(Fe);var ge=m(Fe,2),Oe=R(ge,!0);w(Ae),k(()=>x(Oe,e(de).title)),d(Z,Ae)});var ae=m(W,2);{var Ce=Z=>{var de=Y0(),Ae=R(de,!0);k(Fe=>x(Ae,Fe),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:or(e(g).length-3)})]),d(Z,de)};D(ae,Z=>{e(g).length>3&&Z(Ce)})}w(K),d(V,K)};D(Ue,V=>{e(g).length>0&&V(ie)})}var ee=m(Ue,2);{var Ze=V=>{var K=Z0(),W=R(K,!0);k(ae=>x(W,ae),[()=>v.workspace_taskProgressBar_cancelled_label({count:or(e(h).length)})]),d(V,K)};D(ee,V=>{e(h).length>0&&V(Ze)})}d(Le,Se)};D(oe,Le=>{e(P)&&Le(Ne)})}w(z),k(Le=>x($,Le),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:or(n().completed),total:or(n().total)})]),d(C,z)},children:(C,z)=>{{let J=u(()=>Pn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Q=u(()=>`gap: ${l()}`),$=u(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:or(n().completed),total:or(n().total)}));bt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Q)},get"aria-label"(){return e($)},"data-task-progress-trigger":!0,children:(Ie,le)=>{var se=wt(),ue=qe(se);Lt(ue,17,()=>e(p),Mr,(we,G)=>{var pe=ek();let oe;k(()=>oe=An(pe,"",oe,{width:o(),height:c(),"background-color":i[e(G)]})),d(we,pe)}),d(Ie,se)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,N=>{n().total>0&&N(O)})}return d(r,B),Wt(A)}function Wi(r,t){if(new.target)return Ft({component:Wi,...r});jt(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=u(()=>gg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:zt,$on:(p,g)=>Ht(t,p,g)};return Im(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>pg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,T)=>{let b=()=>(T?.()).props;bt(g,yi(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Cm(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Wt(i)}var tk=S('<span class="contents"><!></span>'),rk=S("<!> <!>",1);function ju(r,t){if(new.target)return Ft({component:ju,...r});jt(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>Wg(a()));let o=be(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&L(o,null)});function c(h){const P=rd(h);P&&L(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();L(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){L(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:zt,$on:(h,P)=>Ht(t,h,P)},p=rk(),g=qe(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:or(a()+1)})),P=u(()=>v.workspace_microKeyBadge_tooltip({number:or(a()+1)})),A=u(()=>e(o)!==null);bt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(A)},children:(B,F)=>{var O=tk(),N=I(O);Gp(N,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(B,O)},$$slots:{default:!0}})}var T=m(g,2);{var b=h=>{{let P=u(()=>e(o)?.x??0),A=u(()=>e(o)?.y??0),B=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>Th(n(),f));nd(h,{get x(){return e(P)},get y(){return e(A)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(O)},onClickOutside:f})}};D(T,h=>{e(o)&&h(b)})}return d(r,p),Wt(i)}var nk=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),ak=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),sk=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),ok=S('<span data-workspace-card-pr-item=""><!></span>'),ik=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),lk=S('<span data-workspace-card-time=""><!></span>'),ck=S('<span aria-hidden="true"><!></span>'),dk=S("<div><!> <!> <!> <!></div>"),uk=S('<div data-workspace-card-hover-surface=""><!></div>'),fk=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),pk=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),gk=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),vk=S('<div class="text-sm font-semibold truncate"> </div>'),jc=S('<span class="truncate"> </span>'),mk=S('<span class="text-muted-foreground">·</span>'),hk=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),bk=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),yk=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),_k=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),xk=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),wk=S('<div class="flex items-center text-ui"><span> </span></div>'),kk=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Sk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Ik=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Ck=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Wu(r,t){if(new.target)return Ft({component:Wu,...r});jt(t,!0);const n=()=>St(He,"$prMonitors$",c),a=()=>St(Ue,"$microConnected$",c),s=()=>St(ee,"$hidesOwnerActions$",c),o=()=>St(ie,"$workspaceKeySlot$",c),[c,l]=ia();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),T=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),A=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),N=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),C=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Q=y(t,"onClick",7),$=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),se=y(t,"onOpenInNewWindow",7),ue=y(t,"onHover",7),we=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),pe=y(t,"highlightId",7),oe=y(t,"suppressHover",7,!1),Ne=y(t,"isolateHoverReveal",7,!1),Le=y(t,"class",7),Se=y(t,"actions",7);const _e=Qa("");It(()=>{_e.set(f()?.id??"")});const He=Op(_e),Ue=qh(),ie=_v(_e),ee=Dp(_e),Ze=u(()=>Lh(f()??{})),V=u(()=>Mh(e(Ze)));let K=u(()=>f()?Uh.url.pathname===`/workspace/${f().id}`:!1),W=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),ae=be(!1),Ce=be(null),Z=be(null);It(()=>{if(!e(Z))return;const te=Os(e(Z),{id:pe()});return()=>te.destroy()});let de=be(null),Ae=be(null),Fe=be(null),tt=be(0),ge=be(0),Oe=u(()=>e(tt)+(e(ge)>0?e(ge)+4:0));function q(){const te=e(de),pt=e(Fe);L(tt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),L(ge,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}It(()=>{const te=e(de),pt=e(Ae),Dt=e(Fe);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const br=new ResizeObserver(q);return br.observe(te),br.observe(pt),Dt&&br.observe(Dt),()=>br.disconnect()});let Me=null,ve=null,M=!1,H=!1,me=!1,Qe=!1,Te=!1,ze=!1,Y=be(!1),xe=!1,Ke=null,rt=be(null),ht=null,je;function vt(){Me!==null&&(clearTimeout(Me),Me=null)}function ot(){ve!==null&&(clearTimeout(ve),ve=null),ht?.(),ht=null}function it(){ot(),L(Y,!0),L(ae,!0),!Te&&(Te=!0,fs.notifyOpened())}function ct(){ot(),clearTimeout(je),L(Y,!1),L(ae,!1),H=!1,Qe=!1,Te&&(Te=!1,fs.notifyClosed())}function Ut(){return M||H||me||Qe}function qt(){if(!e(ae)){ct();return}ot(),ve=setTimeout(()=>{ve=null,Ut()||ct()},Oh),ht=fs.deferClose(ct)}function Zt(){H=!0,ot()}function _t(){H=!1,!me&&!Qe&&qt()}function Kt(){Qe=!0,clearTimeout(je),ot()}function Vt(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&fe()?.contains(pt)||(Qe=!1,pt&&e(Ce)?.contains(pt)))return;if(pt){!M&&!H&&ct();return}const Dt=te.target;clearTimeout(je),je=setTimeout(()=>{const br=document.activeElement,yr=fe()?.contains(br)||e(Ce)?.contains(br);br&&br!==Dt&&yr||!M&&!H&&ct()},0)}function Ct(){Ke!==null&&clearTimeout(Ke),xe=!0,Ke=setTimeout(()=>{xe=!1,Ke=null},0)}function Yt(te){const pt=te.target,Dt=fe();pt instanceof Node&&Dt?.contains(pt)||te.type==="scroll"&&e(Ce)&&pt instanceof Node&&!pt.contains(e(Ce))||(te.type==="pointerdown"&&Ct(),vt(),ct())}It(()=>{if(e(Y))return window.addEventListener("pointerdown",Yt,!0),window.addEventListener("scroll",Yt,!0),()=>{window.removeEventListener("pointerdown",Yt,!0),window.removeEventListener("scroll",Yt,!0)}});function At(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&fe()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),ze=me,vt(),ct())}It(()=>{if(e(ae))return window.addEventListener("keydown",At,!0),()=>window.removeEventListener("keydown",At,!0)});const he=u(()=>f()?Fp.select(Nt.state,f().id):null),re=u(()=>e(he)?e(he):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ve=u(()=>Bp(f())),nt=u(()=>{if(!f()||e(Ve))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return vg({workspacePRs:te.pullRequests,activePR:e(re),monitors:n(),workspaceRepo:pt,buildPrUrl:(Dt,br)=>sm(Dt,te.repositoryOwner,te.repositoryName,br),getDisplayTitle:Dt=>Dt.title})}),dt=u(()=>e(nt)[0]);function We(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[zp(pt,te),te.title,te.details].filter(Boolean).join(`
262
262
  `)}function X(te){te.key==="Enter"&&Q()?.(te)}function fe(){return e(W)?document.getElementById(e(W)):null}function ce(){return Array.from(fe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Pe(){const te=e(Ce)?.querySelector("[data-workspace-card-trigger]"),pt=fe();if(!te||!pt)return null;const Dt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(yr=>yr.tabIndex>=0&&!pt.contains(yr)),br=Dt.indexOf(te);return br>=0?Dt[br+1]:null}function Ee(te){ze=!!e(Ce)?.contains(te),ct(),te.focus({preventScroll:!0})}function Be(){const te=e(Ce)?.querySelector("[data-workspace-card-trigger]");te&&Ee(te)}async function De(te){if(te.key==="Escape"&&e(ae)){te.preventDefault(),te.stopPropagation(),ct();return}te.key!=="ArrowDown"||oe()||!f()||(te.preventDefault(),te.stopPropagation(),L(Y,!0),L(ae,!0),await Qn(),ce()[0]?.focus({preventScroll:!0}))}function Ge(te){const pt=ce(),Dt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],yr=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?Pe():null;te.key!=="Escape"&&!Dt&&!yr||(te.preventDefault(),te.stopPropagation(),yr?Ee(yr):Be())}function Ye(){M=!0,ot(),fs.settleDeferredCloses(),q(),ue()?.(),f()&&!oe()&&!me&&(vt(),L(Y,!0),Me=setTimeout(()=>{Me=null,it()},fs.currentOpenDelay))}function ke(){M=!1,vt(),!me&&!Qe&&qt()}function $e(){me=!0,vt(),ot(),!ze&&(xe||f()&&!oe()&&(L(Y,!0),L(ae,!0)))}function Je(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(Ce)?.contains(pt)||(ze=!1,me=!1,!(pt&&fe()?.contains(pt))&&!M&&!H&&ct())}It(()=>{oe()&&(vt(),ot(),ct())});let et=be(null),st=be(!1),at;It(()=>{const te=f()?.id;at!==te&&(at=te,L(st,!1)),e(et)&&e(et).workspaceId!==f()?.id&&kt()});function ut(te){if(!f())return;const pt=rd(te);if(pt){if(L(st,!1),mt().length===0){L(et,null);return}L(et,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(Ce)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function kt(){L(et,null),L(st,!1)}It(()=>{e(st)&&L(et,null)}),Is(()=>{vt(),ot(),Ke!==null&&(clearTimeout(Ke),Ke=null),ct()});function mt(){if(!f())return[];const te=[];return se()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:cd,onClick:()=>{se()?.(),kt()}}),te.push(...Nh(f().id,{connected:a(),onClose:kt})),s()||(e(Ve)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Lg,onClick:()=>{Nt.dispatch(nv({workspaceId:f().id,workspaceTitle:f().title})),kt()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:dd,onClick:()=>{Nt.dispatch(wd(f().id)),kt()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:ud,destructive:!0,onClick:()=>{Nt.dispatch(kd(f().id)),kt()}})),te}let Ot=u(()=>O()&&N()?N():i()?.subtitle??""),Gt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),fr=u(()=>e(Ve)?void 0:J()),Br=u(()=>!p()||e(Ve)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),fn=u(()=>i()?.phase==="planning"?O()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const Tn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var Fn={get workspace(){return f()},set workspace(te){f(te),_()},get phase(){return i()},set phase(te){i(te),_()},get stats(){return p()},set stats(te){p(te),_()},get variant(){return g()},set variant(te="compact"){g(te),_()},get showTime(){return T()},set showTime(te=!0){T(te),_()},get isRunning(){return b()},set isRunning(te=!1){b(te),_()},get isUnread(){return h()},set isUnread(te=!1){h(te),_()},get isWaiting(){return P()},set isWaiting(te){P(te),_()},get isPinned(){return A()},set isPinned(te=!1){A(te),_()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),_()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),_()},get isAgentRunning(){return O()},set isAgentRunning(te=!1){O(te),_()},get agentDigest(){return N()},set agentDigest(te){N(te),_()},get trailingLabel(){return U()},set trailingLabel(te){U(te),_()},get title(){return C()},set title(te){C(te),_()},get repoName(){return z()},set repoName(te){z(te),_()},get branch(){return J()},set branch(te){J(te),_()},get onClick(){return Q()},set onClick(te){Q(te),_()},get onAction(){return $()},set onAction(te){$(te),_()},get onTogglePin(){return Ie()},set onTogglePin(te){Ie(te),_()},get onMarkAsRead(){return le()},set onMarkAsRead(te){le(te),_()},get onOpenInNewWindow(){return se()},set onOpenInNewWindow(te){se(te),_()},get onHover(){return ue()},set onHover(te){ue(te),_()},get highlighted(){return we()},set highlighted(te=!1){we(te),_()},get selected(){return G()},set selected(te=!1){G(te),_()},get highlightId(){return pe()},set highlightId(te){pe(te),_()},get suppressHover(){return oe()},set suppressHover(te=!1){oe(te),_()},get isolateHoverReveal(){return Ne()},set isolateHoverReveal(te=!1){Ne(te),_()},get class(){return Le()},set class(te){Le(te),_()},get actions(){return Se()},set actions(te){Se(te),_()},$set:zt,$on:(te,pt)=>Ht(t,te,pt)},kn=wt(),ua=qe(kn);{var Ar=te=>{var pt=fk(),Dt=qe(pt);let br;var yr=I(Dt);{let yt=u(()=>f().title||v.workspace_links_untitled_label()),Et=u(()=>`workspace-status-state-${f().id}${A()?` workspace-pinned-state-${f().id}`:""}${e(ae)?` ${e(W)}`:""}`),ur=u(()=>e(K)?"page":void 0);bt(yr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(yt)},get"aria-describedby"(){return e(Et)},get"aria-current"(){return e(ur)},"data-workspace-card-trigger":!0,onkeydown:De,onclick:_r=>{_r.stopPropagation(),Q()?.(_r)}})}var mn=m(yr,2),jr=I(mn);{var zn=yt=>{var Et=nk(),ur=I(Et);{var _r=Rr=>{ju(Rr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ur,Rr=>{o()!==null&&Rr(_r)})}w(Et),d(yt,Et)};D(jr,yt=>{a()&&yt(zn)})}var Hn=m(jr,2);Ko(Hn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(yt,Et)=>{Rh(yt,{get status(){return e(Ze)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var jn=m(Hn,2),Kn=R(jn,!0);w(mn);var Kr=m(mn,2),hn=I(Kr),Jt=I(hn),tn=I(Jt),$n=R(tn,!0);vr(tn,yt=>L(Ae,yt),()=>e(Ae)),w(Jt),vr(Jt,yt=>L(de,yt),()=>e(de));var Pr=m(Jt,2);{var Tr=yt=>{var Et=ak(),ur=qe(Et),_r=I(ur);Pt(_r,{get icon(){return wl},size:"xs"}),w(ur);var Rr=m(ur,2),j=R(Rr,!0);k(Re=>{gt(ur,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
263
- ${Ie()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Rr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Re)},[()=>v.layout_activeCard_pinned_header()]),d(yt,Et)};D(Pr,yt=>{A()&&yt(Tr)})}w(hn);var rn=m(hn,2);{var fa=yt=>{var Et=sk(),ur=R(Et,!0);k(()=>x(ur,U())),d(yt,Et)};D(rn,yt=>{U()&&yt(fa)})}var Gr=m(rn,2);{var Jr=yt=>{const Et=u(()=>e(dt));var ur=ik(),_r=I(ur);{let Rr=u(()=>We(e(Et)));Ko(_r,{get content(){return e(Rr)},side:"bottom",sideOffset:4,children:(j,Re)=>{var ft=wt(),Qt=qe(ft);{var lr=xr=>{{let Ir=u(()=>We(e(Et)));bt(xr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Et).foregroundClass??""}`},get"aria-label"(){return e(Ir)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Et).identity},get"data-pr-status"(){return e(Et).status},onclick:Qr=>{Qr.stopPropagation();const Or=f().id;dp(async()=>{const{handleLink:nn}=await import("./CLC_EHyS.js").then(Gn=>Gn.H);return{handleLink:nn}},__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,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]),import.meta.url).then(({handleLink:nn})=>nn(e(Et).url,{workspaceId:Or,event:Qr}))},children:(Qr,Or)=>{Pt(Qr,{get icon(){return e(Et).statusIcon},size:14})},$$slots:{default:!0}})}},ar=xr=>{var Ir=ok(),Qr=I(Ir);Pt(Qr,{get icon(){return e(Et).statusIcon},size:14}),w(Ir),k(Or=>{gt(Ir,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Et).foregroundClass??""}`,"svelte-1ct56pd"),ne(Ir,"aria-label",Or),ne(Ir,"data-pr-identity",e(Et).identity),ne(Ir,"data-pr-status",e(Et).status)},[()=>We(e(Et))]),d(xr,Ir)};D(Qt,xr=>{e(Et).url?xr(lr):xr(ar,-1)})}d(j,ft)},$$slots:{default:!0}})}w(ur),k(Rr=>ne(ur,"aria-label",Rr),[()=>e(Et).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(yt,ur)};D(Gr,yt=>{e(dt)&&yt(Jr)})}var Yr=m(Gr,2);{var ea=yt=>{var Et=lk(),ur=I(Et);{var _r=j=>{{let Re=u(()=>Pl(f()));Jp(j,{get date(){return e(Re)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Rr=u(()=>Pl(f())>0);D(ur,j=>{e(Rr)&&j(_r)})}w(Et),k(()=>gt(Et,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(yt,Et)};D(Yr,yt=>{T()&&yt(ea)})}w(Kr);var Pa=m(Kr,2);{var Da=yt=>{var Et=dk(),ur=I(Et);{var _r=lr=>{{let ar=u(()=>A()?"text-primary-ink":"text-muted-foreground"),xr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Ir=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());bt(lr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
263
+ ${Ie()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Rr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Re)},[()=>v.layout_activeCard_pinned_header()]),d(yt,Et)};D(Pr,yt=>{A()&&yt(Tr)})}w(hn);var rn=m(hn,2);{var fa=yt=>{var Et=sk(),ur=R(Et,!0);k(()=>x(ur,U())),d(yt,Et)};D(rn,yt=>{U()&&yt(fa)})}var Gr=m(rn,2);{var Jr=yt=>{const Et=u(()=>e(dt));var ur=ik(),_r=I(ur);{let Rr=u(()=>We(e(Et)));Ko(_r,{get content(){return e(Rr)},side:"bottom",sideOffset:4,children:(j,Re)=>{var ft=wt(),Qt=qe(ft);{var lr=xr=>{{let Ir=u(()=>We(e(Et)));bt(xr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Et).foregroundClass??""}`},get"aria-label"(){return e(Ir)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Et).identity},get"data-pr-status"(){return e(Et).status},onclick:Qr=>{Qr.stopPropagation();const Or=f().id;dp(async()=>{const{handleLink:nn}=await import("./CHo0aT92.js").then(Gn=>Gn.H);return{handleLink:nn}},__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,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]),import.meta.url).then(({handleLink:nn})=>nn(e(Et).url,{workspaceId:Or,event:Qr}))},children:(Qr,Or)=>{Pt(Qr,{get icon(){return e(Et).statusIcon},size:14})},$$slots:{default:!0}})}},ar=xr=>{var Ir=ok(),Qr=I(Ir);Pt(Qr,{get icon(){return e(Et).statusIcon},size:14}),w(Ir),k(Or=>{gt(Ir,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Et).foregroundClass??""}`,"svelte-1ct56pd"),ne(Ir,"aria-label",Or),ne(Ir,"data-pr-identity",e(Et).identity),ne(Ir,"data-pr-status",e(Et).status)},[()=>We(e(Et))]),d(xr,Ir)};D(Qt,xr=>{e(Et).url?xr(lr):xr(ar,-1)})}d(j,ft)},$$slots:{default:!0}})}w(ur),k(Rr=>ne(ur,"aria-label",Rr),[()=>e(Et).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(yt,ur)};D(Gr,yt=>{e(dt)&&yt(Jr)})}var Yr=m(Gr,2);{var ea=yt=>{var Et=lk(),ur=I(Et);{var _r=j=>{{let Re=u(()=>Pl(f()));Jp(j,{get date(){return e(Re)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Rr=u(()=>Pl(f())>0);D(ur,j=>{e(Rr)&&j(_r)})}w(Et),k(()=>gt(Et,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(yt,Et)};D(Yr,yt=>{T()&&yt(ea)})}w(Kr);var Pa=m(Kr,2);{var Da=yt=>{var Et=dk(),ur=I(Et);{var _r=lr=>{{let ar=u(()=>A()?"text-primary-ink":"text-muted-foreground"),xr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Ir=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());bt(lr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
264
264
  ${e(ar)??""}`},onclick:Qr=>{Qr.stopPropagation(),Ie()?.(Qr)},get"aria-label"(){return e(xr)},get title(){return e(Ir)},children:(Qr,Or)=>{var nn=ck(),Gn=I(nn);Pt(Gn,{get icon(){return wl},size:"xs"}),w(nn),d(Qr,nn)},$$slots:{default:!0}})}};D(ur,lr=>{Ie()&&lr(_r)})}var Rr=m(ur,2);{var j=lr=>{{let ar=u(()=>v.workspace_card_markAsRead_label()),xr=u(()=>v.workspace_card_markAsRead_label());bt(lr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Ir=>{Ir.stopPropagation(),le()?.(Ir)},get"aria-label"(){return e(ar)},get title(){return e(xr)},children:(Ir,Qr)=>{Pt(Ir,{get icon(){return fd},size:"xs"})},$$slots:{default:!0}})}};D(Rr,lr=>{h()&&le()&&lr(j)})}var Re=m(Rr,2);vn(Re,()=>Se()??Vs);var ft=m(Re,2);{var Qt=lr=>{{let ar=u(mt),xr=u(()=>v.workspace_progressCard_actions_ariaLabel());Wi(lr,{get items(){return e(ar)},get ariaLabel(){return e(xr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(st)},set open(Ir){L(st,Ir,!0)}})}};D(ft,lr=>{se()&&lr(Qt)})}w(Et),vr(Et,lr=>L(Fe,lr),()=>e(Fe)),k(()=>gt(Et,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
265
265
  ${Ne()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
266
266
  ${we()?"opacity-100":oe()?"opacity-0":Ne()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(yt,Et)};D(Pa,yt=>{(Se()||se()||Ie()||h()&&le())&&yt(Da)})}w(Dt),vr(Dt,yt=>L(Ce,yt),()=>e(Ce)),Bn(Dt,(yt,Et)=>Os?.(yt,Et),()=>({id:pe()}));var Xr=m(Dt,2);{var Zr=yt=>{Dh(yt,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(Ce)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Kt,onfocusout:Vt,children:(Et,ur)=>{var _r=uk(),Rr=I(_r);Bh(Rr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:Ge}),w(_r),vr(_r,j=>L(rt,j),()=>e(rt)),Cn("pointerenter",_r,Zt),Cn("pointerleave",_r,_t),Nr("focusin",_r,Kt),Nr("focusout",_r,Vt),d(Et,_r)},$$slots:{default:!0}})};D(Xr,yt=>{e(ae)&&!oe()&&yt(Zr)})}var bn=m(Xr,2);{var ta=yt=>{const Et=u(mt);var ur=wt(),_r=qe(ur);{var Rr=j=>{{let Re=u(()=>e(et)?.x??0),ft=u(()=>e(et)?.y??0),Qt=u(()=>e(et)?.returnFocus),lr=u(()=>v.workspace_progressCard_actions_ariaLabel());nd(j,{get x(){return e(Re)},get y(){return e(ft)},get returnFocus(){return e(Qt)},get ariaLabel(){return e(lr)},get items(){return e(Et)},onClickOutside:kt})}};D(_r,j=>{e(Et).length>0&&j(Rr)})}d(yt,ur)};D(bn,yt=>{e(et)&&yt(ta)})}k((yt,Et,ur)=>{gt(Dt,1,yt,"svelte-1ct56pd"),ne(Dt,"data-pinned",A()),ne(Dt,"data-highlight-id",pe()),br=An(Dt,"",br,{"anchor-name":`--workspace-list-${f().id??""}`}),ne(jn,"id",`workspace-status-state-${f().id??""}`),x(Kn,e(V).accessibleName),gt(Jt,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{p as I}from"./CwS-VFDa.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./B0atVUKu.js";import{p as U}from"./BzYnpYvA.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./Bv6BpGqB.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./DeTs9jD5.js";import{p as U}from"./BzYnpYvA.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./B0atVUKu.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./DeTs9jD5.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as It,bu as N}from"./CNRXwQIm.js";import{bs as kt,ca as J,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as k,bA as A,bl as P,b_ as L,bO as S}from"./DYhIMPy1.js";import{G as St}from"./Cbpg9otW.js";import{c as Wt}from"./B84qHti4.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./CZdzzv7j.js";import"./CSGwK3Iy.js";import"./DCwCW5T0.js";import{bc as Dt}from"./C9E3dZMW.js";import"./CzFRvFff.js";import"./CLC_EHyS.js";import{Ia as B,IG as Nt,IX as Ft,IL as Lt,uz as Bt}from"./B_TVaDKX.js";import{T as Et}from"./BffXhPh0.js";import{g as Ut}from"./DfN8_dcw.js";import{dp as Ot}from"./9uHm6kyM.js";import{bN as jt,bK as Gt,b5 as Ht}from"./DkRyrpgd.js";import"./B7iCinDK.js";import{M as Mt}from"./COyRZ9LX.js";import{V as Vt}from"./BySsSVgI.js";import{O as qt}from"./CeBMwYHT.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Kt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Kt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Xt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
1
+ import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as It,bu as N}from"./CNRXwQIm.js";import{bs as kt,ca as J,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as k,bA as A,bl as P,b_ as L,bO as S}from"./DYhIMPy1.js";import{G as St}from"./Cbpg9otW.js";import{c as Wt}from"./B84qHti4.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./BpjBZaBN.js";import"./CSGwK3Iy.js";import"./DCwCW5T0.js";import{bc as Dt}from"./C9E3dZMW.js";import"./CzFRvFff.js";import"./CHo0aT92.js";import{Ia as B,IG as Nt,IX as Ft,IL as Lt,uz as Bt}from"./B_TVaDKX.js";import{T as Et}from"./DXsf6BJU.js";import{g as Ut}from"./DfN8_dcw.js";import{dp as Ot}from"./9uHm6kyM.js";import{bN as jt,bK as Gt,b5 as Ht}from"./1eEcuHcS.js";import"./B7iCinDK.js";import{M as Mt}from"./COyRZ9LX.js";import{V as Vt}from"./BySsSVgI.js";import{O as qt}from"./CcATeaI9.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Kt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Kt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Xt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
2
2
  `);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
3
3
  `),newContent:r.join(`
4
4
  `)}}var Qt=x("<!> <!>",1),Yt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});kt(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>B.dispatch(Lt()),get wrapEnabled(){return d()},onToggleWrap:()=>B.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>B.dispatch(Nt())})},it=a=>{var i=Qt(),u=Q(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(u,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>gt()})})}var y=F(u,2);{var C=m=>{qt(m,{get filePath(){return t(z)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(y,m=>{t(z)&&m(C)})}w(a,i)},rt=jt(),st=Gt(),ot=Ht(),dt=Rt("ActivityChangesTabType");let E=H(n,"tab",7),_=H(n,"workspaceId",7),U=H(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>E().data?.event),ct=f(()=>t(o)?Xt(t(o)):[]),g=f(()=>t(ct)[0]),p=f(()=>t(g)?.relativePath||t(g)?.file||null),z=f(()=>t(p)&&t(O)?zt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(g)?.content?.diff||null}),K=f(()=>()=>t(g)?.content?!!(t(g).content.oldContent&&t(g).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const I=f(()=>{if(t(K)()&&t(g)?.content)return{oldContent:t(g).content.oldContent??"",newContent:t(g).content.newContent??""};const a=t(j)();return a?Jt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),ut=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(g)?.status||"modified",stats:{additions:i?.additions||t(g)?.stats?.additions||0,deletions:i?.deletions||t(g)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(I)?{oldContent:t(I).oldContent,newContent:t(I).newContent}:void 0}});function gt(a){if(!t(p))return;const u={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};B.dispatch(Bt(_(),u))}J(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),J(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(K)(),hasDiffContents:!!t(I),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return E()},set tab(a){E(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:Tt,$on:(a,i)=>It(n,a,i)},X=At(),mt=Q(X);{var vt=a=>{var i=Zt(),u=k(i);{var y=l=>{var h=Yt(),$=k(h),G=P($,!0);A(h),L(_t=>S(G,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(u,l=>{t(pt)&&l(y)})}var C=F(u,2),m=k(C);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Et(l,{get change(){return t(ut)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(C),A(i),w(a,i)},yt=a=>{var i=te(),u=k(i),y=P(u,!0),C=F(u,2),m=P(C,!0);A(i),L((l,h)=>{S(y,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},Ct=a=>{var i=ne(),u=k(i),y=P(u,!0),C=F(u,2);{var m=l=>{var h=ee(),$=P(h,!0);L(G=>S($,G),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(C,l=>{t(o)&&l(m)})}A(i),L(l=>S(y,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(I)?a(vt):t(p)?a(yt,1):a(Ct,-1)})}w(e,X);var bt=Pt(ht);return nt(),bt}export{ae as default};
@@ -1,4 +1,4 @@
1
- import{g as Ut}from"./guvVB0-Q.js";import{s as Kt}from"./C73nd7h_.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./B0atVUKu.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
1
+ import{g as Ut}from"./BRVXCoHC.js";import{s as Kt}from"./BYGvqRLs.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./DeTs9jD5.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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 _=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===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),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(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`