@intent-hq/web 2.329.0 → 2.329.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/{D_NIs1UH.js → -j1F8NEs.js} +1 -1
  3. package/web/app/immutable/chunks/{BSrzpHQs.js → 1_OFWWss.js} +1 -1
  4. package/web/app/immutable/chunks/{DnLQ2QZs.js → 2uCE_ZPn.js} +1 -1
  5. package/web/app/immutable/chunks/{vao4Q3xz.js → 4pk0Z0U9.js} +1 -1
  6. package/web/app/immutable/chunks/{CQSJZjii.js → 5r_d4X6e.js} +3 -3
  7. package/web/app/immutable/chunks/{KkGB5iOn.js → AsRiGNKE.js} +1 -1
  8. package/web/app/immutable/chunks/{BoCo49Dw.js → B1Vhnxzz.js} +1 -1
  9. package/web/app/immutable/chunks/{DAikLHfr.js → B2uGo8UC.js} +1 -1
  10. package/web/app/immutable/chunks/{CVPYq6nz.js → B4VyGGYM.js} +1 -1
  11. package/web/app/immutable/chunks/{DDMXHe8N.js → B58pcVYz.js} +1 -1
  12. package/web/app/immutable/chunks/{Dn1Aaf_t.js → B5P3MlXt.js} +1 -1
  13. package/web/app/immutable/chunks/{U9geO9na.js → B5qHFYtB.js} +1 -1
  14. package/web/app/immutable/chunks/{Cm74__Hq.js → B7El2OF0.js} +1 -1
  15. package/web/app/immutable/chunks/{CnN-Ydeu.js → B7jicnjL.js} +1 -1
  16. package/web/app/immutable/chunks/{BiTmaIpw.js → B7tvViul.js} +2 -2
  17. package/web/app/immutable/chunks/{BZjoUIli.js → BA1PODMh.js} +1 -1
  18. package/web/app/immutable/chunks/{CCjsiUBB.js → BAbkls59.js} +1 -1
  19. package/web/app/immutable/chunks/{B699N3PJ.js → BBl75qdv.js} +1 -1
  20. package/web/app/immutable/chunks/{wfDVCiKc.js → BC6-b3Dv.js} +3 -3
  21. package/web/app/immutable/chunks/{B3TICz6d.js → BFtvBSew.js} +1 -1
  22. package/web/app/immutable/chunks/{BX1t8pBy.js → BGCj8f4n.js} +2 -2
  23. package/web/app/immutable/chunks/{g9eJ_DJA.js → BQEuQ5so.js} +1 -1
  24. package/web/app/immutable/chunks/{BG8xtAIY.js → BQJ4WjRD.js} +1 -1
  25. package/web/app/immutable/chunks/{CK2T5nBr.js → BRH9kOBU.js} +1 -1
  26. package/web/app/immutable/chunks/{-hIAHWAg.js → BVaU_GbR.js} +1 -1
  27. package/web/app/immutable/chunks/{8ioa5jhI.js → BWX9-gTx.js} +1 -1
  28. package/web/app/immutable/chunks/{Bn5HGkYx.js → BYBxN_iz.js} +1 -1
  29. package/web/app/immutable/chunks/{D4xmUMRQ.js → BYhv5ULD.js} +1 -1
  30. package/web/app/immutable/chunks/{pei88op0.js → BZ-EICJi.js} +1 -1
  31. package/web/app/immutable/chunks/{DQv3q7Lr.js → Bg6EMrHe.js} +4 -4
  32. package/web/app/immutable/chunks/{YNuHyo7D.js → Bgs5Oygw.js} +1 -1
  33. package/web/app/immutable/chunks/{BSfoYNdu.js → BiMshSJB.js} +1 -1
  34. package/web/app/immutable/chunks/{BWAybfHh.js → Bl8pGyWE.js} +6 -6
  35. package/web/app/immutable/chunks/{D45-I6C2.js → Bo9ahub4.js} +2 -2
  36. package/web/app/immutable/chunks/{C-wVYms5.js → BqEu3ShV.js} +1 -1
  37. package/web/app/immutable/chunks/{DH2q-k0j.js → BsxJ3VR0.js} +1 -1
  38. package/web/app/immutable/chunks/{BFEecErQ.js → BvBD37j2.js} +1 -1
  39. package/web/app/immutable/chunks/{CGDs7OTB.js → BxG6A9b4.js} +1 -1
  40. package/web/app/immutable/chunks/{CknnGBPn.js → ByFoaxbG.js} +1 -1
  41. package/web/app/immutable/chunks/{BmCDxPC4.js → ByQlGVkM.js} +1 -1
  42. package/web/app/immutable/chunks/{Bb3ex-UB.js → BzT2S2ou.js} +1 -1
  43. package/web/app/immutable/chunks/{mlN3MHHO.js → C3Utm2D5.js} +1 -1
  44. package/web/app/immutable/chunks/{t0Xx-uau.js → C4MOq5FS.js} +1 -1
  45. package/web/app/immutable/chunks/{DSdHcKpN.js → C7ivcElf.js} +1 -1
  46. package/web/app/immutable/chunks/{jIEqs7N7.js → CBQNI-Hj.js} +1 -1
  47. package/web/app/immutable/chunks/{BorJUdgX.js → CBYLlCL4.js} +1 -1
  48. package/web/app/immutable/chunks/{BoT3QZNN.js → CEeOHP8e.js} +1 -1
  49. package/web/app/immutable/chunks/{CK57Eb4H.js → CN6k04kg.js} +1 -1
  50. package/web/app/immutable/chunks/{CDG-6tyT.js → CODzDoHx.js} +1 -1
  51. package/web/app/immutable/chunks/{CH8omu-m.js → CS6iaD-m.js} +1 -1
  52. package/web/app/immutable/chunks/{Cepxm2H7.js → CXY1P6C9.js} +1 -1
  53. package/web/app/immutable/chunks/{CKinhAS1.js → CYZxRRWB.js} +1 -1
  54. package/web/app/immutable/chunks/{Bj7l8d5w.js → CZiWVYjs.js} +1 -1
  55. package/web/app/immutable/chunks/{cQGqw_AY.js → Ca8dpfL7.js} +1 -1
  56. package/web/app/immutable/chunks/{BZwUXSIY.js → CbkAERDZ.js} +1 -1
  57. package/web/app/immutable/chunks/{UOXBtl5c.js → CenHMQnL.js} +1 -1
  58. package/web/app/immutable/chunks/{DDwHVUwa.js → ChNVaYkZ.js} +1 -1
  59. package/web/app/immutable/chunks/{BiL2fQFX.js → ClOS_-e_.js} +1 -1
  60. package/web/app/immutable/chunks/{CB4r5WHQ.js → ClsELQC1.js} +1 -1
  61. package/web/app/immutable/chunks/{DhgUMzfn.js → CnOr9NAz.js} +1 -1
  62. package/web/app/immutable/chunks/{DD5bnQvV.js → CrAIOpwj.js} +1 -1
  63. package/web/app/immutable/chunks/{C548uKZ2.js → Cx0E7JMD.js} +1 -1
  64. package/web/app/immutable/chunks/{DAGBWaQF.js → Cx2ztPW2.js} +1 -1
  65. package/web/app/immutable/chunks/{Bazrg8ay.js → CzNFeyXq.js} +1 -1
  66. package/web/app/immutable/chunks/{C7NMvl7m.js → D3VV-t_O.js} +1 -1
  67. package/web/app/immutable/chunks/{Pu2eBY3f.js → D5t4Sb61.js} +1 -1
  68. package/web/app/immutable/chunks/{CW4Esy2a.js → D8--oZc6.js} +1 -1
  69. package/web/app/immutable/chunks/{DRJljFF2.js → DBVnJFMb.js} +1 -1
  70. package/web/app/immutable/chunks/{D_A2Xt37.js → DBp7mVI8.js} +1 -1
  71. package/web/app/immutable/chunks/{D4nr65Sw.js → DGy8ScKF.js} +1 -1
  72. package/web/app/immutable/chunks/{BtXS_ZUW.js → DKPv6b-m.js} +2 -2
  73. package/web/app/immutable/chunks/{a-jA3092.js → DKyn5QCF.js} +1 -1
  74. package/web/app/immutable/chunks/{DEPHmtm8.js → DNvaSS2U.js} +1 -1
  75. package/web/app/immutable/chunks/{D5u9Vf79.js → DOnVAbj0.js} +1 -1
  76. package/web/app/immutable/chunks/{mj55Om9m.js → DVX6Tk_b.js} +1 -1
  77. package/web/app/immutable/chunks/{BmsV2JyL.js → DVuaeV8Y.js} +1 -1
  78. package/web/app/immutable/chunks/{C5h7-gqG.js → DW8uhmxw.js} +1 -1
  79. package/web/app/immutable/chunks/{Cuql1I11.js → DWRjMQoO.js} +1 -1
  80. package/web/app/immutable/chunks/{mXzmZlVJ.js → DZIg-0qV.js} +2 -2
  81. package/web/app/immutable/chunks/{Dnqsaawg.js → DZehrap8.js} +1 -1
  82. package/web/app/immutable/chunks/{Bts7-7Ik.js → DZzmT9V_.js} +1 -1
  83. package/web/app/immutable/chunks/{nAN1aaZV.js → DaWbYcBW.js} +1 -1
  84. package/web/app/immutable/chunks/{ChDFb3Z7.js → DawDK143.js} +1 -1
  85. package/web/app/immutable/chunks/{IxVizCtF.js → DcoxMA27.js} +1 -1
  86. package/web/app/immutable/chunks/{C1nteYbC.js → DdGFeF49.js} +3 -3
  87. package/web/app/immutable/chunks/{Cj3CrBAC.js → DfSn9hGW.js} +1 -1
  88. package/web/app/immutable/chunks/{d5yuI3mQ.js → DfUDzzt8.js} +1 -1
  89. package/web/app/immutable/chunks/{DYtEQxiY.js → DgPKRk-d.js} +1 -1
  90. package/web/app/immutable/chunks/{BLMymTLM.js → DhQzPxYK.js} +1 -1
  91. package/web/app/immutable/chunks/{Y8Of5jeD.js → DlQXxpP-.js} +1 -1
  92. package/web/app/immutable/chunks/{Bpj9qmLK.js → DnRXhZ6_.js} +1 -1
  93. package/web/app/immutable/chunks/{AT_64AXk.js → DnsljLCu.js} +4 -4
  94. package/web/app/immutable/chunks/{0kIXSH2a.js → DtaTESlI.js} +1 -1
  95. package/web/app/immutable/chunks/{C6AJbXlx.js → DukFUCSi.js} +1 -1
  96. package/web/app/immutable/chunks/{B2GDf57D.js → DwMfNnNV.js} +2 -2
  97. package/web/app/immutable/chunks/{BSgzPKC6.js → Ij0kpg_f.js} +1 -1
  98. package/web/app/immutable/chunks/{DVc3SUEE.js → IyX2wNBZ.js} +1 -1
  99. package/web/app/immutable/chunks/{BGxQoYqk.js → M4GSoHng.js} +12 -12
  100. package/web/app/immutable/chunks/{emoCNMoj.js → NyR8pG10.js} +1 -1
  101. package/web/app/immutable/chunks/{CWDytrT3.js → OyVPvX5W.js} +1 -1
  102. package/web/app/immutable/chunks/{Dw0HSJ5B.js → Q-qQLirG.js} +1 -1
  103. package/web/app/immutable/chunks/{Dcujlo_J.js → SYyiTNGD.js} +1 -1
  104. package/web/app/immutable/chunks/{DcHRsCHW.js → T0VysRBQ.js} +1 -1
  105. package/web/app/immutable/chunks/{DOij_Jfr.js → XDo28UMB.js} +3 -3
  106. package/web/app/immutable/chunks/{DTDHheBd.js → YIKSjExn.js} +1 -1
  107. package/web/app/immutable/chunks/{thFBlGwV.js → _2fOudXW.js} +3 -3
  108. package/web/app/immutable/chunks/{jgsCimxB.js → cxunVpZz.js} +1 -1
  109. package/web/app/immutable/chunks/{8TBFRBiv.js → gCaQv1mQ.js} +1 -1
  110. package/web/app/immutable/chunks/{BASU7y86.js → gpmK1kqQ.js} +1 -1
  111. package/web/app/immutable/chunks/{Dn5BSz6F.js → hRXpLgdr.js} +4 -4
  112. package/web/app/immutable/chunks/{p0H3cxPZ.js → kOvgsK93.js} +2 -2
  113. package/web/app/immutable/chunks/{BT7eBgA3.js → khmuPkH1.js} +1 -1
  114. package/web/app/immutable/chunks/{DIH3MXC5.js → kwSDV9fJ.js} +4 -4
  115. package/web/app/immutable/chunks/{D8eubtKV.js → lBxfStnS.js} +1 -1
  116. package/web/app/immutable/chunks/{DLZPBlMt.js → lfhgTSoj.js} +1 -1
  117. package/web/app/immutable/chunks/{BzPvdAzh.js → pJpiiUGa.js} +1 -1
  118. package/web/app/immutable/chunks/{K5G7oi7M.js → q8l-xXLl.js} +2 -2
  119. package/web/app/immutable/chunks/{FOvS8guB.js → sYQprIK6.js} +1 -1
  120. package/web/app/immutable/chunks/{DwBC7ZO5.js → u4f1abDP.js} +1 -1
  121. package/web/app/immutable/chunks/{vs7yRc5h.js → vQwN4WXd.js} +1 -1
  122. package/web/app/immutable/chunks/{C2DTpKVY.js → vRomtSEH.js} +1 -1
  123. package/web/app/immutable/chunks/{RScWi4h5.js → ys17TXF0.js} +1 -1
  124. package/web/app/immutable/entry/{app.BxfoDDcP.js → app.DrmM2gXC.js} +2 -2
  125. package/web/app/immutable/entry/start.B5qs3plV.js +1 -0
  126. package/web/app/immutable/nodes/{0.BYEjoax-.js → 0.DvHREjig.js} +1 -1
  127. package/web/app/immutable/nodes/{1.DonmBqhD.js → 1.ClPj5TCv.js} +1 -1
  128. package/web/app/immutable/nodes/{10.BWz0_RlC.js → 10.Ca2-F8qL.js} +1 -1
  129. package/web/app/immutable/nodes/{14.BGOMZwOh.js → 14.DR4jcijT.js} +1 -1
  130. package/web/app/immutable/nodes/{17.CZU458fv.js → 17.ploub82N.js} +2 -2
  131. package/web/app/immutable/nodes/{2.91PDHnEJ.js → 2.CWTxlS6d.js} +4 -4
  132. package/web/app/immutable/nodes/{3.XS2Z6nE2.js → 3.7XW5RNaq.js} +1 -1
  133. package/web/app/immutable/nodes/{4._YEHBWY7.js → 4.B8c9sA1f.js} +1 -1
  134. package/web/app/immutable/nodes/{5.7fRyB5Wj.js → 5.8AXtwblD.js} +1 -1
  135. package/web/app/immutable/nodes/{6.C4bAKIn_.js → 6.DYnY5u72.js} +1 -1
  136. package/web/app/immutable/nodes/{7.BMGdKjWg.js → 7.CGylAw3f.js} +1 -1
  137. package/web/app/immutable/nodes/8.D5h4WyUO.js +14 -0
  138. package/web/app/immutable/nodes/{9.CF_OX-cF.js → 9.QQqXOPhv.js} +4 -4
  139. package/web/app/version.json +1 -1
  140. package/web/index.html +9 -9
  141. package/web/app/immutable/entry/start.BdfBKwUU.js +0 -1
  142. package/web/app/immutable/nodes/8.pAzoHIcn.js +0 -14
@@ -1,4 +1,4 @@
1
- import{p as z}from"./U9geO9na.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./DIH3MXC5.js";import{p as I}from"./Bvvd2zh3.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
1
+ import{p as z}from"./B5qHFYtB.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./kwSDV9fJ.js";import{p as I}from"./Bvvd2zh3.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/p0H3cxPZ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/8obSPONn.js","/app/immutable/chunks/CXgjAj37.js","/app/immutable/chunks/CLLGUAol.js","/app/immutable/chunks/DpFreuz_.js","/app/immutable/chunks/Crq31h4w.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DomfbKVx.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BFeR9qbJ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BcNmLUvA.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CYnvHqAo.js","/app/immutable/chunks/Mne-RwlA.js","/app/immutable/chunks/C_nJgshO.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CN_bicqw.js","/app/immutable/chunks/DrQfmm9r.js","/app/immutable/chunks/CBoIo15V.js","/app/immutable/chunks/CTld-PL6.js","/app/immutable/chunks/CAmF3PXk.js","/app/immutable/chunks/DwIsNA5R.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BiuqRP28.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/83fIOp0Q.js","/app/immutable/chunks/DYfj3lcw.js","/app/immutable/chunks/BICcGRy9.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/ikj2reaR.js","/app/immutable/chunks/CFP6h_yj.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CPgenjJJ.js","/app/immutable/chunks/Bq6o_ftd.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BLYi9_ai.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Cepxm2H7.js","/app/immutable/chunks/DkXjvKmg.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/ClUsr6sz.js","/app/immutable/chunks/DBXDrA8G.js","/app/immutable/chunks/C376IId1.js","/app/immutable/chunks/BhAlvK4b.js","/app/immutable/chunks/cYR0zuXX.js","/app/immutable/chunks/B4nCDPQA.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/K5G7oi7M.js","/app/immutable/chunks/B3TICz6d.js","/app/immutable/chunks/BWAybfHh.js","/app/immutable/chunks/CVPYq6nz.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/FOvS8guB.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as v,t as Ht,bq as y,a_ as D,by as jt,b as Wt,br as Vf,bu as St,bs as oa,bt as _i,b7 as fl,ba as Kf,bl as Gf,bb as Jf,bm as Yf,a$ as Xf,b9 as Zf,b8 as Qf,b2 as $f,bf as ep,bg as tp,bk as rp,be as np,bn as ap,b0 as sp,b4 as op,bi as ip,bh as lp,b6 as cp,b5 as dp,b3 as up,bd as fp,bc as pp,bj as gp,b1 as vp,_ as mp}from"./8obSPONn.js";import{bI as hp,bj as Cs,aG as bp,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as qe,be as nr,b$ as Rt,aC as xa,bl as R,b_ as k,bO as x,aB as S,bo as Es,ca as It,bH as L,bV as ye,br as Jr,bk as As,c0 as Xn,ai as Oa,cd as $a,aw as En,a as yp,aj as Mr,c7 as _p,c6 as pl,c5 as An,bf as Ks,bz as rd}from"./DYhIMPy1.js";import{G as Gs,I as xp,z as wp}from"./BcNmLUvA.js";import{o as kp,i as Sp,u as ae,g as Fn,w as Pn,l as xn,j as lr,v as pt,I as Ps,n as Tt,p as Lr,q as Ip,s as Cp,m as Ep,x as Ap}from"./Crq31h4w.js";import{s as ln}from"./CXgjAj37.js";import{c as en}from"./Mne-RwlA.js";import{I as Ko,t as ar,n as Pp,i as gl,u as vl}from"./DpFreuz_.js";import{b as mr}from"./BaIAhI85.js";import{i as nd,bu as Tp,cK as Rp,dE as Lp,dq as Mp,ax as Np,ct as Op,a2 as Dp,cQ as Bp,dp as ms,aC as so,c2 as Fp,I as zp,a as Hp,a0 as ml,cW as jp,bS as Wp,M as Up,dk as qp,W as Vp,dv as Kp,af as Gp,at as Jp,g as Yp,u as Xp}from"./DkXjvKmg.js";import{c as Zp}from"./D-62MVd3.js";import{k as ra,w as Qp,C as ad,c as $p,R as eg}from"./BLYi9_ai.js";import{f as yt,ap as Za,ai as tg,am as Go,bc as rg}from"./CYnvHqAo.js";import{an as ng,ab as hl,$ as ag,aC as sg,ac as og,h as ig,aV as lg,I as cg,R as dg,at as ug,ag as fg,a0 as pg,a as bl,au as gg,s as vg,n as mg,a$ as hg,m as bg,b1 as Jo,A as yl,af as yg,b0 as _g,ap as sd,T as od,a7 as xg,a6 as _l,V as wg,L as xl}from"./DQv3q7Lr.js";import{F as At,bf as Yo,bJ as kg,am as Sg,aO as Ig,cK as Cg,bj as xi,bz as Eg,aE as id,aJ as wi,cZ as Js,a9 as Xo,cm as Ag,cb as Pg,ch as ki,cE as ld,bq as Tg,e as Rg,bZ as wl,c7 as Lg,ck as Mg,cV as cd,bT as kl,b6 as Io,bc as fs,aD as Ng,ax as Zo,as as dd,ba as ud,bA as Og,B as Dg,bt as Bg,a4 as fd,cf as Fg,aj as pd,cM as gd,cI as Sl,aq as vd,aI as Il,_ as zg,cu as Hg,cT as jg,aH as Wg,aZ as Ug,bM as md,bl as qg,c3 as Cl,al as hd,aw as Vg,a7 as Kg,a5 as Gg}from"./CAmF3PXk.js";import{c as bd}from"./ChTqQfQN.js";import{g as Jg}from"./CFP6h_yj.js";import{Ii as Nt,bM as Yg,rO as El,so as Xg,J6 as Zg,Jc as Qg,g as yd,HX as $g,nv as _d,nL as xd,nK as wd,no as oo,p_ as Si,xN as ev,uR as Hs,u8 as Qo,uT as tv,nd as kd,In as rv,t3 as nv,oy as Sd,ra as Ii,lW as Al,a2 as Pl,qH as av,qD as sv,qI as ov,qz as iv,qF as lv,uH as cv,Ai as Id,Am as Cd,nM as Tl,be as $o,GG as dv,HT as uv,h9 as fv,h8 as pv,nG as gv,vS as vv,vT as mv,vR as Rl,Bi as Jn,cr as hv,cf as bv,d0 as yv,d7 as _v,As as xv}from"./DomfbKVx.js";import{bG as wv,bP as kv,i as Sv,z as Iv,bS as Cv,ag as Ev,ai as Av,ak as Pv,a4 as Tv,a3 as Rv}from"./BhAlvK4b.js";import{n as Lv,m as Mv,v as ei,cj as Nv,M as Ov,ch as Dv,cb as Bv,aD as Ll,cd as Fv,bM as ti,aN as zv,s as Hv,c as hs,d as ri,cf as Ed,cg as ni,bB as jv,b6 as Wv,bQ as Uv,bO as qv,E as Vv,ce as Ml,bv as Kv,y as Gv}from"./Cepxm2H7.js";import{ch as Jv,cj as Yv,ci as Xv,b0 as Zv,a_ as Qv,a$ as $v,a3 as em,ak as Os,aj as tm,az as Nl,aH as rm,ai as nm,C as am,i as sm,E as js,cS as om,aV as Ol,cX as im,af as lm,a7 as cm,r as dm,p as um,aE as fm,c_ as pm,cJ as gm,cC as vm,ct as mm,bR as hm}from"./Bazrg8ay.js";import{i as bm,I as es,c as Dl}from"./CN_bicqw.js";import"./DrQfmm9r.js";import{f as Bl,y as Fl,M as ym,n as _m,m as xm,z as Ad,x as ai,e as bs,W as ts,h as wm}from"./p0H3cxPZ.js";import"./BICcGRy9.js";import{b as Pd}from"./Bq6o_ftd.js";import"./BiuqRP28.js";import{z as Ci,P as km,p as Sm,h as Im,G as Cm,l as Em,i as Am,M as Pm,H as Tm,t as Ya,a as Rm,K as Lm,k as Mm,R as Nm}from"./CBoIo15V.js";import{t as ys,O as Om,M as Dm,S as ya}from"./CTld-PL6.js";import{a as Bm}from"./DwIsNA5R.js";import{C as si}from"./BasqomxX.js";import{aQ as Fm,aY as zm,aB as Hm,b0 as jm,aO as Wm,aU as Um,a7 as ns,b3 as zl,aK as qm,aR as Vm,aX as Ei,aS as Ai,W as Co,aq as Km,X as Gm,a_ as Jm,aJ as Ym,aT as Xm,aW as Zm,b6 as Qm,b4 as $m,ay as Td,p as eh,n as th,aV as rh,_ as nh,ao as ah,aD as sh,z as oh,aC as ih,a8 as lh}from"./DOij_Jfr.js";import{s as oi}from"./YNuHyo7D.js";import{M as ch}from"./BQVyHt6n.js";import{s as dh,a as uh}from"./BsieX9dN.js";import{u as Pi,w as fh,v as io,I as ph,A as Hl,e as _s,d as _a,J as jl,c as gh,f as vh,g as Wl,i as mh,b as hh,o as Rd,j as bh,O as yh,x as _h,k as Ld,S as xh,N as wh,q as Ul,p as kh,n as ql,z as Sh,s as Ih}from"./vs7yRc5h.js";import{o as Vl,a as Kl,T as Eo,b as Ch}from"./mXzmZlVJ.js";import{O as Eh,y as Ah,j as Ph,h as Th,R as Rh}from"./DC8fssXE.js";import{D as xs}from"./CW4Esy2a.js";import"./DCR2yORR.js";import{C as na}from"./BT7eBgA3.js";import{M as Lh}from"./DIH3MXC5.js";import{g as Ti}from"./CLLGUAol.js";import{f as Gl}from"./B3TICz6d.js";import{c as Ws}from"./CijnEJw0.js";import{handleIntentLink as Mh}from"./BX1t8pBy.js";import{s as Nh,a as Oh,f as Dh,d as Bh,r as Fh,h as zh,w as ps,g as Hh,W as jh,H as Wh,c as Uh,M as Md}from"./Dn5BSz6F.js";import{e as qh,q as Vh}from"./cYR0zuXX.js";import{showAssistantContent as Kh}from"./D45-I6C2.js";import{o as Ys,c as Gh,n as Jh}from"./FOvS8guB.js";import{p as Yh}from"./IxVizCtF.js";import{m as Xh}from"./-DqWFMjY.js";import{h as Ds}from"./BmuAz9YM.js";import{i as Nd}from"./DBXDrA8G.js";import{g as Zh,e as Qh,f as $h,h as eb}from"./BvFAWM27.js";import{T as Ao}from"./Cn1b85JG.js";import"./DYfj3lcw.js";import{i as tb,r as Jl}from"./Cm74__Hq.js";import{a as rb}from"./CPgenjJJ.js";import{a as nb}from"./BdWqymET.js";import{p as ab}from"./C7NMvl7m.js";const sb="intent:inline-visual-draft";function lC(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/kOvgsK93.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/8obSPONn.js","/app/immutable/chunks/CXgjAj37.js","/app/immutable/chunks/CLLGUAol.js","/app/immutable/chunks/DpFreuz_.js","/app/immutable/chunks/Crq31h4w.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DomfbKVx.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BFeR9qbJ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BcNmLUvA.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CYnvHqAo.js","/app/immutable/chunks/Mne-RwlA.js","/app/immutable/chunks/C_nJgshO.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CN_bicqw.js","/app/immutable/chunks/DrQfmm9r.js","/app/immutable/chunks/CBoIo15V.js","/app/immutable/chunks/CTld-PL6.js","/app/immutable/chunks/CAmF3PXk.js","/app/immutable/chunks/DwIsNA5R.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BiuqRP28.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/83fIOp0Q.js","/app/immutable/chunks/DYfj3lcw.js","/app/immutable/chunks/BICcGRy9.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/ikj2reaR.js","/app/immutable/chunks/CFP6h_yj.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CPgenjJJ.js","/app/immutable/chunks/Bq6o_ftd.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BLYi9_ai.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CXY1P6C9.js","/app/immutable/chunks/DkXjvKmg.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/ClUsr6sz.js","/app/immutable/chunks/DBXDrA8G.js","/app/immutable/chunks/C376IId1.js","/app/immutable/chunks/BhAlvK4b.js","/app/immutable/chunks/cYR0zuXX.js","/app/immutable/chunks/B4nCDPQA.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/q8l-xXLl.js","/app/immutable/chunks/BFtvBSew.js","/app/immutable/chunks/Bl8pGyWE.js","/app/immutable/chunks/B4VyGGYM.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/sYQprIK6.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as v,t as Ht,bq as y,a_ as D,by as jt,b as Wt,br as Vf,bu as St,bs as oa,bt as _i,b7 as fl,ba as Kf,bl as Gf,bb as Jf,bm as Yf,a$ as Xf,b9 as Zf,b8 as Qf,b2 as $f,bf as ep,bg as tp,bk as rp,be as np,bn as ap,b0 as sp,b4 as op,bi as ip,bh as lp,b6 as cp,b5 as dp,b3 as up,bd as fp,bc as pp,bj as gp,b1 as vp,_ as mp}from"./8obSPONn.js";import{bI as hp,bj as Cs,aG as bp,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as qe,be as nr,b$ as Rt,aC as xa,bl as R,b_ as k,bO as x,aB as S,bo as Es,ca as It,bH as L,bV as ye,br as Jr,bk as As,c0 as Xn,ai as Oa,cd as $a,aw as En,a as yp,aj as Mr,c7 as _p,c6 as pl,c5 as An,bf as Ks,bz as rd}from"./DYhIMPy1.js";import{G as Gs,I as xp,z as wp}from"./BcNmLUvA.js";import{o as kp,i as Sp,u as ae,g as Fn,w as Pn,l as xn,j as lr,v as pt,I as Ps,n as Tt,p as Lr,q as Ip,s as Cp,m as Ep,x as Ap}from"./Crq31h4w.js";import{s as ln}from"./CXgjAj37.js";import{c as en}from"./Mne-RwlA.js";import{I as Ko,t as ar,n as Pp,i as gl,u as vl}from"./DpFreuz_.js";import{b as mr}from"./BaIAhI85.js";import{i as nd,bu as Tp,cK as Rp,dE as Lp,dq as Mp,ax as Np,ct as Op,a2 as Dp,cQ as Bp,dp as ms,aC as so,c2 as Fp,I as zp,a as Hp,a0 as ml,cW as jp,bS as Wp,M as Up,dk as qp,W as Vp,dv as Kp,af as Gp,at as Jp,g as Yp,u as Xp}from"./DkXjvKmg.js";import{c as Zp}from"./D-62MVd3.js";import{k as ra,w as Qp,C as ad,c as $p,R as eg}from"./BLYi9_ai.js";import{f as yt,ap as Za,ai as tg,am as Go,bc as rg}from"./CYnvHqAo.js";import{an as ng,ab as hl,$ as ag,aC as sg,ac as og,h as ig,aV as lg,I as cg,R as dg,at as ug,ag as fg,a0 as pg,a as bl,au as gg,s as vg,n as mg,a$ as hg,m as bg,b1 as Jo,A as yl,af as yg,b0 as _g,ap as sd,T as od,a7 as xg,a6 as _l,V as wg,L as xl}from"./Bg6EMrHe.js";import{F as At,bf as Yo,bJ as kg,am as Sg,aO as Ig,cK as Cg,bj as xi,bz as Eg,aE as id,aJ as wi,cZ as Js,a9 as Xo,cm as Ag,cb as Pg,ch as ki,cE as ld,bq as Tg,e as Rg,bZ as wl,c7 as Lg,ck as Mg,cV as cd,bT as kl,b6 as Io,bc as fs,aD as Ng,ax as Zo,as as dd,ba as ud,bA as Og,B as Dg,bt as Bg,a4 as fd,cf as Fg,aj as pd,cM as gd,cI as Sl,aq as vd,aI as Il,_ as zg,cu as Hg,cT as jg,aH as Wg,aZ as Ug,bM as md,bl as qg,c3 as Cl,al as hd,aw as Vg,a7 as Kg,a5 as Gg}from"./CAmF3PXk.js";import{c as bd}from"./ChTqQfQN.js";import{g as Jg}from"./CFP6h_yj.js";import{Ii as Nt,bM as Yg,rO as El,so as Xg,J6 as Zg,Jc as Qg,g as yd,HX as $g,nv as _d,nL as xd,nK as wd,no as oo,p_ as Si,xN as ev,uR as Hs,u8 as Qo,uT as tv,nd as kd,In as rv,t3 as nv,oy as Sd,ra as Ii,lW as Al,a2 as Pl,qH as av,qD as sv,qI as ov,qz as iv,qF as lv,uH as cv,Ai as Id,Am as Cd,nM as Tl,be as $o,GG as dv,HT as uv,h9 as fv,h8 as pv,nG as gv,vS as vv,vT as mv,vR as Rl,Bi as Jn,cr as hv,cf as bv,d0 as yv,d7 as _v,As as xv}from"./DomfbKVx.js";import{bG as wv,bP as kv,i as Sv,z as Iv,bS as Cv,ag as Ev,ai as Av,ak as Pv,a4 as Tv,a3 as Rv}from"./BhAlvK4b.js";import{n as Lv,m as Mv,v as ei,cj as Nv,M as Ov,ch as Dv,cb as Bv,aD as Ll,cd as Fv,bM as ti,aN as zv,s as Hv,c as hs,d as ri,cf as Ed,cg as ni,bB as jv,b6 as Wv,bQ as Uv,bO as qv,E as Vv,ce as Ml,bv as Kv,y as Gv}from"./CXY1P6C9.js";import{ch as Jv,cj as Yv,ci as Xv,b0 as Zv,a_ as Qv,a$ as $v,a3 as em,ak as Os,aj as tm,az as Nl,aH as rm,ai as nm,C as am,i as sm,E as js,cS as om,aV as Ol,cX as im,af as lm,a7 as cm,r as dm,p as um,aE as fm,c_ as pm,cJ as gm,cC as vm,ct as mm,bR as hm}from"./CzNFeyXq.js";import{i as bm,I as es,c as Dl}from"./CN_bicqw.js";import"./DrQfmm9r.js";import{f as Bl,y as Fl,M as ym,n as _m,m as xm,z as Ad,x as ai,e as bs,W as ts,h as wm}from"./kOvgsK93.js";import"./BICcGRy9.js";import{b as Pd}from"./Bq6o_ftd.js";import"./BiuqRP28.js";import{z as Ci,P as km,p as Sm,h as Im,G as Cm,l as Em,i as Am,M as Pm,H as Tm,t as Ya,a as Rm,K as Lm,k as Mm,R as Nm}from"./CBoIo15V.js";import{t as ys,O as Om,M as Dm,S as ya}from"./CTld-PL6.js";import{a as Bm}from"./DwIsNA5R.js";import{C as si}from"./BasqomxX.js";import{aQ as Fm,aY as zm,aB as Hm,b0 as jm,aO as Wm,aU as Um,a7 as ns,b3 as zl,aK as qm,aR as Vm,aX as Ei,aS as Ai,W as Co,aq as Km,X as Gm,a_ as Jm,aJ as Ym,aT as Xm,aW as Zm,b6 as Qm,b4 as $m,ay as Td,p as eh,n as th,aV as rh,_ as nh,ao as ah,aD as sh,z as oh,aC as ih,a8 as lh}from"./XDo28UMB.js";import{s as oi}from"./Bgs5Oygw.js";import{M as ch}from"./BQVyHt6n.js";import{s as dh,a as uh}from"./BsieX9dN.js";import{u as Pi,w as fh,v as io,I as ph,A as Hl,e as _s,d as _a,J as jl,c as gh,f as vh,g as Wl,i as mh,b as hh,o as Rd,j as bh,O as yh,x as _h,k as Ld,S as xh,N as wh,q as Ul,p as kh,n as ql,z as Sh,s as Ih}from"./vQwN4WXd.js";import{o as Vl,a as Kl,T as Eo,b as Ch}from"./DZIg-0qV.js";import{O as Eh,y as Ah,j as Ph,h as Th,R as Rh}from"./DC8fssXE.js";import{D as xs}from"./D8--oZc6.js";import"./DCR2yORR.js";import{C as na}from"./khmuPkH1.js";import{M as Lh}from"./kwSDV9fJ.js";import{g as Ti}from"./CLLGUAol.js";import{f as Gl}from"./BFtvBSew.js";import{c as Ws}from"./CijnEJw0.js";import{handleIntentLink as Mh}from"./BGCj8f4n.js";import{s as Nh,a as Oh,f as Dh,d as Bh,r as Fh,h as zh,w as ps,g as Hh,W as jh,H as Wh,c as Uh,M as Md}from"./hRXpLgdr.js";import{e as qh,q as Vh}from"./cYR0zuXX.js";import{showAssistantContent as Kh}from"./Bo9ahub4.js";import{o as Ys,c as Gh,n as Jh}from"./sYQprIK6.js";import{p as Yh}from"./DcoxMA27.js";import{m as Xh}from"./-DqWFMjY.js";import{h as Ds}from"./BmuAz9YM.js";import{i as Nd}from"./DBXDrA8G.js";import{g as Zh,e as Qh,f as $h,h as eb}from"./BvFAWM27.js";import{T as Ao}from"./Cn1b85JG.js";import"./DYfj3lcw.js";import{i as tb,r as Jl}from"./B7El2OF0.js";import{a as rb}from"./CPgenjJJ.js";import{a as nb}from"./BdWqymET.js";import{p as ab}from"./D3VV-t_O.js";const sb="intent:inline-visual-draft";function lC(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
  `,m0=["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"],jo=96,Bc=2e4,h0=480,ju=512,b0=["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 y0(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=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...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(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));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,A=Number.NaN,P=0,B=0;const F=()=>{if(T=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=E-z;if(z>h+1&&J>1&&Math.abs(J-A)<=1?P+=1:(z!==h||J<=1)&&(P=0),h=z,A=J,!B&&P>=3){B=Math.max(a,z);const Z="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Z),f("layout",{message:Z})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},O=()=>{T||(T=!0,requestAnimationFrame(F))},N=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const J=E.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 Z of Object.keys(t.variables)){if(Z==="--inline-html-root-font-size")continue;const Q=E.variables[Z];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Z,Q)}O()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&N(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const Ie=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const ce=Q.scrollHeight-Q.clientHeight;return ce>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<ce-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const J=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Z=Math.max(-n,Math.min(n,E.deltaY*J));Number.isFinite(Z)&&(E.preventDefault(),l({deltaY:Z}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.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 _0(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 x0(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=Z=>{Z.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Z.querySelectorAll("template").forEach(Q=>p(Q.content)),Z.querySelectorAll("a, area").forEach(Q=>{for(const Ie of["href","xlink:href"])Q.getAttribute(Ie)?.startsWith("#")||Q.removeAttribute(Ie);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Z=>JSON.stringify(Z).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"),A=/^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=`${A}${r.styles}`;const P=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);P.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(T,b,h,P);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 E=O.createElement("style");E.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,E,z),`<!doctype html>${O.documentElement.outerHTML}`}const w0=()=>({csp:b0,styles:v0,maxScrollDelta:ju,lockHeight:h0,bridge:y0.toString(),shell:_0.toString(),validate:Ii.toString()});function k0(r,t,n,a,s=null,o=""){return x0(w0(),Ii,r,t,n,a,s,o)}function Fc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(m0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function S0(r,t,n,a,s=null){return k0(r,t,n,a,s,g0)}var I0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),C0=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),E0=S('<p class="sr-only" role="status"> </p>'),A0=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),P0=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>'),T0=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),R0=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>'),L0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),M0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),N0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),O0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),D0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),B0=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>'),F0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),z0=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 Wu(r,t){if(new.target)return Ht({component:Wu,...r});Ut(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),A=y(t,"exportError",7),P,B=ye(void 0),F=ye(!1),O=ye(!1),N=ye(0),U=ye(""),E=ye(""),z=ye(!1),J=ye(""),Z=ye(Jr(jo)),Q=ye(n),Ie=ye(""),ce=ye(Al()),oe=ye(void 0),ue,we=ye(void 0),G=ye(!1);const fe=u(()=>c()??e(ce)),ie=u(()=>l()!=="loading"&&(l()!=="error"||!!e(fe).current)),Ne=u(()=>!s()&&o()&&!!a().trim()&&e(ie)),Re=u(()=>Math.min(Bc,Math.max(jo,e(Z)))),ke=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 je(X){const xe={...X,current:e(oe)??X.current};L(ce,xe),f()?.(xe)}function Ue(){const X=e(oe);!X||e(fe).scenarios.length>=Pl||(je({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:rp({number:vl(e(fe).scenarios.length+1)}),snapshot:structuredClone(X)}]}),L(G,!0))}function le(X,xe){const Ke=xe.trim().slice(0,120);Ke&&je({...e(fe),scenarios:e(fe).scenarios.map(rt=>rt.id===X?{...rt,name:Ke}:rt)})}function $(X){const xe=structuredClone(X);L(oe,xe),L(we,xe),je({...e(fe),current:xe}),L(N,e(N)+1)}function Ze(X){return typeof X=="number"?vl(X):typeof X=="string"?X:JSON.stringify(X)}function V(){!e(B)?.contentWindow||!e(E)||e(B).contentWindow.postMessage({channel:e(E),type:"theme",theme:Fc(P)},"*")}function K(X){let xe=P.parentElement;for(;xe;){const Ke=getComputedStyle(xe),rt=xe.scrollHeight-xe.clientHeight;if(/^(auto|scroll|overlay)$/.test(Ke.overflowY)&&rt>1){if(X<0?xe.scrollTop>0:xe.scrollTop<rt){xe.dispatchEvent(new WheelEvent("wheel",{deltaY:X,bubbles:!0})),xe.scrollTop+=X;return}if(/^(contain|none)$/.test(Ke.overscrollBehaviorY))return}xe=xe.parentElement}window.scrollBy({top:X,behavior:"instant"})}It(()=>{if(!e(F))return;const X=a(),xe=e(Ne);e(N),An(()=>{ue!==X&&(L(ce,Al()),L(oe,void 0),L(G,!1),L(we,void 0),ue=X),L(z,!1),L(J,""),L(Ie,""),L(Z,jo,!0),L(E,crypto.randomUUID(),!0),L(U,xe?S0(X,e(E),Fc(P),fl(),e(we)??e(oe)??e(fe).current):"",!0),L(we,void 0)})}),As(()=>{L(F,!0);const X=ht=>{if(ht.source!==e(B)?.contentWindow||ht.origin!=="null")return;const We=ht.data;if(!(!We||typeof We!="object"||We.channel!==e(E)))if(We.type==="resize"&&typeof We.height=="number"&&Number.isFinite(We.height)&&We.height>=0)L(Z,Math.min(Bc,Math.ceil(We.height)),!0);else if(We.type==="ready")L(z,!0),V();else if(We.type==="error"&&typeof We.message=="string")L(J,We.message.slice(0,300),!0);else if(We.type==="layout"&&typeof We.message=="string")L(Ie,We.message.slice(0,300),!0);else if(We.type==="snapshot"&&e(Ne)&&Ii(We.snapshot)){const mt=We.snapshot;L(oe,mt),je({...e(fe),current:mt})}else We.type==="wheel"&&e(z)&&e(Ne)&&!e(O)&&!e(_e)&&typeof We.deltaY=="number"&&Number.isFinite(We.deltaY)&&We.deltaY!==0&&Math.abs(We.deltaY)<=ju&&K(We.deltaY)},xe=()=>{L(Q,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",X),window.addEventListener("resize",xe),xe(),()=>{Ke.disconnect(),rt.removeEventListener("change",V),window.removeEventListener("message",X),window.removeEventListener("resize",xe)}});var W={get source(){return a()},set source(X){a(X),_()},get isStreaming(){return s()},set isStreaming(X=!1){s(X),_()},get isComplete(){return o()},set isComplete(X=!0){o(X),_()},get record(){return c()},set record(X){c(X),_()},get storageStatus(){return l()},set storageStatus(X="ready"){l(X),_()},get onRecordChange(){return f()},set onRecordChange(X){f(X),_()},get onUseConfiguration(){return i()},set onUseConfiguration(X){i(X),_()},get onExport(){return p()},set onExport(X){p(X),_()},get onRetry(){return g()},set onRetry(X){g(X),_()},get storageError(){return T()},set storageError(X){T(X),_()},get exportStatus(){return b()},set exportStatus(X){b(X),_()},get exportPath(){return h()},set exportPath(X){h(X),_()},get exportError(){return A()},set exportError(X){A(X),_()},$set:jt,$on:(X,xe)=>Wt(t,X,xe)},se=z0(),Ce=I(se),Y=I(Ce);yt(Y,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{L(O,!e(O))},children:(X,xe)=>{nr();var Ke=Rt();k(rt=>x(Ke,rt),[()=>e(O)?Kf():Gf()]),d(X,Ke)},$$slots:{default:!0}});var de=m(Y,2);{let X=u(()=>!e(Ne));yt(de,{variant:"ghost",size:"sm",get disabled(){return e(X)},onclick:()=>{L(N,e(N)+1)},children:(xe,Ke)=>{nr();var rt=Rt();k(ht=>x(rt,ht),[()=>Jf()]),d(xe,rt)},$$slots:{default:!0}})}w(Ce);var Ae=m(Ce,2);{var He=X=>{var xe=C0(),Ke=qe(xe),rt=I(Ke),ht=R(rt,!0),We=m(rt,2);{var mt=dt=>{yt(dt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Gt,Ft)=>{nr();var Jt=Rt();k(xt=>x(Jt,xt),[()=>np()]),d(Gt,Jt)},$$slots:{default:!0}})};D(We,dt=>{g()&&dt(mt)})}w(Ke);var ot=m(Ke,2);{var it=dt=>{var Gt=I0(),Ft=R(Gt,!0);k(()=>x(Ft,T())),d(dt,Gt)};D(ot,dt=>{T()&&dt(it)})}k(dt=>x(ht,dt),[()=>Yf()]),d(X,xe)};D(Ae,X=>{l()==="error"&&X(He)})}var tt=m(Ae,2);{var ge=X=>{var xe=E0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>s()?Xf():Zf()]),d(X,xe)},Oe=X=>{var xe=A0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>o()?$f():Qf()]),d(X,xe)},q=X=>{var xe=P0(),Ke=I(xe),rt=R(Ke,!0),ht=m(Ke,2),We=R(ht,!0);w(xe),k(mt=>{x(rt,mt),x(We,e(J))},[()=>ep()]),d(X,xe)};D(tt,X=>{e(_e)?X(ge):e(Ne)?e(J)&&X(q,2):X(Oe,1)})}var Le=m(tt,2),ve=I(Le);{var M=X=>{var xe=T0();let Ke,rt;mr(xe,ht=>L(B,ht),()=>e(B)),k(ht=>{ae(xe,"title",ht),ae(xe,"srcdoc",e(U)),Ke=pt(xe,1,"block w-full border-0 svelte-1kkow1d",null,Ke,{"preview-hidden":e(O)||e(_e)}),ae(xe,"aria-hidden",e(O)||e(_e)),rt=Pn(xe,"",rt,{height:`${e(Re)}px`})},[()=>fl()]),d(X,xe)};D(ve,X=>{e(Ne)&&e(U)&&X(M)})}var H=m(ve,2);{var me=X=>{na(X,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(Q)}})},$e=X=>{var xe=R0(),Ke=I(xe),rt=I(Ke);Ya(rt,{class:"h-4 w-32 max-w-1/2"});var ht=m(rt,2);Ya(ht,{class:"h-3 w-2/3"}),w(Ke);var We=m(Ke,2);Ya(We,{class:"aspect-video max-h-60 w-full rounded-lg"});var mt=m(We,2),ot=I(mt);Ya(ot,{class:"h-3 w-16"});var it=m(ot,2);Ya(it,{class:"h-2 min-w-0 flex-1"});var dt=m(it,2);Ya(dt,{class:"h-3 w-10"}),w(mt),w(xe),d(X,xe)};D(H,X=>{e(O)?X(me):e(_e)&&X($e,1)})}w(Le);var Pe=m(Le,2);{var ze=X=>{var xe=F0(),Ke=qe(xe),rt=I(Ke);{var ht=Ct=>{{let Yt=u(()=>!e(z)||!!e(J));yt(Ct,{size:"sm",get disabled(){return e(Yt)},onclick:()=>e(oe)&&i()(e(oe)),children:(Lt,be)=>{nr();var re=Rt();k(Ve=>x(re,Ve),[()=>ap()]),d(Lt,re)},$$slots:{default:!0}})}};D(rt,Ct=>{i()&&Ct(ht)})}var We=m(rt,2);{let Ct=u(()=>!e(z)||!!e(J)||e(fe).scenarios.length>=Pl);yt(We,{variant:"ghost",size:"sm",get disabled(){return e(Ct)},onclick:Ue,children:(Yt,Lt)=>{nr();var be=Rt();k(re=>x(be,re),[()=>tp()]),d(Yt,be)},$$slots:{default:!0}})}var mt=m(We,2);{var ot=Ct=>{yt(Ct,{variant:"ghost",size:"sm",get active(){return e(G)},get"aria-expanded"(){return e(G)},onclick:()=>L(G,!e(G)),children:(Yt,Lt)=>{nr();var be=Rt();k(re=>x(be,re),[()=>sp()]),d(Yt,be)},$$slots:{default:!0}})};D(mt,Ct=>{e(fe).scenarios.length&&Ct(ot)})}var it=m(mt,2);{var dt=Ct=>{{let Yt=u(()=>!e(z)||b()==="saving");yt(Ct,{variant:"ghost",size:"sm",get disabled(){return e(Yt)},onclick:()=>p()({...e(fe),current:e(oe)??null}),children:(Lt,be)=>{nr();var re=Rt();k(Ve=>x(re,Ve),[()=>op()]),d(Lt,re)},$$slots:{default:!0}})}};D(it,Ct=>{p()&&Ct(dt)})}var Gt=m(it,2);{var Ft=Ct=>{var Yt=L0(),Lt=R(Yt,!0);k(be=>x(Lt,be),[()=>l()==="saving"?ip():l()==="ready"?lp():""]),d(Ct,Yt)};D(Gt,Ct=>{f()&&Ct(Ft)})}w(Ke);var Jt=m(Ke,2);{var xt=Ct=>{var Yt=M0(),Lt=I(Yt),be=m(Lt);{var re=Ve=>{var lt=Rt();k(()=>x(lt,A())),d(Ve,lt)};D(be,Ve=>{b()==="error"&&A()&&Ve(re)})}w(Yt),k(Ve=>x(Lt,`${Ve??""} `),[()=>b()==="saving"?cp():b()==="saved"?dp({path:h()??""}):up()]),d(Ct,Yt)};D(Jt,Ct=>{b()&&Ct(xt)})}var Vt=m(Jt,2);{var Kt=Ct=>{var Yt=B0(),Lt=I(Yt),be=I(Lt),re=I(be),Ve=I(re),lt=R(Ve,!0),ct=m(Ve),De=R(ct,!0),ne=m(ct);Tt(ne,17,()=>e(fe).scenarios,te=>te.id,(te,Ee)=>{var Se=N0(),Xe=I(Se);{let Te=u(()=>gp());es(Xe,{get value(){return e(Ee).name},get"aria-label"(){return e(Te)},maxlength:120,onblur:Je=>{Je.currentTarget.value.trim()||(Je.currentTarget.value=e(Ee).name),le(e(Ee).id,Je.currentTarget.value)},onkeydown:Je=>{Je.key==="Enter"&&Je.currentTarget.blur(),Je.key==="Escape"&&(Je.currentTarget.value=e(Ee).name,Je.currentTarget.blur())}})}var Fe=m(Xe,2),Ge=I(Fe);yt(Ge,{variant:"ghost",size:"sm",onclick:()=>$(e(Ee).snapshot),children:(Te,Je)=>{nr();var Be=Rt();k(et=>x(Be,et),[()=>fp()]),d(Te,Be)},$$slots:{default:!0}});var Qe=m(Ge,2);yt(Qe,{variant:"ghost",size:"sm",onclick:()=>je({...e(fe),scenarios:e(fe).scenarios.filter(Te=>Te.id!==e(Ee).id)}),children:(Te,Je)=>{nr();var Be=Rt();k(et=>x(Be,et),[()=>pp()]),d(Te,Be)},$$slots:{default:!0}}),w(Fe),w(Se),d(te,Se)}),w(re),w(be);var pe=m(be);Tt(pe,20,()=>["inputs","results"],Lr,(te,Ee)=>{const Se=u(()=>Ee),Xe=u(()=>Array.from(new Set([...Object.keys(e(oe)[e(Se)]),...e(fe).scenarios.flatMap(Qe=>Object.keys(Qe.snapshot[e(Se)]))])));var Fe=kt(),Ge=qe(Fe);Tt(Ge,16,()=>e(Xe),Qe=>Qe,(Qe,Te)=>{var Je=D0(),Be=I(Je),et=R(Be,!0),ft=m(Be);Tt(ft,17,()=>[e(oe),...e(fe).scenarios.map(st=>st.snapshot)],Lr,(st,nt)=>{var _t=O0(),vt=R(_t,!0);k(Ot=>x(vt,Ot),[()=>Object.hasOwn(e(nt)[e(Se)],Te)?Ze(e(nt)[e(Se)][Te]):"—"]),d(st,_t)}),w(Je),k(()=>x(et,Te)),d(Qe,Je)}),d(te,Fe)}),w(pe),w(Lt),w(Yt),k(te=>{x(lt,e(oe).title),x(De,te)},[()=>vp()]),d(Ct,Yt)};D(Vt,Ct=>{e(G)&&e(fe).scenarios.length&&Ct(Kt)})}d(X,xe)};D(Pe,X=>{e(oe)&&e(Ne)&&X(ze)})}return w(se),mr(se,X=>P=X,()=>P),k(()=>{ae(se,"data-inline-html-status",e(ke)),ae(se,"data-inline-html-layout",e(Ie)?"viewport-locked":void 0),ae(se,"aria-busy",e(_e))}),d(r,se),qt(W)}var H0=S('<div class="w-full min-w-0"><!></div>');function j0(r,t){if(new.target)return Ht({component:j0,...r});Ut(t,!0);const n=()=>St(e(b),"$agent$",s),a=()=>St(e(B),"$entry$",s),[s,o]=oa();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=ye(void 0);const b=u(()=>so(i()??"")),h=u(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Sd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),A=u(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),P=u(()=>e(h)?lv(e(h)):""),B=u(()=>Wm(e(P)));It(()=>{e(h)&&Nt.dispatch(av(e(h)))});function F(Z){!f()||!i()||n()?.retiredAt||e(T)?.dispatchEvent(new CustomEvent(sb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Z}}))}var O={get block(){return c()},set block(Z){c(Z),_()},get role(){return l()},set role(Z){l(Z),_()},get workspaceId(){return f()},set workspaceId(Z){f(Z),_()},get agentId(){return i()},set agentId(Z){i(Z),_()},get messageId(){return p()},set messageId(Z){p(Z),_()},get contentBlockKey(){return g()},set contentBlockKey(Z=""){g(Z),_()},$set:jt,$on:(Z,Q)=>Wt(t,Z,Q)},N=kt(),U=qe(N);{var E=Z=>{var Q=H0(),Ie=I(Q);{let ce=u(()=>c().metadata?.isStreaming??!1),oe=u(()=>c().metadata?.fenceClosed??!1),ue=u(()=>a()?.record),we=u(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),G=u(()=>a()?.error),fe=u(()=>e(h)?Ue=>Nt.dispatch(iv(e(P),Ue)):void 0),ie=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Ne=u(()=>e(h)?()=>Nt.dispatch(ov(e(P))):void 0),Re=u(()=>e(h)?Ue=>Nt.dispatch(sv(e(P),crypto.randomUUID(),Ue)):void 0),ke=u(()=>a()?.export?.status),_e=u(()=>a()?.export?.path),je=u(()=>a()?.export?.error);Wu(Ie,{get source(){return c().content},get isStreaming(){return e(ce)},get isComplete(){return e(oe)},get record(){return e(ue)},get storageStatus(){return e(we)},get storageError(){return e(G)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e(ie)},get onRetry(){return e(Ne)},get onExport(){return e(Re)},get exportStatus(){return e(ke)},get exportPath(){return e(_e)},get exportError(){return e(je)}})}w(Q),mr(Q,ce=>L(T,ce),()=>e(T)),d(Z,Q)},z=Z=>{na(Z,{get code(){return c().content},language:"html"})};D(U,Z=>{l()==="assistant"?Z(E):Z(z,-1)})}d(r,N);var J=qt(O);return o(),J}var W0=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 U0(r,t){if(new.target)return Ht({component:U0,...r});Ut(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:jt,$on:(c,l)=>Wt(t,c,l)},s=W0(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),qt(a)}var q0=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>'),V0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),K0=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>'),G0=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 Y0(r,t){if(new.target)return Ht({component:Y0,...r});Ut(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=J0(),o=I(s),c=I(o);At(c,{get icon(){return cd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=R(l,!0);w(o);var i=m(o,2);Tt(i,21,n,b=>b.name+b.command,(b,h)=>{var A=G0(),P=I(A),B=I(P),F=I(B),O=R(F,!0),N=m(F,2);{var U=Ie=>{var ce=q0(),oe=R(ce,!0);k(ue=>x(oe,ue),[()=>v.chat_detectedScripts_service_badge()]),d(Ie,ce)},E=Ie=>{var ce=V0(),oe=R(ce,!0);k(ue=>x(oe,ue),[()=>v.chat_detectedScripts_command_badge()]),d(Ie,ce)};D(N,Ie=>{e(h).mode==="service"?Ie(U):Ie(E,-1)})}var z=m(N,2);{var J=Ie=>{var ce=K0(),oe=R(ce,!0);k(()=>x(oe,e(h).category)),d(Ie,ce)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Z=m(B,2),Q=R(Z,!0);w(P),w(A),k(()=>{x(O,e(h).name),x(Q,e(h).command)}),d(b,A)}),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:ar(n().length)}):v.chat_detectedScripts_count_many({count:ar(n().length)})]),d(r,s),qt(a)}function X0(r,t){if(new.target)return Ht({component:X0,...r});Ut(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()?.(),ra.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),ra.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:jt,$on:(g,T)=>Wt(t,g,T)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());xs(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 qt(p)}var Z0=xa('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),zc=xa("<circle></circle>"),Q0=xa('<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>'),$0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Vs(r,t){if(new.target)return Ht({component:Vs,...r});Ut(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 A=u(()=>h[n()]||"currentColor");var P={get phase(){return n()},set phase(ce){n(ce),_()},get progress(){return a()},set progress(ce=0){a(ce),_()},get size(){return s()},set size(ce=16){s(ce),_()},get class(){return o()},set class(ce=""){o(ce),_()},$set:jt,$on:(ce,oe)=>Wt(t,ce,oe)},B=$0(),F=I(B),O=I(F),N=m(O);{var U=ce=>{},E=ce=>{var oe=Z0();k(()=>{ae(oe,"cx",e(l)),ae(oe,"cy",e(f)),ae(oe,"r",e(g)*.8),ae(oe,"stroke",e(A)),ae(oe,"stroke-width",e(g)*1.5),ae(oe,"stroke-dasharray",`${e(b)??""} ${e(T)??""}`),ae(oe,"stroke-dashoffset",e(T)*.25),ae(oe,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),d(ce,oe)},z=ce=>{var oe=zc();k(()=>{ae(oe,"cx",e(l)),ae(oe,"cy",e(f)),ae(oe,"r",e(p)*.6),ae(oe,"fill",e(A))}),d(ce,oe)},J=ce=>{var oe=zc();k(()=>{ae(oe,"cx",e(l)),ae(oe,"cy",e(f)),ae(oe,"r",e(p)),ae(oe,"fill",e(A))}),d(ce,oe)};D(N,ce=>{n()==="planning"?ce(U):n()==="building"?ce(E,1):n()==="reviewing"?ce(z,2):n()==="shipped"&&ce(J,3)})}w(F);var Z=m(F,2);{var Q=ce=>{},Ie=ce=>{var oe=Q0();k(()=>ae(oe,"width",s()*.5)),d(ce,oe)};D(Z,ce=>{n()==="reviewing"?ce(Q):n()==="shipped"&&ce(Ie,1)})}return w(B),k(()=>{ae(F,"width",s()),ae(F,"height",s()),ae(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),pt(F,0,lr(o())),ae(O,"cx",e(l)),ae(O,"cy",e(f)),ae(O,"r",e(p)),ae(O,"stroke",e(A)),ae(O,"stroke-width",e(i))}),d(r,B),qt(P)}var Hc=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),ek=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),jc=S('<span class="text-ui text-subtle truncate"> </span>'),Wc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Uc=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>'),tk=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),rk=S('<span class="text-ui text-subtle pl-4"> </span>'),nk=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),ak=S('<div class="text-ui text-subtle"> </div>'),sk=S("<!> <!> <!> <!>",1),ok=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>'),ik=S('<div class="rounded-[0.5px]"></div>');function Uu(r,t){if(new.target)return Ht({component:Uu,...r});Ut(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:E,total:z}=n();if(z===0)return[];const J=[...Array(N).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).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")),A=u(()=>a().length>0);var P={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:jt,$on:(N,U)=>Wt(t,N,U)},B=kt(),F=qe(B);{var O=N=>{Go(N,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=ok(),J=I(z),Z=I(J),Q=R(Z,!0),Ie=m(Z,2),ce=I(Ie);{var oe=Re=>{var ke=Hc(),_e=I(ke);Pn(_e,"",{},{"background-color":"#22c55e"});var je=m(_e);w(ke),k(()=>x(je,` ${n().completed??""}`)),d(Re,ke)};D(ce,Re=>{n().completed>0&&Re(oe)})}var ue=m(ce,2);{var we=Re=>{var ke=Hc(),_e=I(ke);Pn(_e,"",{},{"background-color":"#4F7BF7"});var je=m(_e);w(ke),k(()=>x(je,` ${n().inProgress??""}`)),d(Re,ke)};D(ue,Re=>{n().inProgress>0&&Re(we)})}var G=m(ue,2);{var fe=Re=>{var ke=ek(),_e=m(I(ke));w(ke),k(()=>x(_e,` ${n().notStarted??""}`)),d(Re,ke)};D(G,Re=>{n().notStarted>0&&Re(fe)})}w(Ie),w(J);var ie=m(J,2);{var Ne=Re=>{var ke=sk(),_e=qe(ke);Tt(_e,17,()=>e(T),Lr,(V,K)=>{var W=Uc(),se=I(W),Ce=I(se);Eo(Ce,{get status(){return e(K).status},size:14}),w(se);var Y=m(se,2),de=I(Y),Ae=R(de,!0),He=m(de,2);{var tt=ge=>{var Oe=Wc(),q=I(Oe);{let M=u(()=>e(K).agentState||"idle");yl(q,{get agentId(){return e(K).agentId},get state(){return e(M)},size:12,get specialist(){return e(K).agentSpecialist}})}var Le=m(q,2);{var ve=M=>{var H=jc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(M,H)};D(Le,M=>{e(K).agentName&&M(ve)})}w(Oe),d(ge,Oe)};D(He,ge=>{e(K).agentId&&ge(tt)})}w(Y),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var je=m(_e,2);Tt(je,17,()=>e(b),Lr,(V,K)=>{var W=Uc(),se=I(W),Ce=I(se);Eo(Ce,{get status(){return e(K).status},size:14}),w(se);var Y=m(se,2),de=I(Y),Ae=R(de,!0),He=m(de,2);{var tt=ge=>{var Oe=Wc(),q=I(Oe);{let M=u(()=>e(K).agentState||"idle");yl(q,{get agentId(){return e(K).agentId},get state(){return e(M)},size:12,get specialist(){return e(K).agentSpecialist}})}var Le=m(q,2);{var ve=M=>{var H=jc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(M,H)};D(Le,M=>{e(K).agentName&&M(ve)})}w(Oe),d(ge,Oe)};D(He,ge=>{e(K).agentId&&ge(tt)})}w(Y),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var Ue=m(je,2);{var le=V=>{var K=nk(),W=I(K);Tt(W,17,()=>e(g).slice(0,3),Lr,(Y,de)=>{var Ae=tk(),He=I(Ae),tt=I(He);Eo(tt,{status:"complete",size:12}),w(He);var ge=m(He,2),Oe=R(ge,!0);w(Ae),k(()=>x(Oe,e(de).title)),d(Y,Ae)});var se=m(W,2);{var Ce=Y=>{var de=rk(),Ae=R(de,!0);k(He=>x(Ae,He),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:ar(e(g).length-3)})]),d(Y,de)};D(se,Y=>{e(g).length>3&&Y(Ce)})}w(K),d(V,K)};D(Ue,V=>{e(g).length>0&&V(le)})}var $=m(Ue,2);{var Ze=V=>{var K=ak(),W=R(K,!0);k(se=>x(W,se),[()=>v.workspace_taskProgressBar_cancelled_label({count:ar(e(h).length)})]),d(V,K)};D($,V=>{e(h).length>0&&V(Ze)})}d(Re,ke)};D(ie,Re=>{e(A)&&Re(Ne)})}w(z),k(Re=>x(Q,Re),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)})]),d(E,z)},children:(E,z)=>{{let J=u(()=>xn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Z=u(()=>`gap: ${l()}`),Q=u(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)}));yt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Z)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(Ie,ce)=>{var oe=kt(),ue=qe(oe);Tt(ue,17,()=>e(p),Lr,(we,G)=>{var fe=ik();let ie;k(()=>ie=Pn(fe,"",ie,{width:o(),height:c(),"background-color":i[e(G)]})),d(we,fe)}),d(Ie,oe)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,N=>{n().total>0&&N(O)})}return d(r,B),qt(P)}function Ui(r,t){if(new.target)return Ht({component:Ui,...r});Ut(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(()=>_g(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:jt,$on:(p,g)=>Wt(t,p,g)};return Rm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>yg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,T)=>{let b=()=>(T?.()).props;yt(g,_i(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,A)=>{Lm(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var lk=S('<span class="contents"><!></span>'),ck=S("<!> <!>",1);function qu(r,t){if(new.target)return Ht({component:qu,...r});Ut(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>Jg(a()));let o=ye(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&L(o,null)});function c(h){const A=sd(h);A&&L(o,{...A,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();L(o,{x:A.left,y:A.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:jt,$on:(h,A)=>Wt(t,h,A)},p=ck(),g=qe(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:ar(a()+1)})),A=u(()=>v.workspace_microKeyBadge_tooltip({number:ar(a()+1)})),P=u(()=>e(o)!==null);yt(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(A)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(P)},children:(B,F)=>{var O=lk(),N=I(O);$p(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 A=u(()=>e(o)?.x??0),P=u(()=>e(o)?.y??0),B=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>Dh(n(),f));od(h,{get x(){return e(A)},get y(){return e(P)},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),qt(i)}var dk=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),uk=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),fk=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>'),pk=S('<span data-workspace-card-pr-item=""><!></span>'),gk=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),vk=S('<span data-workspace-card-time=""><!></span>'),mk=S('<span aria-hidden="true"><!></span>'),hk=S("<div><!> <!> <!> <!></div>"),bk=S('<div data-workspace-card-hover-surface=""><!></div>'),yk=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),_k=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),xk=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>'),wk=S('<div class="text-sm font-semibold truncate"> </div>'),qc=S('<span class="truncate"> </span>'),kk=S('<span class="text-muted-foreground">·</span>'),Sk=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Ik=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Ck=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Ek=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>'),Ak=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Pk=S('<div class="flex items-center text-ui"><span> </span></div>'),Tk=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Rk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Lk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Mk=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 Vu(r,t){if(new.target)return Ht({component:Vu,...r});Ut(t,!0);const n=()=>St(je,"$prMonitors$",c),a=()=>St(Ue,"$microConnected$",c),s=()=>St($,"$hidesOwnerActions$",c),o=()=>St(le,"$workspaceKeySlot$",c),[c,l]=oa();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),A=y(t,"isWaiting",7),P=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),E=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Z=y(t,"onClick",7),Q=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),ce=y(t,"onMarkAsRead",7),oe=y(t,"onOpenInNewWindow",7),ue=y(t,"onHover",7),we=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),fe=y(t,"highlightId",7),ie=y(t,"suppressHover",7,!1),Ne=y(t,"isolateHoverReveal",7,!1),Re=y(t,"class",7),ke=y(t,"actions",7);const _e=$a("");It(()=>{_e.set(f()?.id??"")});const je=jp(_e),Ue=Xh(),le=Cv(_e),$=Wp(_e),Ze=u(()=>Fh(f()??{})),V=u(()=>zh(e(Ze)));let K=u(()=>f()?Yh.url.pathname===`/workspace/${f().id}`:!1),W=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),se=ye(!1),Ce=ye(null),Y=ye(null);It(()=>{if(!e(Y))return;const ee=Ds(e(Y),{id:fe()});return()=>ee.destroy()});let de=ye(null),Ae=ye(null),He=ye(null),tt=ye(0),ge=ye(0),Oe=u(()=>e(tt)+(e(ge)>0?e(ge)+4:0));function q(){const ee=e(de),gt=e(He);L(tt,ee?Math.max(0,ee.scrollWidth-ee.clientWidth):0,!0),L(ge,ee&&gt&&gt.getClientRects().length>0?Math.max(0,ee.getBoundingClientRect().right-gt.getBoundingClientRect().left):0,!0)}It(()=>{const ee=e(de),gt=e(Ae),Dt=e(He);if(!ee||!gt||(q(),typeof ResizeObserver>"u"))return;const ur=new ResizeObserver(q);return ur.observe(ee),ur.observe(gt),Dt&&ur.observe(Dt),()=>ur.disconnect()});let Le=null,ve=null,M=!1,H=!1,me=!1,$e=!1,Pe=!1,ze=!1,X=ye(!1),xe=!1,Ke=null,rt=ye(null),ht=null,We;function mt(){Le!==null&&(clearTimeout(Le),Le=null)}function ot(){ve!==null&&(clearTimeout(ve),ve=null),ht?.(),ht=null}function it(){ot(),L(X,!0),L(se,!0),!Pe&&(Pe=!0,ps.notifyOpened())}function dt(){ot(),clearTimeout(We),L(X,!1),L(se,!1),H=!1,$e=!1,Pe&&(Pe=!1,ps.notifyClosed())}function Gt(){return M||H||me||$e}function Ft(){if(!e(se)){dt();return}ot(),ve=setTimeout(()=>{ve=null,Gt()||dt()},jh),ht=ps.deferClose(dt)}function Jt(){H=!0,ot()}function xt(){H=!1,!me&&!$e&&Ft()}function Vt(){$e=!0,clearTimeout(We),ot()}function Kt(ee){const gt=ee.relatedTarget instanceof Node?ee.relatedTarget:null;if(gt&&pe()?.contains(gt)||($e=!1,gt&&e(Ce)?.contains(gt)))return;if(gt){!M&&!H&&dt();return}const Dt=ee.target;clearTimeout(We),We=setTimeout(()=>{const ur=document.activeElement,_r=pe()?.contains(ur)||e(Ce)?.contains(ur);ur&&ur!==Dt&&_r||!M&&!H&&dt()},0)}function Ct(){Ke!==null&&clearTimeout(Ke),xe=!0,Ke=setTimeout(()=>{xe=!1,Ke=null},0)}function Yt(ee){const gt=ee.target,Dt=pe();gt instanceof Node&&Dt?.contains(gt)||ee.type==="scroll"&&e(Ce)&&gt instanceof Node&&!gt.contains(e(Ce))||(ee.type==="pointerdown"&&Ct(),mt(),dt())}It(()=>{if(e(X))return window.addEventListener("pointerdown",Yt,!0),window.addEventListener("scroll",Yt,!0),()=>{window.removeEventListener("pointerdown",Yt,!0),window.removeEventListener("scroll",Yt,!0)}});function Lt(ee){if(ee.key!=="Escape")return;const gt=ee.target;gt instanceof Node&&pe()?.contains(gt)||(ee.preventDefault(),ee.stopPropagation(),ze=me,mt(),dt())}It(()=>{if(e(se))return window.addEventListener("keydown",Lt,!0),()=>window.removeEventListener("keydown",Lt,!0)});const be=u(()=>f()?qp.select(Nt.state,f().id):null),re=u(()=>e(be)?e(be):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(()=>Up(f())),lt=u(()=>{if(!f()||e(Ve))return[];const ee=f(),gt=ee.repositoryOwner&&ee.repositoryName?`${ee.repositoryOwner}/${ee.repositoryName}`:void 0;return xg({workspacePRs:ee.pullRequests,activePR:e(re),monitors:n(),workspaceRepo:gt,buildPrUrl:(Dt,ur)=>um(Dt,ee.repositoryOwner,ee.repositoryName,ur),getDisplayTitle:Dt=>Dt.title})}),ct=u(()=>e(lt)[0]);function De(ee){const gt=ee.resource?.repository.provider==="gitlab"?`${ee.repo} !${ee.number}`:ee.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:ee.repo,number:ee.number}):v.workspace_card_prBadge_label({number:` #${ee.number}`});return[Vp(gt,ee),ee.title,ee.details].filter(Boolean).join(`
262
262
  `)}function ne(ee){ee.key==="Enter"&&Z()?.(ee)}function pe(){return e(W)?document.getElementById(e(W)):null}function te(){return Array.from(pe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Ee(){const ee=e(Ce)?.querySelector("[data-workspace-card-trigger]"),gt=pe();if(!ee||!gt)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(_r=>_r.tabIndex>=0&&!gt.contains(_r)),ur=Dt.indexOf(ee);return ur>=0?Dt[ur+1]:null}function Se(ee){ze=!!e(Ce)?.contains(ee),dt(),ee.focus({preventScroll:!0})}function Xe(){const ee=e(Ce)?.querySelector("[data-workspace-card-trigger]");ee&&Se(ee)}async function Fe(ee){if(ee.key==="Escape"&&e(se)){ee.preventDefault(),ee.stopPropagation(),dt();return}ee.key!=="ArrowDown"||ie()||!f()||(ee.preventDefault(),ee.stopPropagation(),L(X,!0),L(se,!0),await Xn(),te()[0]?.focus({preventScroll:!0}))}function Ge(ee){const gt=te(),Dt=ee.key==="Tab"&&ee.shiftKey&&ee.currentTarget===gt[0],_r=ee.key==="Tab"&&!ee.shiftKey&&ee.currentTarget===gt.at(-1)?Ee():null;ee.key!=="Escape"&&!Dt&&!_r||(ee.preventDefault(),ee.stopPropagation(),_r?Se(_r):Xe())}function Qe(){M=!0,ot(),ps.settleDeferredCloses(),q(),ue()?.(),f()&&!ie()&&!me&&(mt(),L(X,!0),Le=setTimeout(()=>{Le=null,it()},ps.currentOpenDelay))}function Te(){M=!1,mt(),!me&&!$e&&Ft()}function Je(){me=!0,mt(),ot(),!ze&&(xe||f()&&!ie()&&(L(X,!0),L(se,!0)))}function Be(ee){const gt=ee.relatedTarget instanceof Node?ee.relatedTarget:null;gt&&e(Ce)?.contains(gt)||(ze=!1,me=!1,!(gt&&pe()?.contains(gt))&&!M&&!H&&dt())}It(()=>{ie()&&(mt(),ot(),dt())});let et=ye(null),ft=ye(!1),st;It(()=>{const ee=f()?.id;st!==ee&&(st=ee,L(ft,!1)),e(et)&&e(et).workspaceId!==f()?.id&&_t()});function nt(ee){if(!f())return;const gt=sd(ee);if(gt){if(L(ft,!1),vt().length===0){L(et,null);return}L(et,{...gt,returnFocus:ee.target instanceof HTMLElement?ee.target.closest("button")??e(Ce)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function _t(){L(et,null),L(ft,!1)}It(()=>{e(ft)&&L(et,null)}),Cs(()=>{mt(),ot(),Ke!==null&&(clearTimeout(Ke),Ke=null),dt()});function vt(){if(!f())return[];const ee=[];return oe()&&ee.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:fd,onClick:()=>{oe()?.(),_t()}}),ee.push(...Hh(f().id,{connected:a(),onClose:_t})),s()||(e(Ve)||ee.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Fg,onClick:()=>{Nt.dispatch(cv({workspaceId:f().id,workspaceTitle:f().title})),_t()}}),ee.push({id:"archive",label:v.workspace_card_archive_label(),icon:pd,onClick:()=>{Nt.dispatch(Id(f().id)),_t()}}),ee.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:gd,destructive:!0,onClick:()=>{Nt.dispatch(Cd(f().id)),_t()}})),ee}let Ot=u(()=>O()&&N()?N():i()?.subtitle??""),Xt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),er=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),dr=u(()=>e(Ve)?void 0:J()),jr=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}`:""}):""),nn=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 mn={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 zn={get workspace(){return f()},set workspace(ee){f(ee),_()},get phase(){return i()},set phase(ee){i(ee),_()},get stats(){return p()},set stats(ee){p(ee),_()},get variant(){return g()},set variant(ee="compact"){g(ee),_()},get showTime(){return T()},set showTime(ee=!0){T(ee),_()},get isRunning(){return b()},set isRunning(ee=!1){b(ee),_()},get isUnread(){return h()},set isUnread(ee=!1){h(ee),_()},get isWaiting(){return A()},set isWaiting(ee){A(ee),_()},get isPinned(){return P()},set isPinned(ee=!1){P(ee),_()},get streamingAgentIds(){return B()},set streamingAgentIds(ee=[]){B(ee),_()},get hasSpec(){return F()},set hasSpec(ee=!1){F(ee),_()},get isAgentRunning(){return O()},set isAgentRunning(ee=!1){O(ee),_()},get agentDigest(){return N()},set agentDigest(ee){N(ee),_()},get trailingLabel(){return U()},set trailingLabel(ee){U(ee),_()},get title(){return E()},set title(ee){E(ee),_()},get repoName(){return z()},set repoName(ee){z(ee),_()},get branch(){return J()},set branch(ee){J(ee),_()},get onClick(){return Z()},set onClick(ee){Z(ee),_()},get onAction(){return Q()},set onAction(ee){Q(ee),_()},get onTogglePin(){return Ie()},set onTogglePin(ee){Ie(ee),_()},get onMarkAsRead(){return ce()},set onMarkAsRead(ee){ce(ee),_()},get onOpenInNewWindow(){return oe()},set onOpenInNewWindow(ee){oe(ee),_()},get onHover(){return ue()},set onHover(ee){ue(ee),_()},get highlighted(){return we()},set highlighted(ee=!1){we(ee),_()},get selected(){return G()},set selected(ee=!1){G(ee),_()},get highlightId(){return fe()},set highlightId(ee){fe(ee),_()},get suppressHover(){return ie()},set suppressHover(ee=!1){ie(ee),_()},get isolateHoverReveal(){return Ne()},set isolateHoverReveal(ee=!1){Ne(ee),_()},get class(){return Re()},set class(ee){Re(ee),_()},get actions(){return ke()},set actions(ee){ke(ee),_()},$set:jt,$on:(ee,gt)=>Wt(t,ee,gt)},Un=kt(),da=qe(Un);{var wr=ee=>{var gt=yk(),Dt=qe(gt);let ur;var _r=I(Dt);{let bt=u(()=>f().title||v.workspace_links_untitled_label()),Pt=u(()=>`workspace-status-state-${f().id}${P()?` workspace-pinned-state-${f().id}`:""}${e(se)?` ${e(W)}`:""}`),pr=u(()=>e(K)?"page":void 0);yt(_r,{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(bt)},get"aria-describedby"(){return e(Pt)},get"aria-current"(){return e(pr)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:xr=>{xr.stopPropagation(),Z()?.(xr)}})}var kn=m(_r,2),cn=I(kn);{var Hn=bt=>{var Pt=dk(),pr=I(Pt);{var xr=Pr=>{qu(Pr,{get workspaceId(){return f().id},get slot(){return o()}})};D(pr,Pr=>{o()!==null&&Pr(xr)})}w(Pt),d(bt,Pt)};D(cn,bt=>{a()&&bt(Hn)})}var hn=m(cn,2);Go(hn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(bt,Pt)=>{Bh(bt,{get status(){return e(Ze)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Tn=m(hn,2),Zn=R(Tn,!0);w(kn);var Yr=m(kn,2),dn=I(Yr),Zt=I(dn),an=I(Zt),qn=R(an,!0);mr(an,bt=>L(Ae,bt),()=>e(Ae)),w(Zt),mr(Zt,bt=>L(de,bt),()=>e(de));var kr=m(Zt,2);{var Or=bt=>{var Pt=uk(),pr=qe(Pt),xr=I(pr);At(xr,{get icon(){return Sl},size:"xs"}),w(pr);var Pr=m(pr,2),j=R(Pr,!0);k(Me=>{pt(pr,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
263
- ${Ie()?we()?"opacity-0":ie()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ae(Pr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Me)},[()=>v.layout_activeCard_pinned_header()]),d(bt,Pt)};D(kr,bt=>{P()&&bt(Or)})}w(dn);var un=m(dn,2);{var la=bt=>{var Pt=fk(),pr=R(Pt,!0);k(()=>x(pr,U())),d(bt,Pt)};D(un,bt=>{U()&&bt(la)})}var Xr=m(un,2);{var Zr=bt=>{const Pt=u(()=>e(ct));var pr=gk(),xr=I(pr);{let Pr=u(()=>De(e(Pt)));Go(xr,{get content(){return e(Pr)},side:"bottom",sideOffset:4,children:(j,Me)=>{var ut=kt(),$t=qe(ut);{var fr=gr=>{{let hr=u(()=>De(e(Pt)));yt(gr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:sn=>{sn.stopPropagation();const Vn=f().id;mp(async()=>{const{handleLink:Wr}=await import("./p0H3cxPZ.js").then(Tr=>Tr.H);return{handleLink:Wr}},__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:Wr})=>Wr(e(Pt).url,{workspaceId:Vn,event:sn}))},children:(sn,Vn)=>{At(sn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},sr=gr=>{var hr=pk(),sn=I(hr);At(sn,{get icon(){return e(Pt).statusIcon},size:14}),w(hr),k(Vn=>{pt(hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),ae(hr,"aria-label",Vn),ae(hr,"data-pr-identity",e(Pt).identity),ae(hr,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),d(gr,hr)};D($t,gr=>{e(Pt).url?gr(fr):gr(sr,-1)})}d(j,ut)},$$slots:{default:!0}})}w(pr),k(Pr=>ae(pr,"aria-label",Pr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(bt,pr)};D(Xr,bt=>{e(ct)&&bt(Zr)})}var Br=m(Xr,2);{var Qn=bt=>{var Pt=vk(),pr=I(Pt);{var xr=j=>{{let Me=u(()=>Tl(f()));eg(j,{get date(){return e(Me)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Pr=u(()=>Tl(f())>0);D(pr,j=>{e(Pr)&&j(xr)})}w(Pt),k(()=>pt(Pt,1,`wc-secondary shrink-0 ${ke()||Ie()||h()&&ce()?we()?"opacity-0":ie()?"":Ne()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(bt,Pt)};D(Br,bt=>{T()&&bt(Qn)})}w(Yr);var Pa=m(Yr,2);{var Ba=bt=>{var Pt=hk(),pr=I(Pt);{var xr=fr=>{{let sr=u(()=>P()?"text-primary-ink":"text-muted-foreground"),gr=u(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),hr=u(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{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":ie()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ae(Pr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Me)},[()=>v.layout_activeCard_pinned_header()]),d(bt,Pt)};D(kr,bt=>{P()&&bt(Or)})}w(dn);var un=m(dn,2);{var la=bt=>{var Pt=fk(),pr=R(Pt,!0);k(()=>x(pr,U())),d(bt,Pt)};D(un,bt=>{U()&&bt(la)})}var Xr=m(un,2);{var Zr=bt=>{const Pt=u(()=>e(ct));var pr=gk(),xr=I(pr);{let Pr=u(()=>De(e(Pt)));Go(xr,{get content(){return e(Pr)},side:"bottom",sideOffset:4,children:(j,Me)=>{var ut=kt(),$t=qe(ut);{var fr=gr=>{{let hr=u(()=>De(e(Pt)));yt(gr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:sn=>{sn.stopPropagation();const Vn=f().id;mp(async()=>{const{handleLink:Wr}=await import("./kOvgsK93.js").then(Tr=>Tr.H);return{handleLink:Wr}},__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:Wr})=>Wr(e(Pt).url,{workspaceId:Vn,event:sn}))},children:(sn,Vn)=>{At(sn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},sr=gr=>{var hr=pk(),sn=I(hr);At(sn,{get icon(){return e(Pt).statusIcon},size:14}),w(hr),k(Vn=>{pt(hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),ae(hr,"aria-label",Vn),ae(hr,"data-pr-identity",e(Pt).identity),ae(hr,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),d(gr,hr)};D($t,gr=>{e(Pt).url?gr(fr):gr(sr,-1)})}d(j,ut)},$$slots:{default:!0}})}w(pr),k(Pr=>ae(pr,"aria-label",Pr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(bt,pr)};D(Xr,bt=>{e(ct)&&bt(Zr)})}var Br=m(Xr,2);{var Qn=bt=>{var Pt=vk(),pr=I(Pt);{var xr=j=>{{let Me=u(()=>Tl(f()));eg(j,{get date(){return e(Me)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Pr=u(()=>Tl(f())>0);D(pr,j=>{e(Pr)&&j(xr)})}w(Pt),k(()=>pt(Pt,1,`wc-secondary shrink-0 ${ke()||Ie()||h()&&ce()?we()?"opacity-0":ie()?"":Ne()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(bt,Pt)};D(Br,bt=>{T()&&bt(Qn)})}w(Yr);var Pa=m(Yr,2);{var Ba=bt=>{var Pt=hk(),pr=I(Pt);{var xr=fr=>{{let sr=u(()=>P()?"text-primary-ink":"text-muted-foreground"),gr=u(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),hr=u(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{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(sr)??""}`},onclick:sn=>{sn.stopPropagation(),Ie()?.(sn)},get"aria-label"(){return e(gr)},get title(){return e(hr)},children:(sn,Vn)=>{var Wr=mk(),Tr=I(Wr);At(Tr,{get icon(){return Sl},size:"xs"}),w(Wr),d(sn,Wr)},$$slots:{default:!0}})}};D(pr,fr=>{Ie()&&fr(xr)})}var Pr=m(pr,2);{var j=fr=>{{let sr=u(()=>v.workspace_card_markAsRead_label()),gr=u(()=>v.workspace_card_markAsRead_label());yt(fr,{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:hr=>{hr.stopPropagation(),ce()?.(hr)},get"aria-label"(){return e(sr)},get title(){return e(gr)},children:(hr,sn)=>{At(hr,{get icon(){return vd},size:"xs"})},$$slots:{default:!0}})}};D(Pr,fr=>{h()&&ce()&&fr(j)})}var Me=m(Pr,2);ln(Me,()=>ke()??Ks);var ut=m(Me,2);{var $t=fr=>{{let sr=u(vt),gr=u(()=>v.workspace_progressCard_actions_ariaLabel());Ui(fr,{get items(){return e(sr)},get ariaLabel(){return e(gr)},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(ft)},set open(hr){L(ft,hr,!0)}})}};D(ut,fr=>{oe()&&fr($t)})}w(Pt),mr(Pt,fr=>L(He,fr),()=>e(He)),k(()=>pt(Pt,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":ie()?"opacity-0":Ne()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(bt,Pt)};D(Pa,bt=>{(ke()||oe()||Ie()||h()&&ce())&&bt(Ba)})}w(Dt),mr(Dt,bt=>L(Ce,bt),()=>e(Ce)),Fn(Dt,(bt,Pt)=>Ds?.(bt,Pt),()=>({id:fe()}));var Qr=m(Dt,2);{var $r=bt=>{Wh(bt,{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:Jt,onmouseleave:xt,onfocusin:Vt,onfocusout:Kt,children:(Pt,pr)=>{var xr=bk(),Pr=I(xr);Uh(Pr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:Ge}),w(xr),mr(xr,j=>L(rt,j),()=>e(rt)),En("pointerenter",xr,Jt),En("pointerleave",xr,xt),Mr("focusin",xr,Vt),Mr("focusout",xr,Kt),d(Pt,xr)},$$slots:{default:!0}})};D(Qr,bt=>{e(se)&&!ie()&&bt($r)})}var Rn=m(Qr,2);{var $n=bt=>{const Pt=u(vt);var pr=kt(),xr=qe(pr);{var Pr=j=>{{let Me=u(()=>e(et)?.x??0),ut=u(()=>e(et)?.y??0),$t=u(()=>e(et)?.returnFocus),fr=u(()=>v.workspace_progressCard_actions_ariaLabel());od(j,{get x(){return e(Me)},get y(){return e(ut)},get returnFocus(){return e($t)},get ariaLabel(){return e(fr)},get items(){return e(Pt)},onClickOutside:_t})}};D(xr,j=>{e(Pt).length>0&&j(Pr)})}d(bt,pr)};D(Rn,bt=>{e(et)&&bt($n)})}k((bt,Pt,pr)=>{pt(Dt,1,bt,"svelte-1ct56pd"),ae(Dt,"data-pinned",P()),ae(Dt,"data-highlight-id",fe()),ur=Pn(Dt,"",ur,{"anchor-name":`--workspace-list-${f().id??""}`}),ae(Tn,"id",`workspace-status-state-${f().id??""}`),x(Zn,e(V).accessibleName),pt(Zt,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{g as fe}from"./DYtEQxiY.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./DIH3MXC5.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];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:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./DgPKRk-d.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./kwSDV9fJ.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];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:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),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(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./DIH3MXC5.js";import{b as Xt,l as Yt}from"./Dcujlo_J.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
1
+ import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./kwSDV9fJ.js";import{b as Xt,l as Yt}from"./SYyiTNGD.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(L==Vt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:At,expected:ft})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(B[0]){case 1:u.push(L),S.push(D.yytext),o.push(D.yylloc),u.push(B[1]),L=null,zt=D.yyleng,p=D.yytext,dt=D.yylineno,At=D.yylloc;break;case 2:if(N=this.productions_[B[1]][1],j.$=S[S.length-N],j._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},xi&&(j._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),wt=this.performAction.apply(j,[p,zt,dt,$.yy,B[1],S,o].concat(di)),typeof wt<"u")return wt;N&&(u=u.slice(0,-1*N*2),S=S.slice(0,-1*N),o=o.slice(0,-1*N)),u.push(this.productions_[B[1]][0]),S.push(j.$),o.push(j._$),Wt=lt[u[u.length-2]][u[u.length-1]],u.push(Wt);break;case 3:return!0}}return!0},"parse")},rt=(function(){var O={EOF:1,parseError:n(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:n(function(r,g){return this.yy=g||this.yy||{},this._input=r,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:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=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),u.length-1&&(this.yylineno-=u.length-1);var S=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as ae}from"./D4xmUMRQ.js";import{s as ce}from"./BoT3QZNN.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./DIH3MXC5.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},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,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
1
+ import{g as ae}from"./BYhv5ULD.js";import{s as ce}from"./CEeOHP8e.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./kwSDV9fJ.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},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,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;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),o.length-1&&(this.yylineno-=o.length-1);var f=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`