@intent-hq/web 2.346.7 → 2.347.0

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 (143) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{FLqL4ipM.js → -63ap9eC.js} +1 -1
  3. package/web/app/immutable/chunks/{BsK6wYXS.js → 3vPW6DPL.js} +1 -1
  4. package/web/app/immutable/chunks/{D9JU74lv.js → 7UJfw_Ip.js} +1 -1
  5. package/web/app/immutable/chunks/{l0ISWt9F.js → 8AI-DblB.js} +2 -2
  6. package/web/app/immutable/chunks/{Deeg9Eu-.js → 8Rg35Sr_.js} +1 -1
  7. package/web/app/immutable/chunks/{BeQgENlX.js → 8y_Q4Ch2.js} +2 -2
  8. package/web/app/immutable/chunks/{B71JNHWD.js → A0qxWlj8.js} +1 -1
  9. package/web/app/immutable/chunks/{DDd0mrO_.js → B-XyTu04.js} +1 -1
  10. package/web/app/immutable/chunks/{B_keSK2s.js → B06d_ovS.js} +1 -1
  11. package/web/app/immutable/chunks/{DsfybZhj.js → B3ZEXIGJ.js} +1 -1
  12. package/web/app/immutable/chunks/{cuI1HNig.js → B5H40CZc.js} +1 -1
  13. package/web/app/immutable/chunks/{CHoHyRl1.js → B6FGKpI6.js} +1 -1
  14. package/web/app/immutable/chunks/{CQdlmcpA.js → B9kWU728.js} +1 -1
  15. package/web/app/immutable/chunks/{nhXrKuzk.js → BCToJgkv.js} +2 -2
  16. package/web/app/immutable/chunks/{BZXx4oAF.js → BCodcgR6.js} +1 -1
  17. package/web/app/immutable/chunks/{DGPt1Rmr.js → BDzSu1xv.js} +1 -1
  18. package/web/app/immutable/chunks/{CQGCQvNO.js → BFLrA-xP.js} +1 -1
  19. package/web/app/immutable/chunks/{BS2rXad-.js → BHnGBW7K.js} +1 -1
  20. package/web/app/immutable/chunks/{CqX9OYLx.js → BJaSJQAK.js} +1 -1
  21. package/web/app/immutable/chunks/{CzTOJ-RC.js → BRXAI9iX.js} +1 -1
  22. package/web/app/immutable/chunks/{Bps4iLJn.js → BSXAflgO.js} +4 -4
  23. package/web/app/immutable/chunks/{Cj2RYqvI.js → BTmwOa4k.js} +1 -1
  24. package/web/app/immutable/chunks/{CvOEFHIi.js → Bexsu_yM.js} +1 -1
  25. package/web/app/immutable/chunks/{Dys6C3u0.js → BfU4NYB1.js} +1 -1
  26. package/web/app/immutable/chunks/{CsdYTvLa.js → BgXA9zqk.js} +1 -1
  27. package/web/app/immutable/chunks/{B-VSh3wf.js → Bome2C7z.js} +1 -1
  28. package/web/app/immutable/chunks/{DPWE7gCc.js → BpC_WiOJ.js} +1 -1
  29. package/web/app/immutable/chunks/{BXe1baKr.js → BqGhBQEL.js} +1 -1
  30. package/web/app/immutable/chunks/{CNe7onyb.js → BvsXY70Q.js} +1 -1
  31. package/web/app/immutable/chunks/{BTLLp91d.js → C-ASrdVS.js} +1 -1
  32. package/web/app/immutable/chunks/{Hd61r63s.js → C1ovolmS.js} +1 -1
  33. package/web/app/immutable/chunks/{BMAqdXv7.js → C23fQRUj.js} +1 -1
  34. package/web/app/immutable/chunks/{DBLNxGLo.js → C3lXYtZ6.js} +2 -2
  35. package/web/app/immutable/chunks/{CKLDoMvu.js → C5YJxA2w.js} +1 -1
  36. package/web/app/immutable/chunks/{DdHWhFZW.js → C7pBHnW1.js} +1 -1
  37. package/web/app/immutable/chunks/{Chj4eExC.js → CAHBbuXF.js} +1 -1
  38. package/web/app/immutable/chunks/{Bz3o8mDx.js → CBMERMqL.js} +1 -1
  39. package/web/app/immutable/chunks/{B4rPFvYB.js → CFd9O0Cg.js} +1 -1
  40. package/web/app/immutable/chunks/{CqPWbhqQ.js → CFxMokfO.js} +1 -1
  41. package/web/app/immutable/chunks/{B9W8KfsY.js → CHNDdZ2o.js} +1 -1
  42. package/web/app/immutable/chunks/{C_8_aIYH.js → CKshi8sc.js} +1 -1
  43. package/web/app/immutable/chunks/{DkrbZVri.js → CNjH60oE.js} +3 -3
  44. package/web/app/immutable/chunks/{wZy9ojGD.js → COCWaEg3.js} +1 -1
  45. package/web/app/immutable/chunks/{CUs0opCC.js → CYJlmWJC.js} +1 -1
  46. package/web/app/immutable/chunks/{BFM5w46H.js → CZ8GilqG.js} +2 -2
  47. package/web/app/immutable/chunks/{DpR5pCWV.js → Ce1Plj-G.js} +1 -1
  48. package/web/app/immutable/chunks/{BvsWgdDN.js → CeFXvq0X.js} +1 -1
  49. package/web/app/immutable/chunks/{BlT4teVV.js → Cea00daJ.js} +4 -4
  50. package/web/app/immutable/chunks/{DgI1Tl0-.js → CfuIL6RH.js} +1 -1
  51. package/web/app/immutable/chunks/{Bzwi2DK9.js → Cgjivn5r.js} +1 -1
  52. package/web/app/immutable/chunks/{DAdnLTte.js → CiY6-UV7.js} +1 -1
  53. package/web/app/immutable/chunks/{QCacuydi.js → Cibh_Bcr.js} +1 -1
  54. package/web/app/immutable/chunks/{CbVy_SFp.js → Cj9I09fo.js} +1 -1
  55. package/web/app/immutable/chunks/{uNdiTdeS.js → Cnl1t07b.js} +1 -1
  56. package/web/app/immutable/chunks/{BlFd81-v.js → Co26Bq_J.js} +1 -1
  57. package/web/app/immutable/chunks/{DqbmScxl.js → CoP_yJak.js} +1 -1
  58. package/web/app/immutable/chunks/{Birl2IVg.js → CpdNExym.js} +1 -1
  59. package/web/app/immutable/chunks/{CuMYCRBc.js → CrGAq4H_.js} +1 -1
  60. package/web/app/immutable/chunks/{COluFRpM.js → CshQ__z9.js} +1 -1
  61. package/web/app/immutable/chunks/{HxiDYrBi.js → CvS-4PUY.js} +2 -2
  62. package/web/app/immutable/chunks/{m-YSnsRn.js → CwD0lr-2.js} +1 -1
  63. package/web/app/immutable/chunks/{Bdc65NEQ.js → CyWS2Glk.js} +1 -1
  64. package/web/app/immutable/chunks/{CyIRNhfo.js → D-EOSNnU.js} +1 -1
  65. package/web/app/immutable/chunks/{Dj3yCQKZ.js → D0d_9jrh.js} +1 -1
  66. package/web/app/immutable/chunks/{BwRzklL-.js → D1Iyf4wS.js} +1 -1
  67. package/web/app/immutable/chunks/{87nhMNcH.js → D2zXfcJK.js} +4 -4
  68. package/web/app/immutable/chunks/{CCm4GqAl.js → D5CQPZ-K.js} +1 -1
  69. package/web/app/immutable/chunks/{CYgkTCkB.js → D5Rbr5zM.js} +1 -1
  70. package/web/app/immutable/chunks/{D39kn1Kj.js → D5ZuOKHT.js} +1 -1
  71. package/web/app/immutable/chunks/{CrDXkRmL.js → D6A9_vDu.js} +3 -3
  72. package/web/app/immutable/chunks/{B7WyDdGX.js → D7zfTd5t.js} +1 -1
  73. package/web/app/immutable/chunks/{CZlx42aK.js → D8V7XhXe.js} +1 -1
  74. package/web/app/immutable/chunks/{BNVmW1uZ.js → D8XBViJY.js} +1 -1
  75. package/web/app/immutable/chunks/{Bqoh360O.js → DHT7J7Js.js} +1 -1
  76. package/web/app/immutable/chunks/{D5XNO0iw.js → DJrrELVL.js} +12 -12
  77. package/web/app/immutable/chunks/{DIo6dt4D.js → DLzQUqNo.js} +1 -1
  78. package/web/app/immutable/chunks/{CT1ksaco.js → DNw7QdU7.js} +1 -1
  79. package/web/app/immutable/chunks/{vYw2RcgV.js → DTEaseZz.js} +1 -1
  80. package/web/app/immutable/chunks/{OzS1Lc27.js → DUWkXLOd.js} +1 -1
  81. package/web/app/immutable/chunks/{K8bSaOgl.js → DUa1p4uN.js} +1 -1
  82. package/web/app/immutable/chunks/{BDPOc7V6.js → DVA1GZLk.js} +2 -2
  83. package/web/app/immutable/chunks/{B4kTYcAj.js → DVwNgKgZ.js} +1 -1
  84. package/web/app/immutable/chunks/{i_NTivOk.js → DW8UorQb.js} +1 -1
  85. package/web/app/immutable/chunks/{ZbRk-UkQ.js → DWRqOTrW.js} +1 -1
  86. package/web/app/immutable/chunks/{DIzQd2Pc.js → DY63MDXt.js} +1 -1
  87. package/web/app/immutable/chunks/{7uDreJHE.js → DZMUAvgZ.js} +1 -1
  88. package/web/app/immutable/chunks/{CoxfoefW.js → DZOdNy1D.js} +1 -1
  89. package/web/app/immutable/chunks/{izSb4qrH.js → Dcxk2HXV.js} +1 -1
  90. package/web/app/immutable/chunks/{BFCqCX6w.js → DmPUdZ3Q.js} +3 -3
  91. package/web/app/immutable/chunks/{DBtReqdq.js → Dm_IQuLE.js} +1 -1
  92. package/web/app/immutable/chunks/{Ca-HFDl4.js → Do5uNKTH.js} +1 -1
  93. package/web/app/immutable/chunks/{DaGPt6aR.js → Dv4iYk9h.js} +1 -1
  94. package/web/app/immutable/chunks/{CvfICP_e.js → DwZLkU8c.js} +3 -3
  95. package/web/app/immutable/chunks/{D26xAGUV.js → DwvuAG4t.js} +2 -2
  96. package/web/app/immutable/chunks/{DJtfG0d7.js → GsRDe2p3.js} +1 -1
  97. package/web/app/immutable/chunks/{aKDMgeHa.js → HWvfoiK6.js} +1 -1
  98. package/web/app/immutable/chunks/{B_zHVi1K.js → I6o8TiNz.js} +1 -1
  99. package/web/app/immutable/chunks/{COnjfEGr.js → IExBSK_M.js} +1 -1
  100. package/web/app/immutable/chunks/{C-ed1TQP.js → IcPxPcX-.js} +1 -1
  101. package/web/app/immutable/chunks/{D8rDmkBS.js → KGMkdJBG.js} +1 -1
  102. package/web/app/immutable/chunks/{Dijipve3.js → LCPglP62.js} +1 -1
  103. package/web/app/immutable/chunks/{CiOVJ92X.js → NyoYNSfo.js} +1 -1
  104. package/web/app/immutable/chunks/{DzaZjwWE.js → OqhgDTXY.js} +4 -4
  105. package/web/app/immutable/chunks/{DRfFNuAv.js → R-CMYrkV.js} +1 -1
  106. package/web/app/immutable/chunks/{CsP3_IiP.js → ShYFbWtr.js} +1 -1
  107. package/web/app/immutable/chunks/{-e8CXeVs.js → Swl7IApi.js} +1 -1
  108. package/web/app/immutable/chunks/{CZh3YXGa.js → UZJ0dJRK.js} +1 -1
  109. package/web/app/immutable/chunks/{CZZEgzPG.js → brB_NIwC.js} +1 -1
  110. package/web/app/immutable/chunks/{C77WGAqb.js → f7r6le4G.js} +1 -1
  111. package/web/app/immutable/chunks/{CTznmnCI.js → fYhwAE93.js} +1 -1
  112. package/web/app/immutable/chunks/{CpAH86bK.js → hX-OZN0i.js} +1 -1
  113. package/web/app/immutable/chunks/{BvJvc00D.js → j03gUU4X.js} +1 -1
  114. package/web/app/immutable/chunks/{AXGmKfvU.js → jAHMhnMc.js} +1 -1
  115. package/web/app/immutable/chunks/{Exl2b2cW.js → kyMTJNuw.js} +3 -3
  116. package/web/app/immutable/chunks/{CruURYIo.js → o3jOtuia.js} +1 -1
  117. package/web/app/immutable/chunks/{zapl_pAB.js → pxtIOzW5.js} +1 -1
  118. package/web/app/immutable/chunks/{DbwBDRhB.js → rs-RYNIi.js} +1 -1
  119. package/web/app/immutable/chunks/{CW7SMyin.js → uFoHkMz6.js} +1 -1
  120. package/web/app/immutable/chunks/{Cc2zTL0w.js → wEFvEgas.js} +1 -1
  121. package/web/app/immutable/chunks/{BkihpvKL.js → ygGiV4X4.js} +1 -1
  122. package/web/app/immutable/chunks/{DYR-Lw2g.js → yn0j-qtB.js} +2 -2
  123. package/web/app/immutable/chunks/{CoyCN9J6.js → ypvyHpvy.js} +1 -1
  124. package/web/app/immutable/chunks/{DQOXI0aG.js → z0THiDZt.js} +1 -1
  125. package/web/app/immutable/chunks/{hoB_B0gc.js → z6m7Hf_8.js} +1 -1
  126. package/web/app/immutable/entry/{app.DvMxHwjm.js → app.Cd11uBIX.js} +2 -2
  127. package/web/app/immutable/entry/start.ChZJ_zaA.js +1 -0
  128. package/web/app/immutable/nodes/{0.CSBCH_h-.js → 0.CxALuoZA.js} +1 -1
  129. package/web/app/immutable/nodes/{1.BJSseA5f.js → 1.CdmURYms.js} +1 -1
  130. package/web/app/immutable/nodes/{10.BdrqBgeF.js → 10.LnnE_0Us.js} +1 -1
  131. package/web/app/immutable/nodes/{14.DMwnrSCT.js → 14.BqJxIbCU.js} +1 -1
  132. package/web/app/immutable/nodes/{18.-WSN77ch.js → 18.Cwxosn8e.js} +2 -2
  133. package/web/app/immutable/nodes/{2.guxMA4od.js → 2.CGw4EX8e.js} +4 -4
  134. package/web/app/immutable/nodes/{3.0mLDvvZX.js → 3.PVWbg47Y.js} +1 -1
  135. package/web/app/immutable/nodes/{4.C3jl9cd0.js → 4.3KSZXrBw.js} +1 -1
  136. package/web/app/immutable/nodes/{5.DNZ2mydt.js → 5.tK-f5DYn.js} +1 -1
  137. package/web/app/immutable/nodes/{6.BhCpj7WE.js → 6.YpPJYb1f.js} +1 -1
  138. package/web/app/immutable/nodes/{7.Btgbvayk.js → 7.Bj8WDtcU.js} +1 -1
  139. package/web/app/immutable/nodes/{8.BEZLI5FY.js → 8.DKXPxMI3.js} +4 -4
  140. package/web/app/immutable/nodes/{9.DOOOdUl6.js → 9.CX93LTMc.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/entry/start.CdInQEt-.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as Fe}from"./BZXx4oAF.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./BlT4teVV.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
1
+ import{g as Fe}from"./BCodcgR6.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./Cea00daJ.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(F+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(v[0]){case 1:l.push(N),E.push(D.yytext),r.push(D.yylloc),l.push(v[1]),N=null,Y=D.yyleng,n=D.yytext,F=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[v[1]][1],M.$=E[E.length-B],M._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Re&&(M._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),ee=this.performAction.apply(M,[n,Y,F,z.yy,v[1],E,r].concat(Z)),typeof ee<"u")return ee;B&&(l=l.slice(0,-1*B*2),E=E.slice(0,-1*B),r=r.slice(0,-1*B)),l.push(this.productions_[v[1]][0]),E.push(M.$),r.push(M._$),pe=K[l[l.length-2]][l[l.length-1]],l.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var C={EOF:1,parseError:u(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:u(function(d,i){return this.yy=i||this.yy||{},this._input=d,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:u(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var i=d.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),d},"input"),unput:u(function(d){var i=d.length,l=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=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),l.length-1&&(this.yylineno-=l.length-1);var E=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(d){this.unput(this.match.slice(d))},"less"),pastInput:u(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var d=this.pastInput(),i=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as Ni}from"./CQGCQvNO.js";import{s as Ci}from"./BkihpvKL.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./BlT4teVV.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
1
+ import{g as Ni}from"./BFLrA-xP.js";import{s as Ci}from"./ygGiV4X4.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./Cea00daJ.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
2
2
  `),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
3
3
  `),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
4
4
  `);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -1 +1 @@
1
- import{b as i}from"./BlT4teVV.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
1
+ import{b as i}from"./Cea00daJ.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
@@ -1 +1 @@
1
- import{a$ as Ft,aA as Rt,a1 as Je}from"./DzaZjwWE.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as H,a7 as q,ay as x,be as Pe,am as Re,ax as Ae}from"./DYhIMPy1.js";import{t as Ut,bq as F,by as jt,bu as Qe,bs as zt,b as Mt,bo as d}from"./Y9-4hTF9.js";import{i as D}from"./BL2lJmRT.js";import{k as Ve}from"./C6vwP-ay.js";import{s as Xe}from"./CrWhihJ_.js";import{I as Q,b as Ze,D as le}from"./BLgIfeYS.js";import{g as Ee,f as et,s as tt}from"./cFbB-5Cu.js";import{F as $t,bk as qt,aJ as Kt,cF as Yt,ci as Gt}from"./Mc93eSxl.js";import{k as Ht}from"./Bv2KudWv.js";import{f as Be}from"./q6hitSEG.js";import"./DOH10_LL.js";import"./ChTqQfQN.js";import"./DU9Ky5os.js";import"./tU_ZJtMw.js";import{q as Jt,h as Qt,S as Vt}from"./zapl_pAB.js";import{O as We}from"./K8bSaOgl.js";import{bQ as Xt,D as Zt,z as ea}from"./DAdnLTte.js";import{d as ta}from"./DpR5pCWV.js";import{s as aa,f as ra,c as at}from"./hUKBOWr5.js";function Ma(M){let C=0,$=!1;function _e(I){$!==I&&($=I,M.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return M.isEnabled&&!M.isEnabled()?!1:Rt(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const Y=Ft(I.dataTransfer);(Y.files.length>0||Y.folderFiles.length>0)&&M.onDrop(Y)},reset:pe}}const lt=Symbol("panel-file-drop-context");function $a(){let M=it(null);const C={register($){Le(M,$)},unregister($){_(M)===$&&Le(M,null)}};return At(lt,C),{context:C,handler:{get current(){return _(M)}}}}function qa(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(M,C){if(new.target)return Ut({component:Ca,...M});Bt(C,!0);const $=()=>Qe(dt,"$progressEntry$",pe),_e=()=>Qe(_t,"$specialists$",pe),[pe,ae]=zt();let I=F(C,"repoName",7),Y=F(C,"repoPath",7),G=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),K=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),V=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),X=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Xt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return V()&&i.push(V()),i.push(ge()),i}),Te=S(()=>_(je).length),ze=S(()=>_(je).filter(i=>i==="done").length),Me=S(()=>Math.min(_(ze)+1,_(Te))),Se=S(()=>_(ze)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Ht.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return Y()},set repoPath(i){Y(i),O()},get worktreePath(){return G()},set worktreePath(i){G(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return K()},set branch(i){K(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return V()},set setupScriptStatus(i){V(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return X()},set skipIsolation(i=!1){X(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,R)=>Mt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Ve(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=z=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(z,B)},be=z=>{var B=A();u(()=>l(B,_($e))),o(z,B)};D(Z,z=>{_(Se)?z(me):z(be,-1)})}L(R),Q(1,R,()=>Ze,()=>({tier:"slow",distance:3})),Q(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Ve(me,()=>_(Me),z=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(Me))),Q(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(z,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};D(xt,i=>{_(Se)||i(ht)})}L(ke);var qe=c(ke,2);{const i=(f,m=H,y=H,k=H,w=H,b=H)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Vt(T,{}),L(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Xe(T,w),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Xe(T,b),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Qt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),Q(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=q(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),Y,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{Y()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=q(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&$()?n(k):X()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=q(),y=x(m);{var k=n=>{const t=S(()=>G()||Y());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));z(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let J=S(()=>Oe(G()));z(j,()=>_(J),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};D(s,v=>{G()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(G()));z(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};D(r,g=>{G()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):X()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,K()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,K()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},z=(f,m=H,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=H,y=H,k=H,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{z(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,K,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,K,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Je(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var J=A();u(he=>l(J,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,J)},$$slots:{default:!0}})},content:T=>{var j=q(),ee=x(j);{var J=he=>{var He=ma(),Ot=E(He,!0);u(()=>l(Ot,Ce())),o(he,He)};D(ee,he=>{Ce()&&he(J)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(J=>l(ee,J),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Je(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=q(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var Ke=W(qe);{var Ct=f=>{i(f,se,()=>qt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(Ke,f=>{se()!=="pending"&&f(Ct)})}var Ye=c(Ke,2);{var wt=f=>{i(f,ue,()=>Kt,()=>"",()=>be,()=>xe)};D(Ye,f=>{ue()!=="pending"&&!X()&&!oe()&&f(wt)})}var Ge=c(Ye,2);{var St=f=>{i(f,V,()=>Yt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(Ge,f=>{V()&&V()!=="pending"&&f(St)})}var yt=c(Ge,2);{var kt=f=>{i(f,ge,()=>Gt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}L(qe)}L(ye),u(()=>et(ye,1,`${Jt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(M,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,$a as a,Ma as c,qa as g};
1
+ import{a$ as Ft,aA as Rt,a1 as Je}from"./OqhgDTXY.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as H,a7 as q,ay as x,be as Pe,am as Re,ax as Ae}from"./DYhIMPy1.js";import{t as Ut,bq as F,by as jt,bu as Qe,bs as zt,b as Mt,bo as d}from"./Y9-4hTF9.js";import{i as D}from"./BL2lJmRT.js";import{k as Ve}from"./C6vwP-ay.js";import{s as Xe}from"./CrWhihJ_.js";import{I as Q,b as Ze,D as le}from"./BLgIfeYS.js";import{g as Ee,f as et,s as tt}from"./cFbB-5Cu.js";import{F as $t,bk as qt,aJ as Kt,cF as Yt,ci as Gt}from"./Mc93eSxl.js";import{k as Ht}from"./Bv2KudWv.js";import{f as Be}from"./q6hitSEG.js";import"./DOH10_LL.js";import"./ChTqQfQN.js";import"./DU9Ky5os.js";import"./tU_ZJtMw.js";import{q as Jt,h as Qt,S as Vt}from"./pxtIOzW5.js";import{O as We}from"./DUa1p4uN.js";import{bQ as Xt,D as Zt,z as ea}from"./CiY6-UV7.js";import{d as ta}from"./Ce1Plj-G.js";import{s as aa,f as ra,c as at}from"./hUKBOWr5.js";function Ma(M){let C=0,$=!1;function _e(I){$!==I&&($=I,M.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return M.isEnabled&&!M.isEnabled()?!1:Rt(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const Y=Ft(I.dataTransfer);(Y.files.length>0||Y.folderFiles.length>0)&&M.onDrop(Y)},reset:pe}}const lt=Symbol("panel-file-drop-context");function $a(){let M=it(null);const C={register($){Le(M,$)},unregister($){_(M)===$&&Le(M,null)}};return At(lt,C),{context:C,handler:{get current(){return _(M)}}}}function qa(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(M,C){if(new.target)return Ut({component:Ca,...M});Bt(C,!0);const $=()=>Qe(dt,"$progressEntry$",pe),_e=()=>Qe(_t,"$specialists$",pe),[pe,ae]=zt();let I=F(C,"repoName",7),Y=F(C,"repoPath",7),G=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),K=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),V=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),X=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Xt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return V()&&i.push(V()),i.push(ge()),i}),Te=S(()=>_(je).length),ze=S(()=>_(je).filter(i=>i==="done").length),Me=S(()=>Math.min(_(ze)+1,_(Te))),Se=S(()=>_(ze)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Ht.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return Y()},set repoPath(i){Y(i),O()},get worktreePath(){return G()},set worktreePath(i){G(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return K()},set branch(i){K(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return V()},set setupScriptStatus(i){V(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return X()},set skipIsolation(i=!1){X(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,R)=>Mt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Ve(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=z=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(z,B)},be=z=>{var B=A();u(()=>l(B,_($e))),o(z,B)};D(Z,z=>{_(Se)?z(me):z(be,-1)})}L(R),Q(1,R,()=>Ze,()=>({tier:"slow",distance:3})),Q(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Ve(me,()=>_(Me),z=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(Me))),Q(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(z,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};D(xt,i=>{_(Se)||i(ht)})}L(ke);var qe=c(ke,2);{const i=(f,m=H,y=H,k=H,w=H,b=H)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Vt(T,{}),L(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Xe(T,w),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Xe(T,b),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Qt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),Q(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=q(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),Y,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{Y()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=q(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&$()?n(k):X()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=q(),y=x(m);{var k=n=>{const t=S(()=>G()||Y());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));z(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let J=S(()=>Oe(G()));z(j,()=>_(J),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};D(s,v=>{G()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(G()));z(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};D(r,g=>{G()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):X()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,K()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,K()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},z=(f,m=H,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=H,y=H,k=H,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{z(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,K,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,K,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Je(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var J=A();u(he=>l(J,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,J)},$$slots:{default:!0}})},content:T=>{var j=q(),ee=x(j);{var J=he=>{var He=ma(),Ot=E(He,!0);u(()=>l(Ot,Ce())),o(he,He)};D(ee,he=>{Ce()&&he(J)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(J=>l(ee,J),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Je(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=q(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var Ke=W(qe);{var Ct=f=>{i(f,se,()=>qt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(Ke,f=>{se()!=="pending"&&f(Ct)})}var Ye=c(Ke,2);{var wt=f=>{i(f,ue,()=>Kt,()=>"",()=>be,()=>xe)};D(Ye,f=>{ue()!=="pending"&&!X()&&!oe()&&f(wt)})}var Ge=c(Ye,2);{var St=f=>{i(f,V,()=>Yt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(Ge,f=>{V()&&V()!=="pending"&&f(St)})}var yt=c(Ge,2);{var kt=f=>{i(f,ge,()=>Gt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}L(qe)}L(ye),u(()=>et(ye,1,`${Jt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(M,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,$a as a,Ma as c,qa as g};
@@ -1,4 +1,4 @@
1
- import{p as I}from"./-e8CXeVs.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./BlT4teVV.js";import{p as U}from"./CUxXMHrG.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./Swl7IApi.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./Cea00daJ.js";import{p as U}from"./CUxXMHrG.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1 +1 @@
1
- import{t as N,bq as m,by as O,b as R,bo as W}from"./Y9-4hTF9.js";import{bs as T,a7 as U,ay as Y,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as L,bA as P,bS as Q,aD as V,aB as A,c9 as X,aG as Z,bI as tt}from"./DYhIMPy1.js";import{i as C}from"./BL2lJmRT.js";import{E as S}from"./BS8Oxiwq.js";import"./cFbB-5Cu.js";import"./-CHLoCv2.js";import"./DOH10_LL.js";import{f as z}from"./q6hitSEG.js";import{F as et,$ as at,bL as ot}from"./Mc93eSxl.js";import"./CrWhihJ_.js";import{I as st}from"./BZQDFgmp.js";import{e as nt,b as rt}from"./BTLLp91d.js";var it=A('<span aria-hidden="true"><!></span>'),lt=A('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return N({component:ct,...g});T(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var E={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:O,$on:(t,k)=>R(n,t,k)},H=U(),I=Y(H);{var B=t=>{S(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=L(r);st(e,{size:16}),P(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>W.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{S(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=L(a);{var q=i=>{z(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,K)=>{p();var c=f();u(y=>d(c,y),[()=>W.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(q)})}var D=Q(l,2);{var G=i=>{z(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,K)=>{p();var c=f();u(y=>d(c,y),[()=>W.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(D,i=>{b()&&i(G)})}P(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C(I,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(E)}const $=Symbol("workspace-home-panel");function kt(g){tt($,g)}function Mt(){return Z($)}export{ct as W,Mt as g,kt as s};
1
+ import{t as N,bq as m,by as O,b as R,bo as W}from"./Y9-4hTF9.js";import{bs as T,a7 as U,ay as Y,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as L,bA as P,bS as Q,aD as V,aB as A,c9 as X,aG as Z,bI as tt}from"./DYhIMPy1.js";import{i as C}from"./BL2lJmRT.js";import{E as S}from"./BS8Oxiwq.js";import"./cFbB-5Cu.js";import"./-CHLoCv2.js";import"./DOH10_LL.js";import{f as z}from"./q6hitSEG.js";import{F as et,$ as at,bL as ot}from"./Mc93eSxl.js";import"./CrWhihJ_.js";import{I as st}from"./BZQDFgmp.js";import{e as nt,b as rt}from"./C-ASrdVS.js";var it=A('<span aria-hidden="true"><!></span>'),lt=A('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return N({component:ct,...g});T(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var E={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:O,$on:(t,k)=>R(n,t,k)},H=U(),I=Y(H);{var B=t=>{S(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=L(r);st(e,{size:16}),P(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>W.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{S(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=L(a);{var q=i=>{z(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,K)=>{p();var c=f();u(y=>d(c,y),[()=>W.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(q)})}var D=Q(l,2);{var G=i=>{z(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,K)=>{p();var c=f();u(y=>d(c,y),[()=>W.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(D,i=>{b()&&i(G)})}P(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C(I,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(E)}const $=Symbol("workspace-home-panel");function kt(g){tt($,g)}function Mt(){return Z($)}export{ct as W,Mt as g,kt as s};
@@ -1 +1 @@
1
- import{g as o,r as l,d as t}from"./CYgkTCkB.js";import{p as m}from"./-e8CXeVs.js";import{b as n,ay as s}from"./BlT4teVV.js";import{M as p,d as u}from"./CUxXMHrG.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
1
+ import{g as o,r as l,d as t}from"./D5Rbr5zM.js";import{p as m}from"./Swl7IApi.js";import{b as n,ay as s}from"./Cea00daJ.js";import{M as p,d as u}from"./CUxXMHrG.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
@@ -1,4 +1,4 @@
1
- import{g as Jt}from"./BZXx4oAF.js";import{g as Zt}from"./CQGCQvNO.js";import{s as $t}from"./BkihpvKL.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./BlT4teVV.js";import{c as D1}from"./CQdlmcpA.js";import{aP as T1}from"./Cj2RYqvI.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
1
+ import{g as Jt}from"./BCodcgR6.js";import{g as Zt}from"./BFLrA-xP.js";import{s as $t}from"./ygGiV4X4.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./Cea00daJ.js";import{c as D1}from"./B9kWU728.js";import{aP as T1}from"./BTmwOa4k.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
2
2
  `)?f=m+`
3
3
  `:f=`{
4
4
  `+m+`